mkancesdirs: Move AC_LIBOBJ invocations to module description.
[pspp] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6
7 2011-05-23  Bruno Haible  <bruno@clisp.org>
8
9         mgetgroups: Move AC_LIBOBJ invocations to module description.
10         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12
13 2011-05-23  Bruno Haible  <bruno@clisp.org>
14
15         memxor: Move AC_LIBOBJ invocations to module description.
16         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18
19 2011-05-23  Bruno Haible  <bruno@clisp.org>
20
21         memcoll: Move AC_LIBOBJ invocations to module description.
22         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
23         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
24
25 2011-05-23  Bruno Haible  <bruno@clisp.org>
26
27         memcasecmp: Move AC_LIBOBJ invocations to module description.
28         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
29         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
30
31 2011-05-23  Bruno Haible  <bruno@clisp.org>
32
33         crypto/md5: Move AC_LIBOBJ invocations to module description.
34         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
35         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
36
37 2011-05-23  Bruno Haible  <bruno@clisp.org>
38
39         crypto/md4: Move AC_LIBOBJ invocations to module description.
40         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
41         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
42
43 2011-05-23  Bruno Haible  <bruno@clisp.org>
44
45         crypto/md2: Move AC_LIBOBJ invocations to module description.
46         * m4/md2.m4: Remove file.
47         * modules/crypto/md2 (Files): Remove it.
48         (configure.ac): Remove gl_MD2 call.
49         (Makefile.am): Augment lib_SOURCES.
50
51 2011-05-23  Bruno Haible  <bruno@clisp.org>
52
53         long-options: Move AC_LIBOBJ invocations to module description.
54         * m4/long-options.m4: Remove file.
55         * modules/long-options (Files): Remove it.
56         (configure.ac): Remove gl_LONG_OPTIONS call.
57         (Makefile.am): Augment lib_SOURCES.
58
59 2011-05-23  Bruno Haible  <bruno@clisp.org>
60
61         i-ring: Move AC_LIBOBJ invocations to module description.
62         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
63         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
64
65 2011-05-23  Bruno Haible  <bruno@clisp.org>
66
67         idcache: Move AC_LIBOBJ invocations to module description.
68         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
69         * modules/idcache (Makefile.am): Augment lib_SOURCES.
70
71 2011-05-23  Bruno Haible  <bruno@clisp.org>
72
73         human: Move AC_LIBOBJ invocations to module description.
74         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
75         * modules/human (Makefile.am): Augment lib_SOURCES.
76
77 2011-05-23  Bruno Haible  <bruno@clisp.org>
78
79         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
80         * m4/hmac-sha1.m4: Remove file.
81         * modules/crypto/hmac-sha1 (Files): Remove it.
82         (configure.ac): Remove gl_HMAC_SHA1 call.
83         (Makefile.am): Augment lib_SOURCES.
84
85 2011-05-23  Bruno Haible  <bruno@clisp.org>
86
87         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
88         * m4/hmac-md5.m4: Remove file.
89         * modules/crypto/hmac-md5 (Files): Remove it.
90         (configure.ac): Remove gl_HMAC_MD5 call.
91         (Makefile.am): Augment lib_SOURCES.
92
93 2011-05-23  Bruno Haible  <bruno@clisp.org>
94
95         hash: Move AC_LIBOBJ invocations to module description.
96         * m4/hash.m4: Remove file.
97         * modules/hash (Files): Remove it.
98         (configure.ac): Remove gl_HASH call.
99         (Makefile.am): Augment lib_SOURCES.
100
101 2011-05-23  Bruno Haible  <bruno@clisp.org>
102
103         hard-locale: Move AC_LIBOBJ invocations to module description.
104         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
105         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
106
107 2011-05-23  Bruno Haible  <bruno@clisp.org>
108
109         getugroups: Move AC_LIBOBJ invocations to module description.
110         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
111         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
112
113 2011-05-23  Bruno Haible  <bruno@clisp.org>
114
115         gettime: Move AC_LIBOBJ invocations to module description.
116         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
117         * modules/gettime (Makefile.am): Augment lib_SOURCES.
118
119 2011-05-23  Bruno Haible  <bruno@clisp.org>
120
121         getndelim2: Move AC_LIBOBJ invocations to module description.
122         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
123         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
124
125 2011-05-23  Bruno Haible  <bruno@clisp.org>
126
127         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
128         * m4/gc-pbkdf2-sha1.m4: Remove file.
129         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
130         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
131         (Makefile.am): Augment lib_SOURCES.
132
133 2011-05-23  Bruno Haible  <bruno@clisp.org>
134
135         fts: Move AC_LIBOBJ invocations to module description.
136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
137         * modules/fts (configure.ac): ... to here.
138
139 2011-05-23  Bruno Haible  <bruno@clisp.org>
140
141         file-type: Move AC_LIBOBJ invocations to module description.
142         * m4/file-type.m4: Remove file.
143         * modules/file-type (Files): Remove it.
144         (configure.ac): Remove gl_FILE_TYPE call.
145         (Makefile.am): Augment lib_SOURCES.
146
147 2011-05-23  Bruno Haible  <bruno@clisp.org>
148
149         filenamecat*: Respect rules for use of AC_LIBOBJ.
150         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
151         Remove AC_LIBOBJ invocation.
152         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
153         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
154
155 2011-05-23  Bruno Haible  <bruno@clisp.org>
156
157         filemode: Move AC_LIBOBJ invocations to module description.
158         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
159         * modules/filemode (Makefile.am): Augment lib_SOURCES.
160
161 2011-05-23  Bruno Haible  <bruno@clisp.org>
162
163         openat-safer: Move AC_LIBOBJ invocations to module description.
164         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
165         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
166
167 2011-05-23  Bruno Haible  <bruno@clisp.org>
168
169         fcntl-safer: Move AC_LIBOBJ invocations to module description.
170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
171         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
172
173 2011-05-23  Bruno Haible  <bruno@clisp.org>
174
175         exclude: Move AC_LIBOBJ invocations to module description.
176         * m4/exclude.m4: Remove file.
177         * modules/exclude (Files): Remove it.
178         (configure.ac): Remove gl_EXCLUDE call.
179         (Makefile.am): Augment lib_SOURCES.
180
181 2011-05-23  Bruno Haible  <bruno@clisp.org>
182
183         dirname*: Respect rules for use of AC_LIBOBJ.
184         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
185         invocations.
186         * modules/dirname (Makefile.am): Augment lib_SOURCES.
187         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
188
189 2011-05-23  Bruno Haible  <bruno@clisp.org>
190
191         dirent-safer: Move AC_LIBOBJ invocations to module description.
192         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
193         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
194
195 2011-05-23  Bruno Haible  <bruno@clisp.org>
196
197         crypto/des: Move AC_LIBOBJ invocations to module description.
198         * m4/des.m4: Remove file.
199         * modules/crypto/des (Files): Remove it.
200         (configure.ac): Remove gl_DES call.
201         (Makefile.am): Augment lib_SOURCES.
202
203 2011-05-23  Bruno Haible  <bruno@clisp.org>
204
205         cycle-check: Move AC_LIBOBJ invocations to module description.
206         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
207         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
208
209 2011-05-23  Bruno Haible  <bruno@clisp.org>
210
211         c-strtold: Move AC_LIBOBJ invocations to module description.
212         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
213         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
214
215 2011-05-23  Bruno Haible  <bruno@clisp.org>
216
217         c-strtod: Move AC_LIBOBJ invocations to module description.
218         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
219         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
220
221 2011-05-23  Bruno Haible  <bruno@clisp.org>
222
223         crc: Move AC_LIBOBJ invocations to module description.
224         * m4/crc.m4: Remove file.
225         * modules/crc (Files): Remove it.
226         (configure.ac): Remove gl_CRC call.
227         (Makefile.am): Augment lib_SOURCES.
228
229 2011-05-23  Bruno Haible  <bruno@clisp.org>
230
231         close-stream: Move AC_LIBOBJ invocations to module description.
232         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
233         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
234
235 2011-05-23  Bruno Haible  <bruno@clisp.org>
236
237         closeout: Move AC_LIBOBJ invocations to module description.
238         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
239         * modules/closeout (Makefile.am): Augment lib_SOURCES.
240
241 2011-05-23  Bruno Haible  <bruno@clisp.org>
242
243         closein: Move AC_LIBOBJ invocations to module description.
244         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
245         * modules/closein (Makefile.am): Augment lib_SOURCES.
246
247 2011-05-23  Bruno Haible  <bruno@clisp.org>
248
249         cloexec: Move AC_LIBOBJ invocations to module description.
250         * m4/cloexec.m4: Remove file.
251         * modules/cloexec (Files): Remove it.
252         (configure.ac): Remove gl_CLOEXEC call.
253         (Makefile.am): Augment lib_SOURCES.
254
255 2011-05-23  Bruno Haible  <bruno@clisp.org>
256
257         check-version: Move AC_LIBOBJ invocations to module description.
258         * m4/check-version.m4: Remove file.
259         * modules/check-version (Files): Remove it.
260         (configure.ac): Remove gl_CHECK_VERSION call.
261         (Makefile.am): Augment lib_SOURCES.
262
263 2011-05-23  Bruno Haible  <bruno@clisp.org>
264
265         chdir-safer: Move AC_LIBOBJ invocations to module description.
266         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
267         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
268
269 2011-05-23  Bruno Haible  <bruno@clisp.org>
270
271         canonicalize: Move AC_LIBOBJ invocations to module description.
272         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
273         AC_LIBOBJ invocation.
274         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
275
276 2011-05-23  Bruno Haible  <bruno@clisp.org>
277
278         canon-host: Move AC_LIBOBJ invocations to module description.
279         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
280         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
281         instead of gl_CANON_HOST.
282         (Makefile.am): Augment lib_SOURCES.
283
284 2011-05-23  Bruno Haible  <bruno@clisp.org>
285
286         backupfile: Move AC_LIBOBJ invocations to module description.
287         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
288         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
289
290 2011-05-23  Bruno Haible  <bruno@clisp.org>
291
292         argmatch: Move AC_LIBOBJ invocations to module description.
293         * m4/argmatch.m4: Remove file.
294         * modules/argmatch (Files): Remove it.
295         (configure.ac): Remove gl_ARGMATCH call.
296         (Makefile.am): Augment lib_SOURCES.
297
298 2011-05-23  Bruno Haible  <bruno@clisp.org>
299
300         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
301         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
302         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
303
304 2011-05-23  Bruno Haible  <bruno@clisp.org>
305
306         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
307         * m4/arcfour.m4: Remove file.
308         * modules/crypto/arcfour (Files): Remove it.
309         (configure.ac): Remove gl_ARCFOUR call.
310         (Makefile.am): Augment lib_SOURCES.
311
312 2011-05-22  Bruno Haible  <bruno@clisp.org>
313
314         write: Move AC_LIBOBJ invocations to module description.
315         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
316         * modules/write (configure.ac): ... to here.
317
318 2011-05-22  Bruno Haible  <bruno@clisp.org>
319
320         wmemset: Move AC_LIBOBJ invocations to module description.
321         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
322         here...
323         * modules/wmemset (configure.ac): ... to here.
324
325 2011-05-22  Bruno Haible  <bruno@clisp.org>
326
327         wmemmove: Move AC_LIBOBJ invocations to module description.
328         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
329         here...
330         * modules/wmemmove (configure.ac): ... to here.
331
332 2011-05-22  Bruno Haible  <bruno@clisp.org>
333
334         wmemcpy: Move AC_LIBOBJ invocations to module description.
335         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
336         here...
337         * modules/wmemcpy (configure.ac): ... to here.
338
339 2011-05-22  Bruno Haible  <bruno@clisp.org>
340
341         wmemcmp: Move AC_LIBOBJ invocations to module description.
342         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
343         here...
344         * modules/wmemcmp (configure.ac): ... to here.
345
346 2011-05-22  Bruno Haible  <bruno@clisp.org>
347
348         wmemchr: Move AC_LIBOBJ invocations to module description.
349         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
350         here...
351         * modules/wmemchr (configure.ac): ... to here.
352
353 2011-05-22  Bruno Haible  <bruno@clisp.org>
354
355         wcswidth: Move AC_LIBOBJ invocations to module description.
356         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
357         here...
358         * modules/wcswidth (configure.ac): ... to here.
359
360 2011-05-22  Bruno Haible  <bruno@clisp.org>
361
362         wcwidth: Respect rules for use of AC_LIBOBJ.
363         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
364         invocation from here...
365         * modules/wcwidth (configure.ac): ... to here.
366         (Depends-on): Update conditions.
367
368 2011-05-22  Bruno Haible  <bruno@clisp.org>
369
370         wctype: Move AC_LIBOBJ invocations to module description.
371         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
372         invocation from here...
373         * modules/wctype (configure.ac): ... to here.
374         (Depends-on): Update conditions.
375
376 2011-05-22  Bruno Haible  <bruno@clisp.org>
377
378         wctrans: Move AC_LIBOBJ invocations to module description.
379         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
380         invocation from here...
381         * modules/wctrans (configure.ac): ... to here.
382
383 2011-05-22  Bruno Haible  <bruno@clisp.org>
384
385         wctomb: Move AC_LIBOBJ invocations to module description.
386         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
387         invocations from here...
388         * modules/wctomb (configure.ac): ... to here.
389
390 2011-05-22  Bruno Haible  <bruno@clisp.org>
391
392         wctob: Move AC_LIBOBJ invocations to module description.
393         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
394         gl_PREREQ_WCTOB invocations from here...
395         * modules/wctob (configure.ac): ... to here.
396         (Depends-on): Update conditions.
397
398 2011-05-22  Bruno Haible  <bruno@clisp.org>
399
400         wcsxfrm: Move AC_LIBOBJ invocations to module description.
401         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
402         here...
403         * modules/wcsxfrm (configure.ac): ... to here.
404
405 2011-05-22  Bruno Haible  <bruno@clisp.org>
406
407         wcstok: Move AC_LIBOBJ invocations to module description.
408         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
409         * modules/wcstok (configure.ac): ... to here.
410
411 2011-05-22  Bruno Haible  <bruno@clisp.org>
412
413         wcsstr: Move AC_LIBOBJ invocations to module description.
414         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
415         * modules/wcsstr (configure.ac): ... to here.
416
417 2011-05-22  Bruno Haible  <bruno@clisp.org>
418
419         wcsspn: Move AC_LIBOBJ invocations to module description.
420         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
421         * modules/wcsspn (configure.ac): ... to here.
422
423 2011-05-22  Bruno Haible  <bruno@clisp.org>
424
425         wcsrtombs: Move AC_LIBOBJ invocations to module description.
426         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
427         gl_PREREQ_WCSRTOMBS invocations from here...
428         * modules/wcsrtombs (configure.ac): ... to here.
429
430 2011-05-22  Bruno Haible  <bruno@clisp.org>
431
432         wcsrchr: Move AC_LIBOBJ invocations to module description.
433         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
434         here...
435         * modules/wcsrchr (configure.ac): ... to here.
436
437 2011-05-22  Bruno Haible  <bruno@clisp.org>
438
439         wcspbrk: Move AC_LIBOBJ invocations to module description.
440         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
441         here...
442         * modules/wcspbrk (configure.ac): ... to here.
443
444 2011-05-22  Bruno Haible  <bruno@clisp.org>
445
446         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
447         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
448         gl_PREREQ_WCSNRTOMBS invocations from here...
449         * modules/wcsnrtombs (configure.ac): ... to here.
450
451 2011-05-22  Bruno Haible  <bruno@clisp.org>
452
453         wcsnlen: Move AC_LIBOBJ invocations to module description.
454         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
455         here...
456         * modules/wcsnlen (configure.ac): ... to here.
457
458 2011-05-22  Bruno Haible  <bruno@clisp.org>
459
460         wcsncpy: Move AC_LIBOBJ invocations to module description.
461         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
462         here...
463         * modules/wcsncpy (configure.ac): ... to here.
464
465 2011-05-22  Bruno Haible  <bruno@clisp.org>
466
467         wcsncmp: Move AC_LIBOBJ invocations to module description.
468         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
469         here...
470         * modules/wcsncmp (configure.ac): ... to here.
471
472 2011-05-22  Bruno Haible  <bruno@clisp.org>
473
474         wcsncat: Move AC_LIBOBJ invocations to module description.
475         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
476         here...
477         * modules/wcsncat (configure.ac): ... to here.
478
479 2011-05-22  Bruno Haible  <bruno@clisp.org>
480
481         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
482         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
483         from here...
484         * modules/wcsncasecmp (configure.ac): ... to here.
485
486 2011-05-22  Bruno Haible  <bruno@clisp.org>
487
488         wcslen: Move AC_LIBOBJ invocations to module description.
489         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
490         * modules/wcslen (configure.ac): ... to here.
491
492 2011-05-22  Bruno Haible  <bruno@clisp.org>
493
494         wcsdup: Move AC_LIBOBJ invocations to module description.
495         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
496         * modules/wcsdup (configure.ac): ... to here.
497
498 2011-05-22  Bruno Haible  <bruno@clisp.org>
499
500         wcscspn: Move AC_LIBOBJ invocations to module description.
501         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
502         here...
503         * modules/wcscspn (configure.ac): ... to here.
504
505 2011-05-22  Bruno Haible  <bruno@clisp.org>
506
507         wcscpy: Move AC_LIBOBJ invocations to module description.
508         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
509         * modules/wcscpy (configure.ac): ... to here.
510
511 2011-05-22  Bruno Haible  <bruno@clisp.org>
512
513         wcscoll: Move AC_LIBOBJ invocations to module description.
514         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
515         here...
516         * modules/wcscoll (configure.ac): ... to here.
517
518 2011-05-22  Bruno Haible  <bruno@clisp.org>
519
520         wcscmp: Move AC_LIBOBJ invocations to module description.
521         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
522         * modules/wcscmp (configure.ac): ... to here.
523
524 2011-05-22  Bruno Haible  <bruno@clisp.org>
525
526         wcschr: Move AC_LIBOBJ invocations to module description.
527         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
528         * modules/wcschr (configure.ac): ... to here.
529
530 2011-05-22  Bruno Haible  <bruno@clisp.org>
531
532         wcscat: Move AC_LIBOBJ invocations to module description.
533         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
534         * modules/wcscat (configure.ac): ... to here.
535
536 2011-05-22  Bruno Haible  <bruno@clisp.org>
537
538         wcscasecmp: Move AC_LIBOBJ invocations to module description.
539         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
540         here...
541         * modules/wcscasecmp (configure.ac): ... to here.
542
543 2011-05-22  Bruno Haible  <bruno@clisp.org>
544
545         wcrtomb: Move AC_LIBOBJ invocations to module description.
546         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
547         invocations from here...
548         * modules/wcrtomb (configure.ac): ... to here.
549
550 2011-05-22  Bruno Haible  <bruno@clisp.org>
551
552         wcpncpy: Move AC_LIBOBJ invocations to module description.
553         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
554         here...
555         * modules/wcpncpy (configure.ac): ... to here.
556
557 2011-05-22  Bruno Haible  <bruno@clisp.org>
558
559         wcpcpy: Move AC_LIBOBJ invocations to module description.
560         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
561         * modules/wcpcpy (configure.ac): ... to here.
562
563 2011-05-22  Bruno Haible  <bruno@clisp.org>
564
565         waitpid: Move AC_LIBOBJ invocations to module description.
566         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
567         invocation from here...
568         * modules/waitpid (configure.ac): ... to here.
569
570 2011-05-22  Bruno Haible  <bruno@clisp.org>
571
572         utimensat: Move AC_LIBOBJ invocations to module description.
573         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
574         here...
575         * modules/utimensat (configure.ac): ... to here.
576
577 2011-05-22  Bruno Haible  <bruno@clisp.org>
578
579         usleep: Move AC_LIBOBJ invocations to module description.
580         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
581         here...
582         * modules/usleep (configure.ac): ... to here.
583
584 2011-05-22  Bruno Haible  <bruno@clisp.org>
585
586         unlockpt: Move AC_LIBOBJ invocations to module description.
587         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
588         gl_PREREQ_UNLOCKPT invocations from here...
589         * modules/unlockpt (configure.ac): ... to here.
590
591 2011-05-22  Bruno Haible  <bruno@clisp.org>
592
593         unlink: Respect rules for use of AC_LIBOBJ.
594         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
595         * modules/unlink (configure.ac): ... to here.
596
597 2011-05-22  Bruno Haible  <bruno@clisp.org>
598
599         uname: Move AC_LIBOBJ invocations to module description.
600         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
601         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
602         here...
603         * modules/uname (configure.ac): ... to here.
604
605 2011-05-22  Bruno Haible  <bruno@clisp.org>
606
607         ttyname_r: Move AC_LIBOBJ invocations to module description.
608         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
609         gl_PREREQ_TTYNAME_R invocations from here...
610         * modules/ttyname_r (configure.ac): ... to here.
611
612 2011-05-22  Bruno Haible  <bruno@clisp.org>
613
614         tsearch: Move AC_LIBOBJ invocations to module description.
615         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
616         invocations from here...
617         * modules/tsearch (configure.ac): ... to here.
618
619 2011-05-22  Bruno Haible  <bruno@clisp.org>
620
621         towctrans: Move AC_LIBOBJ invocations to module description.
622         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
623         AC_LIBOBJ invocation from here...
624         * modules/towctrans (configure.ac): ... to here.
625
626 2011-05-22  Bruno Haible  <bruno@clisp.org>
627
628         tmpfile: Move AC_LIBOBJ invocations to module description.
629         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
630         invocations from here...
631         * modules/tmpfile (configure.ac): ... to here.
632
633 2011-05-22  Bruno Haible  <bruno@clisp.org>
634
635         times: Move AC_LIBOBJ invocations to module description.
636         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
637         * modules/times (configure.ac): ... to here.
638
639 2011-05-22  Bruno Haible  <bruno@clisp.org>
640
641         time_r: Move AC_LIBOBJ invocations to module description.
642         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
643         invocations from here...
644         * modules/time_r (configure.ac): ... to here.
645
646 2011-05-22  Bruno Haible  <bruno@clisp.org>
647
648         timegm: Move AC_LIBOBJ invocations to module description.
649         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
650         invocations from here...
651         * modules/timegm (configure.ac): ... to here.
652
653 2011-05-22  Bruno Haible  <bruno@clisp.org>
654
655         tcgetsid: Move AC_LIBOBJ invocations to module description.
656         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
657         and gl_PREREQ_TCGETSID invocations from here...
658         * modules/tcgetsid (configure.ac): ... to here.
659         (Depends-on): Update conditions.
660
661 2011-05-22  Bruno Haible  <bruno@clisp.org>
662
663         symlinkat: Move AC_LIBOBJ invocations to module description.
664         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
665         here...
666         * modules/symlinkat (configure.ac): ... to here.
667
668 2011-05-22  Bruno Haible  <bruno@clisp.org>
669
670         symlink: Move AC_LIBOBJ invocations to module description.
671         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
672         here...
673         * modules/symlink (configure.ac): ... to here.
674
675 2011-05-22  Bruno Haible  <bruno@clisp.org>
676
677         strverscmp: Move AC_LIBOBJ invocations to module description.
678         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
679         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
680         from here...
681         * modules/strverscmp (configure.ac): ... to here.
682
683 2011-05-22  Bruno Haible  <bruno@clisp.org>
684
685         strtok_r: Move AC_LIBOBJ invocations to module description.
686         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
687         and gl_PREREQ_STRTOK_R invocations from here...
688         * modules/strtok_r (configure.ac): ... to here.
689         (Depends-on): Update conditions.
690
691 2011-05-22  Bruno Haible  <bruno@clisp.org>
692
693         strtoumax: Move AC_LIBOBJ invocations to module description.
694         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
696         from here...
697         * modules/strtoumax (configure.ac): ... to here.
698
699 2011-05-22  Bruno Haible  <bruno@clisp.org>
700
701         strtoimax: Move AC_LIBOBJ invocations to module description.
702         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
704         from here...
705         * modules/strtoimax (configure.ac): ... to here.
706
707 2011-05-22  Bruno Haible  <bruno@clisp.org>
708
709         strtoull: Move AC_LIBOBJ invocations to module description.
710         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
712         from here...
713         * modules/strtoull (configure.ac): ... to here.
714
715 2011-05-22  Bruno Haible  <bruno@clisp.org>
716
717         strtoll: Move AC_LIBOBJ invocations to module description.
718         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
720         here...
721         * modules/strtoll (configure.ac): ... to here.
722
723 2011-05-22  Bruno Haible  <bruno@clisp.org>
724
725         strtoul: Move AC_LIBOBJ invocations to module description.
726         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
727         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
728         * modules/strtoul (configure.ac): ... to here.
729
730 2011-05-22  Bruno Haible  <bruno@clisp.org>
731
732         strtol: Move AC_LIBOBJ invocations to module description.
733         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
734         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
735         * modules/strtol (configure.ac): ... to here.
736
737 2011-05-22  Bruno Haible  <bruno@clisp.org>
738
739         strtod: Move AC_LIBOBJ invocations to module description.
740         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
741         invocations from here...
742         * modules/strtod (configure.ac): ... to here.
743
744 2011-05-22  Bruno Haible  <bruno@clisp.org>
745
746         strstr*: Move AC_LIBOBJ invocations to module description.
747         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
748         invocations from here...
749         * modules/strstr-simple (configure.ac): ... to here.
750         * modules/strstr (configure.ac): ... and here.
751
752 2011-05-22  Bruno Haible  <bruno@clisp.org>
753
754         strsignal: Move AC_LIBOBJ invocations to module description.
755         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
756         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
757         * modules/strsignal (configure.ac): ... to here.
758         (Depends-on): Update conditions.
759
760 2011-05-22  Bruno Haible  <bruno@clisp.org>
761
762         strsep: Move AC_LIBOBJ invocations to module description.
763         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
765         here...
766         * modules/strsep (configure.ac): ... to here.
767
768 2011-05-22  Bruno Haible  <bruno@clisp.org>
769
770         strptime: Move AC_LIBOBJ invocations to module description.
771         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
772         gl_PREREQ_STRPTIME invocations from here...
773         * modules/strptime (configure.ac): ... to here.
774
775 2011-05-22  Bruno Haible  <bruno@clisp.org>
776
777         strpbrk: Move AC_LIBOBJ invocations to module description.
778         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
779         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
780         here...
781         * modules/strpbrk (configure.ac): ... to here.
782
783 2011-05-22  Bruno Haible  <bruno@clisp.org>
784
785         strnlen: Move AC_LIBOBJ invocations to module description.
786         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
787         invocations from here...
788         * modules/strnlen (configure.ac): ... to here.
789
790 2011-05-22  Bruno Haible  <bruno@clisp.org>
791
792         strndup: Move AC_LIBOBJ invocations to module description.
793         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
794         invocations from here...
795         * modules/strndup (configure.ac): ... to here.
796         (Depends-on): Update conditions.
797
798 2011-05-22  Bruno Haible  <bruno@clisp.org>
799
800         strncat: Move AC_LIBOBJ invocations to module description.
801         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
802         invocations from here...
803         * modules/strncat (configure.ac): ... to here.
804
805 2011-05-22  Bruno Haible  <bruno@clisp.org>
806
807         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
808         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
809         invocations from here...
810         * modules/strdup (configure.ac): ... to here.
811         * modules/strdup-posix (configure.ac): ... and here.
812
813 2011-05-22  Bruno Haible  <bruno@clisp.org>
814
815         strcspn: Move AC_LIBOBJ invocations to module description.
816         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
817         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
818         here...
819         * modules/strcspn (configure.ac): ... to here.
820
821 2011-05-22  Bruno Haible  <bruno@clisp.org>
822
823         strchrnul: Move AC_LIBOBJ invocations to module description.
824         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
825         gl_PREREQ_STRCHRNUL invocations from here...
826         * modules/strchrnul (configure.ac): ... to here.
827
828 2011-05-22  Bruno Haible  <bruno@clisp.org>
829
830         strcasestr*: Move AC_LIBOBJ invocations to module description.
831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
832         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
833         * modules/strcasestr-simple (configure.ac): ... to here.
834         * modules/strcasestr (configure.ac): ... and here.
835
836 2011-05-22  Bruno Haible  <bruno@clisp.org>
837
838         strcase: Move AC_LIBOBJ invocations to module description.
839         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
840         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
841         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
842         gl_PREREQ_STRNCASECMP invocations from here...
843         * modules/strcase (configure.ac): ... to here.
844
845 2011-05-22  Bruno Haible  <bruno@clisp.org>
846
847         stpncpy: Move AC_LIBOBJ invocations to module description.
848         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
849         here...
850         * modules/stpncpy (configure.ac): ... to here.
851
852 2011-05-22  Bruno Haible  <bruno@clisp.org>
853
854         stpcpy: Move AC_LIBOBJ invocations to module description.
855         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
856         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
857         here...
858         * modules/stpcpy (configure.ac): ... to here.
859
860 2011-05-21  Bruno Haible  <bruno@clisp.org>
861
862         stat: Move AC_LIBOBJ invocations to module description.
863         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
864         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
865         here...
866         * modules/stat (configure.ac): ... to here.
867
868 2011-05-21  Bruno Haible  <bruno@clisp.org>
869
870         sleep: Move AC_LIBOBJ invocations to module description.
871         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
872         * modules/sleep (configure.ac): ... to here.
873
874 2011-05-21  Bruno Haible  <bruno@clisp.org>
875
876         signbit: Move AC_LIBOBJ invocations to module description.
877         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
878         * modules/signbit (configure.ac): ... to here.
879
880 2011-05-21  Bruno Haible  <bruno@clisp.org>
881
882         sigprocmask: Move AC_LIBOBJ invocations to module description.
883         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
884         gl_PREREQ_SIGPROMASK invocations from here...
885         * modules/sigprocmask (configure.ac): ... to here.
886
887 2011-05-21  Bruno Haible  <bruno@clisp.org>
888
889         sigaction: Move AC_LIBOBJ invocations to module description.
890         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
891         gl_PREREQ_SIGACTION invocations from here...
892         * modules/sigaction (configure.ac): ... to here.
893
894 2011-05-21  Bruno Haible  <bruno@clisp.org>
895
896         sig2str: Move AC_LIBOBJ invocations to module description.
897         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
899         here...
900         * modules/sig2str (configure.ac): ... to here.
901
902 2011-05-21  Bruno Haible  <bruno@clisp.org>
903
904         setlocale: Move AC_LIBOBJ invocations to module description.
905         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
906         gl_PREREQ_SETLOCALE invocations from here...
907         * modules/setlocale (configure.ac): ... to here.
908
909 2011-05-21  Bruno Haible  <bruno@clisp.org>
910
911         unsetenv: Move AC_LIBOBJ invocations to module description.
912         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
913         and gl_PREREQ_UNSETENV invocations from here...
914         * modules/unsetenv (configure.ac): ... to here.
915         (Depends-on): Update.
916
917 2011-05-21  Bruno Haible  <bruno@clisp.org>
918
919         setenv: Move AC_LIBOBJ invocations to module description.
920         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
921         here...
922         * modules/setenv (configure.ac): ... to here.
923
924 2011-05-21  Bruno Haible  <bruno@clisp.org>
925
926         selinux-h: Move AC_LIBOBJ invocations to module description.
927         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
928         AC_LIBOBJ invocation from here...
929         * modules/selinux-h (configure.ac): ... to here.
930
931 2011-05-21  Bruno Haible  <bruno@clisp.org>
932
933         select: Respect rules for use of AC_LIBOBJ.
934         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
935         here...
936         * modules/select (configure.ac): ... to here.
937
938 2011-05-21  Bruno Haible  <bruno@clisp.org>
939
940         scandir: Move AC_LIBOBJ invocations to module description.
941         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
942         invocations from here...
943         * modules/scandir (configure.ac): ... to here.
944
945 2011-05-21  Bruno Haible  <bruno@clisp.org>
946
947         rpmatch: Move AC_LIBOBJ invocations to module description.
948         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
950         here...
951         * modules/rpmatch (configure.ac): ... to here.
952
953 2011-05-21  Bruno Haible  <bruno@clisp.org>
954
955         rmdir: Respect rules for use of AC_LIBOBJ.
956         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
957         * modules/rmdir (configure.ac): ... to here.
958
959 2011-05-21  Bruno Haible  <bruno@clisp.org>
960
961         renameat: Move AC_LIBOBJ invocations to module description.
962         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
963         here...
964         * modules/renameat (configure.ac): ... to here.
965
966 2011-05-21  Bruno Haible  <bruno@clisp.org>
967
968         rename: Respect rules for use of AC_LIBOBJ.
969         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
970         here...
971         * modules/rename (configure.ac): ... to here.
972
973 2011-05-21  Bruno Haible  <bruno@clisp.org>
974
975         remove: Move AC_LIBOBJ invocations to module description.
976         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
977         here...
978         * modules/remove (configure.ac): ... to here.
979
980 2011-05-21  Bruno Haible  <bruno@clisp.org>
981
982         relocatable-lib: Move AC_LIBOBJ invocations to module description.
983         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
984         macro.
985         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
986         * modules/relocatable-lib (configure.ac): ... to here.
987         * modules/relocatable-prog-wrapper (configure.ac): Invoke
988         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
989
990 2011-05-21  Bruno Haible  <bruno@clisp.org>
991
992         relocatable-prog: Move AC_LIBOBJ invocations to module description.
993         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
994         here...
995         * modules/relocatable-prog (configure.ac): ... to here.
996
997 2011-05-21  Bruno Haible  <bruno@clisp.org>
998
999         regex: Move AC_LIBOBJ invocations to module description.
1000         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1001         invocations from here...
1002         * modules/regex (configure.ac): ... to here.
1003
1004 2011-05-21  Bruno Haible  <bruno@clisp.org>
1005
1006         realloc-*: Move AC_LIBOBJ invocations to module description.
1007         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1008         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1009         AC_LIBOBJ invocations from here...
1010         * modules/realloc-gnu (configure.ac): ... to here.
1011         * modules/realloc-posix (configure.ac): ... and here.
1012
1013 2011-05-21  Bruno Haible  <bruno@clisp.org>
1014
1015         readutmp: Move AC_LIBOBJ invocations to module description.
1016         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1017         * modules/readutmp (configure.ac): ... to here.
1018
1019 2011-05-21  Bruno Haible  <bruno@clisp.org>
1020
1021         readlinkat: Move AC_LIBOBJ invocations to module description.
1022         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1023         here...
1024         * modules/readlinkat (configure.ac): ... to here.
1025
1026 2011-05-21  Bruno Haible  <bruno@clisp.org>
1027
1028         readlink: Move AC_LIBOBJ invocations to module description.
1029         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1030         gl_PREREQ_READLINK invocations from here...
1031         * modules/readlink (configure.ac): ... to here.
1032
1033 2011-05-21  Bruno Haible  <bruno@clisp.org>
1034
1035         readline: Move AC_LIBOBJ invocations to module description.
1036         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1037         gl_PREREQ_READLINE invocations from here...
1038         * modules/readline (configure.ac): ... to here.
1039
1040 2011-05-21  Bruno Haible  <bruno@clisp.org>
1041
1042         read: Move AC_LIBOBJ invocations to module description.
1043         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1044         * modules/read (configure.ac): ... to here.
1045
1046 2011-05-21  Bruno Haible  <bruno@clisp.org>
1047
1048         rawmemchr: Move AC_LIBOBJ invocations to module description.
1049         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1050         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1051         from here...
1052         * modules/rawmemchr (configure.ac): ... to here.
1053
1054 2011-05-21  Bruno Haible  <bruno@clisp.org>
1055
1056         random_r: Move AC_LIBOBJ invocations to module description.
1057         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1058         gl_PREREQ_RANDOM_R invocations from here...
1059         * modules/random_r (configure.ac): ... to here.
1060
1061 2011-05-21  Bruno Haible  <bruno@clisp.org>
1062
1063         pwrite: Move AC_LIBOBJ invocations to module description.
1064         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1065         * modules/pwrite (configure.ac): ... to here.
1066
1067 2011-05-21  Bruno Haible  <bruno@clisp.org>
1068
1069         putenv: Move AC_LIBOBJ invocations to module description.
1070         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1071         * modules/putenv (configure.ac): ... to here.
1072
1073 2011-05-21  Bruno Haible  <bruno@clisp.org>
1074
1075         login_tty: Move AC_LIBOBJ invocations to module description.
1076         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1077         * modules/login_tty (configure.ac): ... to here.
1078
1079 2011-05-21  Bruno Haible  <bruno@clisp.org>
1080
1081         openpty: Move AC_LIBOBJ invocations to module description.
1082         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1083         * modules/openpty (configure.ac): ... to here.
1084
1085 2011-05-21  Bruno Haible  <bruno@clisp.org>
1086
1087         forkpty: Move AC_LIBOBJ invocations to module description.
1088         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1089         * modules/forkpty (configure.ac): ... to here.
1090
1091 2011-05-21  Bruno Haible  <bruno@clisp.org>
1092
1093         ptsname: Move AC_LIBOBJ invocations to module description.
1094         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1095         invocations from here...
1096         * modules/ptsname (configure.ac): ... to here.
1097
1098 2011-05-21  Bruno Haible  <bruno@clisp.org>
1099
1100         pread: Move AC_LIBOBJ invocations to module description.
1101         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1102         * modules/pread (configure.ac): ... to here.
1103
1104 2011-05-21  Bruno Haible  <bruno@clisp.org>
1105
1106         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1107         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1108         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1109         * modules/posix_spawn (configure.ac): ... to here.
1110         * modules/posix_spawnp (configure.ac): ... and here.
1111
1112 2011-05-21  Bruno Haible  <bruno@clisp.org>
1113
1114         popen: Move AC_LIBOBJ invocations to module description.
1115         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1116         invocations from here...
1117         * modules/popen (configure.ac): ... to here.
1118
1119 2011-05-21  Bruno Haible  <bruno@clisp.org>
1120
1121         poll: Move AC_LIBOBJ invocations to module description.
1122         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1123         invocations from here...
1124         * modules/poll (configure.ac): ... to here.
1125
1126 2011-05-21  Bruno Haible  <bruno@clisp.org>
1127
1128         pipe-posix: Move AC_LIBOBJ invocations to module description.
1129         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1130         * modules/pipe-posix (configure.ac): ... to here.
1131
1132 2011-05-21  Bruno Haible  <bruno@clisp.org>
1133
1134         openat: Respect rules for use of AC_LIBOBJ.
1135         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1136         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1137         * modules/openat (configure.ac): ... to here.
1138
1139 2011-05-21  Bruno Haible  <bruno@clisp.org>
1140
1141         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1142         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1143         invocation from here...
1144         * modules/obstack-printf (configure.ac): ... to here.
1145         * modules/obstack-printf-posix (configure.ac): ... and here.
1146
1147 2011-05-21  Bruno Haible  <bruno@clisp.org>
1148
1149         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1150         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1151         from here...
1152         * modules/nl_langinfo (configure.ac): ... to here.
1153
1154 2011-05-21  Bruno Haible  <bruno@clisp.org>
1155
1156         nanosleep: Move AC_LIBOBJ invocations to module description.
1157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1158         gl_PREREQ_NANOSLEEP invocations from here...
1159         * modules/nanosleep (configure.ac): ... to here.
1160
1161 2011-05-21  Bruno Haible  <bruno@clisp.org>
1162
1163         mountlist: Move AC_LIBOBJ invocations to module description.
1164         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1165         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1166         * modules/mountlist (configure.ac): ... to here.
1167
1168 2011-05-21  Bruno Haible  <bruno@clisp.org>
1169
1170         mktime: Respect rules for use of AC_LIBOBJ.
1171         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1172         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1173         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1174         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1175         * modules/mktime (configure.ac): ... to here.
1176         * modules/mktime-internal (configure.ac): ... and here.
1177         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1178
1179 2011-05-21  Bruno Haible  <bruno@clisp.org>
1180
1181         mkstemps: Move AC_LIBOBJ invocations to module description.
1182         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1183         here...
1184         * modules/mkstemps (configure.ac): ... to here.
1185
1186 2011-05-21  Bruno Haible  <bruno@clisp.org>
1187
1188         mkstemp: Move AC_LIBOBJ invocations to module description.
1189         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1190         gl_PREREQ_MKSTEMP invocations from here...
1191         * modules/mkstemp (configure.ac): ... to here.
1192
1193 2011-05-21  Bruno Haible  <bruno@clisp.org>
1194
1195         mkostemps: Move AC_LIBOBJ invocations to module description.
1196         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1197         here...
1198         * modules/mkostemps (configure.ac): ... to here.
1199
1200 2011-05-21  Bruno Haible  <bruno@clisp.org>
1201
1202         mkostemp: Move AC_LIBOBJ invocations to module description.
1203         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1204         gl_PREREQ_MKOSTEMP invocations from here...
1205         * modules/mkostemp (configure.ac): ... to here.
1206
1207 2011-05-21  Bruno Haible  <bruno@clisp.org>
1208
1209         mknod: Move AC_LIBOBJ invocations to module description.
1210         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1211         * modules/mknod (configure.ac): ... to here.
1212
1213 2011-05-21  Bruno Haible  <bruno@clisp.org>
1214
1215         mkfifoat: Move AC_LIBOBJ invocations to module description.
1216         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1217         here...
1218         * modules/mkfifoat (configure.ac): ... to here.
1219
1220 2011-05-21  Bruno Haible  <bruno@clisp.org>
1221
1222         mkfifo: Respect rules for use of AC_LIBOBJ.
1223         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1224         here...
1225         * modules/mkfifo (configure.ac): ... to here.
1226
1227 2011-05-21  Bruno Haible  <bruno@clisp.org>
1228
1229         mkdtemp: Move AC_LIBOBJ invocations to module description.
1230         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1231         invocations from here...
1232         * modules/mkdtemp (configure.ac): ... to here.
1233
1234 2011-05-21  Bruno Haible  <bruno@clisp.org>
1235
1236         mkdir: Move AC_LIBOBJ invocations to module description.
1237         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1238         * modules/mkdir (configure.ac): ... to here.
1239
1240 2011-05-21  Bruno Haible  <bruno@clisp.org>
1241
1242         memset: Move AC_LIBOBJ invocations to module description.
1243         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1244         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1245         here...
1246         * modules/memset (configure.ac): ... to here.
1247
1248 2011-05-21  Bruno Haible  <bruno@clisp.org>
1249
1250         memrchr: Move AC_LIBOBJ invocations to module description.
1251         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1253         here...
1254         * modules/memrchr (configure.ac): ... to here.
1255
1256 2011-05-21  Bruno Haible  <bruno@clisp.org>
1257
1258         mempcpy: Move AC_LIBOBJ invocations to module description.
1259         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1261         here...
1262         * modules/mempcpy (configure.ac): ... to here.
1263
1264 2011-05-21  Bruno Haible  <bruno@clisp.org>
1265
1266         memmove: Move AC_LIBOBJ invocations to module description.
1267         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1269         here...
1270         * modules/memmove (configure.ac): ... to here.
1271
1272 2011-05-21  Bruno Haible  <bruno@clisp.org>
1273
1274         memmem*: Move AC_LIBOBJ invocations to module description.
1275         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1276         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1277         here...
1278         (gl_FUNC_MEMMEM): ... and here...
1279         * modules/memmem-simple (configure.ac): ... to here.
1280         * modules/memmem (configure.ac): ... and here.
1281
1282 2011-05-21  Bruno Haible  <bruno@clisp.org>
1283
1284         memcpy: Move AC_LIBOBJ invocations to module description.
1285         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1286         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1287         here...
1288         * modules/memcpy (configure.ac): ... to here.
1289
1290 2011-05-21  Bruno Haible  <bruno@clisp.org>
1291
1292         memcmp: Simplify autoconf macro.
1293         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1294         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1295         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1296
1297 2011-05-21  Bruno Haible  <bruno@clisp.org>
1298
1299         memcmp: Move AC_LIBOBJ invocations to module description.
1300         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1301         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1302         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1303         * modules/memcmp (configure.ac): ... to here.
1304         (Depends-on): Update conditions.
1305
1306 2011-05-21  Bruno Haible  <bruno@clisp.org>
1307
1308         memchr: Respect rules for use of AC_LIBOBJ.
1309         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1310         invocations from here...
1311         * modules/memchr (configure.ac): ... to here.
1312
1313 2011-05-21  Bruno Haible  <bruno@clisp.org>
1314
1315         mbtowc: Move AC_LIBOBJ invocations to module description.
1316         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1317         invocations from here...
1318         * modules/mbtowc (configure.ac): ... to here.
1319
1320 2011-05-21  Bruno Haible  <bruno@clisp.org>
1321
1322         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1323         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1324         gl_PREREQ_MBSRTOWCS invocations from here...
1325         * modules/mbsrtowcs (configure.ac): ... to here.
1326
1327 2011-05-21  Bruno Haible  <bruno@clisp.org>
1328
1329         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1330         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1331         gl_PREREQ_MBSNRTOWCS invocations from here...
1332         * modules/mbsnrtowcs (configure.ac): ... to here.
1333
1334 2011-05-21  Bruno Haible  <bruno@clisp.org>
1335
1336         mbsinit: Move AC_LIBOBJ invocations to module description.
1337         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1338         invocations from here...
1339         * modules/mbsinit (configure.ac): ... to here.
1340
1341 2011-05-21  Bruno Haible  <bruno@clisp.org>
1342
1343         mbrlen: Move AC_LIBOBJ invocations to module description.
1344         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1345         invocations from here...
1346         * modules/mbrlen (configure.ac): ... to here.
1347
1348 2011-05-21  Bruno Haible  <bruno@clisp.org>
1349
1350         mbrtowc: Respect rules for use of AC_LIBOBJ.
1351         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1352         invocations from here...
1353         * modules/mbrtowc (configure.ac): ... to here.
1354
1355 2011-05-21  Bruno Haible  <bruno@clisp.org>
1356
1357         malloc-*: Move AC_LIBOBJ invocations to module description.
1358         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1359         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1360         AC_LIBOBJ invocations from here...
1361         * modules/malloc-gnu (configure.ac): ... to here.
1362         * modules/malloc-posix (configure.ac): ... and here.
1363
1364 2011-05-21  Bruno Haible  <bruno@clisp.org>
1365
1366         lstat, openat: Respect rules for use of AC_LIBOBJ.
1367         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1368         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1369         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1370         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1371         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1372         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1373         here.
1374         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1375
1376 2011-05-21  Bruno Haible  <bruno@clisp.org>
1377
1378         lseek: Move AC_LIBOBJ invocations to module description.
1379         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1380         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1381         * modules/lseek (configure.ac): ... to here.
1382
1383 2011-05-21  Bruno Haible  <bruno@clisp.org>
1384
1385         linkat: Move AC_LIBOBJ invocations to module description.
1386         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1387         here...
1388         * modules/linkat (configure.ac): ... to here.
1389
1390 2011-05-21  Bruno Haible  <bruno@clisp.org>
1391
1392         link: Respect rules for use of AC_LIBOBJ.
1393         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1394         * modules/link (configure.ac): ... to here.
1395
1396 2011-05-21  Bruno Haible  <bruno@clisp.org>
1397
1398         lchown: Move AC_LIBOBJ invocations to module description.
1399         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1400         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1401         * modules/lchown (configure.ac): ... to here.
1402
1403 2011-05-21  Bruno Haible  <bruno@clisp.org>
1404
1405         iswctype: Move AC_LIBOBJ invocations to module description.
1406         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1407         here...
1408         * modules/iswctype (configure.ac): ... to here.
1409
1410 2011-05-21  Bruno Haible  <bruno@clisp.org>
1411
1412         iswblank: Move AC_LIBOBJ invocations to module description.
1413         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1414         here...
1415         * modules/iswblank (configure.ac): ... to here.
1416
1417 2011-05-21  Bruno Haible  <bruno@clisp.org>
1418
1419         atanl: Move AC_LIBOBJ invocations to module description.
1420         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1421         * modules/atanl (configure.ac): ... to here.
1422
1423 2011-05-21  Bruno Haible  <bruno@clisp.org>
1424
1425         acosl: Move AC_LIBOBJ invocations to module description.
1426         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1427         * modules/acosl (configure.ac): ... to here.
1428
1429 2011-05-21  Bruno Haible  <bruno@clisp.org>
1430
1431         asinl: Respect rules for use of AC_LIBOBJ.
1432         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1433         * modules/asinl (configure.ac): ... to here.
1434
1435 2011-05-21  Bruno Haible  <bruno@clisp.org>
1436
1437         tanl: Move AC_LIBOBJ invocations to module description.
1438         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1439         * modules/tanl (configure.ac): ... to here.
1440
1441 2011-05-21  Bruno Haible  <bruno@clisp.org>
1442
1443         cosl: Move AC_LIBOBJ invocations to module description.
1444         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1445         * modules/cosl (configure.ac): ... to here.
1446
1447 2011-05-21  Bruno Haible  <bruno@clisp.org>
1448
1449         sinl: Move AC_LIBOBJ invocations to module description.
1450         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1451         * modules/sinl (configure.ac): ... to here.
1452
1453 2011-05-21  Bruno Haible  <bruno@clisp.org>
1454
1455         logl: Move AC_LIBOBJ invocations to module description.
1456         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1457         * modules/logl (configure.ac): ... to here.
1458
1459 2011-05-21  Bruno Haible  <bruno@clisp.org>
1460
1461         expl: Move AC_LIBOBJ invocations to module description.
1462         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1463         * modules/expl (configure.ac): ... to here.
1464
1465 2011-05-21  Bruno Haible  <bruno@clisp.org>
1466
1467         roundl: Move AC_LIBOBJ invocations to module description.
1468         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1469         * modules/roundl (configure.ac): ... to here.
1470
1471 2011-05-21  Bruno Haible  <bruno@clisp.org>
1472
1473         round: Move AC_LIBOBJ invocations to module description.
1474         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1475         * modules/round (configure.ac): ... to here.
1476
1477 2011-05-21  Bruno Haible  <bruno@clisp.org>
1478
1479         roundf: Move AC_LIBOBJ invocations to module description.
1480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1481         * modules/roundf (configure.ac): ... to here.
1482
1483 2011-05-21  Bruno Haible  <bruno@clisp.org>
1484
1485         truncl: Move AC_LIBOBJ invocations to module description.
1486         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1487         * modules/truncl (configure.ac): ... to here.
1488
1489 2011-05-21  Bruno Haible  <bruno@clisp.org>
1490
1491         trunc: Move AC_LIBOBJ invocations to module description.
1492         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1493         * modules/trunc (configure.ac): ... to here.
1494
1495 2011-05-21  Bruno Haible  <bruno@clisp.org>
1496
1497         truncf: Move AC_LIBOBJ invocations to module description.
1498         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1499         * modules/truncf (configure.ac): ... to here.
1500
1501 2011-05-21  Bruno Haible  <bruno@clisp.org>
1502
1503         ceill: Move AC_LIBOBJ invocations to module description.
1504         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1505         * modules/ceill (configure.ac): ... to here.
1506
1507 2011-05-21  Bruno Haible  <bruno@clisp.org>
1508
1509         ceil: Move AC_LIBOBJ invocations to module description.
1510         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1511         * modules/ceil (configure.ac): ... to here.
1512
1513 2011-05-21  Bruno Haible  <bruno@clisp.org>
1514
1515         ceilf: Move AC_LIBOBJ invocations to module description.
1516         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1517         * modules/ceilf (configure.ac): ... to here.
1518
1519 2011-05-21  Bruno Haible  <bruno@clisp.org>
1520
1521         floorl: Respect rules for use of AC_LIBOBJ.
1522         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1523         * modules/floorl (configure.ac): ... to here.
1524
1525 2011-05-21  Bruno Haible  <bruno@clisp.org>
1526
1527         floor: Respect rules for use of AC_LIBOBJ.
1528         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1529         * modules/floor (configure.ac): ... to here.
1530
1531 2011-05-21  Bruno Haible  <bruno@clisp.org>
1532
1533         floorf: Move AC_LIBOBJ invocations to module description.
1534         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1535         * modules/floorf (configure.ac): ... to here.
1536
1537 2011-05-20  Bruno Haible  <bruno@clisp.org>
1538
1539         sqrtl: Respect rules for use of AC_LIBOBJ.
1540         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1541         * modules/sqrtl (configure.ac): ... to here.
1542
1543 2011-05-20  Bruno Haible  <bruno@clisp.org>
1544
1545         ldexpl: Respect rules for use of AC_LIBOBJ.
1546         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1547         * modules/ldexpl (configure.ac): ... to here.
1548
1549 2011-05-20  Bruno Haible  <bruno@clisp.org>
1550
1551         frexpl*: Respect rules for use of AC_LIBOBJ.
1552         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1553         invocation from here...
1554         * modules/frexpl (configure.ac): ... to here.
1555         * modules/frexpl-nolibm (configure.ac): ... and here.
1556
1557 2011-05-20  Bruno Haible  <bruno@clisp.org>
1558
1559         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1560         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1561         invocation from here...
1562         * modules/frexp (configure.ac): ... to here.
1563         * modules/frexp-nolibm (configure.ac): ... and here.
1564
1565 2011-05-20  Bruno Haible  <bruno@clisp.org>
1566
1567         isnan: Respect rules for use of AC_LIBOBJ.
1568         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1569         invocations here.
1570         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1571         REPLACE_ISNAN.
1572         * modules/isnand (configure.ac): Likewise.
1573         * modules/isnanl (configure.ac): Likewise.
1574
1575 2011-05-20  Bruno Haible  <bruno@clisp.org>
1576
1577         isnanl*: Respect rules for use of AC_LIBOBJ.
1578         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1579         invocation from here...
1580         * modules/isnanl (configure.ac): ... to here.
1581         * modules/isnanl-nolibm (configure.ac): ... and here.
1582
1583 2011-05-20  Bruno Haible  <bruno@clisp.org>
1584
1585         isnand*: Move AC_LIBOBJ invocations to module description.
1586         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1587         invocation from here...
1588         * modules/isnand (configure.ac): ... to here.
1589         * modules/isnand-nolibm (configure.ac): ... and here.
1590
1591 2011-05-20  Bruno Haible  <bruno@clisp.org>
1592
1593         isnanf*: Move AC_LIBOBJ invocations to module description.
1594         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1595         invocation from here...
1596         * modules/isnanf (configure.ac): ... to here.
1597         * modules/isnanf-nolibm (configure.ac): ... and here.
1598
1599 2011-05-20  Bruno Haible  <bruno@clisp.org>
1600
1601         isnan*: Separate the AC_LIBOBJ invocations.
1602         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1603         AC_LIBOBJ invocation.
1604         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1605         here.
1606         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1607         AC_LIBOBJ invocation.
1608         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1609         here.
1610         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1611         AC_LIBOBJ invocation.
1612         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1613         here.
1614         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1615
1616 2011-05-08  Bruno Haible  <bruno@clisp.org>
1617
1618         isinf: Move AC_LIBOBJ invocations to module description.
1619         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1620         * modules/isinf (configure.ac): ... to here.
1621
1622 2011-05-08  Bruno Haible  <bruno@clisp.org>
1623
1624         isfinite: Move AC_LIBOBJ invocations to module description.
1625         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1626         * modules/isfinite (configure.ac): ... to here.
1627
1628 2011-05-08  Bruno Haible  <bruno@clisp.org>
1629
1630         isblank: Move AC_LIBOBJ invocations to module description.
1631         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1632         here...
1633         * modules/isblank (configure.ac): ... to here.
1634
1635 2011-05-08  Bruno Haible  <bruno@clisp.org>
1636
1637         isapipe: Move AC_LIBOBJ invocations to module description.
1638         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1639         gl_PREREQ_ISAPIPE invocations from here...
1640         * modules/isapipe (configure.ac): ... to here.
1641         (Depends-on): Update condition.
1642
1643 2011-05-08  Bruno Haible  <bruno@clisp.org>
1644
1645         ioctl: Move AC_LIBOBJ invocations to module description.
1646         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1647         invocations from here...
1648         * modules/ioctl (configure.ac): ... to here.
1649         (Depends-on): Update condition.
1650
1651 2011-05-08  Bruno Haible  <bruno@clisp.org>
1652
1653         imaxdiv: Move AC_LIBOBJ invocations to module description.
1654         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1655         invocations from here...
1656         * modules/imaxdiv (configure.ac): ... to here.
1657
1658 2011-05-08  Bruno Haible  <bruno@clisp.org>
1659
1660         imaxabs: Move AC_LIBOBJ invocations to module description.
1661         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1662         invocations from here...
1663         * modules/imaxabs (configure.ac): ... to here.
1664
1665 2011-05-08  Bruno Haible  <bruno@clisp.org>
1666
1667         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1668         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1669         AC_LIBOBJ invocations from here...
1670         * modules/getaddrinfo (configure.ac): ... to here.
1671         (Depends-on): Add conditions.
1672
1673 2011-05-08  Bruno Haible  <bruno@clisp.org>
1674
1675         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1676         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1677         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1678         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1679         (gl_PREREQ_INET_PTON): ... from here.
1680         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1681         gl_PREREQ_INET_PTON here.
1682         (Depends-on): Update condition.
1683
1684 2011-05-08  Bruno Haible  <bruno@clisp.org>
1685
1686         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1687         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1688         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1689         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1690         (gl_PREREQ_INET_NTOP): ... from here.
1691         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1692         gl_PREREQ_INET_NTOP here.
1693         (Depends-on): Update condition.
1694
1695 2011-05-08  Bruno Haible  <bruno@clisp.org>
1696
1697         iconv_open: Move AC_LIBOBJ invocations to module description.
1698         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1699         AC_LIBOBJ invocations from here...
1700         * modules/iconv_open (configure.ac): ... to here.
1701
1702 2011-05-08  Bruno Haible  <bruno@clisp.org>
1703
1704         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1705         If module 'iconv_open' is among the main modules and module
1706         'iconv_open-utf' is among the tests dependencies, then
1707         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1708         return the special iconv_t values. Therefore iconv() and iconv_close()
1709         must support these special iconv_t values, already in lib, not only in
1710         tests.
1711         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1712         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1713         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1714         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1715         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1716         (Depends-on): Add the dependencies of iconv_open-utf.
1717         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1718         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1719         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1720
1721 2011-05-08  Bruno Haible  <bruno@clisp.org>
1722
1723         group-member: Move AC_LIBOBJ invocations to module description.
1724         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1725         gl_PREREQ_GROUP_MEMBER invocations from here...
1726         * modules/group-member (configure.ac): ... to here.
1727
1728 2011-05-08  Bruno Haible  <bruno@clisp.org>
1729
1730         grantpt: Move AC_LIBOBJ invocations to module description.
1731         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1732         invocations from here...
1733         * modules/grantpt (configure.ac): ... to here.
1734
1735 2011-05-08  Bruno Haible  <bruno@clisp.org>
1736
1737         glob: Move AC_LIBOBJ invocations to module description.
1738         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1739         from here...
1740         * modules/glob (configure.ac): ... to here.
1741
1742 2011-05-08  Bruno Haible  <bruno@clisp.org>
1743
1744         getusershell: Move AC_LIBOBJ invocations to module description.
1745         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1746         Move AC_LIBOBJ invocation from here...
1747         * modules/getusershell (configure.ac): ... to here.
1748         (Depends-on): Update condition.
1749
1750 2011-05-08  Bruno Haible  <bruno@clisp.org>
1751
1752         gettimeofday: Move AC_LIBOBJ invocations to module description.
1753         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1754         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1755         gl_PREREQ_GETTIMEOFDAY invocations from here...
1756         * modules/gettimeofday (configure.ac): ... to here.
1757
1758 2011-05-08  Bruno Haible  <bruno@clisp.org>
1759
1760         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1761         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1762         just gl_FUNC_TZSET.
1763         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1764         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1766         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1767
1768 2011-05-08  Bruno Haible  <bruno@clisp.org>
1769
1770         getsubopt: Move AC_LIBOBJ invocations to module description.
1771         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1772         gl_PREREQ_GETSUBOPT invocations from here...
1773         * modules/getsubopt (configure.ac): ... to here.
1774
1775 2011-05-08  Bruno Haible  <bruno@clisp.org>
1776
1777         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1778         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1779         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1780         * modules/getpass-gnu (configure.ac): ... to here.
1781
1782 2011-05-08  Bruno Haible  <bruno@clisp.org>
1783
1784         getpass: Move AC_LIBOBJ invocations to module description.
1785         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1786         gl_PREREQ_GETPASS invocations from here...
1787         * modules/getpass (configure.ac): ... to here.
1788
1789 2011-05-08  Bruno Haible  <bruno@clisp.org>
1790
1791         getpagesize: Move AC_LIBOBJ invocations to module description.
1792         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1793         from here...
1794         * modules/getpagesize (configure.ac): ... to here.
1795
1796 2011-05-08  Bruno Haible  <bruno@clisp.org>
1797
1798         getopt: Move AC_LIBOBJ invocations to module description.
1799         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1800         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1801         invocations from here...
1802         * modules/getopt-gnu (configure.ac): ... to here.
1803         * modules/getopt-posix (configure.ac): ... and here.
1804         (Depends-on): Update condition.
1805
1806 2011-05-08  Bruno Haible  <bruno@clisp.org>
1807
1808         getopt, argp: Respect rules for use of AC_LIBOBJ.
1809         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1810         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1811         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1812         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1813
1814 2011-05-08  Bruno Haible  <bruno@clisp.org>
1815
1816         getlogin_r: Move AC_LIBOBJ invocations to module description.
1817         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1818         gl_PREREQ_GETLOGIN_R invocations from here...
1819         * modules/getlogin_r (configure.ac): ... to here.
1820
1821 2011-05-08  Bruno Haible  <bruno@clisp.org>
1822
1823         getlogin: Move AC_LIBOBJ invocations to module description.
1824         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1825         here...
1826         * modules/getlogin (configure.ac): ... to here.
1827
1828 2011-05-08  Bruno Haible  <bruno@clisp.org>
1829
1830         getloadavg: Move AC_LIBOBJ invocations to module description.
1831         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1832         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1833         * modules/getloadavg (configure.ac): ... to here.
1834
1835 2011-05-08  Bruno Haible  <bruno@clisp.org>
1836
1837         gethrxtime: Move AC_LIBOBJ invocations to module description.
1838         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1839         LIB_GETHRXTIME from here...
1840         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1841         invocations from here...
1842         * modules/gethrxtime (configure.ac): ... to here.
1843
1844 2011-05-08  Bruno Haible  <bruno@clisp.org>
1845
1846         gethostname: Move AC_LIBOBJ invocations to module description.
1847         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1848         gl_PREREQ_GETHOSTNAME invocations from here...
1849         * modules/gethostname (configure.ac): ... to here.
1850
1851 2011-05-08  Bruno Haible  <bruno@clisp.org>
1852
1853         getgroups: Move AC_LIBOBJ invocations to module description.
1854         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1855         here...
1856         * modules/getgroups (configure.ac): ... to here.
1857
1858 2011-05-08  Bruno Haible  <bruno@clisp.org>
1859
1860         getdtablesize: Move AC_LIBOBJ invocations to module description.
1861         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1862         invocation from here...
1863         * modules/getdtablesize (configure.ac): ... to here.
1864
1865 2011-05-08  Bruno Haible  <bruno@clisp.org>
1866
1867         getdomainname: Move AC_LIBOBJ invocations to module description.
1868         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1869         gl_PREREQ_GETDOMAINNAME invocations from here...
1870         * modules/getdomainname (configure.ac): ... to here.
1871
1872 2011-05-08  Bruno Haible  <bruno@clisp.org>
1873
1874         getline: Move AC_LIBOBJ invocations to module description.
1875         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1876         invocations from here...
1877         * modules/getline (configure.ac): ... to here.
1878
1879 2011-05-08  Bruno Haible  <bruno@clisp.org>
1880
1881         getline: Simplify.
1882         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1883         It's already handled through the module dependency.
1884
1885 2011-05-08  Bruno Haible  <bruno@clisp.org>
1886
1887         getdelim: Move AC_LIBOBJ invocations to module description.
1888         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1889         and gl_PREREQ_GETDELIM invocations from here...
1890         * modules/getdelim (configure.ac): ... to here.
1891         (Depends-on): Fix condition.
1892
1893 2011-05-08  Bruno Haible  <bruno@clisp.org>
1894
1895         getcwd: Move AC_LIBOBJ invocations to module description.
1896         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1897         invocations from here...
1898         * modules/getcwd (configure.ac): ... to here.
1899
1900 2011-05-08  Bruno Haible  <bruno@clisp.org>
1901
1902         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1903         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1904         here...
1905         * modules/getcwd-lgpl (configure.ac): ... to here.
1906
1907 2011-05-07  Bruno Haible  <bruno@clisp.org>
1908
1909         crypto/gc: Move AC_LIBOBJ invocations to module description.
1910         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1911         * modules/crypto/gc (configure.ac): ... to here.
1912
1913 2011-05-07  Bruno Haible  <bruno@clisp.org>
1914
1915         fwriting: Move AC_LIBOBJ invocations to module description.
1916         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1917         here...
1918         * modules/fwriting (configure.ac): ... to here.
1919
1920 2011-05-07  Bruno Haible  <bruno@clisp.org>
1921
1922         fwritable: Move AC_LIBOBJ invocations to module description.
1923         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1924         here...
1925         * modules/fwritable (configure.ac): ... to here.
1926
1927 2011-05-07  Bruno Haible  <bruno@clisp.org>
1928
1929         futimens: Move AC_LIBOBJ invocations to module description.
1930         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1931         here...
1932         * modules/futimens (configure.ac): ... to here.
1933
1934 2011-05-07  Bruno Haible  <bruno@clisp.org>
1935
1936         ftruncate: Move AC_LIBOBJ invocations to module description.
1937         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1938         gl_PREREQ_FTRUNCATE invocations from here...
1939         * modules/ftruncate (configure.ac): ... to here.
1940
1941 2011-05-07  Bruno Haible  <bruno@clisp.org>
1942
1943         fsync: Move AC_LIBOBJ invocations to module description.
1944         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1945         invocations from here...
1946         * modules/fsync (configure.ac): ... to here.
1947
1948 2011-05-07  Bruno Haible  <bruno@clisp.org>
1949
1950         fsusage: Move AC_LIBOBJ invocations to module description.
1951         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1952         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1953         * modules/fsusage (configure.ac): ... to here.
1954
1955 2011-05-07  Bruno Haible  <bruno@clisp.org>
1956
1957         freopen: Move AC_LIBOBJ invocations to module description.
1958         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1959         invocations from here...
1960         * modules/freopen (configure.ac): ... to here.
1961
1962 2011-05-07  Bruno Haible  <bruno@clisp.org>
1963
1964         free: Move AC_LIBOBJ invocations to module description.
1965         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1966         invocations from here...
1967         * modules/free (configure.ac): ... to here.
1968
1969 2011-05-07  Bruno Haible  <bruno@clisp.org>
1970
1971         freadable: Move AC_LIBOBJ invocations to module description.
1972         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1973         here...
1974         * modules/freadable (configure.ac): ... to here.
1975
1976 2011-05-07  Bruno Haible  <bruno@clisp.org>
1977
1978         fpurge: Move AC_LIBOBJ invocations to module description.
1979         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1980         invocations from here...
1981         * modules/fpurge (configure.ac): ... to here.
1982
1983 2011-05-07  Bruno Haible  <bruno@clisp.org>
1984
1985         fpending: Move AC_LIBOBJ invocations to module description.
1986         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1987         gl_FUNC_FPENDING.
1988         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1989         invocations from here...
1990         * modules/fpending (configure.ac): ... to here.
1991
1992 2011-05-07  Bruno Haible  <bruno@clisp.org>
1993
1994         fopen: Move AC_LIBOBJ invocations to module description.
1995         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1996         invocations from here...
1997         * modules/fopen (configure.ac): ... to here.
1998
1999 2011-05-07  Bruno Haible  <bruno@clisp.org>
2000
2001         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2002         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2003         gl_FUNC_FNMATCH_POSIX.
2004         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2005         invocations from here...
2006         * modules/fnmatch (configure.ac): ... to here.
2007         * modules/fnmatch-gnu (configure.ac): ... and here.
2008
2009 2011-05-07  Bruno Haible  <bruno@clisp.org>
2010
2011         flock: Move AC_LIBOBJ invocations to module description.
2012         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2013         invocations from here...
2014         * modules/flock (configure.ac): ... to here.
2015
2016 2011-05-07  Bruno Haible  <bruno@clisp.org>
2017
2018         fileblocks: Move AC_LIBOBJ invocations to module description.
2019         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2020         gl_PREREQ_FILEBLOCKS invocations from here...
2021         * modules/fileblocks (configure.ac): ... to here.
2022
2023 2011-05-06  Bruno Haible  <bruno@clisp.org>
2024
2025         fflush: Move AC_LIBOBJ invocations to module description.
2026         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2027         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2028         invocations from here...
2029         * modules/fflush (configure.ac): ... to here.
2030
2031 2011-05-06  Bruno Haible  <bruno@clisp.org>
2032
2033         fdopendir: Move AC_LIBOBJ invocations to module description.
2034         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2035         here...
2036         * modules/fdopendir (configure.ac): ... to here.
2037         (Depends-on): Improve conditions.
2038
2039 2011-05-06  Bruno Haible  <bruno@clisp.org>
2040
2041         _Exit: Move AC_LIBOBJ invocations to module description.
2042         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2043         invocations from here...
2044         * modules/_Exit (configure.ac): ... to here.
2045
2046 2011-05-21  Bruno Haible  <bruno@clisp.org>
2047
2048         euidaccess: Respect rules for use of AC_LIBOBJ.
2049         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2050         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2051         from here...
2052         * modules/euidaccess (configure.ac): ... to here.
2053
2054 2011-05-06  Bruno Haible  <bruno@clisp.org>
2055
2056         error: Move AC_LIBOBJ invocations to module description.
2057         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2058         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2059         invocations from here...
2060         * modules/error (configure.ac): ... to here.
2061
2062 2011-05-06  Bruno Haible  <bruno@clisp.org>
2063
2064         duplocale: Move AC_LIBOBJ invocations to module description.
2065         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2066         gl_PREREQ_DUPLOCALE invocations from here...
2067         * modules/duplocale (configure.ac): ... to here.
2068
2069 2011-05-05  Bruno Haible  <bruno@clisp.org>
2070
2071         dirfd: Move AC_LIBOBJ invocations to module description.
2072         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2073         gl_FUNC_DIRFD.
2074         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2075         here...
2076         * modules/dirfd (configure.ac): ... to here.
2077         (Depends-on): Fix condition.
2078
2079 2011-05-05  Bruno Haible  <bruno@clisp.org>
2080
2081         chown: Respect rules for use of AC_LIBOBJ.
2082         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2083         * modules/chown (configure.ac): ... to here.
2084
2085 2011-05-05  Bruno Haible  <bruno@clisp.org>
2086
2087         chdir-long: Move AC_LIBOBJ invocations to module description.
2088         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2089         gl_PREREQ_CHDIR_LONG invocations from here...
2090         * modules/chdir-long (configure.ac): ... to here.
2091
2092 2011-05-05  Bruno Haible  <bruno@clisp.org>
2093
2094         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2095         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2096         from here...
2097         * modules/canonicalize-lgpl (configure.ac): ... to here.
2098
2099 2011-05-05  Bruno Haible  <bruno@clisp.org>
2100
2101         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2102         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2103         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2104         REPLACE_CALLOC.
2105         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2106         * modules/calloc-gnu (configure.ac): Likewise.
2107
2108 2011-05-05  Bruno Haible  <bruno@clisp.org>
2109
2110         btowc: Move AC_LIBOBJ invocations to module description.
2111         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2112         invocations from here...
2113         * modules/btowc (configure.ac): ... to here.
2114
2115 2011-05-21  Bruno Haible  <bruno@clisp.org>
2116
2117         atexit: Move AC_LIBOBJ invocations to module description.
2118         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2120         here...
2121         * modules/atexit (configure.ac): ... to here.
2122
2123 2011-05-05  Bruno Haible  <bruno@clisp.org>
2124
2125         atoll: Move AC_LIBOBJ invocations to module description.
2126         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2127         invocations from here...
2128         * modules/atoll (configure.ac): ... to here.
2129
2130 2011-05-05  Bruno Haible  <bruno@clisp.org>
2131
2132         argz: Move AC_LIBOBJ invocations to module description.
2133         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2134         * modules/argz (configure.ac): ... to here.
2135
2136 2011-05-05  Bruno Haible  <bruno@clisp.org>
2137
2138         alphasort: Move AC_LIBOBJ invocations to module description.
2139         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2140         gl_PREREQ_ALPHASORT invocations from here...
2141         * modules/alphasort (configure.ac): ... to here.
2142
2143 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2144
2145         verify: new macro verify_expr; verify_true deprecated
2146         * NEWS: Mention this.
2147         * doc/verify.texi (Compile-time Assertions): Document this.
2148         * lib/verify.h (verify_true): Deprecate.
2149         (verify_expr): New macro.
2150         * tests/test-verify.c (function): Test verify_expr.
2151
2152 2011-06-14  Jim Meyering  <meyering@redhat.com>
2153
2154         init.sh: give more portable redirection-related advice in a comment
2155         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2156         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2157         for lots of discussion.  Stefano Lattarini suggested the solution
2158         of putting "9>&2" after the command.  Reported by Bruno Haible.
2159
2160 2011-06-13  Bruno Haible  <bruno@clisp.org>
2161
2162         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2164         'none'.
2165
2166 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2167
2168         ftoastr: use strtof only if HAVE_STRTOF
2169         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2171         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2172         * modules/ftoastr (configure.ac): Check for strtof.
2173
2174 2011-06-13  Bruno Haible  <bruno@clisp.org>
2175
2176         gnulib-tool: Addendum to 2011-06-08 commit.
2177         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2178         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2179
2180 2011-06-13  Bruno Haible  <bruno@clisp.org>
2181
2182         fseeko: Provide a non-inline replacement of fseek().
2183         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2184         * modules/fseeko (Depends-on): Add fseek.
2185         * modules/fseek (License): Change to LGPLv2+.
2186
2187 2011-06-13  Bruno Haible  <bruno@clisp.org>
2188
2189         ftello: Provide a non-inline replacement of ftell().
2190         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2191         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2192         not have ftello() (such as on mingw).
2193         * modules/ftello (Depends-on): Add ftell.
2194         * modules/ftell (License): Change to LGPLv2+.
2195
2196 2011-05-07  Bruno Haible  <bruno@clisp.org>
2197
2198         ftell: Move AC_LIBOBJ invocations to module description.
2199         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2200         * modules/ftell (configure.ac): ... to here.
2201
2202 2011-05-07  Bruno Haible  <bruno@clisp.org>
2203
2204         ftello: Respect rules for use of AC_LIBOBJ.
2205         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2206         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2207         here...
2208         * modules/ftello (configure.ac): ... to here.
2209
2210 2011-05-07  Bruno Haible  <bruno@clisp.org>
2211
2212         fseeko: Simplify.
2213         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2214         (gl_FUNC_FSEEKO): Inline it here.
2215
2216 2011-05-07  Bruno Haible  <bruno@clisp.org>
2217
2218         fseek: Move AC_LIBOBJ invocations to module description.
2219         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2220         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2221         * modules/fseek (configure.ac): ... to here.
2222
2223 2011-05-07  Bruno Haible  <bruno@clisp.org>
2224
2225         fseek: Respect rules for use of AC_LIBOBJ.
2226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2227         here...
2228         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2229
2230 2011-05-07  Bruno Haible  <bruno@clisp.org>
2231
2232         fseeko: Respect rules for use of AC_LIBOBJ.
2233         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2234         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2235         here...
2236         * modules/fseeko (configure.ac): ... to here.
2237
2238 2011-06-13  Bruno Haible  <bruno@clisp.org>
2239
2240         gnulib-tool: Allow comments in the 'Depends-on' section.
2241         * doc/gnulib.texi (Module description): Mention comment syntax in the
2242         Depends-on section.
2243         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2244
2245 2011-06-13  Bruno Haible  <bruno@clisp.org>
2246
2247         file-set.h: guard __attibute__ use, now that it's not always defined
2248         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2249         versions that support it.  This fixes a coreutils build failure with
2250         the vendor cc on HP-UX 11.31.
2251
2252 2011-06-12  Bruno Haible  <bruno@clisp.org>
2253
2254         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2255         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2256         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2257         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2258         (acl, aclsort): New declarations.
2259         (aclv_nontrivial): New declaration.
2260         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2261         (file_has_acl): Read also the second kind of HP-UX ACLs.
2262         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2263         kind of HP-UX ACLs if the first kind fails.
2264         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2265         second kind of HP-UX ACLs.
2266         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2267         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2268         agree.
2269         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2270         hpuxjfs.
2271         Handle hpuxjfs.
2272         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2273         hpuxjfs.
2274         Handle hpuxjfs.
2275         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2276         (func_test_same_acls): Use both lsacl and getacl.
2277         Handle hpuxjfs.
2278         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2279         (func_test_same_acls): Use both lsacl and getacl.
2280         Handle hpuxjfs.
2281
2282 2011-06-12  Bruno Haible  <bruno@clisp.org>
2283
2284         acl: Complete the 2010-08-10 fix.
2285         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2286         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2287         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2288         explicitly.
2289         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2290         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2291
2292 2011-06-12  Bruno Haible  <bruno@clisp.org>
2293
2294         spawn-pipe tests: Comments.
2295         * tests/test-spawn-pipe-child.c (main): Update comment.
2296         Reported by James Youngman <jay@gnu.org>.
2297
2298 2011-06-11  James Youngman  <jay@gnu.org>
2299
2300         New module 'stat-size'.
2301         * modules/stat-size: New module.  Provides macros for accessing
2302         file size information in instances of struct stat.  Depends on the
2303         fileblocks module because it calls st_blocks.
2304         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2305         * doc/gnulib.texi: Include stat-size.texi.
2306         * doc/stat-size.texi: Documentation for this module.
2307         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2308         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2309         AC_STRUCT_ST_BLOCKS.
2310
2311 2011-06-09  Bruno Haible  <bruno@clisp.org>
2312
2313         thread: Support pthreads-win32.
2314         * lib/glthread/thread.h (gl_thread_self): Define differently on
2315         pthreads-win32.
2316         (gl_null_thread): New declaration.
2317         (gl_thread_self_pointer): New macro.
2318         * lib/glthread/thread.c (gl_null_thread): New constant.
2319         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2320         gl_thread_self.
2321         * tests/test-tls.c: Likewise.
2322         Suggested by Paul Eggert. Reported by Eric Blake.
2323
2324 2011-06-09  Bruno Haible  <bruno@clisp.org>
2325
2326         thread: Fix confusion between NULL and 0.
2327         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2328         Reported by Paul Eggert.
2329
2330 2011-06-09  Bruno Haible  <bruno@clisp.org>
2331
2332         spawn-pipe tests: Avoid test failure on HP-UX 11.
2333         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2334         is closed.
2335
2336 2011-06-09  Bruno Haible  <bruno@clisp.org>
2337
2338         acl tests: Fix compilation error on HP-UX 11.
2339         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2340
2341 2011-06-09  Bruno Haible  <bruno@clisp.org>
2342
2343         rmdir: Avoid test failure on HP-UX 10.20.
2344         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2345         EEXIST.
2346
2347 2011-06-08  Eric Blake  <eblake@redhat.com>
2348
2349         perror: fix test on mingw
2350         * modules/perror-tests (Depends-on): Add dup2.
2351
2352         strerror_r-posix: fix on MacOS
2353         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2354         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2355         logic bug.
2356         * lib/strerror_r.c (strerror_r): Fix the bug.
2357         * lib/strerror.c (strerror): Likewise.
2358         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2359         problem.
2360         * doc/posix-functions/strerror.texi (strerror): Likewise.
2361         * doc/posix-functions/perror.texi (perror): Likewise.
2362         * tests/test-strerror.c (main): Enhance test.
2363         * tests/test-strerror_r.c (main): Likewise.
2364
2365 2011-06-08  Bruno Haible  <bruno@clisp.org>
2366
2367         gnulib-tool: Better isolation between different gnulib-tool invocations.
2368         * gnulib-tool: New option --witness-c-macro.
2369         (witness_c_macro): New variable.
2370         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2371         AM_CPPFLAGS define it as a C macro.
2372         (func_emit_tests_Makefile_am): Likewise.
2373         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2374         read it from there.
2375         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2376         m4_define, not AC_DEFUN.
2377         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2378         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2379         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2380         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2381         s|...|...|, to substitute the values of the GNULIB_* module indicator
2382         variables.
2383         * modules/dirent (Makefile.am): Likewise.
2384         * modules/fcntl-h (Makefile.am): Likewise.
2385         * modules/iconv-h (Makefile.am): Likewise.
2386         * modules/langinfo (Makefile.am): Likewise.
2387         * modules/locale (Makefile.am): Likewise.
2388         * modules/math (Makefile.am): Likewise.
2389         * modules/netdb (Makefile.am): Likewise.
2390         * modules/poll-h (Makefile.am): Likewise.
2391         * modules/pty (Makefile.am): Likewise.
2392         * modules/search (Makefile.am): Likewise.
2393         * modules/signal (Makefile.am): Likewise.
2394         * modules/spawn (Makefile.am): Likewise.
2395         * modules/stdio (Makefile.am): Likewise.
2396         * modules/stdlib (Makefile.am): Likewise.
2397         * modules/string (Makefile.am): Likewise.
2398         * modules/sys_ioctl (Makefile.am): Likewise.
2399         * modules/sys_select (Makefile.am): Likewise.
2400         * modules/sys_socket (Makefile.am): Likewise.
2401         * modules/sys_stat (Makefile.am): Likewise.
2402         * modules/sys_times (Makefile.am): Likewise.
2403         * modules/sys_utsname (Makefile.am): Likewise.
2404         * modules/sys_wait (Makefile.am): Likewise.
2405         * modules/termios (Makefile.am): Likewise.
2406         * modules/time (Makefile.am): Likewise.
2407         * modules/unistd (Makefile.am): Likewise.
2408         * modules/wchar (Makefile.am): Likewise.
2409
2410 2011-06-08  Eric Blake  <eblake@redhat.com>
2411
2412         strerror: simplify replacement
2413         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2414         * modules/strerror (configure.ac): No prereqs needed here...
2415         * modules/strerror-override (configure.ac): ...but this needs it.
2416         (Files): Add file for needed prereq macro.
2417
2418 2011-06-08  Bruno Haible  <bruno@clisp.org>
2419
2420         strerror_r-posix: Tweaks.
2421         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2422         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2423         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2424         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2425         (gl_FUNC_STRERROR_R): ... to here.
2426         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2427
2428 2011-06-07  Eric Blake  <eblake@redhat.com>
2429
2430         perror: document fixed bugs
2431         * doc/posix-functions/perror.texi (perror): Document recent
2432         patches.
2433
2434 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2435
2436         stat-time: get_stat_birthtime failure is better-defined
2437         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2438         return a timestamp whose tv_sec and tv_nsec values are both -1.
2439         Previously, the spec said only that the tv_nsec value was negative.
2440         This upward-compatible change simplifies GNU tar a bit.
2441
2442 2011-06-07  Eric Blake  <eblake@redhat.com>
2443
2444         strerror_r-posix: work around cygwin 1.7.9
2445         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2446         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2447         bug without replacing strerror_r.
2448         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2449         strerror_r is buggy, but without requiring strerror_r compilation.
2450         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2451
2452         test-perror: relax test to ignore cygwin bug
2453         * tests/test-perror2.c (main): Relax test on requiring detection
2454         of stream errors, and use unbuffered stream.
2455         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2456         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2457         * doc/posix-functions/fputc.texi (fputc): Likewise.
2458         * doc/posix-functions/fputs.texi (fputs): Likewise.
2459         * doc/posix-functions/fputws.texi (fputws): Likewise.
2460         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2461         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2462         * doc/posix-functions/getopt.texi (getopt): Likewise.
2463         * doc/posix-functions/perror.texi (perror): Likewise.
2464         * doc/posix-functions/printf.texi (printf): Likewise.
2465         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2466         * doc/posix-functions/psignal.texi (psignal): Likewise.
2467         * doc/posix-functions/putc.texi (putc): Likewise.
2468         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2469         Likewise.
2470         * doc/posix-functions/putchar.texi (putchar): Likewise.
2471         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2472         Likewise.
2473         * doc/posix-functions/puts.texi (puts): Likewise.
2474         * doc/posix-functions/putwc.texi (putwc): Likewise.
2475         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2476         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2477         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2478         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2479         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2480         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2481         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2482         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2483
2484 2011-05-22  Bruno Haible  <bruno@clisp.org>
2485
2486         strerror: Move AC_LIBOBJ invocations to module description.
2487         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2488         gl_PREREQ_STRERROR invocations from here...
2489         * modules/strerror (configure.ac): ... to here.
2490
2491 2011-05-21  Bruno Haible  <bruno@clisp.org>
2492
2493         perror: Use common idiom.
2494         * modules/perror (configure.ac): Reorder statements.
2495
2496 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2497
2498         tests: fix usage message in 'mktempd_'
2499         * tests/init.sh (mktempd_): In the usage message, use literal
2500         'mktempd_', not '$ME' (which is even undefined), as the name of
2501         the subroutine.
2502
2503 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2504
2505         tests init: new function 'fatal_', for hard errors
2506         Before this patch, the only way offered by tests/init.sh to
2507         properly signal a hard error was the `framework_failure_'
2508         function.  But the error message issued by that function,
2509         as its name would suggest, refers to a set-up failure in the
2510         testsuite, while hard errors can obviously also be due to
2511         other reasons.  The best way to fix this inconsistency is to
2512         introduce a new function with a more general error message.
2513         * tests/init.sh (fatal_): New function.
2514
2515 2011-06-06  Eric Blake  <eblake@redhat.com>
2516
2517         canonicalize-lgpl: use common idiom
2518         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2519         over newer POSIX -Rf.
2520         Reported by Bruno Haible.
2521
2522         canonicalize-lgpl: work around AIX realpath bug
2523         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2524         * doc/posix-functions/realpath.texi (realpath): Document it.
2525         Reported by Bruno Haible.
2526
2527         strerror: work around FreeBSD bug
2528         * lib/strerror.c (strerror): Special case 0.
2529         Reported by Bruno Haible.
2530
2531         strerror-override: avoid bloating errno module
2532         * modules/errno (Files, configure.ac): Move replacement strings...
2533         * modules/strerror-override: ...to new module.
2534         * modules/strerror (Depends-on): Add strerror-override.
2535         * modules/strerror_r-posix (Depends-on): Likewise.
2536         * MODULES.html.sh: Document new module.
2537         Reported by Bruno Haible.
2538
2539 2011-06-06  Bruno Haible  <bruno@clisp.org>
2540
2541         spawn-pipe tests: Rename program.
2542         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2543         * tests/test-spawn-pipe-child.c: Update comment.
2544         * tests/test-spawn-pipe.sh: Update.
2545         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2546
2547         spawn-pipe tests: Link the child program only against libc.
2548         * tests/test-spawn-pipe-child.c: New file, extracted from
2549         tests/test-spawn-pipe.c.
2550         (main): Expect only one argument.
2551         (is_open): New function, copied from tests/test-pipe.c.
2552         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2553         (child_main): Remove function.
2554         (test_pipe): Pass only one argument to the child program.
2555         (main): Remove child process code. Expect the child program's name as
2556         first argument.
2557         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2558         argument.
2559         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2560         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2561         test-spawn-pipe-child against no libraries.
2562
2563 2011-06-06  Bruno Haible  <bruno@clisp.org>
2564
2565         careadlinkat: Avoid mismatch between ssize_t and int.
2566         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2567         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2568
2569 2011-06-06  Jim Meyering  <meyering@redhat.com>
2570
2571         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2572         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2573         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2574
2575 2011-06-05  Bruno Haible  <bruno@clisp.org>
2576
2577         ansi-c++-opt: Interoperability with libtool.
2578         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2579         set the variable to "no", not to ":".
2580         * NEWS: Mention the change.
2581
2582 2011-06-05  Bruno Haible  <bruno@clisp.org>
2583
2584         acl: Fix test failure on AIX 7.
2585         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2586         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2587
2588 2011-06-05  Bruno Haible  <bruno@clisp.org>
2589
2590         pipe-filter-ii: Fix test failure on AIX and IRIX.
2591         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2592         with EAGAIN, retry with a smaller buffer size.
2593
2594 2011-06-05  Bruno Haible  <bruno@clisp.org>
2595
2596         localename: Fix link dependencies.
2597         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2598         * modules/localename-tests (Makefile.am): Link test-localename with
2599         $(LIBTHREAD).
2600
2601 2011-06-05  Bruno Haible  <bruno@clisp.org>
2602
2603         error: Avoid gcc warning.
2604         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2605
2606 2011-06-05  Bruno Haible  <bruno@clisp.org>
2607
2608         unsetenv: Avoid gcc warning.
2609         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2610
2611 2011-06-05  Bruno Haible  <bruno@clisp.org>
2612
2613         setenv: Avoid gcc warning.
2614         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2615
2616 2011-06-05  Bruno Haible  <bruno@clisp.org>
2617
2618         sys_select: Ensure memset is declared also on AIX 7.
2619         * lib/sys_select.in.h: Include <string.h> also on AIX.
2620         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2621         self-contained also on AIX 7.1.
2622
2623 2011-06-04  Jim Meyering  <meyering@redhat.com>
2624
2625         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2626         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2627         function name, "error".
2628         (_gl_translatable_diag_func_re): New configurable variable.
2629
2630 2011-06-04  Bruno Haible  <bruno@clisp.org>
2631
2632         getopt: Avoid gcc warning.
2633         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2634
2635 2011-06-04  Bruno Haible  <bruno@clisp.org>
2636
2637         strerror_r: Fix comments.
2638         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2639         commit.
2640
2641 2011-06-04  Bruno Haible  <bruno@clisp.org>
2642
2643         perror: Fix compilation error.
2644         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2645         Undefine fprintf, not sprintf.
2646         * modules/perror (Depends-on): Remove intprops, verify.
2647
2648 2011-06-04  Bruno Haible  <bruno@clisp.org>
2649
2650         setlocale: Enable replacement on Cygwin 1.5.
2651         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2652         Cygwin 1.5.x.
2653         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2654         LC_CTYPE category also exists on Cygwin 1.5.x.
2655
2656 2011-06-04  Bruno Haible  <bruno@clisp.org>
2657
2658         strerror-override: Don't disable symbol renamings.
2659         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2660         * lib/strerror-override.c: Include config.h.
2661         (strerror_override): Don't undefine.
2662
2663 2011-06-03  Bruno Haible  <bruno@clisp.org>
2664
2665         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2666         * lib/localename.h: Update copyright header.
2667         * lib/localename.c: Likewise.
2668         * lib/relocatable.h: Likewise.
2669         * lib/relocatable.c: Likewise.
2670
2671 2011-06-02  Bruno Haible  <bruno@clisp.org>
2672
2673         doc: Fix a module name.
2674         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2675
2676 2011-06-02  Bruno Haible  <bruno@clisp.org>
2677
2678         pipe2: Remove dependency on 'nonblocking' module.
2679         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2680         O_NONBLOCK is defined by gnulib.
2681         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2682         is zero.
2683         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2684         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2685         defined by gnulib.
2686         (get_nonblocking_flag): New function.
2687         (main): Test O_NONBLOCK flag only if it is nonzero.
2688         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2689
2690 2011-06-03  Jim Meyering  <meyering@redhat.com>
2691
2692         maint: three new prohibit-header-without-use rules
2693         Prohibit use of cloexec.h, posixver.h, same.h without use.
2694         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2695         (sc_prohibit_posixver_without_use): Likewise.
2696         (sc_prohibit_same_without_use): Likewise.
2697
2698 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2699
2700         allocator: 'die' routine is now given requested size
2701         * lib/allocator.h (struct allocator.die): New size arg.
2702         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2703         If the actual problem is an ssize_t limitation, not a size_t or
2704         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2705
2706 2011-06-01  Eric Blake  <eblake@redhat.com>
2707
2708         strerror: drop strerror_r dependency
2709         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2710         * lib/strerror-override.c (strerror_override): ...to new file.
2711         * lib/strerror-override.h: Add prototype.
2712         * lib/strerror-impl.h: Delete.
2713         * lib/strerror.c (strerror): New implementation.
2714         * modules/errno (Files): Add new files.
2715         (configure.ac): Compile new file as appropriate.
2716         * modules/strerror (Files): Drop unused file.
2717         (Depends-on): Drop strerror_r-posix.
2718         * MODULES.html.sh: Document strerror_r-posix.
2719         Requested by Sam Steingold.
2720
2721         perror: call strerror_r directly
2722         * modules/perror (Files): Drop strerror-impl.h.
2723         * lib/perror.c (perror): Use our own stack buffer, rather than
2724         calling a wrapper that uses static storage.
2725         * doc/posix-functions/perror.texi (perror): Document a limitation
2726         of our replacement.
2727
2728         strerror_r: fix includes for FreeBSD
2729         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2730         since we use abort on some platforms.
2731         Reported by Matthias Bolte.
2732
2733 2011-05-31  Bruno Haible  <bruno@clisp.org>
2734
2735         Fix link errors in tests: openat-die uses gettext-h.
2736         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2737         against $(LIBINTL).
2738         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2739         against $(LIBINTL).
2740         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2741         $(LIBINTL).
2742         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2743         against $(LIBINTL).
2744         * modules/linkat-tests (Makefile.am): Link test-linkat against
2745         $(LIBINTL).
2746         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2747         $(LIBINTL).
2748         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2749         against $(LIBINTL).
2750         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2751         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2752         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2753         $(LIBINTL).
2754         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2755         $(LIBINTL).
2756         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2757         $(LIBINTL).
2758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2759
2760 2011-05-31  Bruno Haible  <bruno@clisp.org>
2761
2762         Fix link errors in tests: wait-process uses gettext-h.
2763         * modules/nonblocking-pipe-tests (Makefile.am): Set
2764         test_nonblocking_pipe_main_LDADD.
2765         * modules/nonblocking-socket-tests (Makefile.am): Link
2766         test-nonblocking-socket-main against $(LIBINTL).
2767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2768
2769 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2770
2771         assert-h: work around 'verify' incompatibility
2772         * lib/verify.h: Use @...@ directives, not ifdef.
2773         * modules/assert-h (assert.h): Implement the directives.
2774         (assert.h): Substitute the symbol-prefix more consistently.
2775
2776 2011-05-29  Jim Meyering  <meyering@redhat.com>
2777
2778         trim: remove three superfluous assignments
2779         * lib/trim.c (trim2): Remove three superfluous assignments
2780         and correct brace positioning.
2781
2782 2011-05-29  Bruno Haible  <bruno@clisp.org>
2783
2784         wctype-h: Avoid namespace pollution on Solaris 2.6.
2785         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2786         identifiers.
2787         * doc/posix-headers/wctype.texi: Mention the problem.
2788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2789
2790 2011-05-28  Jim Meyering  <meyering@redhat.com>
2791
2792         parse-datetime.y: accommodate -Wstrict-overflow
2793         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2794         placate -Wstrict-overflow.
2795
2796         trim: avoid a warning from -O2 -Wstrict-overflow
2797         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2798
2799 2011-05-29  Bruno Haible  <bruno@clisp.org>
2800
2801         gnulib-tool: Fix bug in yesterday's commit.
2802         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2803         twice.
2804
2805 2011-05-29  Bruno Haible  <bruno@clisp.org>
2806
2807         Allow multiple gnulib generated include files to be combined.
2808         * gnulib-tool (func_compute_include_guard_prefix): New function.
2809         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2810         ${gl_include_guard_prefix} references.
2811         (func_import, func_create_testdir): Invoke
2812         func_compute_include_guard_prefix.
2813         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2814         * lib/ctype.in.h: Likewise.
2815         * lib/dirent.in.h: Likewise.
2816         * lib/errno.in.h: Likewise.
2817         * lib/fcntl.in.h: Likewise.
2818         * lib/float.in.h: Likewise.
2819         * lib/getopt.in.h: Likewise.
2820         * lib/iconv.in.h: Likewise.
2821         * lib/langinfo.in.h: Likewise.
2822         * lib/locale.in.h: Likewise.
2823         * lib/math.in.h: Likewise.
2824         * lib/netdb.in.h: Likewise.
2825         * lib/netinet_in.in.h: Likewise.
2826         * lib/poll.in.h: Likewise.
2827         * lib/pthread.in.h: Likewise.
2828         * lib/pty.in.h: Likewise.
2829         * lib/sched.in.h: Likewise.
2830         * lib/se-selinux.in.h: Likewise.
2831         * lib/search.in.h: Likewise.
2832         * lib/signal.in.h: Likewise.
2833         * lib/spawn.in.h: Likewise.
2834         * lib/stdarg.in.h: Likewise.
2835         * lib/stddef.in.h: Likewise.
2836         * lib/stdint.in.h: Likewise.
2837         * lib/stdio.in.h: Likewise.
2838         * lib/stdlib.in.h: Likewise.
2839         * lib/string.in.h: Likewise.
2840         * lib/strings.in.h: Likewise.
2841         * lib/sys_file.in.h: Likewise.
2842         * lib/sys_ioctl.in.h: Likewise.
2843         * lib/sys_select.in.h: Likewise.
2844         * lib/sys_socket.in.h: Likewise.
2845         * lib/sys_stat.in.h: Likewise.
2846         * lib/sys_time.in.h: Likewise.
2847         * lib/sys_times.in.h: Likewise.
2848         * lib/sys_uio.in.h: Likewise.
2849         * lib/sys_utsname.in.h: Likewise.
2850         * lib/sys_wait.in.h: Likewise.
2851         * lib/sysexits.in.h: Likewise.
2852         * lib/termios.in.h: Likewise.
2853         * lib/time.in.h: Likewise.
2854         * lib/unistd.in.h: Likewise.
2855         * lib/wchar.in.h: Likewise.
2856         * lib/wctype.in.h: Likewise.
2857         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2858         * modules/ctype (Makefile.am): Likewise.
2859         * modules/dirent (Makefile.am): Likewise.
2860         * modules/errno (Makefile.am): Likewise.
2861         * modules/fcntl-h (Makefile.am): Likewise.
2862         * modules/float (Makefile.am): Likewise.
2863         * modules/getopt-posix (Makefile.am): Likewise.
2864         * modules/iconv-h (Makefile.am): Likewise.
2865         * modules/langinfo (Makefile.am): Likewise.
2866         * modules/locale (Makefile.am): Likewise.
2867         * modules/math (Makefile.am): Likewise.
2868         * modules/netdb (Makefile.am): Likewise.
2869         * modules/netinet_in (Makefile.am): Likewise.
2870         * modules/poll-h (Makefile.am): Likewise.
2871         * modules/pthread (Makefile.am): Likewise.
2872         * modules/pty (Makefile.am): Likewise.
2873         * modules/sched (Makefile.am): Likewise.
2874         * modules/search (Makefile.am): Likewise.
2875         * modules/selinux-h (Makefile.am): Likewise.
2876         * modules/signal (Makefile.am): Likewise.
2877         * modules/spawn (Makefile.am): Likewise.
2878         * modules/stdarg (Makefile.am): Likewise.
2879         * modules/stddef (Makefile.am): Likewise.
2880         * modules/stdint (Makefile.am): Likewise.
2881         * modules/stdio (Makefile.am): Likewise.
2882         * modules/stdlib (Makefile.am): Likewise.
2883         * modules/string (Makefile.am): Likewise.
2884         * modules/strings (Makefile.am): Likewise.
2885         * modules/sys_file (Makefile.am): Likewise.
2886         * modules/sys_ioctl (Makefile.am): Likewise.
2887         * modules/sys_select (Makefile.am): Likewise.
2888         * modules/sys_socket (Makefile.am): Likewise.
2889         * modules/sys_stat (Makefile.am): Likewise.
2890         * modules/sys_time (Makefile.am): Likewise.
2891         * modules/sys_times (Makefile.am): Likewise.
2892         * modules/sys_uio (Makefile.am): Likewise.
2893         * modules/sys_utsname (Makefile.am): Likewise.
2894         * modules/sys_wait (Makefile.am): Likewise.
2895         * modules/sysexits (Makefile.am): Likewise.
2896         * modules/termios (Makefile.am): Likewise.
2897         * modules/time (Makefile.am): Likewise.
2898         * modules/unistd (Makefile.am): Likewise.
2899         * modules/wchar (Makefile.am): Likewise.
2900         * modules/wctype-h (Makefile.am): Likewise.
2901         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2902
2903 2011-05-29  Bruno Haible  <bruno@clisp.org>
2904
2905         assert-h: Allow multiple gnulib generated replacements to coexist.
2906         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2907
2908 2011-05-29  Bruno Haible  <bruno@clisp.org>
2909
2910         argp: Allow coexistence with strerror_r-posix module.
2911         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2912         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2913         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2914         not the glibc signature.
2915
2916 2011-05-28  Bruno Haible  <bruno@clisp.org>
2917
2918         gnulib-tool: Alternative structure of testdirs, similar to --import.
2919         * gnulib-tool: New option --single-configure.
2920         (func_usage): Document it.
2921         (single_configure): New variable.
2922         (func_modules_transitive_closure_separately,
2923         func_modules_transitive_closure_separately,
2924         func_determine_use_libtests, func_modules_add_dummy_separately,
2925         func_modules_to_filelist_separately): New functions, extracted from
2926         func_import.
2927         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2928         (func_import): Use the new functions.
2929         (func_create_testdir): Set final_modules. Handle $single_configure =
2930         true case.
2931
2932 2011-05-28  Bruno Haible  <bruno@clisp.org>
2933
2934         getloadavg: Remove an unreliable safety check.
2935         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2936         getloadavg.c is in place.
2937         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2938         Reported by Sam Steingold <sds@gnu.org>.
2939
2940 2011-05-28  Bruno Haible  <bruno@clisp.org>
2941
2942         doc: Cleanup yet another file produced by texinfo.tex.
2943         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2944
2945 2011-05-28  Bruno Haible  <bruno@clisp.org>
2946
2947         Finish the conditional dependencies mechanism.
2948         * gnulib-tool: New option --no-conditional-dependencies.
2949         (func_usage): Document it. Don't mark --conditional-dependencies as
2950         experimental.
2951         (cond_dependencies): The possible values can now be true, false, empty.
2952         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2953         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2954         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2955
2956 2011-05-28  Bruno Haible  <bruno@clisp.org>
2957
2958         doc: Use a recent texinfo.tex.
2959         * doc/Makefile (tex_opts): New variable.
2960         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2961
2962 2011-05-28  Jim Meyering  <meyering@redhat.com>
2963
2964         intprops.h: adjust comment to match code change
2965         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2966         only once, it *may* have side effects.  Also fix an unrelated typo.
2967         (_GL_INT_SIGNED): Likewise.
2968
2969 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2970
2971         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2972
2973 2011-05-26  Bruno Haible  <bruno@clisp.org>
2974
2975         mbsrchr: Avoid collision with system function on Interix.
2976         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2977         Reported by Markus Duft <mduft@gentoo.org>.
2978
2979 2011-05-15  James Youngman  <jay@gnu.org>
2980
2981         getopt: for ambiguous options, enumerate the possibilities.
2982         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2983         the ambiguous options when an ambiguous prefix is given. This was
2984         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2985         glibc change was
2986         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2987
2988 2011-05-25  Eric Blake  <eblake@redhat.com>
2989
2990         getcwd: work around mingw bug
2991         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2992         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2993         Reported by Matthias Bolte.
2994
2995 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2996
2997         test-intprops: disable -Wtype-limits diagnostics
2998         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2999         diagnostics.  Otherwise, the integer overflow macros generate many
3000         diagnostics.  Reported by Jim Meyering in
3001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3002
3003         intprops: shorten, to pacify gcc -Woverlength-strings
3004         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3005         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3006         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3007         likely to run afoul of C compiler limits for string constant lengths.
3008         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3009
3010 2011-05-24  Eric Blake  <eblake@redhat.com>
3011
3012         docs: document recently fixed glibc printf bug
3013         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3014         * doc/posix-functions/printf.texi (printf): Likewise.
3015         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3016         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3017
3018         closein-tests: convert to init.sh
3019         * modules/closein-tests (Files): Add init.sh
3020         * tests/test-closein.sh Use it.
3021
3022         yesno-tests: convert to init.sh
3023         * modules/yesno-tests (Files): Add init.sh.
3024         * tests/test-yesno.sh: Use it.
3025
3026         atexit-tests: ensure reliable exit status
3027         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3028         Reported by Bruno Haible.
3029
3030 2011-05-24  Bruno Haible  <bruno@clisp.org>
3031
3032         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3033         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3034         gl_PREREQ_STRERROR_R invocations from here...
3035         * modules/strerror_r-posix (configure.ac): ... to here.
3036
3037 2011-05-24  Eric Blake  <eblake@redhat.com>
3038
3039         strerror_r: fix missing header
3040         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3041
3042         strerror_r: fix AIX test failures
3043         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3044         ERANGE failure.
3045
3046         strerror_r: fix Solaris test failures
3047         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3048         failures.
3049         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3050
3051         strerror_r: enforce POSIX recommendations
3052         * lib/strerror_r.c (safe_copy): New helper method.
3053         (strerror_r): Guarantee a non-empty string.
3054         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3055         recent POSIX rulings and to match our strerror guarantees.
3056         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3057
3058 2011-05-24  Jim Meyering  <meyering@redhat.com>
3059
3060         test-perror2.c: avoid warning about unused variable
3061         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3062
3063 2011-05-24  Eric Blake  <eblake@redhat.com>
3064
3065         perror: avoid spurious test failure on HP-UX
3066         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3067
3068         tests: fix logic bug in init.sh
3069         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3070         shell.
3071
3072 2011-05-24  Jim Meyering  <meyering@redhat.com>
3073
3074         utimensat: do not reference an out-of-scope buffer
3075         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3076         declared in an inner scope, yet "times" would be dereferenced outside
3077         the scope in which "ts" was valid.
3078         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3079         of ts[2] "out/up", so that the use of aliased "times" (via
3080         "times = ts;") does not end up referencing an out-of-scope "ts"
3081
3082         opendir-safer.c: don't clobber errno; don't close negative FD
3083         * lib/opendir-safer.c (opendir_safer):
3084         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3085         file descriptor, and more importantly, don't clobber the
3086         offending errno value with EINVAL.  Before, upon failure
3087         of dup_safer, we would pass the negative file descriptor to
3088         fdopendir, which would clobber errno.
3089
3090 2011-05-23  Bruno Haible  <bruno@clisp.org>
3091
3092         idcache: Fix module description.
3093         * modules/idcache (Include): Set to "idcache.h".
3094
3095 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3096
3097         gnulib-tool: fix portability problem with MacOS sed
3098         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3099         before the "}".  Problem reported by Leo in
3100         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3101         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3102         sed_extract_condition1, sed_extract_condition2.
3103
3104 2011-05-23  Bruno Haible  <bruno@clisp.org>
3105
3106         hash: Simplify autoconf macro.
3107         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3108
3109 2011-05-23  Bruno Haible  <bruno@clisp.org>
3110
3111         getugroups: Fix module description.
3112         * modules/getugroups (Include): Set to "getugroups.h".
3113
3114 2011-05-23  Bruno Haible  <bruno@clisp.org>
3115
3116         linkat: Simplify autoconf macro.
3117         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3118
3119 2011-05-23  Bruno Haible  <bruno@clisp.org>
3120             Eric Blake  <eblake@redhat.com>
3121
3122         linkat, renameat: Update dependencies.
3123         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3124         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3125         symlinkat.
3126
3127 2011-05-23  Jim Meyering  <meyering@redhat.com>
3128
3129         maint.mk: more tight_scope improvements
3130         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3131         (_gl_TS_headers): Define only in if-0'd block.
3132         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3133         sometimes we must *not* use it.  Adjust uses accordingly.
3134         (sc_tight_scope): Use much simpler grep-based test to determine
3135         whether we skip this rule.
3136
3137         maint.mk: generalize/improve the tight-scope rule
3138         * top/maint.mk: Emit a warning when the test is skipped.
3139         (_gl_TS_dir): Add $(srcdir)/ prefix.
3140         (_gl_TS_function_match): Simplify, rather than trying
3141         to enumerate common types.  Otherwise, it would fail to match an
3142         "extern unsigned char const *" declaration in idutils.
3143         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3144         a way to support use of that type of macro.
3145         (_gl_TS_var_match): Simplify regexp.
3146         (_gl_TS_obj_files): New configurable variable.
3147         (_gl_TS_headers): Likewise.
3148
3149 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3150
3151         verify: fix bug when gnulib <assert.h> is also included
3152         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3153         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3154         Perhaps there's a better way, but this fixes the immediate problem.
3155         Problem reported by Bruno Haible in
3156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3157
3158 2011-05-22  Bruno Haible  <bruno@clisp.org>
3159
3160         xgetcwd: Simplify autoconf macro.
3161         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3162
3163 2011-05-22  Bruno Haible  <bruno@clisp.org>
3164
3165         New module 'mktime-internal'.
3166         * modules/mktime-internal: New file.
3167         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3168         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3169         mktime_internal as a C macro if libc has __mktime_internal.
3170         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3171         conditions.
3172         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3173
3174 2011-05-22  Bruno Haible  <bruno@clisp.org>
3175
3176         timegm: Correct mktime replacement statements.
3177         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3178         defining mktime as a C macro. This completes a 2009-07-28 commit.
3179
3180 2011-05-22  Bruno Haible  <bruno@clisp.org>
3181
3182         timegm: Simplify autoconf macro.
3183         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3184
3185 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         clock-time: change to LGPLv2+.
3188         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3189         BSD-like but we have no mark for that; this is good enough for now.
3190
3191 2011-05-21  Bruno Haible  <bruno@clisp.org>
3192
3193         strerror_r: Fix comments.
3194         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3195
3196 2011-05-21  Bruno Haible  <bruno@clisp.org>
3197
3198         relocatable-prog-wrapper: Fix possible link error.
3199         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3200         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3201         (gl_FUNC_SETENV): ... to here.
3202         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3203         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3204
3205 2011-05-21  Bruno Haible  <bruno@clisp.org>
3206
3207         relocatable-prog-wrapper: Assume strerror() exists.
3208         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3209         m4/strerror.m4.
3210         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3211         * lib/relocwrapper.c: Remove mention of strerror module.
3212         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3213         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3214         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3215         C macro.
3216
3217 2011-05-21  Bruno Haible  <bruno@clisp.org>
3218
3219         select: Simplify replacement idiom.
3220         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3221         Win32 platforms.
3222         * lib/sys_select.in.h (select): Simplify accordingly.
3223         * modules/select (Depends-on): Likewise.
3224
3225 2011-05-21  Bruno Haible  <bruno@clisp.org>
3226
3227         mkdir-p: Simplify autoconf macro.
3228         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3229         gl_FUNC_LCHOWN.
3230
3231 2011-05-21  Eric Blake  <eblake@redhat.com>
3232
3233         strerror_r: avoid clobbering strerror on cygwin
3234         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3235         fall back instead to sys_errlist.
3236         * modules/strerror (configure.ac): Add witness.
3237         * tests/test-strerror_r.c (main): Enhance test.
3238         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3239         * tests/test-perror2.c (main): Free memory before exit.
3240
3241 2011-05-21  Bruno Haible  <bruno@clisp.org>
3242
3243         mkdtemp: Use gnulib naming conventions.
3244         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3245         * modules/mkdtemp (configure.ac): Update.
3246
3247 2011-05-20  Eric Blake  <eblake@redhat.com>
3248
3249         strerror_r: avoid corrupting errno on Solaris
3250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3251         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3252
3253         strerror_r: avoid compiler warning
3254         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3255
3256         strerror_r: simplify AIX code
3257         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3258
3259         test-perror: avoid spurious failure on FreeBSD
3260         * modules/perror-tests (Depends-on): Add strerror, now that
3261         strerror_r no longer pulls it in.
3262
3263 2011-05-20  Bruno Haible  <bruno@clisp.org>
3264
3265         strerror_r-posix: Remove unused dependencies.
3266         * modules/strerror_r-posix (Depends-on): Remove strerror.
3267         Reported by Eric Blake.
3268
3269 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3270
3271         intprops: remove assumption about A|B representation
3272         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3273         is a valid integer if both A and B are.  Although this is true for
3274         all known practical hosts, the C standard doesn't guarantee it,
3275         and the code need not assume it.  Also, this change may work around
3276         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3278
3279 2011-05-20  Eric Blake  <eblake@redhat.com>
3280
3281         perror: work around FreeBSD bug
3282         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3283         is broken.  Move AC_LIBOBJ...
3284         * modules/perror (configure.ac): Here.
3285         * doc/posix-functions/perror.texi (perror): Document this.
3286         * tests/test-perror2.c (main): Enhance test.
3287
3288         test-perror: check for strerror interactions
3289         * tests/macros.h (STREQ): Add macro.
3290         * modules/perror-tests (Files): Add second test.
3291         * tests/test-perror2.c (main): New file.
3292         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3293
3294         test-perror: rewrite to use init script
3295         * modules/perror-tests (Files): Add init.sh.
3296         * tests/test-perror.sh: Use temporary directory.
3297
3298 2011-05-20  Jim Meyering  <meyering@redhat.com>
3299
3300         maint: replace misused "a" with "an"
3301         * doc/intprops.texi: "a integer"
3302         * doc/regex.texi: "a explanation"
3303         * lib/alignof.h: "a object"
3304         * lib/argmatch.h: "a explanation"
3305         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3306         * lib/stdint.in.h: "a integer"
3307         * lib/userspec.c: "a owner"
3308         * doc/gnulib.texi: Fix "a idea", and reword.
3309
3310 2011-05-19  Jim Meyering  <meyering@redhat.com>
3311
3312         maint: correct misuse of "a" and "an"
3313         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3314         * lib/argp-help.c: "an docum...": s/an/a/
3315         * lib/argp-parse.c: "An vector": s/An/A/
3316         * lib/execute.c: "an native": s/an/a/
3317         * lib/spawn-pipe.c: Likewise.
3318         * lib/gc.h: "an Gc_rc": s/an/a/
3319         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3320         * lib/fts.c: "an stat.st_dev": s/an/a/
3321
3322 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3323
3324         intprops-tests: work around HP-UX 11.23 cc bug with constants
3325         * tests/test-intprops.c (VERIFY): New macro.
3326         (main): Use it, instead of verify, to work around the compiler bug; see
3327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3328
3329         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3330         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3331         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3332         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3333         (_GL_REMAINDER_OVERFLOW): Use it.
3334
3335         intprops-tests: revert unsigned part of previous change
3336         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3337         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3338         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3340
3341 2011-05-19  Bruno Haible  <bruno@clisp.org>
3342
3343         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3344         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3345         strerror_r() returned without filling the buffer.
3346         Reported by Eric Blake.
3347
3348 2011-05-19  Eric Blake  <eblake@redhat.com>
3349
3350         strerror_r: guarantee unchanged errno
3351         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3352         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3353         failure.
3354         * tests/test-strerror_r.c (main): Enhance test.
3355
3356 2011-05-19  Bruno Haible  <bruno@clisp.org>
3357
3358         strerror_r: Reorder #if blocks.
3359         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3360         for consistency with the previous commit.
3361
3362 2011-05-19  Bruno Haible  <bruno@clisp.org>
3363
3364         perror: Avoid clobbering the strerror buffer when possible.
3365         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3366         * lib/strerror.c: Include it.
3367         * modules/strerror (Files): Add lib/strerror-impl.h.
3368         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3369         (my_strerror): New function, defined through lib/strerror-impl.h.
3370         (perror): Use it instead of strerror.
3371         * modules/perror (Files): Add lib/strerror-impl.h.
3372         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3373
3374 2011-05-19  Eric Blake  <eblake@redhat.com>
3375
3376         strerror_r: fix on newer cygwin
3377         * lib/strerror_r.c (strerror_r): Cygwin now has
3378         __xpg_strerror_r, use it.
3379
3380 2011-05-19  Bruno Haible  <bruno@clisp.org>
3381
3382         strerror_r: Avoid clobbering the strerror buffer when possible.
3383         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3384         (sys_nerr, sys_errlist): New declarations.
3385         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3386         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3387         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3388
3389 2011-05-19  Bruno Haible  <bruno@clisp.org>
3390
3391         strerror_r: Fix test failure on mingw.
3392         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3393         EXTEND_STRERROR_R.
3394         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3395         macros from errno.in.h instead.
3396
3397 2011-05-19  Eric Blake  <eblake@redhat.com>
3398
3399         strerror: relax test for Solaris
3400         * tests/test-strerror.c (main): Permit Solaris behavior.
3401         * tests/test-strerror_r.c (main): Likewise.
3402
3403         strerror: enforce POSIX ruling on strerror(0)
3404         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3405         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3406         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3407         * doc/posix-functions/strerror.texi (strerror): Document it.
3408         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3409         * tests/test-strerror.c (main): Strengthen test.
3410         * tests/test-strerror_r.c (main): Likewise.
3411
3412 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3413
3414         intprop-tests: port to older and more-pedantic compilers
3415         * modules/intprops-tests (Files): Add tests/macros.h.
3416         * tests/test-intprops.c: Include macros.h.
3417         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3418         it's no longer documented to expand to an integer constant expression.
3419         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3420         argument is floating point, as it's no longer documented to expand
3421         to an integer constant expression in that case.
3422         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3423         compiler bugs reported by Bruno Haible.  See
3424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3425         (U0, U1): New constants, to work around the same bugs.  Also,
3426         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3427
3428         intprops: work around C compiler bugs
3429         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3430         bug in Sun C 5.11 2010/08/13 and other compilers; see
3431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3432
3433         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3434         * doc/intprops.texi (Integer Type Determination): Fix
3435         documentation for TYPE_IS_INTEGER: it returns an constant
3436         expression, not an integer constant expression.  Fix doc for
3437         TYPE_SIGNED: it returns an integer constant expression only if its
3438         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3439         hardly worth documented that way....)
3440
3441 2011-05-18  Bruno Haible  <bruno@clisp.org>
3442
3443         strerror_r: Avoid clobbering the strerror buffer when possible.
3444         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3445         Handle gnulib defined errno values here. When strerror() returns NULL
3446         or an empty string, return EINVAL.
3447         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3448         gnulib defined errno values here.
3449         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3450
3451 2011-05-18  Eric Blake  <eblake@redhat.com>
3452
3453         fnmatch: avoid compiler warning
3454         * lib/fnmatch_loop.c (FCT): Use correct type.
3455         Reported by Matthias Bolte.
3456
3457 2011-05-13  Jim Meyering  <meyering@redhat.com>
3458
3459         maint.mk: three new prohibit_<HDR>_without_use rules
3460         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3461         (sc_prohibit_stdio-safer_without_use): Likewise.
3462         (sc_prohibit_xfreopen_without_use): Likewise.
3463
3464 2011-05-17  Jim Meyering  <meyering@redhat.com>
3465
3466         announce-gen: fail if the NEWS delta is empty
3467         If there's nothing noteworthy in NEWS, then either you forgot
3468         or you shouldn't be releasing.
3469         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3470
3471 2011-05-17  Pádraig Brady <P@draigBrady.com>
3472
3473         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3474         reserved symbols starting with double underscore from the check.
3475
3476 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3477
3478         intprops: add doc
3479         * doc/intprops.texi: New file, documenting intprops.
3480         * doc/gnulib.texi (Particular Modules): Include it.
3481
3482         verify: add doc to gnulib manual and fix example
3483         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3484         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3485         (Compile-time Assertions): Fix example so it can't overflow.
3486
3487 2011-05-17  Jim Meyering  <meyering@redhat.com>
3488
3489         warnings.m4: don't usurp save_CPPFLAGS variable name
3490         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3491
3492         doc: fix typo
3493         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3494
3495 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3496             Bruno Haible  <bruno@clisp.org>
3497
3498         doc: Tweak recent change.
3499         * README (Portability guidelines): Tweak new text.
3500         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3501         Interix 6.1.
3502
3503 2011-05-16  Eric Blake  <eblake@redhat.com>
3504
3505         inttypes: avoid autoconf warning
3506         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3507         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3508
3509 2011-05-16  Sam Steingold <sds@gnu.org>
3510         and Eric Blake  <eblake@redhat.com>
3511
3512         vc-list-files: accept multiple directory operands
3513         * build-aux/vc-list-files: Iterate over all remaining operands.
3514
3515 2011-05-16  Bruno Haible  <bruno@clisp.org>
3516
3517         Fix confusion regarding deprecated modules.
3518         * modules/calloc (Status, Notice): Mark module as deprecated, not
3519         obsolete.
3520         * modules/fnmatch-posix (Status, Notice): Likewise.
3521         * modules/getdate (Status, Notice): Likewise.
3522         * modules/getopt (Status, Notice): Likewise.
3523         * modules/malloc (Status, Notice): Likewise.
3524         * modules/pipe (Status, Notice): Likewise.
3525         * modules/realloc (Status, Notice): Likewise.
3526         * modules/rename-dest-slash (Status, Notice): Likewise.
3527         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3528         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3529         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3530         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3531         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3532
3533 2011-05-16  Bruno Haible  <bruno@clisp.org>
3534
3535         doc: List the target platforms.
3536         * doc/gnulib-intro.texi (Target Platforms): New section.
3537         * doc/gnulib.texi (Introduction): Update menu.
3538         * README (Portability guidelines): Refer to the new section. Update
3539         statement about oldest supported environment. Remove rationale why
3540         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3541         unportable C89 function.
3542         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3543         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3544
3545 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3546
3547         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3548
3549 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3550
3551         intprops-tests: new module
3552         * modules/intprops-tests, tests/test-intprops.c: New files.
3553
3554         intprops: add safe, portable integer overflow checking
3555         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3556         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3557         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3558         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3559         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3560         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3561         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3562         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3563         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3564         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3565         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3566
3567 2011-05-12  James Youngman  <jay@gnu.org>
3568
3569         Add a test for glibc's Bugzilla bug #12378.
3570         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3571         doesn't allow the literal matching of a lone "[" (which is
3572         required by POSIX).
3573         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3574
3575 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3576
3577         Sync glibc change fixing Bugzilla bug #12378.
3578         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3579         beginning and fall back to matching as normal character if the
3580         string ends before the matching ']' is found.  This is what POSIX
3581         requires.
3582
3583 2011-05-13  Eric Blake  <eblake@redhat.com>
3584
3585         getcwd-lgpl: relax test for FreeBSD
3586         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3587         issue.
3588         * tests/test-getcwd-lgpl.c (main): Relax test.
3589         Reported by Matthias Bolte.
3590
3591 2011-05-11  Eric Blake  <eblake@redhat.com>
3592
3593         test-fflush: silence compiler warning
3594         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3595
3596 2011-05-11  Bruno Haible  <bruno@clisp.org>
3597
3598         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3599         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3600         * modules/canonicalize (Depends-on): Add 'nocrash'.
3601         * modules/canonicalize-lgpl (Depends-on): Likewise.
3602         * doc/posix-functions/realpath.texi: Update platforms list.
3603         Reported by Ryan Schmidt <ryandesign@macports.org>.
3604
3605 2011-05-11  Bruno Haible  <bruno@clisp.org>
3606
3607         group-member: Declare function in <unistd.h>.
3608         * lib/unistd.in.h (group_member): New declaration.
3609         * lib/group-member.h: Remove file.
3610         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3611         * tests/test-unistd-c++.cc: Check signature of group_member.
3612         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3613         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3614         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3615         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3616         HAVE_GROUP_MEMBER.
3617         * modules/group-member (Files): Remove lib/group-member.h.
3618         (Depends-on): Add unistd. Specify conditions.
3619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3620         (Include): Change to <unistd.h>.
3621         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3622         HAVE_GROUP_MEMBER.
3623         * NEWS: Mention the change.
3624         * lib/euidaccess.c: Don't include group-member.h.
3625
3626 2011-05-11  Bruno Haible  <bruno@clisp.org>
3627
3628         group-member: Document module.
3629         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3630         module.
3631
3632 2011-05-11  Bruno Haible  <bruno@clisp.org>
3633
3634         fclose: Fix mistake earlier today.
3635         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3636
3637 2011-05-11  Eric Blake  <eblake@redhat.com>
3638
3639         fclose: preserve fflush errors
3640         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3641         Reported by Jim Meyering.
3642
3643         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3644         * build-aux/bootstrap (check_versions): When no specific version
3645         is required, merely check that the app produces an exit status
3646         that indicates its existence.
3647
3648         maint.mk: drop redundant check
3649         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3650         the same but better.
3651
3652 2011-05-11  Bruno Haible  <bruno@clisp.org>
3653
3654         fclose: Fix possible link error.
3655         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3656         unregister_shadow_fd. Improve comments.
3657         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3658         Eric Blake.
3659
3660 2011-05-11  Jim Meyering  <meyering@redhat.com>
3661
3662         maint.mk: improve "can not" detection and generalize rule name
3663         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3664         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3665         Use the same technique as in sc_prohibit_doubled_word, so that
3666         we recognize "can not" also when the words are separated by a newline.
3667         Suggested by Eric Blake.
3668         (perl_filename_lineno_text_): Define.  Factored out of...
3669         (prohibit_doubled_word_): ...here.  Use the new definition.
3670         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3671         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3672         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3673
3674 2011-05-10  Eric Blake  <eblake@redhat.com>
3675
3676         fclose: avoid double close race when possible
3677         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3678         all but WINDOWS_SOCKETS.
3679
3680 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3681
3682         openat: correct new comment
3683         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3684
3685 2011-05-10  Jim Meyering  <meyering@redhat.com>
3686
3687         openat: add comments
3688         * lib/openat-proc.c (openat_proc_name): Add comments,
3689         mostly from Eric Blake.
3690
3691 2011-05-09  Eric Blake  <eblake@redhat.com>
3692
3693         openat: reduce syscalls in first probe of /proc
3694         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3695         be a directory.  Simplify the probe for .. bugs.
3696         * modules/openat (Depends-on): Drop same-inode.
3697         Reported by Bastien ROUCARIES.
3698
3699 2011-05-09  Jim Meyering  <meyering@redhat.com>
3700
3701         maint.mk: change semantics/name of tight_scope variables
3702         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3703         Rename variables to align with semantics that make them more useful.
3704
3705         maint.mk: tweak new rule's name not to impinge
3706         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3707         (sc_tight_scope): Use new rule name rather than $@-0.
3708
3709         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3710         * top/maint.mk (sc_tight_scope): New rule.
3711         (sc_tight_scope-0): New rule, ifdef'd out.
3712         (_gl_TS_dir): Default.
3713         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3714         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3715
3716 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3717
3718         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3719         Haible <bruno@clisp.org>.
3720
3721 2011-05-08  Bruno Haible  <bruno@clisp.org>
3722
3723         Comments.
3724         * m4/isnanf.m4: Add comment.
3725         * m4/isnanl.m4: Likewise.
3726
3727 2011-05-08  Bruno Haible  <bruno@clisp.org>
3728
3729         glob: Remove obsolete macro.
3730         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3731
3732 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3733
3734         intprops: Sun C 5.11 supports __typeof__
3735         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3736         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3737         which is new.
3738         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3739
3740         intprops: switch to usual gnulib indenting and naming
3741         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3742         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3743
3744         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3745
3746 2011-05-08  Jim Meyering  <meyering@redhat.com>
3747
3748         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3749         * top/maint.mk (release-prep): Use make's --no-print-directory
3750         option when generating the announcement.  This eliminates the
3751         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3752         generated announcement template.
3753
3754 2011-05-08  Bruno Haible  <bruno@clisp.org>
3755
3756         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3757         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3758         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3759
3760 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3761
3762         ignore-value, verify: Omit include files from lib_SOURCES.
3763         * modules/ignore-value, modules/verify (Makefile.am):
3764         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3765         that leads Automake to duplicate use of am__objects_... variables
3766         in Makefile.in.  See
3767         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3768
3769 2011-05-07  Bruno Haible  <bruno@clisp.org>
3770
3771         fclose: Simplify autoconf macro.
3772         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3773         defined.
3774
3775 2011-05-07  Bruno Haible  <bruno@clisp.org>
3776
3777         canonicalize-lgpl: Fix autoconf macro ordering bug.
3778         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3779         gl_STDLIB_H_DEFAULTS.
3780
3781 2011-05-06  Eric Blake  <eblake@redhat.com>
3782
3783         maintainer-makefile: make sc_po_check easier to tune
3784         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3785         to probe for strings, such as an alternate location for gnulib.
3786
3787         fclose: guarantee behavior on seekable stdin
3788         * modules/fclose (Depends-on): Add fflush.
3789         * doc/posix-functions/fclose.texi (fclose): Document this.
3790         * tests/test-fclose.c (main): Make test for this unconditional.
3791
3792 2011-05-06  Bruno Haible  <bruno@clisp.org>
3793
3794         fflush, fpurge: Relicense under LGPLv2+.
3795         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3796         * modules/fpurge (License): Likewise.
3797         With permission from Eric Blake and Jim Meyering.
3798         Suggested by Eric Blake.
3799
3800 2011-05-06  Karl Berry  <karl@gnu.org>
3801
3802         * MODULES.html.sh (func_all_modules): remove exit.
3803
3804 2011-05-06  Jim Meyering  <meyering@redhat.com>
3805
3806         maint.mk: use info-gnu@ as the default only for a stable release
3807         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3808         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3809         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3810         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3811
3812 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3813
3814         assert-h: new module, which supports C1X-style static_assert
3815         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3816         * lib/verify.h: Revamp so that this can be copied into assert.h,
3817         while retaining the ability to use it standalone as before.
3818         Rename private identifiers so as not to encroach on the
3819         standard C namespace, since this is now used by assert.h.
3820         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3821         the old verify_true.
3822         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3823         the old verify_true.  Use _GL_VERIFY_TYPE.
3824         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3825         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3826         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3827         defined when this file is copied into the replacement assert.h.
3828         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3829         and _Static_assert is not built in.
3830         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3831         defined, and use the new macros mentioned above.
3832         * doc/posix-headers/assert.texi: Document this.
3833
3834 2011-05-05  Bruno Haible  <bruno@clisp.org>
3835
3836         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3837         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3838         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3839         gl_REPLACE_FCLOSE here.
3840         * modules/fflush (Depends-on): Remove fclose.
3841         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3842         combination with module 'fclose'.
3843
3844 2011-05-05  Bruno Haible  <bruno@clisp.org>
3845
3846         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3847         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3848         gl_FUNC_FFLUSH.
3849         (gl_FUNC_FFLUSH): Use it.
3850         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3852         gl_REPLACE_FSEEKO here.
3853
3854 2011-05-05  Bruno Haible  <bruno@clisp.org>
3855
3856         tzset: Relicense under LGPL.
3857         * modules/tzset (License): Change to LGPL.
3858         No agreement needed; it's a no-op.
3859
3860         strtoimax, strtoumax: Relicense under LGPL.
3861         * modules/strtoimax (License): Change to LGPL.
3862         * modules/strtoumax (License): Likewise.
3863         With permission from Jim Meyering, Paul Eggert:
3864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3866
3867         getgroups: Relicense under LGPL.
3868         * modules/getgroups (License): Change to LGPL.
3869         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3873
3874         nanosleep: Relicense under LGPL.
3875         * modules/nanosleep (License): Change to LGPL.
3876         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3877         Haible:
3878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3882
3883         futimens: Relicense under LGPL.
3884         * modules/futimens (License): Change to LGPL.
3885         With permission from Eric Blake:
3886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3887
3888         fflush: Relicense under LGPL.
3889         * modules/fflush (License): Change to LGPL.
3890         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3894
3895         tmpfile: Relicense under LGPL.
3896         * modules/tmpfile (License): Change to LGPL.
3897         With permission from Ben Pfaff:
3898         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3899
3900         isfinite: Relicense under LGPL.
3901         * modules/isfinite (License): Change to LGPL.
3902         With permission from Ben Pfaff, Bruno Haible:
3903         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3905
3906         acosl..tanl: Relicense under LGPL.
3907         * modules/acosl (License): Change to LGPL.
3908         * modules/asinl (License): Likewise.
3909         * modules/atanl (License): Likewise.
3910         * modules/cosl (License): Likewise.
3911         * modules/expl (License): Likewise.
3912         * modules/logl (License): Likewise.
3913         * modules/sinl (License): Likewise.
3914         * modules/sqrtl (License): Likewise.
3915         * modules/tanl (License): Likewise.
3916         Source code originally from glibc and Paolo Bonzini. Agreements:
3917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3919
3920 2011-05-05  Bruno Haible  <bruno@clisp.org>
3921
3922         signal: Define sighandler_t.
3923         * lib/signal.in.h (sighandler_t): New type.
3924         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3925         whether sighandler_t is defined.
3926         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3927         * modules/signal (Depends-on): Add extensions.
3928         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3929         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3930         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3931
3932 2011-05-05  Eric Blake  <eblake@redhat.com>
3933
3934         maint: remove useless REPLACE_*_H macros
3935         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3936         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3937         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3938         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3939         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3940         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3941         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3942         * m4/btowc.m4: Update callers.
3943         * m4/dirfd.m4: Likewise.
3944         * m4/duplocale.m4: Likewise.
3945         * m4/fchdir.m4: Likewise.
3946         * m4/fdopendir.m4: Likewise.
3947         * m4/inet_ntop.m4: Likewise.
3948         * m4/inet_pton.m4: Likewise.
3949         * m4/ioctl.m4: Likewise.
3950         * m4/mbrlen.m4: Likewise.
3951         * m4/mbrtowc.m4: Likewise.
3952         * m4/mbsinit.m4: Likewise.
3953         * m4/mbsnrtowcs.m4: Likewise.
3954         * m4/mbsrtowcs.m4: Likewise.
3955         * m4/poll.m4: Likewise.
3956         * m4/setlocale.m4: Likewise.
3957         * m4/wcrtomb.m4: Likewise.
3958         * m4/wcsnrtombs.m4: Likewise.
3959         * m4/wcsrtombs.m4: Likewise.
3960         * m4/wctob.m4: Likewise.
3961         * m4/wcwidth.m4: Likewise.
3962         * modules/posix_spawn: Likewise.
3963         * modules/posix_spawn_file_actions_addclose: Likewise.
3964         * modules/posix_spawn_file_actions_adddup2: Likewise.
3965         * modules/posix_spawn_file_actions_addopen: Likewise.
3966         * modules/posix_spawn_file_actions_destroy: Likewise.
3967         * modules/posix_spawn_file_actions_init: Likewise.
3968         * modules/posix_spawnattr_destroy: Likewise.
3969         * modules/posix_spawnattr_getflags: Likewise.
3970         * modules/posix_spawnattr_getpgroup: Likewise.
3971         * modules/posix_spawnattr_getschedparam: Likewise.
3972         * modules/posix_spawnattr_getschedpolicy: Likewise.
3973         * modules/posix_spawnattr_getsigdefault: Likewise.
3974         * modules/posix_spawnattr_getsigmask: Likewise.
3975         * modules/posix_spawnattr_init: Likewise.
3976         * modules/posix_spawnattr_setflags: Likewise.
3977         * modules/posix_spawnattr_setpgroup: Likewise.
3978         * modules/posix_spawnattr_setschedparam: Likewise.
3979         * modules/posix_spawnattr_setschedpolicy: Likewise.
3980         * modules/posix_spawnattr_setsigdefault: Likewise.
3981         * modules/posix_spawnattr_setsigmask: Likewise.
3982         * modules/posix_spawnp: Likewise.
3983
3984 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3985
3986         Add option to do-release-commit-and-tag to specify branch.
3987         * build-aux/do-release-commit-and-tag: Add --branch.
3988
3989 2011-05-03  Bruno Haible  <bruno@clisp.org>
3990
3991         Avoid unnecessary compilation units, through conditional dependencies.
3992         * modules/accept (Depends-on): Add conditions to the dependencies.
3993         * modules/acosl (Depends-on): Likewise.
3994         * modules/argz (Depends-on): Likewise.
3995         * modules/asinl (Depends-on): Likewise.
3996         * modules/atanl (Depends-on): Likewise.
3997         * modules/atoll (Depends-on): Likewise.
3998         * modules/bind (Depends-on): Likewise.
3999         * modules/btowc (Depends-on): Likewise.
4000         * modules/canonicalize-lgpl (Depends-on): Likewise.
4001         * modules/ceil (Depends-on): Likewise.
4002         * modules/ceilf (Depends-on): Likewise.
4003         * modules/ceill (Depends-on): Likewise.
4004         * modules/chdir-long (Depends-on): Likewise.
4005         * modules/chown (Depends-on): Likewise.
4006         * modules/close (Depends-on): Likewise.
4007         * modules/connect (Depends-on): Likewise.
4008         * modules/cosl (Depends-on): Likewise.
4009         * modules/dirfd (Depends-on): Likewise.
4010         * modules/dprintf (Depends-on): Likewise.
4011         * modules/dprintf-posix (Depends-on): Likewise.
4012         * modules/error (Depends-on): Likewise.
4013         * modules/euidaccess (Depends-on): Likewise.
4014         * modules/expl (Depends-on): Likewise.
4015         * modules/faccessat (Depends-on): Likewise.
4016         * modules/fchdir (Depends-on): Likewise.
4017         * modules/fclose (Depends-on): Likewise.
4018         * modules/fcntl (Depends-on): Likewise.
4019         * modules/fdopendir (Depends-on): Likewise.
4020         * modules/fflush (Depends-on): Likewise.
4021         * modules/floor (Depends-on): Likewise.
4022         * modules/floorf (Depends-on): Likewise.
4023         * modules/floorl (Depends-on): Likewise.
4024         * modules/fnmatch (Depends-on): Likewise.
4025         * modules/fopen (Depends-on): Likewise.
4026         * modules/fprintf-posix (Depends-on): Likewise.
4027         * modules/frexp (Depends-on): Likewise.
4028         * modules/frexp-nolibm (Depends-on): Likewise.
4029         * modules/frexpl (Depends-on): Likewise.
4030         * modules/frexpl-nolibm (Depends-on): Likewise.
4031         * modules/fseek (Depends-on): Likewise.
4032         * modules/fsusage (Depends-on): Likewise.
4033         * modules/ftell (Depends-on): Likewise.
4034         * modules/ftello (Depends-on): Likewise.
4035         * modules/futimens (Depends-on): Likewise.
4036         * modules/getcwd (Depends-on): Likewise.
4037         * modules/getcwd-lgpl (Depends-on): Likewise.
4038         * modules/getdelim (Depends-on): Likewise.
4039         * modules/getdomainname (Depends-on): Likewise.
4040         * modules/getgroups (Depends-on): Likewise.
4041         * modules/gethostname (Depends-on): Likewise.
4042         * modules/getline (Depends-on): Likewise.
4043         * modules/getlogin_r (Depends-on): Likewise.
4044         * modules/getopt-posix (Depends-on): Likewise.
4045         * modules/getpeername (Depends-on): Likewise.
4046         * modules/getsockname (Depends-on): Likewise.
4047         * modules/getsockopt (Depends-on): Likewise.
4048         * modules/getsubopt (Depends-on): Likewise.
4049         * modules/getusershell (Depends-on): Likewise.
4050         * modules/glob (Depends-on): Likewise.
4051         * modules/grantpt (Depends-on): Likewise.
4052         * modules/iconv_open (Depends-on): Likewise.
4053         * modules/iconv_open-utf (Depends-on): Likewise.
4054         * modules/inet_ntop (Depends-on): Likewise.
4055         * modules/inet_pton (Depends-on): Likewise.
4056         * modules/ioctl (Depends-on): Likewise.
4057         * modules/isapipe (Depends-on): Likewise.
4058         * modules/isfinite (Depends-on): Likewise.
4059         * modules/isinf (Depends-on): Likewise.
4060         * modules/lchown (Depends-on): Likewise.
4061         * modules/ldexpl (Depends-on): Likewise.
4062         * modules/link (Depends-on): Likewise.
4063         * modules/linkat (Depends-on): Likewise.
4064         * modules/listen (Depends-on): Likewise.
4065         * modules/logl (Depends-on): Likewise.
4066         * modules/lstat (Depends-on): Likewise.
4067         * modules/mbrlen (Depends-on): Likewise.
4068         * modules/mbrtowc (Depends-on): Likewise.
4069         * modules/mbsinit (Depends-on): Likewise.
4070         * modules/mbsnrtowcs (Depends-on): Likewise.
4071         * modules/mbsrtowcs (Depends-on): Likewise.
4072         * modules/mbtowc (Depends-on): Likewise.
4073         * modules/memcmp (Depends-on): Likewise.
4074         * modules/mkdir (Depends-on): Likewise.
4075         * modules/mkdtemp (Depends-on): Likewise.
4076         * modules/mkfifo (Depends-on): Likewise.
4077         * modules/mkfifoat (Depends-on): Likewise.
4078         * modules/mknod (Depends-on): Likewise.
4079         * modules/mkostemp (Depends-on): Likewise.
4080         * modules/mkostemps (Depends-on): Likewise.
4081         * modules/mkstemp (Depends-on): Likewise.
4082         * modules/mkstemps (Depends-on): Likewise.
4083         * modules/mktime (Depends-on): Likewise.
4084         * modules/nanosleep (Depends-on): Likewise.
4085         * modules/open (Depends-on): Likewise.
4086         * modules/openat (Depends-on): Likewise.
4087         * modules/perror (Depends-on): Likewise.
4088         * modules/poll (Depends-on): Likewise.
4089         * modules/popen (Depends-on): Likewise.
4090         * modules/posix_spawn (Depends-on): Likewise.
4091         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4092         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4093         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4094         * modules/posix_spawnp (Depends-on): Likewise.
4095         * modules/pread (Depends-on): Likewise.
4096         * modules/printf-posix (Depends-on): Likewise.
4097         * modules/ptsname (Depends-on): Likewise.
4098         * modules/putenv (Depends-on): Likewise.
4099         * modules/pwrite (Depends-on): Likewise.
4100         * modules/readline (Depends-on): Likewise.
4101         * modules/readlink (Depends-on): Likewise.
4102         * modules/readlinkat (Depends-on): Likewise.
4103         * modules/recv (Depends-on): Likewise.
4104         * modules/recvfrom (Depends-on): Likewise.
4105         * modules/regex (Depends-on): Likewise.
4106         * modules/remove (Depends-on): Likewise.
4107         * modules/rename (Depends-on): Likewise.
4108         * modules/renameat (Depends-on): Likewise.
4109         * modules/rmdir (Depends-on): Likewise.
4110         * modules/round (Depends-on): Likewise.
4111         * modules/roundf (Depends-on): Likewise.
4112         * modules/roundl (Depends-on): Likewise.
4113         * modules/rpmatch (Depends-on): Likewise.
4114         * modules/select (Depends-on): Likewise.
4115         * modules/send (Depends-on): Likewise.
4116         * modules/sendto (Depends-on): Likewise.
4117         * modules/setenv (Depends-on): Likewise.
4118         * modules/setlocale (Depends-on): Likewise.
4119         * modules/setsockopt (Depends-on): Likewise.
4120         * modules/shutdown (Depends-on): Likewise.
4121         * modules/sigaction (Depends-on): Likewise.
4122         * modules/signbit (Depends-on): Likewise.
4123         * modules/sigprocmask (Depends-on): Likewise.
4124         * modules/sinl (Depends-on): Likewise.
4125         * modules/sleep (Depends-on): Likewise.
4126         * modules/snprintf (Depends-on): Likewise.
4127         * modules/snprintf-posix (Depends-on): Likewise.
4128         * modules/socket (Depends-on): Likewise.
4129         * modules/sprintf-posix (Depends-on): Likewise.
4130         * modules/sqrtl (Depends-on): Likewise.
4131         * modules/stat (Depends-on): Likewise.
4132         * modules/strchrnul (Depends-on): Likewise.
4133         * modules/strdup-posix (Depends-on): Likewise.
4134         * modules/strerror (Depends-on): Likewise.
4135         * modules/strerror_r-posix (Depends-on): Likewise.
4136         * modules/strndup (Depends-on): Likewise.
4137         * modules/strnlen (Depends-on): Likewise.
4138         * modules/strptime (Depends-on): Likewise.
4139         * modules/strsep (Depends-on): Likewise.
4140         * modules/strsignal (Depends-on): Likewise.
4141         * modules/strstr-simple (Depends-on): Likewise.
4142         * modules/strtod (Depends-on): Likewise.
4143         * modules/strtoimax (Depends-on): Likewise.
4144         * modules/strtok_r (Depends-on): Likewise.
4145         * modules/strtoumax (Depends-on): Likewise.
4146         * modules/symlink (Depends-on): Likewise.
4147         * modules/symlinkat (Depends-on): Likewise.
4148         * modules/tanl (Depends-on): Likewise.
4149         * modules/tcgetsid (Depends-on): Likewise.
4150         * modules/tmpfile (Depends-on): Likewise.
4151         * modules/trunc (Depends-on): Likewise.
4152         * modules/truncf (Depends-on): Likewise.
4153         * modules/truncl (Depends-on): Likewise.
4154         * modules/uname (Depends-on): Likewise.
4155         * modules/unlink (Depends-on): Likewise.
4156         * modules/unlockpt (Depends-on): Likewise.
4157         * modules/unsetenv (Depends-on): Likewise.
4158         * modules/usleep (Depends-on): Likewise.
4159         * modules/utimensat (Depends-on): Likewise.
4160         * modules/vasprintf (Depends-on): Likewise.
4161         * modules/vdprintf (Depends-on): Likewise.
4162         * modules/vdprintf-posix (Depends-on): Likewise.
4163         * modules/vfprintf-posix (Depends-on): Likewise.
4164         * modules/vprintf-posix (Depends-on): Likewise.
4165         * modules/vsnprintf (Depends-on): Likewise.
4166         * modules/vsnprintf-posix (Depends-on): Likewise.
4167         * modules/vsprintf-posix (Depends-on): Likewise.
4168         * modules/wcrtomb (Depends-on): Likewise.
4169         * modules/wcscasecmp (Depends-on): Likewise.
4170         * modules/wcscspn (Depends-on): Likewise.
4171         * modules/wcsdup (Depends-on): Likewise.
4172         * modules/wcsncasecmp (Depends-on): Likewise.
4173         * modules/wcsnrtombs (Depends-on): Likewise.
4174         * modules/wcspbrk (Depends-on): Likewise.
4175         * modules/wcsrtombs (Depends-on): Likewise.
4176         * modules/wcsspn (Depends-on): Likewise.
4177         * modules/wcsstr (Depends-on): Likewise.
4178         * modules/wcstok (Depends-on): Likewise.
4179         * modules/wcswidth (Depends-on): Likewise.
4180         * modules/wctob (Depends-on): Likewise.
4181         * modules/wctomb (Depends-on): Likewise.
4182         * modules/wctype (Depends-on): Likewise.
4183         * modules/wcwidth (Depends-on): Likewise.
4184         * modules/write (Depends-on): Likewise.
4185
4186 2011-05-03  Bruno Haible  <bruno@clisp.org>
4187
4188         Support for conditional dependencies.
4189         * doc/gnulib.texi (Module description): Document the syntax of
4190         conditional dependencies.
4191         * gnulib-tool: New option --conditional-dependencies.
4192         (func_usage): Document it.
4193         (cond_dependencies): New variable.
4194         (func_get_automake_snippet_conditional,
4195         func_get_automake_snippet_unconditional): New functions, extracted from
4196         func_get_automake_snippet.
4197         (func_get_automake_snippet): Use them.
4198         (sed_first_32_chars): New variable.
4199         (func_module_shellfunc_name): New function.
4200         (func_module_shellvar_name): New function.
4201         (func_module_conditional_name): New function.
4202         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4203         func_cond_module_condition): New functions.
4204         (func_modules_transitive_closure): Add support for conditional
4205         dependencies.
4206         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4207         conditional automake snippet in an automake conditional.
4208         (func_emit_autoconf_snippets): Emit shell functions that contain the
4209         code for conditional modules.
4210         (func_import, func_create_testdir): Update specification.
4211
4212 2011-05-03  Eric Blake  <eblake@redhat.com>
4213
4214         test-getaddrinfo: report error information
4215         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4216
4217 2011-05-03  Jim Meyering  <meyering@redhat.com>
4218
4219         bootstrap: avoid build failure when $GZIP is set
4220         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4221         program name.  If defined at all, it is supposed to list gzip options.
4222         Reported by Alan Curry in http://debbugs.gnu.org/8609
4223
4224 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4225
4226         readme-release: new module with release instructions
4227         * modules/readme-release: New module.
4228         * top/README-release: New file, from coreutils, grep, diffutils.
4229         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4230
4231 2011-05-02  Eric Blake  <eblake@redhat.com>
4232
4233         fflush: also replace fclose when fixing fflush
4234         * modules/fflush (Depends-on): Add fclose.
4235         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4236         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4237         memstreams with no backing fd.
4238         * doc/posix-functions/fclose.texi (fclose): Document the use of
4239         fflush module to fix the bug.
4240         * tests/test-fclose.c (main): Relax test when fclose is used in
4241         isolation.
4242
4243         fclose: add some tests
4244         * modules/fclose-tests: New test module.
4245         * tests/test-fclose.c: New file.
4246         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4247
4248         fclose: reduced dependencies
4249         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4250         simpler lseek.
4251         * lib/fclose.c (rpl_fclose): Likewise.
4252         Reported by Simon Josefsson.
4253
4254         exit: drop remaining clients
4255         * modules/argmatch (Depends-on): Replace exit with stdlib.
4256         * modules/copy-file (Depends-on): Likewise.
4257         * modules/execute (Depends-on): Likewise.
4258         * modules/exitfail (Depends-on): Likewise.
4259         * modules/obstack (Depends-on): Likewise.
4260         * modules/pagealign_alloc (Depends-on): Likewise.
4261         * modules/pipe-filter-gi (Depends-on): Likewise.
4262         * modules/pipe-filter-ii (Depends-on): Likewise.
4263         * modules/savewd (Depends-on): Likewise.
4264         * modules/spawn-pipe (Depends-on): Likewise.
4265         * modules/wait-process (Depends-on): Likewise.
4266         * modules/xsetenv (Depends-on): Likewise.
4267         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4268         * modules/git-merge-changelog (Depends-on): Likewise.
4269         * modules/long-options (Depends-on): Likewise.
4270         * modules/pt_chown (Depends-on): Likewise.
4271         * modules/sysexits (Depends-on): Likewise.
4272
4273         freading: relax license from LGPLv3+ to LGPLv2+
4274         * modules/freading (License): Relax LGPL version.
4275
4276 2011-05-02  Bruno Haible  <bruno@clisp.org>
4277
4278         fchdir: Remove unused dependencies.
4279         * modules/fchdir (Depends-on): Remove include_next.
4280
4281 2011-05-02  Bruno Haible  <bruno@clisp.org>
4282
4283         gnulib-tool: Refactor.
4284         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4285         from func_emit_autoconf_snippets.
4286         (func_emit_autoconf_snippets): Use it.
4287
4288 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4289
4290         * NEWS: Document removal of 'exit'.
4291         * modules/exit: Remove file.
4292
4293 2011-05-01  Bruno Haible  <bruno@clisp.org>
4294
4295         Update DEPENDENCIES.
4296         * DEPENDENCIES (gettext): Recommend the newest release.
4297         Reported by Simon Josefsson.
4298
4299 2011-05-01  Bruno Haible  <bruno@clisp.org>
4300
4301         gnulib-tool: Reduce code duplication.
4302         * gnulib-tool (func_emit_autoconf_snippets): New function.
4303         (func_import, func_create_testdir): Use it.
4304
4305 2011-04-30  Eric Blake  <eblake@redhat.com>
4306
4307         fclose: don't fail on non-seekable input stream
4308         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4309         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4310         since fflush is allowed to fail in that case.
4311
4312 2011-04-30  Bruno Haible  <bruno@clisp.org>
4313
4314         dup3: cleanup
4315         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4316
4317 2011-04-30  Bruno Haible  <bruno@clisp.org>
4318
4319         netdb: Make it work in C++ mode.
4320         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4321         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4322         module.
4323         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4324         gl_MODULE_INDICATOR_FOR_TESTS.
4325         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4326         * modules/netdb-c++-tests: New file.
4327         * tests/test-netdb-c++.cc: New file.
4328
4329 2011-04-30  Bruno Haible  <bruno@clisp.org>
4330
4331         New modules 'vfscanf', 'vscanf'.
4332         * modules/vfscanf: New file.
4333         * modules/vscanf: New file.
4334         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4335         here.
4336         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4337         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4338
4339 2011-04-30  Bruno Haible  <bruno@clisp.org>
4340
4341         passfd: Add comments.
4342         * lib/passfd.c: Add comments about platforms.
4343
4344 2011-04-30  Bruno Haible  <bruno@clisp.org>
4345
4346         sys_uio: Make <sys/uio.h> self-contained.
4347         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4348         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4349
4350 2011-04-30  Bruno Haible  <bruno@clisp.org>
4351
4352         sys_socket: Ensure 'struct iovec' definition.
4353         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4354         <sys/socket.h>.
4355         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4356
4357 2011-04-30  Bruno Haible  <bruno@clisp.org>
4358
4359         sys_uio: Protect definition of 'struct iovec'.
4360         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4361         it as a C struct.
4362
4363 2011-04-30  Bruno Haible  <bruno@clisp.org>
4364
4365         manywarnings: fix indentation
4366         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4367
4368 2011-04-30  Pádraig Brady <P@draigBrady.com>
4369
4370         manywarnings: add -Wno-missing-field-initializers if needed.
4371         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4372         option if it's needed to allow initialization with { 0, }
4373
4374 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4375
4376         announce-gen: cosmetic improvement
4377         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4378
4379 2011-04-29  Jim Meyering  <meyering@redhat.com>
4380
4381         vc-list-files: indent with spaces, not TABs
4382         * build-aux/vc-list-files: Convert leading TABs to spaces,
4383         to match the style of most other files in gnulib.
4384
4385         announce-gen: indent with spaces, not TABs
4386         * build-aux/announce-gen: Convert all TABs to spaces, to match
4387         the style of most other files in gnulib.
4388
4389 2011-04-29  Eric Blake  <eblake@redhat.com>
4390
4391         quotearg: avoid uninitialized variable use
4392         * lib/quotearg.c (quoting_options_from_style): Initialize
4393         remaining fields, and ensure that custom styles are only used via
4394         quoting_options rather than quoting_style.
4395
4396 2011-04-29  Jim Meyering  <meyering@redhat.com>
4397
4398         maint.mk: remove unused VC-tag variable
4399         * top/maint.mk (VC-tag): Remove unused variable.
4400
4401 2011-04-29  Bruno Haible  <bruno@clisp.org>
4402
4403         netdb: fix gai_strerror replacements
4404         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4405         * modules/netdb: Substitute it.
4406
4407 2011-04-29  Jim Meyering  <meyering@redhat.com>
4408
4409         test-getcwd.c: avoid new set-but-not-used warning
4410         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4411         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4412         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4413         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4414
4415         test-hash.c: avoid a new shadowing warning
4416         * tests/test-hash.c (main): Don't shadow "dup".
4417
4418 2011-04-28  Eric Blake  <eblake@redhat.com>
4419
4420         getaddrinfo: fix gai_strerror signature
4421         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4422         and work around mingw with UNICODE defined.
4423         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4424         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4425         * modules/netdb (Makefile.am): Substitute it.
4426         * lib/netdb.in.h (gai_strerror): Declare replacement.
4427         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4428         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4429         the fix.
4430
4431         getsockopt: avoid compiler warning
4432         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4433         Reported by Matthias Bolte.
4434
4435         tests: drop unused link dependency
4436         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4437         * modules/dirent-safer-tests (Makefile.am): Likewise.
4438         * modules/fdopendir-tests (Makefile.am): Likewise.
4439         * modules/mkfifoat-tests (Makefile.am): Likewise.
4440         * modules/openat-safer-tests (Makefile.am): Likewise.
4441         * modules/openat-tests (Makefile.am): Likewise.
4442         * modules/readlinkat-tests (Makefile.am): Likewise.
4443         * modules/symlinkat-tests (Makefile.am): Likewise.
4444         * modules/linkat-tests (Makefile.am): Likewise.
4445         (Depends-on): Switch to filenamecat-lgpl.
4446         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4447         LIBINTL.
4448         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4449         * tests/test-linkat.c (main): Don't require xalloc.
4450
4451         hash, mgetgroups: drop xalloc dependency
4452         * lib/hash.c (includes): Adjust includes.
4453         * lib/mgetgroups.c (includes): Likewise.
4454         (xgetgroups): Move...
4455         * lib/xgetgroups.c: ...to new file.
4456         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4457         * modules/xgetgroups: New file, split from...
4458         * modules/mgetgroups: ...here.
4459         (Depends-on): Add xalloc-oversized.
4460         * modules/hash (Depends-on): Likewise.
4461         * modules/hash-tests (Depends-on): Drop xalloc.
4462         (test_hash_LDADD): Drop unused library.
4463         * tests/test-hash.c (main): Break xalloc dependency.
4464         (includes): Drop unused include.
4465
4466         xalloc-oversized: new module
4467         * modules/xalloc-oversized: New module.
4468         * modules/xalloc (Depends-on): Add it.
4469         * lib/xalloc.h (xalloc_oversized): Move...
4470         * lib/xalloc-oversized.h: ...into new file.
4471
4472         utimecmp: drop dependency on xmalloc
4473         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4474         due to memory pressure.
4475         * modules/utimecmp (Depends-on): Drop xalloc.
4476
4477 2011-04-27  Eric Blake  <eblake@redhat.com>
4478
4479         getcwd: fix mingw bugs
4480         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4481         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4482         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4483
4484 2011-04-27  Bruno Haible  <bruno@clisp.org>
4485
4486         mkstemps: Ensure declaration on MacOS X 10.5.
4487         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4488         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4489         MacOS X.
4490
4491 2011-04-27  Bruno Haible  <bruno@clisp.org>
4492
4493         mkstemp: More documentation.
4494         * doc/posix-functions/mkstemp.texi: Document header file problem on
4495         MacOS X.
4496
4497 2011-04-27  Bruno Haible  <bruno@clisp.org>
4498
4499         mkstemp: Tweak configure message when cross-compiling.
4500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4501         result as a guess.
4502
4503 2011-04-27  Bruno Haible  <bruno@clisp.org>
4504
4505         clean-temp: Clarify what it does.
4506         * lib/clean-temp.h: Add more comments.
4507         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4508         module.
4509         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4510         * doc/glibc-functions/mkstemps.texi: Likewise.
4511         * doc/glibc-functions/mkostemps.texi: Likewise.
4512
4513 2011-04-27  Eric Blake  <eblake@redhat.com>
4514
4515         fchdir: avoid extra chdir and fix test
4516         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4517         getcwd-lgpl.
4518         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4519         have to be canonical.
4520         (canonicalize_file_name): Drop unused macro.
4521         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4522
4523         filenamecat-lgpl: fix licence
4524         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4525         when it was first created.
4526
4527         linkat, renameat: add missing dependency
4528         * modules/linkat (Depends-on): Require getcwd-lgpl.
4529         * modules/renameat (Depends-on): Likewise.
4530
4531         tests: reduce dependencies
4532         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4533         * tests/test-renameat.c (main): Likewise.
4534         * modules/linkat-tests (Depends-on): Relax dependency.
4535         * modules/renameat-tests (Depends-on): Likewise.
4536         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4537         dependency explicit.
4538
4539         save-cwd: reduce default dependency
4540         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4541         * lib/save-cwd.c: Update comments.
4542         * NEWS: Document the semantic change.
4543
4544         getcwd: enhance tests
4545         * tests/test-getcwd-lgpl.c: New file, taken from...
4546         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4547         repeat long path stress tests from m4 probe.
4548         * modules/getcwd-lgpl-tests: New module.
4549         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4550         * m4/getcwd-abort-bug.m4: Update comment.
4551         * m4/getcwd-path-max.m4: Likewise.
4552
4553         getcwd-lgpl: new module
4554         * modules/getcwd-lgpl: New module.
4555         * lib/getcwd-lgpl.c: New file.
4556         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4557         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4558         * modules/getcwd (configure.ac): Set C witness.
4559         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4560
4561         getcwd: tweak comments
4562         * m4/getcwd-abort-bug.m4: Fix comments.
4563         * m4/getcwd-path-max.m4: Likewise.
4564         * m4/getcwd.m4: Likewise.
4565
4566 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4567         and Eric Blake  <eblake@redhat.com>
4568
4569         mkstemp: replace if system version uses wrong permissions
4570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4571         read/write mode bits set in file created by mkstemp.
4572         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4573
4574 2011-04-27  Eric Blake  <eblake@redhat.com>
4575
4576         passfd: avoid compiler warning
4577         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4578         Reported by Laine Stump.
4579
4580 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4581
4582         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4583         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4584
4585 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4586         and Eric Blake  <eblake@redhat.com>
4587
4588         mkstemp: mention clean-temp module
4589         * lib/mkstemp.c: Add comment.
4590         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4591
4592 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4593
4594         inttypes: also provide default values for 32-bit tests
4595         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4596         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4597
4598 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4599
4600         strtoumax: remove dependency on strtoimax
4601         This is like the strtoull change of yesterday.
4602         * modules/strtoumax (Files): Add lib/strtoimax.c.
4603         (Depends-on): Remove strtoimax and add verify.
4604
4605         inttypes-incomplete: new module
4606         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4607         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4608         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4609         of gl_INTTYPES_H.
4610         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4611         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4612         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4613         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4614         * modules/strtoumax, modules/xstrtol (Depends-on):
4615         Depend on inttypes-incomplete, not inttypes.
4616         * modules/inttypes-incomplete: New module, containing the contents
4617         of the old modules/inttypes module, except that the Files: section
4618         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4619         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4620         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4621         (Depends-on): Depend only on inttypes-incomplete.
4622         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4623
4624         inttypes: omit now-redundant strtoimax and strtoumax work
4625         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4626         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4627
4628         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4629         This supports apps that need pointers to strtoimax and strtoumax,
4630         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4631         nonexistent functions.  See
4632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4633         et seq.
4634         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4635         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4636         a macro.
4637         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4638
4639 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4640
4641         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4642
4643 2011-04-25  Bruno Haible  <bruno@clisp.org>
4644
4645         strtol, strtoul: Mark modules as obsolete.
4646         * modules/strtol (Status, Notice): New sections.
4647         * modules/strtoul (Status, Notice): New sections.
4648
4649 2011-04-25  Bruno Haible  <bruno@clisp.org>
4650
4651         strtod: Remove check for strtod, unless supporting old platforms.
4652         * modules/strtod-obsolete: New file.
4653         * m4/strtod-obsolete.m4: New file.
4654         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4655         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4656         * modules/strtod (Depends-on): Add strtod-obsolete.
4657         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4658
4659 2011-04-25  Bruno Haible  <bruno@clisp.org>
4660
4661         strcase: Make module obsolete.
4662         * modules/strcase (Status, Notice): New sections.
4663
4664 2011-04-25  Bruno Haible  <bruno@clisp.org>
4665
4666         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4667         * modules/dup2-obsolete: New file.
4668         * m4/dup2-obsolete.m4: New file.
4669         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4670         gl_FUNC_DUP2_OBSOLETE is not also defined.
4671         * modules/dup2 (Depends-on): Add dup2-obsolete.
4672         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4673
4674 2011-04-25  Bruno Haible  <bruno@clisp.org>
4675
4676         strnlen: Avoid memchr related link error on old obsolete platforms.
4677         * modules/memchr-obsolete: New file.
4678         * m4/memchr-obsolete.m4: New file.
4679         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4680         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4681         * modules/memchr (Depends-on): Add memchr-obsolete.
4682         * modules/strnlen (Depends-on): Likewise.
4683         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4684
4685 2011-04-25  Jim Meyering  <meyering@redhat.com>
4686
4687         maint.mk: makefile_at_at_check extend and clean up
4688         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4689         in addition to */Makefile.am.
4690         Exempt legitimate uses of @VAR@ notation, e.g.,
4691         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4692         Remove obsolete coreutils-specific comment.
4693         Prompted by discussion here:
4694         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4695
4696 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4697
4698         strtoul: remove dependency on strtol
4699         This is so that 'configure' need not check for strtol merely because
4700         the application needs strtoul.
4701         * modules/strtoul (Files): Add lib/strtol.c.
4702         (Depends-on): Remove strtol.
4703
4704         strtoull: remove dependency on strtoul
4705         This is like the strtoll change.
4706         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4707         (Depends-on): Remove strtoul.
4708
4709         strtoll: remove dependency on strtol
4710         This is so that 'configure' need not check for strtol merely because
4711         the application needs strtoll.
4712         * modules/strtoll (Files): Add lib/strtol.c.
4713         (Depends-on): Remove strtol.
4714
4715 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4716
4717         inttypes: Move some configure check to module 'imaxdiv'.
4718         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4719         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4720         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4721
4722 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4723
4724         inttypes: Move some configure check to module 'imaxabs'.
4725         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4726         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4727         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4728
4729 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4730
4731         inttypes: Remove configure tests that are not needed since 2009-12-31.
4732         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4733         gl_cv_header_working_inttypes_h.
4734
4735 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4736
4737         * modules/strnlen (Depends-on): Remove memchr.
4738         The strnlen implementation doesn't need the memchr module's fixes; see
4739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4740
4741         strtol: remove dependency on wchar
4742         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4743         * modules/strtol (Depends-on): Remove wchar.
4744
4745 2011-04-21  Eric Blake  <eblake@redhat.com>
4746
4747         passfd: fix test regression on Linux
4748         * modules/passfd-tests (configure.ac): Correct socketpair check.
4749
4750         passfd: speed up configure and drop unused code
4751         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4752         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4753         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4754         Instead of probing at configure for unix_scm_rights_bsd44_way,
4755         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4756         check to a struct member probe.
4757         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4758         (sendfd, recvfd): Update preprocessor checks.
4759         * modules/passfd (Files): Reflect rename, and drop unused file.
4760         (Depends-on): Drop unused dependency.
4761
4762         passfd: allow compilation on mingw
4763         * modules/sys_socket (Depends-on): Add sys_uio.
4764         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4765         iovec and a minimal struct msghdr.
4766         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4767         * tests/test-sys_socket.c (main): Enhance test.
4768         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4769         guaranteed to provide what we need.
4770         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4771         * modules/passfd-tests (Depends-on): Add sys_wait.
4772         * tests/test-passfd.c (main): Skip test on mingw, for now.
4773         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4774         partial 'struct msghdr' implementation.
4775
4776         sys_uio: new module
4777         * modules/sys_uio: New module.
4778         * modules/sys_uio-tests: Likewise.
4779         * lib/sys_uio.in.h: New file.
4780         * m4/sys_uio_h.m4: Likewise.
4781         * tests/test-sys_uio.c: Likewise.
4782         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4783         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4784
4785 2011-04-20  Jim Meyering  <meyering@redhat.com>
4786
4787         useless-if-before-free: avoid false-positive
4788         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4789         disjunct so that it too requires a terminating ";".  Without that,
4790         this script would identify as useless one statement from gcc that
4791         was not:
4792           if (aligned_ptr)
4793             free (((void **) aligned_ptr) [-1]);
4794
4795 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4796
4797         doc: update users.txt.
4798         * users.txt: Add barcode.
4799
4800 2011-04-19  Bruno Haible  <bruno@clisp.org>
4801
4802         ioctl: Remove link dependency on native Windows.
4803         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4804         (gl_close_fn, gl_ioctl_fn): New types.
4805         (struct fd_hook): Renamed from struct close_hook. Change type of
4806         private_close_fn field. Add private_ioctl_fn field.
4807         (close_hook_fn): Add parameter for primary close method.
4808         (execute_close_hooks, execute_all_close_hooks): Likewise.
4809         (ioctl_hook_fn): New type.
4810         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4811         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4812         argument.
4813         (unregister_fd_hook): Renamed from unregister_close_hook.
4814         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4815         Don't include <unistd.h>.
4816         (close): Remove undef.
4817         (anchor): Update.
4818         (execute_close_hooks): Add argument for primary close method.
4819         (execute_all_close_hooks): Likewise.
4820         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4821         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4822         argument. Allow each argument to be NULL.
4823         (unregister_fd_hook): Renamed from unregister_close_hook.
4824         * lib/close.c (rpl_close): Pass 'close' function pointer to
4825         execute_all_close_hooks.
4826         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4827         (primary_ioctl): New function.
4828         (ioctl): Don't call ioctlsocket here. Instead, call
4829         execute_all_ioctl_hooks.
4830         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4831         close method.
4832         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4833         (fd_sockets_hook): Renamed from close_sockets_hook.
4834         (gl_sockets_startup, gl_sockets_cleanup): Update.
4835         * modules/fd-hook: Renamed from modules/close-hook. Update.
4836         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4837         * modules/sockets (Depends-on): Likewise.
4838         * modules/ioctl (Depends-on): Add fd-hook.
4839         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4840         GNULIB_SOCKET.
4841
4842 2011-04-19  Bruno Haible  <bruno@clisp.org>
4843
4844         Move the support of O_NONBLOCK in open() to the 'open' module.
4845         * modules/nonblocking (Depends-on): Remove 'open'.
4846         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4847         gl_cv_have_open_O_NONBLOCK.
4848         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4849         O_NONBLOCK support.
4850         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4851
4852 2011-04-17  Bruno Haible  <bruno@clisp.org>
4853
4854         pipe2: Simplify code.
4855         * lib/pipe2.c (pipe2): Reduce code duplication.
4856
4857 2011-04-17  Bruno Haible  <bruno@clisp.org>
4858
4859         nonblocking: Add comment.
4860         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4861
4862 2011-04-17  Bruno Haible  <bruno@clisp.org>
4863
4864         nonblocking: Add tests for sockets.
4865         * tests/test-nonblocking-socket.sh: New file.
4866         * tests/test-nonblocking-socket-main.c: New file.
4867         * tests/test-nonblocking-socket-child.c: New file.
4868         * tests/test-nonblocking-socket.h: New file.
4869         * tests/socket-server.h: New file.
4870         * tests/socket-client.h: New file.
4871         * modules/nonblocking-socket-tests: New file.
4872         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4873
4874 2011-04-17  Bruno Haible  <bruno@clisp.org>
4875
4876         nonblocking: Add tests for pipes.
4877         * tests/test-nonblocking-pipe.sh: New file.
4878         * tests/test-nonblocking-pipe-main.c: New file.
4879         * tests/test-nonblocking-pipe-child.c: New file.
4880         * tests/test-nonblocking-pipe.h: New file.
4881         * tests/test-nonblocking-writer.h: New file.
4882         * tests/test-nonblocking-reader.h: New file.
4883         * tests/test-nonblocking-misc.h: New file.
4884         * modules/nonblocking-pipe-tests: New file.
4885         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4886
4887 2011-04-16  Bruno Haible  <bruno@clisp.org>
4888
4889         gettext: Clarify the needed programmer actions.
4890         * modules/gettext (Notice): New field.
4891         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4892
4893 2011-04-16  Bruno Haible  <bruno@clisp.org>
4894
4895         strchrnul: Tweak last commit.
4896         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4897         bug.
4898         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4899         as in _GL_FUNCDECL_SYS.
4900         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4901         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4902
4903 2011-04-15  Eric Blake  <eblake@redhat.com>
4904
4905         strchrnul: work around cygwin bug
4906         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4907         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4909         * modules/string (Makefile.am): Substitute it.
4910         * lib/string.in.h (strchrnul): Use it.
4911
4912 2011-04-15  Bruno Haible  <bruno@clisp.org>
4913
4914         Don't require lib/stdio-write.c when only module 'stdio' is used.
4915         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4916         invocation.
4917         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4918
4919 2011-04-14  Bruno Haible  <bruno@clisp.org>
4920
4921         Support non-blocking pipe I/O in read() on native Windows.
4922         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4923         (read): New declaration.
4924         * lib/read.c: New file.
4925         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4926         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4927         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4928         vscanf): New declarations.
4929         * lib/stdio-read.c: New file.
4930         * m4/read.m4: New file.
4931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4932         REPLACE_READ.
4933         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4934         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4935         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4936         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4937         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4938         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4939         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4940         * modules/read: New file.
4941         * modules/nonblocking (Files): Add lib/stdio-read.c.
4942         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4943         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4944         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4945         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4946         * modules/pread (Depends-on): Add read.
4947         * modules/safe-read (Depends-on): Likewise.
4948         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4949         gets, scanf, vfscanf, vscanf): Verify signatures.
4950         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4951         problem with non-blocking pipes.
4952         * doc/posix-functions/fgetc.texi: Likewise.
4953         * doc/posix-functions/fgets.texi: Likewise.
4954         * doc/posix-functions/fread.texi: Likewise.
4955         * doc/posix-functions/fscanf.texi: Likewise.
4956         * doc/posix-functions/getc.texi: Likewise.
4957         * doc/posix-functions/getchar.texi: Likewise.
4958         * doc/posix-functions/gets.texi: Likewise.
4959         * doc/posix-functions/scanf.texi: Likewise.
4960         * doc/posix-functions/vfscanf.texi: Likewise.
4961         * doc/posix-functions/vscanf.texi: Likewise.
4962
4963 2011-04-14  Bruno Haible  <bruno@clisp.org>
4964
4965         Support non-blocking pipe I/O in write() on native Windows.
4966         * lib/write.c (rpl_write): Split a write request that failed merely
4967         because the byte count was larger than the pipe buffer's size.
4968         * doc/posix-functions/write.texi: Mention the problem with large byte
4969         counts.
4970
4971 2011-04-14  Bruno Haible  <bruno@clisp.org>
4972
4973         wchar: Ensure that wchar_t gets defined on uClibc.
4974         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4975         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4976
4977 2011-04-13  Bruno Haible  <bruno@clisp.org>
4978
4979         safe-write, full-read: Avoid unnecessary compilation units.
4980         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4981         (Depends-on): Remove safe-read. Add ssize_t.
4982         * modules/full-read (Files): Add lib/full-write.c.
4983         (Depends-on): Add full-write.
4984
4985 2011-04-13  Bruno Haible  <bruno@clisp.org>
4986
4987         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4988         * modules/pwrite (Depends-on): Add 'write'.
4989
4990 2011-04-13  Bruno Haible  <bruno@clisp.org>
4991
4992         Support non-blocking pipe I/O in write() on native Windows.
4993         * lib/unistd.in.h (write): Enable replacement also if
4994         GNULIB_UNISTD_H_NONBLOCKING is 1.
4995         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4996         (rpl_write): When failing to write on a non-blocking pipe, change
4997         errno from ENOSPC to EAGAIN.
4998         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4999         putchar, puts, vfprintf, vprintf): Enable replacement also if
5000         GNULIB_STDIO_H_NONBLOCKING is 1.
5001         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5002         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5003         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5004         CALL_WITH_SIGPIPE_EMULATION.
5005         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5006         * m4/nonblocking.m4: New file.
5007         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5008         for non-blocking I/O support.
5009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5010         GNULIB_UNISTD_H_NONBLOCKING.
5011         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5012         required for non-blocking I/O support.
5013         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5014         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5015         lib/stdio-write.c, m4/asm-underscore.m4.
5016         (Depends-on): Add stdio, unistd.
5017         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5018         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5019         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5020         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5021         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5022         problem with non-blocking pipes.
5023         * doc/posix-functions/fputc.texi: Likewise.
5024         * doc/posix-functions/fputs.texi: Likewise.
5025         * doc/posix-functions/fwrite.texi: Likewise.
5026         * doc/posix-functions/printf.texi: Likewise.
5027         * doc/posix-functions/putc.texi: Likewise.
5028         * doc/posix-functions/putchar.texi: Likewise.
5029         * doc/posix-functions/puts.texi: Likewise.
5030         * doc/posix-functions/vfprintf.texi: Likewise.
5031         * doc/posix-functions/vprintf.texi: Likewise.
5032         * doc/posix-functions/write.texi: Likewise.
5033
5034 2011-04-10  Jim Meyering  <meyering@redhat.com>
5035
5036         maint.mk: prohibit doubled words
5037         Detect them also when they're separated by a newline.
5038         There are 3 ways to customize it:
5039           - disable the test on a per file basis, as usual with rules using
5040             $(VC_LIST_EXCEPT)
5041           - replace the default doubled-word-selecting regexp (affects all files)
5042           - ignore a particular file-vs-doubled-word match
5043         I nearly used that last one to ignore the "is is" match in
5044         coreutils' NEWS file, since the text was "ls -is is ..."
5045         To do that, I would have added this line to cfg.mk:
5046           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5047         but it would have ignored any "is is" match in NEWS.
5048         Low probability, but still...
5049         Instead, I changed the text, slightly:
5050           -  ls -is is now consistent with ls -lis in ignoring values returned
5051           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5052         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5053         (prohibit_doubled_word_): Define.
5054         (sc_prohibit_doubled_word): New rule.
5055         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5056
5057 2011-04-10  Jim Meyering  <meyering@redhat.com>
5058
5059         maint: fix doubled-word typo in comment
5060         * m4/gethostname.m4: s/is is/it is/
5061         * m4/getdomainname.m4: Likewise.
5062
5063 2011-04-10  Jim Meyering  <meyering@redhat.com>
5064
5065         maint: remove doubled word: s/it it/it/
5066         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5067
5068 2011-04-10  Jim Meyering  <meyering@redhat.com>
5069
5070         maint.mk: remove useless semicolon and backslash
5071         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5072         semicolon and backslash.
5073
5074 2011-04-10  Bruno Haible  <bruno@clisp.org>
5075
5076         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5077         * modules/stdint-tests (Depends-on): Add wchar.
5078
5079 2011-04-10  Jim Meyering  <meyering@redhat.com>
5080
5081         maint: remove doubled words in comments, e.g., s/a a/a/
5082         * lib/strptime.c (day_of_the_week): s/the the/the/
5083         * tests/test-chown.h (test_chown): s/a a/a/
5084
5085         test-chown.h: correct a cast
5086         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5087         when the destination is a stat.st_gid.
5088
5089 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5090
5091         getaddrinfo: Fix test for sa_len member.
5092         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5093         include <sys/types.h> before <sys/socket.h>.
5094
5095 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5096
5097         maint: change "can not" to "cannot"
5098         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5099         boundaries.
5100
5101 2011-04-09  Jim Meyering  <meyering@redhat.com>
5102
5103         maint: change "a a" to "a"
5104         * tests/test-lchown.h (test_lchown): s/a a/a/
5105
5106         maint.mk: prohibit \<the the\>
5107         * top/maint.mk (sc_prohibit_the_the): New rule.
5108
5109         maint: fix "the the" in comment
5110         * lib/count-one-bits.h: s/the the/the/
5111
5112         maint: change "can not" to "cannot"
5113         But do not change the occurrences in maintain.texi or in
5114         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5115         * doc/gnulib-tool.texi: s/can not/cannot/
5116         * doc/posix-functions/accept.texi (accept): Likewise.
5117         * doc/posix-functions/socket.texi (socket): Likewise.
5118         * lib/mbrtowc.c: Likewise.
5119
5120         maint.mk: prohibit use of "can not"
5121         * top/maint.mk (sc_prohibit_can_not): New rule.
5122         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5123
5124 2011-04-09  Bruno Haible  <bruno@clisp.org>
5125
5126         careadlinkat: Guard against misuse of careadlinkatcwd.
5127         * lib/careadlinkat.c: Include <stdlib.h>.
5128         (careadlinkatcwd): Check that the fd argument is as expected.
5129
5130 2011-04-09  Bruno Haible  <bruno@clisp.org>
5131
5132         careadlinkat: Use common coding style.
5133         * lib/careadlinkat.c: Move gnulib includes after system includes.
5134
5135 2011-04-09  Bruno Haible  <bruno@clisp.org>
5136
5137         careadlinkat: Clarify specification.
5138         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5139         (careadlinkatcwd): Add comment.
5140         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5141
5142 2011-04-09  Bruno Haible  <bruno@clisp.org>
5143
5144         areadlinkat: Avoid link error on many platforms.
5145         * modules/areadlinkat (Depends-on): Add areadlink.
5146
5147 2011-04-09  Bruno Haible  <bruno@clisp.org>
5148
5149         allocator, careadlinkat: Fix double-inclusion guard.
5150         * lib/allocator.h: Fix double-inclusion guard.
5151         * lib/careadlinkat.h: Likewise.
5152
5153 2011-04-09  Bruno Haible  <bruno@clisp.org>
5154
5155         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5156         * lib/relocwrapper.c: Update dependencies hierarchy.
5157         * build-aux/install-reloc: Update list of files to be compiled.
5158         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5159         lib/allocator.[hc].
5160
5161 2011-04-08  Eric Blake  <eblake@redhat.com>
5162
5163         strftime: silence gnulib-tool warning
5164         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5165
5166 2011-04-08  Bruno Haible  <bruno@clisp.org>
5167
5168         verify: Fix syntax error with GCC 4.6 in C++ mode.
5169         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5170         (HAVE_STATIC_ASSERT): New macro.
5171         (verify_true, verify): Use 'static_assert' if it is supported and
5172         '_Static_assert' is not supported.
5173
5174 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5175
5176         allocator: New module.
5177         * modules/allocator, lib/allocator.c: New files.
5178         * lib/allocator.h (stdlib_allocator): New decl.
5179         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5180         Remove.  Do not include <stdlib.h>.
5181         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5182         * modules/careadlinkat (Files): Remove lib/allocator.h.
5183         (Depends-on): Add allocator.
5184
5185         stdlib: let modules use system malloc, realloc
5186         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5187         if !_GL_USE_STDLIB_ALLOC.
5188         (malloc, realloc): Limit this change to a smaller scope.
5189
5190         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5191         (malloc, realloc): Don't #undef; no longer needed.
5192         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5193         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5194         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5195         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5196         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5197         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5198         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5199         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5200
5201         careadlinkat: rename members to avoid problem
5202         * lib/allocator.h (struct allocator): Rename members from
5203         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5204         and realloc are #define'd.  Reported by Eric Blake in
5205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5206         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5207
5208 2011-04-08  Eric Blake  <eblake@redhat.com>
5209
5210         nonblocking: reduce dependency
5211         * tests/test-nonblocking.c: Only test sockets when in use.
5212         * modules/nonblocking-tests (Depends-on): Drop socket.
5213         (Makefile.am): Link even if sockets are not present.
5214         * modules/pipe2-tests (Makefile.am): Likewise.
5215         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5216
5217         pipe2: fix O_NONBLOCK support on mingw
5218         * modules/pipe2 (Depends-on): Add nonblocking.
5219         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5220         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5221         * tests/test-nonblocking.c (main): Likewise.
5222         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5223
5224         fcntl-h: fix O_ACCMODE on cygwin
5225         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5226         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5227
5228         pipe-filter: drop O_NONBLOCK workarounds
5229         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5230         * modules/pipe-filter-ii (Depends-on): Likewise.
5231         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5232
5233         nonblocking: provide O_NONBLOCK for mingw
5234         * modules/nonblocking (Depends-on): Add open.
5235         (configure.ac): Set new witness macro.
5236         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5237         * modules/fcntl-h (Makefile.am): Substitute it.
5238         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5239         nonblocking module is in use.
5240         * lib/nonblocking.c: Adjust portability test.
5241         * lib/open.c (open): Don't let native open see gnulib flag.
5242         * tests/test-fcntl-h.c (main): Enhance test.
5243         * tests/test-open.h (test_open): Likewise.
5244         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5245
5246         careadlinkat: fix compilation error on mingw
5247         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5248         within struct allocator.
5249
5250 2011-04-06  Eric Blake  <eblake@redhat.com>
5251
5252         binary-io: relicense under LGPLv2+
5253         * modules/binary-io (License): Relax to LGPLv2+.
5254         Requested for libvirt, and required by pipe2.
5255
5256 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5257
5258         verify: use _Static_assert if available
5259         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5260         (verify_true, verify): Use it if available.  This generates better
5261         diagnostics with GCC 4.6.0 and later.
5262
5263 2011-04-05  Bruno Haible  <bruno@clisp.org>
5264
5265         Remove leftover generated .h files after config.status changed.
5266
5267         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5268         GL_GENERATE_ALLOCA_H.
5269         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5270         GL_GENERATE_ALLOCA_H evaluates to false.
5271
5272         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5273         GL_GENERATE_ARGZ_H.
5274         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5275         evaluates to false.
5276
5277         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5278         GL_GENERATE_BYTESWAP_H.
5279         * modules/byteswap (Makefile.am): Remove byteswap.h if
5280         GL_GENERATE_BYTESWAP_H evaluates to false.
5281
5282         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5283         GL_GENERATE_ERRNO_H.
5284         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5285         evaluates to false.
5286
5287         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5288         GL_GENERATE_FLOAT_H.
5289         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5290         evaluates to false.
5291
5292         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5293         GL_GENERATE_FNMATCH_H.
5294         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5295         GL_GENERATE_FNMATCH_H evaluates to false.
5296
5297         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5298         GL_GENERATE_GLOB_H.
5299         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5300         evaluates to false.
5301
5302         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5303         automake conditional GL_GENERATE_ICONV_H.
5304         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5305         evaluates to false.
5306
5307         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5308         GL_GENERATE_NETINET_IN_H.
5309         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5310         GL_GENERATE_NETINET_IN_H evaluates to false.
5311
5312         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5313         conditional GL_GENERATE_PTHREAD_H.
5314         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5315         * modules/pthread (Makefile.am): Remove pthread.h if
5316         GL_GENERATE_PTHREAD_H evaluates to false.
5317
5318         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5319         GL_GENERATE_SCHED_H.
5320         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5321         evaluates to false.
5322
5323         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5324         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5325         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5326         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5327
5328         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5329         GL_GENERATE_STDARG_H.
5330         * modules/stdarg (Makefile.am): Remove stdarg.h if
5331         GL_GENERATE_STDARG_H evaluates to false.
5332
5333         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5334         GL_GENERATE_STDBOOL_H.
5335         * modules/stdbool (Makefile.am): Remove stdbool.h if
5336         GL_GENERATE_STDBOOL_H evaluates to false.
5337
5338         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5339         conditional GL_GENERATE_STDDEF_H.
5340         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5341         * modules/stddef (Makefile.am): Remove stddef.h if
5342         GL_GENERATE_STDDEF_H evaluates to false.
5343
5344         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5345         GL_GENERATE_STDINT_H.
5346         * modules/stdint (Makefile.am): Remove stdint.h if
5347         GL_GENERATE_STDINT_H evaluates to false.
5348
5349         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5350         GL_GENERATE_SYSEXITS_H.
5351         * modules/sysexits (Makefile.am): Remove sysexits.h if
5352         GL_GENERATE_SYSEXITS_H evaluates to false.
5353
5354         Reported by Karl Berry and Ralf Wildenhues.
5355
5356 2011-04-05  Bruno Haible  <bruno@clisp.org>
5357
5358         Ensure to rebuild generated .h files when config.status has changed.
5359         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5360         config.status.
5361         * modules/ctype (Makefile.am): Likewise.
5362         * modules/dirent (Makefile.am): Likewise.
5363         * modules/errno (Makefile.am): Likewise.
5364         * modules/fcntl-h (Makefile.am): Likewise.
5365         * modules/float (Makefile.am): Likewise.
5366         * modules/getopt-posix (Makefile.am): Likewise.
5367         * modules/glob (Makefile.am): Likewise.
5368         * modules/iconv-h (Makefile.am): Likewise.
5369         * modules/inttypes (Makefile.am): Likewise.
5370         * modules/langinfo (Makefile.am): Likewise.
5371         * modules/locale (Makefile.am): Likewise.
5372         * modules/math (Makefile.am): Likewise.
5373         * modules/netdb (Makefile.am): Likewise.
5374         * modules/netinet_in (Makefile.am): Likewise.
5375         * modules/poll-h (Makefile.am): Likewise.
5376         * modules/pthread (Makefile.am): Likewise.
5377         * modules/pty (Makefile.am): Likewise.
5378         * modules/sched (Makefile.am): Likewise.
5379         * modules/search (Makefile.am): Likewise.
5380         * modules/selinux-h (Makefile.am): Likewise.
5381         * modules/signal (Makefile.am): Likewise.
5382         * modules/spawn (Makefile.am): Likewise.
5383         * modules/stdarg (Makefile.am): Likewise.
5384         * modules/stdbool (Makefile.am): Likewise.
5385         * modules/stddef (Makefile.am): Likewise.
5386         * modules/stdint (Makefile.am): Likewise.
5387         * modules/stdio (Makefile.am): Likewise.
5388         * modules/stdlib (Makefile.am): Likewise.
5389         * modules/string (Makefile.am): Likewise.
5390         * modules/strings (Makefile.am): Likewise.
5391         * modules/sys_file (Makefile.am): Likewise.
5392         * modules/sys_ioctl (Makefile.am): Likewise.
5393         * modules/sys_select (Makefile.am): Likewise.
5394         * modules/sys_socket (Makefile.am): Likewise.
5395         * modules/sys_stat (Makefile.am): Likewise.
5396         * modules/sys_time (Makefile.am): Likewise.
5397         * modules/sys_times (Makefile.am): Likewise.
5398         * modules/sys_utsname (Makefile.am): Likewise.
5399         * modules/sys_wait (Makefile.am): Likewise.
5400         * modules/sysexits (Makefile.am): Likewise.
5401         * modules/termios (Makefile.am): Likewise.
5402         * modules/time (Makefile.am): Likewise.
5403         * modules/unistd (Makefile.am): Likewise.
5404         * modules/wchar (Makefile.am): Likewise.
5405         * modules/wctype-h (Makefile.am): Likewise.
5406         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5407
5408 2011-04-05  Bruno Haible  <bruno@clisp.org>
5409
5410         pipe2: Relicense under LGPLv2+.
5411         * modules/pipe2 (License): Change to LGPLv2+.
5412         Requested by Eric Blake, for libvirt.
5413
5414 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5415
5416         bootstrap: compute gnulib_extra_files after updating build_aux
5417         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5418         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5419
5420 2011-04-05  Eric Blake  <eblake@redhat.com>
5421
5422         bootstrap: preserve git whitelist item sorting
5423         * build-aux/bootstrap (sort_patterns): New function.
5424         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5425
5426 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5427
5428         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5429         sc_space_tab check.
5430
5431 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5432
5433         areadlink, areadlinkat: rewrite in terms of careadlinkat
5434         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5435         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5436         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5437         (malloc, realloc): Remove #undefs.
5438         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5439         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5440         readlink, ssize_t, stdint, unistd.
5441         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5442         areadlink, stdint.
5443
5444         careadlinkat: new module
5445         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5446         * modules/careadlinkat: New files, written by me with
5447         a review and feedback from Ben Pfaff in
5448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5449
5450 2011-04-01  Bruno Haible  <bruno@clisp.org>
5451
5452         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5453         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5454         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5455         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5456         Reported by Bruce Korb <bruce.korb@gmail.com>.
5457
5458 2011-04-01  Bruno Haible  <bruno@clisp.org>
5459
5460         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5461         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5462         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5463         * modules/wcpcpy (Depends-on): Add extensions.
5464         * modules/wcpncpy (Depends-on): Likewise.
5465         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5466         systems.
5467         * doc/posix-functions/wcpncpy.texi: Likewise.
5468         * doc/posix-functions/wcwidth.texi: Likewise.
5469
5470 2011-03-31  Eric Blake  <eblake@redhat.com>
5471
5472         nonblocking: fix mingw test failures
5473         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5474         non-blocking flag on regular file.
5475         (get_nonblocking_flag): Set errno on invalid fd.
5476         * tests/test-nonblocking.c (main): Avoid test failure on
5477         directories if fchdir is not active.
5478         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5479
5480 2011-03-31  Bruno Haible  <bruno@clisp.org>
5481
5482         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5483         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5484         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5485         Reported by Simon Josefsson <simon@josefsson.org>.
5486
5487 2011-03-31  Bruno Haible  <bruno@clisp.org>
5488         and Eric Blake  <eblake@redhat.com>
5489
5490         nonblocking: new module
5491         * modules/nonblocking: New module.
5492         * modules/nonblocking-tests: Likewise.
5493         * lib/nonblocking.h: New file.
5494         * lib/nonblocking.c: Likewise.
5495         * tests/test-nonblocking.c: New test.
5496         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5497
5498 2011-03-30  Bruno Haible  <bruno@clisp.org>
5499
5500         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5501         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5502         instead of 'printf' format for GCC >= 4.4.
5503         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5504         (fprintf, printf, vfprintf, vprintf): Declare with
5505         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5506         the system's vfprintf() function.
5507         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5508
5509 2011-03-30  Eric Blake  <eblake@redhat.com>
5510
5511         passfd: fix scoping bug
5512         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5513         before sendmsg/recvmsg.
5514
5515         passfd: standardize coding conventions
5516         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5517         can be learned at compile time.
5518         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5519         ifdefs.
5520         (sendfd, recvfd): Follow gnulib code conventions.
5521
5522         passfd: fix incorrect sendmsg arguments
5523         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5524         incorrect msg_controllen value.
5525         * modules/passfd-tests (Depends-on): Check for alarm.
5526         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5527         Reported by Bastien ROUCARIES.
5528
5529 2011-03-30  Bruno Haible  <bruno@clisp.org>
5530
5531         c-strcasestr: Relicense under LGPLv2+.
5532         * modules/c-strcasestr (License): Change to LGPLv2+.
5533         Requested by Eric Blake, for libvirt.
5534
5535 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5536
5537         * users.txt: Add libidn2.  Fix libtasn1 link.
5538
5539 2011-03-30  Jim Meyering  <meyering@redhat.com>
5540
5541         tests: readlink* ("",... fails with EINVAL on newer kernels
5542         readlink and readlinkat have typically failed with ENOENT for
5543         the invalid, empty file name,  "".  However, with the advent
5544         of linux-2.6.39, they fail with EINVAL.
5545         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5546         when operating on the empty file name.
5547         * tests/test-readlink.h (test_readlink): Likewise.
5548
5549 2011-03-29  Bruno Haible  <bruno@clisp.org>
5550
5551         Relicense some modules under LGPLv2+, for libidn2.
5552         * modules/array-mergesort (License): Change to LGPLv2+.
5553         * modules/c-strcaseeq (License): Likewise.
5554         * modules/striconveh (License): Likewise.
5555         * modules/striconveha (License): Likewise.
5556         * modules/uniconv/base (License): Likewise.
5557         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5558         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5559         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5560         * modules/unictype/base (License): Likewise.
5561         * modules/unictype/bidiclass-of (License): Likewise.
5562         * modules/unictype/category-M (License): Likewise.
5563         * modules/unictype/category-none (License): Likewise.
5564         * modules/unictype/category-of (License): Likewise.
5565         * modules/unictype/category-test (License): Likewise.
5566         * modules/unictype/category-test-withtable (License): Likewise.
5567         * modules/unictype/combining-class (License): Likewise.
5568         * modules/unictype/joiningtype-of (License): Likewise.
5569         * modules/unictype/scripts (License): Likewise.
5570         * modules/uninorm/base (License): Likewise.
5571         * modules/uninorm/canonical-decomposition (License): Likewise.
5572         * modules/uninorm/composition (License): Likewise.
5573         * modules/uninorm/decompose-internal (License): Likewise.
5574         * modules/uninorm/decomposition-table (License): Likewise.
5575         * modules/uninorm/nfc (License): Likewise.
5576         * modules/uninorm/nfd (License): Likewise.
5577         * modules/uninorm/u32-normalize (License): Likewise.
5578         * modules/unistr/base (License): Likewise.
5579         * modules/unistr/u32-cpy (License): Likewise.
5580         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5581         * modules/unistr/u32-to-u8 (License): Likewise.
5582         * modules/unistr/u32-uctomb (License): Likewise.
5583         * modules/unistr/u8-check (License): Likewise.
5584         * modules/unistr/u8-mblen (License): Likewise.
5585         * modules/unistr/u8-mbtouc (License): Likewise.
5586         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5587         * modules/unistr/u8-mbtoucr (License): Likewise.
5588         * modules/unistr/u8-prev (License): Likewise.
5589         * modules/unistr/u8-strlen (License): Likewise.
5590         * modules/unistr/u8-to-u32 (License): Likewise.
5591         * modules/unistr/u8-uctomb (License): Likewise.
5592         * modules/unitypes (License): Likewise.
5593         Requested by Simon Josefsson.
5594
5595 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5596
5597         lib-symbol-visibility: Add a notice.
5598         * modules/lib-symbol-visibility (Notice): New field.
5599
5600 2011-03-29  Bruno Haible  <bruno@clisp.org>
5601
5602         getaddrinfo: Doc fix.
5603         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5604         section "fixed in Gnulib".
5605
5606 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5607
5608         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5609         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5610
5611 2011-03-26  Bruno Haible  <bruno@clisp.org>
5612
5613         unictype/property-byname: Reduce the number of load-time relocations.
5614         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5615         (UC_PROPERTY_INDEX_*): New enumeration values.
5616         (uc_property_byname): Convert an index from the lookup table to an
5617         uc_property_t.
5618         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5619         values.
5620
5621 2011-03-26  Bruno Haible  <bruno@clisp.org>
5622
5623         unictype/property-byname: Allow omitted word separators and aliases.
5624         * lib/unictype/pr_byname.gperf: Add property names without word
5625         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5626         for 'space'.
5627
5628 2011-03-26  Bruno Haible  <bruno@clisp.org>
5629
5630         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5631         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5632         also hyphens to space.
5633         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5634         without spaces.
5635         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5636
5637 2011-03-26  Bruno Haible  <bruno@clisp.org>
5638
5639         unictype/joiningtype-byname: Recognize long names as well.
5640         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5641         a long name.
5642         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5643         unictype/joiningtype_byname.h.
5644         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5645         * lib/unictype/joiningtype_byname.gperf: New file.
5646         * modules/unictype/joiningtype-byname (Files): Add
5647         lib/unictype/joiningtype_byname.gperf.
5648         (Depends-on): Add gperf.
5649         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5650         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5651         long names.
5652
5653         Tests for module 'unictype/joiningtype-longname'.
5654         * modules/unictype/joiningtype-longname-tests: New file.
5655         * tests/unictype/test-joiningtype_longname.c: New file.
5656
5657         New module 'unictype/joiningtype-longname'.
5658         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5659         * lib/unictype/joiningtype_longname.c: New file.
5660         * modules/unictype/joiningtype-longname: New file.
5661         * modules/unictype/joiningtype-all (Depends-on): Add
5662         unictype/joiningtype-longname.
5663
5664 2011-03-26  Bruno Haible  <bruno@clisp.org>
5665
5666         unictype/bidiclass-byname: Recognize long names as well.
5667         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5668         name.
5669         * lib/unictype/bidi_byname.c: Include <string.h>,
5670         unictype/bidi_byname.h.
5671         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5672         * lib/unictype/bidi_byname.gperf: New file.
5673         * modules/unictype/bidiclass-byname (Files): Add
5674         lib/unictype/bidi_byname.gperf.
5675         (Depends-on): Add gperf.
5676         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5677         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5678         long names.
5679
5680         Tests for module 'unictype/bidiclass-longname'.
5681         * modules/unictype/bidiclass-longname-tests: New file.
5682         * tests/unictype/test-bidi_longname.c: New file.
5683
5684         New module 'unictype/bidiclass-longname'.
5685         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5686         * lib/unictype/bidi_longname.c: New file.
5687         * modules/unictype/bidiclass-longname: New file.
5688         * modules/unictype/bidiclass-all (Depends-on): Add
5689         unictype/bidiclass-longname.
5690
5691 2011-03-26  Bruno Haible  <bruno@clisp.org>
5692
5693         unictype/bidi*: Rename modules.
5694         * modules/unictype/bidiclass-all: Renamed from
5695         modules/unictype/bidicategory-all.
5696         * modules/unictype/bidiclass-name: Renamed from
5697         modules/unictype/bidiclass-name.
5698         (Description): Update.
5699         * modules/unictype/bidiclass-name-tests: Renamed from
5700         modules/unictype/bidicategory-name-tests.
5701         * modules/unictype/bidiclass-byname: Renamed from
5702         modules/unictype/bidicategory-byname.
5703         (Description): Update.
5704         * modules/unictype/bidiclass-byname-tests: Renamed from
5705         modules/unictype/bidicategory-byname-tests.
5706         * modules/unictype/bidiclass-of: Renamed from
5707         modules/unictype/bidicategory-of.
5708         (Description): Update.
5709         * modules/unictype/bidiclass-of-tests: Renamed from
5710         modules/unictype/bidicategory-of-tests.
5711         * modules/unictype/bidiclass-test: Renamed from
5712         modules/unictype/bidicategory-test.
5713         (Description): Update.
5714         * modules/unictype/bidiclass-test-tests: Renamed from
5715         modules/unictype/bidicategory-test-tests.
5716         * modules/unictype/bidicategory-all: New file, a simple redirection.
5717         * modules/unictype/bidicategory-name: Likewise.
5718         * modules/unictype/bidicategory-byname: Likewise.
5719         * modules/unictype/bidicategory-of: Likewise.
5720         * modules/unictype/bidicategory-test: Likewise.
5721         * modules/unictype/property-bidi-* (Dependencies): Update.
5722         * lib/unictype/bidi_*.c: Update comment.
5723
5724 2011-03-26  Bruno Haible  <bruno@clisp.org>
5725
5726         unictype/bidi*: Rename functions, part 2.
5727         * modules/unictype/bidicategory-name (configure.ac): Update required
5728         libunistring version.
5729         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5730
5731 2011-03-25  Bruno Haible  <bruno@clisp.org>
5732
5733         New module 'unictype/combining-class-all'.
5734         * modules/unictype/combining-class-all: New file.
5735
5736         Tests for module 'unictype/combining-class-byname'.
5737         * modules/unictype/combining-class-byname-tests: New file.
5738         * tests/unictype/test-combiningclass_byname.c: New file.
5739
5740         New module 'unictype/combining-class-byname'.
5741         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5742         * lib/unictype/combiningclass_byname.c: New file.
5743         * lib/unictype/combiningclass_byname.gperf: New file.
5744         * modules/unictype/combining-class-byname: New file.
5745
5746         Tests for module 'unictype/combining-class-longname'.
5747         * modules/unictype/combining-class-longname-tests: New file.
5748         * tests/unictype/test-combiningclass_longname.c: New file.
5749
5750         New module 'unictype/combining-class-longname'.
5751         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5752         * lib/unictype/combiningclass_longname.c: New file.
5753         * modules/unictype/combining-class-longname: New file.
5754
5755         Tests for module 'unictype/combining-class-name'.
5756         * modules/unictype/combining-class-name-tests: New file.
5757         * tests/unictype/test-combiningclass_name.c: New file.
5758
5759         New module 'unictype/combining-class-name'.
5760         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5761         * lib/unictype/combiningclass_name.c: New file.
5762         * modules/unictype/combining-class-name: New file.
5763
5764 2011-03-25  Bruno Haible  <bruno@clisp.org>
5765
5766         unictype/combining-class: Rename source files.
5767         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5768         of unictype/combining.h.
5769         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5770         Update.
5771         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5772         * modules/unictype/combining-class (Description): Fix.
5773         (Files, Makefile.am): Update.
5774         * tests/unictype/test-combiningclass.c: Renamed from
5775         tests/unictype/test-combining.c.
5776         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5777
5778 2011-03-25  Bruno Haible  <bruno@clisp.org>
5779
5780         unictype: Update list of canonical combining classes.
5781         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5782
5783 2011-03-25  Bruno Haible  <bruno@clisp.org>
5784
5785         unictype/category-byname: Recognize long names as well.
5786         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5787         a long name.
5788         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5789         unictype/categ_byname.h.
5790         (UC_CATEGORY_INDEX_*): New enumeration values.
5791         (uc_general_category_byname): Use uc_general_category_lookup and
5792         convert from index to value.
5793         * lib/unictype/categ_byname.gperf: New file.
5794         * modules/unictype/category-byname (Files): Add
5795         lib/unictype/categ_byname.gperf.
5796         (Depends-on): Add gperf.
5797         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5798         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5799         long names.
5800
5801         Tests for module 'unictype/category-longname'.
5802         * modules/unictype/category-longname-tests: New file.
5803         * tests/unictype/test-categ_longname.c: New file.
5804
5805         New module 'unictype/category-longname'.
5806         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5807         * lib/unictype/categ_longname.c: New file.
5808         * modules/unictype/category-longname: New file.
5809         * modules/unictype/category-all (Depends-on): Add it.
5810
5811 2011-03-25  Bruno Haible  <bruno@clisp.org>
5812
5813         Tests for module 'unictype/category-LC'.
5814         * modules/unictype/category-LC-tests: New file.
5815         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5816
5817         New module 'unictype/category-LC'.
5818         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5819         (UC_CATEGORY_LC): New declaration.
5820         (UC_CASED_LETTER): New macro.
5821         * lib/gen-uni-tables.c (is_category_LC): New function.
5822         (output_categories): Also handle category LC.
5823         (UC_CATEGORY_MASK_LC): New enumeration value.
5824         (general_category_byname): Also handle category LC.
5825         * lib/unictype/categ_LC.c: New file.
5826         * lib/unictype/categ_LC.h: New file, automatically generated.
5827         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5828         category LC.
5829         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5830         * modules/unictype/category-LC: New file.
5831         * modules/unictype/category-byname (Depends-on): Add
5832         unictype/category-LC.
5833         * modules/unictype/category-all (Depends-on): Likewise.
5834
5835 2011-03-25  Eric Blake  <eblake@redhat.com>
5836
5837         xmalloc: revert yesterday's regression
5838         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5839         realloc's underlying behavior (allowing allocation of zero-size
5840         objects, especially if malloc-gnu is also in use).
5841
5842 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5843
5844         maint.mk: add missing version to VC-tag
5845         * top/maint.mk: git tag was missing actual tag name; add it.
5846
5847         valgrind: do leak checking, and exit with code 1 on error (not 0)
5848         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5849         to VALGRIND.
5850
5851 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5852
5853         posix-modules: say what it does.
5854         * posix-modules: Add a line to the --help output saying what it does.
5855
5856 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5857
5858         xmalloc: Do not leak if underlying realloc is C99 compatible.
5859         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5860         This avoids a leak on C99-based systems.  See
5861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5862
5863 2011-03-24  Eric Blake  <eblake@redhat.com>
5864
5865         realloc: document portability problem
5866         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5867         passing 0 size to realloc.
5868
5869 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5870
5871         doc: update users.txt
5872         * users.txt: Add cvsps, tmpwatch
5873
5874 2011-03-23  Matt Rice  <ratmice@gmail.com>
5875
5876         doc: update users.txt
5877         * users.txt: Add gdb.
5878
5879 2011-03-23  Jim Meyering  <meyering@redhat.com>
5880
5881         doc: update users.txt
5882         Looking through matches up to the following URL (there are still
5883         several more pages), I found several projects that use gnulib:
5884         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5885         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5886         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5887
5888 2011-03-22  Bruno Haible  <bruno@clisp.org>
5889
5890         unictype/bidi*: Rename functions.
5891         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5892         uc_bidi_class, uc_is_bidi_class): New declarations.
5893         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5894         uc_bidi_category_byname.
5895         (uc_bidi_category_byname): New function.
5896         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5897         u_bidi_category_name.
5898         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5899         (uc_bidi_category_name): New function.
5900         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5901         uc_bidi_category.
5902         (uc_bidi_category): New function.
5903         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5904         uc_is_bidi_category. Invoke uc_bidi_class.
5905         (uc_is_bidi_category): New function.
5906         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5907         instead of uc_bidi_category_byname.
5908         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5909         instead of uc_bidi_category_name.
5910         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5911         uc_bidi_category.
5912         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5913         instead of uc_is_bidi_category.
5914
5915 2011-03-21  Bruno Haible  <bruno@clisp.org>
5916
5917         New module 'unictype/joininggroup-all'.
5918         * modules/unictype/joininggroup-all: New file.
5919
5920         Tests for module 'unictype/joininggroup-of'.
5921         * modules/unictype/joininggroup-of-tests: New file.
5922         * tests/unictype/test-joininggroup_of.c: New file.
5923         * tests/unictype/test-joininggroup_of.h: New file, automatically
5924         generated by gen-uni-tables.
5925
5926         New module 'unictype/joininggroup-of'.
5927         * modules/unictype/joininggroup-of: New file.
5928         * lib/unictype/joininggroup_of.c: New file.
5929         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5930         gen-uni-tables.
5931
5932         Tests for module 'unictype/joininggroup-byname'.
5933         * modules/unictype/joininggroup-byname-tests: New file.
5934         * tests/unictype/test-joininggroup_byname.c: New file.
5935
5936         New module 'unictype/joininggroup-byname'.
5937         * modules/unictype/joininggroup-byname: New file.
5938         * lib/unictype/joininggroup_byname.c: New file.
5939         * lib/unictype/joininggroup_byname.gperf: New file.
5940
5941         Tests for module 'unictype/joininggroup-name'.
5942         * modules/unictype/joininggroup-name-tests: New file.
5943         * tests/unictype/test-joininggroup_name.c: New file.
5944
5945         New module 'unictype/joininggroup-name'.
5946         * modules/unictype/joininggroup-name: New file.
5947         * lib/unictype/joininggroup_name.c: New file.
5948         * lib/unictype/joininggroup_name.h: New file.
5949
5950         New module 'unictype/joiningtype-all'.
5951         * modules/unictype/joiningtype-all: New file.
5952
5953         Tests for module 'unictype/joiningtype-of'.
5954         * modules/unictype/joiningtype-of-tests: New file.
5955         * tests/unictype/test-joiningtype_of.c: New file.
5956         * tests/unictype/test-joiningtype_of.h: New file, automatically
5957         generated by gen-uni-tables.
5958
5959         New module 'unictype/joiningtype-of'.
5960         * modules/unictype/joiningtype-of: New file.
5961         * lib/unictype/joiningtype_of.c: New file.
5962         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5963         gen-uni-tables.
5964
5965         Tests for module 'unictype/joiningtype-byname'.
5966         * modules/unictype/joiningtype-byname-tests: New file.
5967         * tests/unictype/test-joiningtype_byname.c: New file.
5968
5969         New module 'unictype/joiningtype-byname'.
5970         * modules/unictype/joiningtype-byname: New file.
5971         * lib/unictype/joiningtype_byname.c: New file.
5972
5973         Tests for module 'unictype/joiningtype-name'.
5974         * modules/unictype/joiningtype-name-tests: New file.
5975         * tests/unictype/test-joiningtype_name.c: New file.
5976
5977         New module 'unictype/joiningtype-name'.
5978         * modules/unictype/joiningtype-name: New file.
5979         * lib/unictype/joiningtype_name.c: New file.
5980
5981         unictype: Add support for Arabic shaping properties.
5982         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5983         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5984         declarations.
5985         (UC_JOINING_GROUP_*): New enumeration values.
5986         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5987         declarations.
5988         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5989         (unicode_joining_type): New variable.
5990         (UC_JOINING_GROUP_*): New enumeration values.
5991         (unicode_joining_group): New variable.
5992         (fill_arabicshaping, joining_type_as_c_identifier,
5993         output_joining_type_test, output_joining_type,
5994         joining_group_as_c_identifier, output_joining_group_test,
5995         output_joining_group): New functions.
5996         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5997         fill_arabicshaping and output_joining_type_test, output_joining_type,
5998         output_joining_group_test, output_joining_group.
5999         Reported by Simon Josefsson.
6000
6001 2011-03-21  Jim Meyering  <meyering@redhat.com>
6002
6003         strftime: fix a bug in yesterday's change
6004         * lib/strftime.c (add): Accommodate width's initial value of -1.
6005         Otherwise, nstrftime would copy uninitialized data into
6006         the result buffer.
6007
6008 2011-03-21  Jim Meyering  <meyering@redhat.com>
6009
6010         tests: add strftime-tests module
6011         * tests/test-strftime.c: New file.
6012         * modules/strftime-tests: New module.
6013
6014 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6015
6016         strftime: don't assume a byte count fits in 'int'
6017         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6018         found this problem by static analysis, using gcc -Wstrict-overflow
6019         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6020         on an integer overflow having undefined behavior, but it turns out
6021         that the argument is a size, which might not fit in 'int' anyway,
6022
6023 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6024
6025         stdio: don't require ignore_value around fwrite
6026
6027         This patch works around libc bug 11959
6028         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6029         Without this patch, applications must often write
6030         ignore_value (fwrite (...)) even though the ignore_value is
6031         not helpful here.  It's common to write many objects, using
6032         fwrite/printf/etc., and then use ferror to detect output error.
6033
6034         I considered making this patch optional, but decided against it,
6035         because libc is obviously being inconsistent here: there is no
6036         reason libc should insist that user code must inspect fwrite
6037         return's value without also insisting that it inspect printf's,
6038         putchar's, etc.  If user code wants to have a strict style where
6039         all these functions' values are checked (so that ferror need not
6040         be checked), we could add support for that style in a new gnulib
6041         module, but in the meantime it's better to be consistent and to
6042         support common usage.
6043
6044         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6045         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6046         that we are compiling in checking mode, and if not C++, and
6047         if not already wrapping fwrite for some other reason.
6048         (fwrite): #define to rpl_fwrite if the latter is defined.
6049
6050 2011-03-20  Bruno Haible  <bruno@clisp.org>
6051
6052         verror: Fix compilation error introduced on 2011-02-13.
6053         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6054         instead of __attribute__.
6055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6056
6057 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6058             Bruno Haible  <bruno@clisp.org>
6059
6060         socklen: do not depend on sys_socket
6061         While trying to modify Emacs to use gnulib's socklen module,
6062         I discovered a circular dependency: socklen depends on sys_socket
6063         and vice versa.  Emacs can use socklen, but it does not need
6064         sys_socket because it has its own substitute for sys/socket.h.
6065         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6066         gl_TYPE_SOCKLEN_T.
6067         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6068         gl_PREREQ_SYS_H_SOCKET.
6069         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6070         gl_PREREQ_SYS_H_SOCKET.
6071         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6072         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6073         * modules/socklen (Depends-on): Do not depend on sys_socket.
6074         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6075
6076 2011-03-20  Jim Meyering  <meyering@redhat.com>
6077
6078         maint.mk: sort file names *after* new transformation
6079         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6080         prefix would have led to an unwarranted failure in GNU parted.
6081         Sort after that transformation.
6082
6083 2011-03-19  Jim Meyering  <meyering@redhat.com>
6084
6085         maint.mk: fix po-file syntax-check rule
6086         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6087         Patch by Bruno Haible.
6088
6089 2011-03-19  Bruno Haible  <bruno@clisp.org>
6090
6091         socklen: Update comment.
6092         * m4/socklen.m4: Update comment about platforms.
6093
6094 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6095             Bruno Haible  <bruno@clisp.org>
6096
6097         inet_ntop, inet_pton: Simplify.
6098         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6099         documented to provide socklen_t and we already depend on sys_socket.
6100         * modules/inet_pton (Depends-on): Likewise.
6101         * lib/arpa_inet.in.h: Adjust comment.
6102
6103 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6104             Bruno Haible  <bruno@clisp.org>
6105
6106         netdb: Simplify.
6107         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6108         documented to provide socklen_t and we already depend on sys_socket.
6109         * lib/netdb.in.h: Adjust comment.
6110
6111 2011-03-19  Bruno Haible  <bruno@clisp.org>
6112
6113         sys_socket, netdb: Document problem with socklen_t.
6114         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6115         platforms.
6116         * doc/posix-headers/netdb.texi: Likewise.
6117
6118 2011-03-18  Eric Blake  <eblake@redhat.com>
6119
6120         maint.mk: let po check work in VPATH build
6121         * top/maint.mk (po_file): Allow cfg.mk override.
6122         (sc_po_check): Allow VPATH use.
6123         Reported by Jiri Denemark.
6124
6125 2011-03-16  Jim Meyering  <meyering@redhat.com>
6126
6127         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6128         Before, you would have had to create one .x-sc_ file per rule in order
6129         to exempt offending files.  Now, you may instead use a Make variable --
6130         usually defined in cfg.mk -- whose name identifies the affected rule.
6131         * top/maint.mk (_sc_excl): Define.
6132         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6133         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6134
6135 2011-03-13  Bruno Haible  <bruno@clisp.org>
6136
6137         ignore-value tests: Avoid warnings.
6138         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6139         empty for gcc < 3.4.
6140
6141 2011-03-13  Bruno Haible  <bruno@clisp.org>
6142
6143         passfd: Fix link error on Solaris.
6144         * modules/passfd (Description): Correct.
6145         (Depends-on): Add socketlib.
6146         (Link): New section.
6147         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6148
6149 2011-03-13  Bruno Haible  <bruno@clisp.org>
6150
6151         passfd: Fix link error on AIX 5.2.
6152         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6153
6154 2011-03-13  Bruno Haible  <bruno@clisp.org>
6155
6156         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6157         * lib/sys_socket.in.h: Include <stddef.h>.
6158         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6159         CMSG_FIRSTHDR. Remove unused variable.
6160
6161 2011-03-13  Bruno Haible  <bruno@clisp.org>
6162
6163         passfd: Fix compilation error on OpenBSD.
6164         * lib/passfd.c: Include <sys/uio.h>.
6165
6166 2011-03-13  Bruno Haible  <bruno@clisp.org>
6167
6168         passfd test: Fix warnings.
6169         * tests/test-passfd.c: Include <sys/wait.h>.
6170         (main): Fix typo.
6171
6172 2011-03-13  Bruno Haible  <bruno@clisp.org>
6173
6174         passfd module, part 4, tweaks.
6175         * tests/test-passfd.c: Reorder includes.
6176         (main): Fix perror and printf calls.
6177
6178 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6179
6180         passfd module, part 4.
6181         * modules/passfd-tests: New file.
6182         * tests/test-passfd.c: New file.
6183
6184 2011-03-13  Jim Meyering  <meyering@redhat.com>
6185
6186         Makefile: rely on GNU make; derive syntax-check rule names
6187         Rather than requiring that each sc_ rule be listed as a dependent
6188         of "check", use features of GNU make to derive the list.
6189         * Makefile (syntax-check-rules): Define.
6190         (check): Depend on the new variable, not the hard-coded list.
6191
6192 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6193             Bruno Haible  <bruno@clisp.org>
6194
6195         passfd module, part 3.
6196         * lib/passfd.h (recvfd): Add a flags argument.
6197         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6198         (recvfd): Add a flags argument.
6199         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6200         exists.
6201         * modules/passfd (Depends-on): Add cloexec.
6202         Suggested by Eric Blake.
6203
6204 2011-03-13  Bruno Haible  <bruno@clisp.org>
6205
6206         passfd module, part 2, tweaks.
6207         * modules/passfd (Files): Reorder.
6208         (Depends-on): Remove errno.
6209         (Include): Remove <sys/socket.h>, <sys/un.h>.
6210         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6211         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6212         specification header. Include <sys/socket.h> always. Don't include
6213         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6214         (sendfd): Clarify that it sets errno when it fails.
6215         (recvfd): Fix specification.
6216
6217 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6218
6219         passfd module, part 2.
6220         * modules/passfd: New file.
6221         * lib/passfd.h: New file.
6222         * lib/passfd.c: New file.
6223
6224 2011-03-12  Bruno Haible  <bruno@clisp.org>
6225
6226         wcswidth, mbswidth: Avoid integer overflow.
6227         * lib/wcswidth.c: Include <limits.h>.
6228         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6229         * lib/mbswidth.c: Include <limits.h>.
6230         (mbsnwidth): Avoid 'int' overflow.
6231         Reported by Jim Meyering.
6232
6233 2011-03-12  Bruno Haible  <bruno@clisp.org>
6234
6235         futimens, utimensat: Avoid endless recursion on Solaris 10.
6236         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6237         Solaris.
6238         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6239         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6240
6241 2011-03-11  Jim Meyering  <meyering@redhat.com>
6242
6243         maint.mk: relax a regexp to accommodate other formatting styles
6244         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6245         between "ngettext" and the following "(".
6246
6247 2011-03-11  Pádraig Brady <P@draigBrady.com>
6248
6249         maint.mk: suppress a false positive warning
6250         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6251         diagnostics are marked with ngettext.
6252
6253 2011-03-10  Eric Blake  <eblake@redhat.com>
6254
6255         wchar: add explicit dependencies, for Tru64
6256         * modules/mbmemcasecoll (Depends-on): Add wchar.
6257         * modules/mbtowc (Depends-on): Likewise.
6258         * modules/vasnprintf (Depends-on): Likewise.
6259         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6260         * modules/wctomb (Depends-on): Likewise.
6261         Reported by Peter O'Gorman.
6262
6263 2011-03-08  Bruno Haible  <bruno@clisp.org>
6264
6265         passfd module, part 1, tweaks.
6266         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6267         Improve indentation. Improve AC_MSG_CHECKING messages.
6268         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6269         gl_SOCKET_FAMILIES.
6270
6271 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6272
6273         passfd module, part 1.
6274         * m4/afunix.m4: New file.
6275         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6276         sockets.
6277
6278 2011-03-08  Bruno Haible  <bruno@clisp.org>
6279
6280         regex-quote: New API.
6281         * lib/regex-quote.h: Include <stdbool.h>.
6282         (struct regex_quote_spec): New type.
6283         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6284         New declarations.
6285         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6286         'const struct regex_quote_spec *' argument.
6287         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6288         (pcre_special): New constant.
6289         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6290         New functions.
6291         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6292         'const struct regex_quote_spec *' argument.
6293         * modules/regex-quote (Depends-on): Add stdbool.
6294         * tests/test-regex-quote.c (check): Update for new API. Add test for
6295         anchored results.
6296         * NEWS: Mention the API change.
6297         Reported by Reuben Thomas and Eric Blake.
6298
6299 2011-03-06  Bruno Haible  <bruno@clisp.org>
6300
6301         regex-quote: Fix creation of POSIX extended regular expressions.
6302         * lib/regex-quote.c (ere_special): Add grouping and alternation
6303         operators.
6304
6305 2011-03-05  Bruno Haible  <bruno@clisp.org>
6306
6307         doc: Improve doc regarding autopoint vs. gnulib.
6308         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6309         disable autopoint while running autoreconf.
6310         Suggested by Ralf Wildenhues.
6311
6312 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6313
6314         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6315         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6316
6317 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6318
6319         parse-duration: remove xalloc.h dependency
6320         * lib/parse-duration.c (parse_period): handle NULL return from
6321         strdup instead of calling xstrdup().
6322         * modules/parse-duration: remove "xalloc" dependency
6323
6324 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6325
6326         bootstrap: honor m4_base when running aclocal
6327         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6328
6329 2011-03-02  Jim Meyering  <meyering@redhat.com>
6330
6331         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6332         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6333         on request from Matt Booth.
6334
6335 2011-03-01  Eric Blake  <eblake@redhat.com>
6336
6337         test-link: work on Hurd
6338         * tests/test-link.h (test_link): Hurd rejects linking directories
6339         with EISDIR instead of the POSIX-mandated EPERM.
6340
6341 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6342
6343         stdio: simplify by moving files to printf-posix, sigpipe
6344         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6345         since this symbol is needed only if printf is replaced.
6346         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6347         Require gl_ASM_SYMBOL_PREFIX.
6348         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6349         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6350         (Depends-on): Add 'raise'.
6351         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6352         * modules/stdio (Files): Remove lib/stdio-write.c,
6353         m4/asm-underscore.m4.
6354         (Depends-on): Remove 'raise'.
6355
6356         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6357         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6358         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6359         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6360
6361 2011-02-28  Bruno Haible  <bruno@clisp.org>
6362
6363         localcharset: Assume ANSI C behaviour of free().
6364         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6365         calling free().
6366         Suggested by Simon Josefsson <simon@josefsson.org>.
6367
6368 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6369             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6370             Bruno Haible  <bruno@clisp.org>  (tiny change)
6371
6372         On Cygwin, use /proc file system instead of win32 API.
6373         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6374         Win32 file names.
6375         (DllMain): Simplify by removing Cygwin specific code.
6376         (find_shared_library_fullname): Use Linux specific implementation also
6377         for Cygwin.
6378         (get_shared_library_fullname): Update accordingly.
6379         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6380         Win32 file names.
6381         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6382         Cygwin specific code.
6383
6384 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6385             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6386
6387         Fix OpenMP flag detection for various Fortran compilers.
6388         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6389         OpenMP-conditional compilation construct, to force compile
6390         failure with missing OpenMP flag.
6391         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6392
6393 2011-02-25  Eric Blake  <eblake@redhat.com>
6394
6395         strstr: expand test coverage
6396         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6397         compilation.
6398         * tests/test-memmem.c (main): Duplicate tests.
6399         * tests/test-strcasestr.c (main): Likewise.
6400         * tests/test-c-strcasestr.c (main): Likewise.
6401
6402 2011-02-25  Jim Meyering  <meyering@redhat.com>
6403
6404         maint.mk: detect missing-NL-at-EOF, too
6405         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6406         it also detects when a file lacks a newline at EOF.
6407         (require_exactly_one_NL_at_EOF_): Renamed from
6408         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6409         since people may well have .x-sc_... file names tied to the
6410         existing name.  Suggested by Eric Blake.
6411
6412 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6413
6414         dirname: move m4/dos.m4 functionality into lib/dosname.h
6415
6416         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6417         extracts symbols from it, puts them into config.h; but it's much
6418         easier to use the symbols directly.  filename.h already does this,
6419         but it disagrees with dos.m4 in some respects.  This patch
6420         introduces a different include file dosname.h that packages up
6421         dos.m4, and then later we can work on merging filename.h and
6422         dosname.h.  Applications that need only the easy-to-configure
6423         symbols should consider including dosname.h rather than dirname.h.
6424         * NEWS: Mention incompatible changes.
6425         * m4/dos.m4: Remove.
6426         * lib/dosname.h, modules/dosname: New files.
6427         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6428         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6429         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6430         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6431         Include dosname.h, not dirname.h.
6432         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6433         Include dosname.h, for definitions of symbols like ISSLASH
6434         that used to be in config.h.
6435         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6436         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6437         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6438         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6439         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6440         * modules/rmdir (Files): Likewise.
6441         * modules/stat (Files): Likewise.
6442         * modules/unlink (Files): Likewise.
6443         * modules/dirname-lgpl (Depends-on): Add dosname.
6444         * modules/lstat (Depends-on): Likewise.
6445         * modules/openat (Depends-on): Likewise.
6446         * modules/rmdir (Depends-on): Likewise.
6447         * modules/savewd (Depends-on): Likewise.
6448         * modules/stat (Depends-on): Likewise.
6449         * modules/unlink (Depends-on): Likewise.
6450         * modules/openat (Depends-on): Remove dirname-lgpl.
6451         * modules/savewd (Depends-on): Likewise.
6452         * tests/test-dirname.c: Do not use removed symbols like
6453         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6454         the remaining symbols, e.g., ISSLASH ('\\').
6455
6456 2011-02-25  Eric Blake  <eblake@redhat.com>
6457
6458         strstr: revert patches that introduced bug and pessimization
6459         * lib/str-two-way.h: Add another reference.
6460         (two_way_short_needle, two_way_long_needle): Revert changes from
6461         2011-02-24; they pessimize search speed.
6462         (critical_factorization): Partially revert changes from
6463         2010-06-22; they violate the requirement that the left half of the
6464         needle be smaller than the period of the needle.
6465
6466 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6467
6468         filenamecat: remove unnecessary dependency on dirname-lgpl
6469         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6470         is no direct dependency, just an indirect one via filenamecat-lgpl.
6471
6472         remove: remove unnecessary use of m4/dos.m4
6473         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6474         * modules/remove (FILES): Remove m4/dos.m4.
6475
6476         * lib/openat-proc.c: Don't include dirname.h; not needed.
6477
6478         backupfile: remove unnecessary use of m4/dos.m4
6479         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6480         of its symbols are used by the backupfile code.  backupfile.c does
6481         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6482         for the rare case of programs that want all their backup file
6483         names to live within 8+3 limits, and dos.m4 doesn't address that.
6484         * modules/backupfile (Files): Remove m4/dos.m4.
6485
6486 2011-02-24  Jim Meyering  <meyering@redhat.com>
6487
6488         strstr: fix a bug whereby strstr would mistakenly return NULL
6489         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6490         in period calculation.
6491         (two_way_long_needle): Likewise.
6492         The original problem was reported by Mike Stump in
6493         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6494         Ralf Wildenhues provided the short needle and haystack.
6495         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6496         Add a more involved test to trigger the bug in two_way_long_needle.
6497
6498 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6499
6500         gnulib-tool: remove use of bold display in help screen
6501         * gnulib-tool (func_usage): Do not use bold display anymore in the
6502         help screen.  That was just meant to be a temporary emphasis for a
6503         backward-incompatible change.
6504
6505 2011-02-23  Bruno Haible  <bruno@clisp.org>
6506
6507         Fix misindentation of preprocessor directives.
6508         * lib/argp-namefrob.h: Reindent preprocessor directives.
6509         * lib/getopt_int.h (struct _getopt_data): Likewise.
6510         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6511         * lib/vasnprintf.c (decode_long_double): Likewise.
6512         * tests/test-argmatch.c: Insert blank lines, for clarity.
6513         * tests/test-exclude.c: Likewise.
6514
6515 2011-02-22  Bruno Haible  <bruno@clisp.org>
6516
6517         ioctl: Fix for MacOS X in 64-bit mode.
6518         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6519         value.
6520         Suggested by Eric Blake.
6521         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6522
6523 2011-02-22  Jim Meyering  <meyering@redhat.com>
6524
6525         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6526         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6527         in lib/.
6528
6529 2011-02-22  Eric Blake  <eblake@redhat.com>
6530
6531         maint: avoid any CDPATH issue
6532         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6533
6534         maint: adjust cpp indentation for my modules, as well
6535         * Makefile (sc_cpp_indent_check): Add my name.
6536         * lib/fbufmode.c: Filter through cppi.
6537         * lib/fpurge.c: Likewise.
6538         * lib/freadable.c: Likewise.
6539         * lib/freading.c: Likewise.
6540         * lib/fwritable.c: Likewise.
6541         * lib/fwriting.c: Likewise.
6542         * lib/sigaction.c: Likewise.
6543
6544 2011-02-22  Jim Meyering  <meyering@redhat.com>
6545
6546         maint: adjust cpp indentation to reflect nesting depth
6547         I.e., in a block of code that begins with an unnested "#if",
6548         put one space between the "#" in column 1 and following token.
6549         For example,
6550         -#include <sys/vfs.h>
6551         +# include <sys/vfs.h>
6552         Do this only in .c files that are part of a module I maintain.
6553         * lib/linkat.c: Filter through cppi.
6554         * lib/nanosleep.c: Likewise.
6555         * lib/openat.c: Likewise.
6556         * lib/openat-die.c: Likewise.
6557         * lib/dup3.c: Likewise.
6558         * lib/fchownat.c: Likewise.
6559         * lib/flock.c: Likewise.
6560         * lib/fsync.c: Likewise.
6561         * lib/fts.c: Likewise.
6562         * lib/getpass.c: Likewise.
6563         * lib/gettimeofday.c: Likewise.
6564         * lib/userspec.c: Likewise.
6565         * Makefile (sc_cpp_indent_check): New rule, to check this.
6566
6567 2011-02-22  Bruno Haible  <bruno@clisp.org>
6568
6569         New module 'wctomb'.
6570         * lib/stdlib.in.h (wctomb): New declaration.
6571         * lib/wctomb.c: New file.
6572         * lib/wctomb-impl.h: New file.
6573         * m4/wctomb.m4: New file.
6574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6575         REPLACE_WCTOMB.
6576         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6577         REPLACE_WCTOMB.
6578         * modules/wctomb: New file.
6579         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6580         * doc/posix-functions/wctomb.texi: Mention the new module.
6581         * modules/wctob (Depends-on): Add wctomb.
6582
6583 2011-02-22  Bruno Haible  <bruno@clisp.org>
6584
6585         New module 'mbtowc'.
6586         * lib/stdlib.in.h (mbtowc): New declaration.
6587         * lib/mbtowc.c: New file.
6588         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6589         * m4/mbtowc.m4: New file.
6590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6591         REPLACE_MBTOWC.
6592         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6593         REPLACE_MBTOWC.
6594         * modules/mbtowc: New file.
6595         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6596         * doc/posix-functions/mbtowc.texi: Mention the new module.
6597         * modules/btowc (Depends-on): Add mbtowc.
6598
6599 2011-02-22  Bruno Haible  <bruno@clisp.org>
6600
6601         wcrtomb: Add more tests for native Windows platforms.
6602         * tests/test-wcrtomb-w32-1.sh: New file.
6603         * tests/test-wcrtomb-w32-2.sh: New file.
6604         * tests/test-wcrtomb-w32-3.sh: New file.
6605         * tests/test-wcrtomb-w32-4.sh: New file.
6606         * tests/test-wcrtomb-w32-5.sh: New file.
6607         * tests/test-wcrtomb-w32.c: New file.
6608         * modules/wcrtomb-tests (Files): Add them.
6609         (Makefile.am): Arrange to run these tests.
6610         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6611         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6612
6613 2011-02-20  Bruno Haible  <bruno@clisp.org>
6614
6615         wcrtomb: Enhance test.
6616         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6617
6618 2011-02-20  Bruno Haible  <bruno@clisp.org>
6619
6620         mbrtowc: Tiny optimization.
6621         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6622
6623 2011-02-20  Jim Meyering  <meyering@redhat.com>
6624
6625         test-exclude.c: remove unmatched #endif
6626         * tests/test-exclude.c: Remove stray #endif, left over from
6627         the change of a week ago.
6628
6629 2011-02-19  Jim Meyering  <meyering@redhat.com>
6630
6631         git-version-gen: skip "-dirty" check when appropriate
6632         * build-aux/git-version-gen: Don't run any git commands when the
6633         version string comes from .tarball-version.  Prior to this, we
6634         would run git update-index --refresh even from a just-unpacked
6635         tarball directory, and that could affect a .git/ directory in a
6636         parent of the build directory.  Reported by Mike Frysinger.
6637
6638 2011-02-19  Bruno Haible  <bruno@clisp.org>
6639
6640         unictype/property-byname: Reduce the size of the 'data' segment.
6641         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6642
6643 2011-02-19  Bruno Haible  <bruno@clisp.org>
6644
6645         unictype/scripts: Reduce the size of the 'data' segment.
6646         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6647         '%pic'.
6648         * lib/unictype/scripts_byname.gperf: Regenerated.
6649
6650 2011-02-19  Bruno Haible  <bruno@clisp.org>
6651
6652         stdint: Update documentation.
6653         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6654
6655 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6656
6657         stdint: omit redundant check for wchar.h
6658         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6659         always tests whether wchar.h exists, so remove the now-redundant test.
6660
6661 2011-02-18  Bruno Haible  <bruno@clisp.org>
6662
6663         stdint: Cut dependency to module 'wchar'.
6664         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6665         include the necessary prerequisites.
6666         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6667         * modules/stdint (Depends-on): Remove wchar.
6668         (Makefile.am): Substitute HAVE_WCHAR_H.
6669         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6670
6671 2011-02-18  Eric Blake  <eblake@redhat.com>
6672
6673         longlong: skip, rather than fail, on cross-compilation
6674         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6675         when cross-compiling; regression from 2011-02-16.
6676
6677 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6678
6679         * NEWS: Mention 2011-02-08 change to stdlib.
6680
6681 2011-02-17  Bruno Haible  <bruno@clisp.org>
6682
6683         getloadavg: Add comments about platforms.
6684         * m4/getloadavg.m4: Add comment.
6685         * lib/getloadavg.c: Likewise.
6686
6687 2011-02-17  Bruno Haible  <bruno@clisp.org>
6688
6689         getloadavg: Fix link error on Solaris 2.6.
6690         * modules/getloadavg (Link): New section.
6691         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6692         linking test-getloadavg.
6693         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6694         getloadavg.
6695
6696 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6697
6698         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6699         It was 'int', but this doesn't match the IRIX 6.5 manual.
6700         Suggested by Bruno Haible in
6701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6702
6703 2011-02-17  Bruno Haible  <bruno@clisp.org>
6704
6705         havelib: Fix comments.
6706         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6707         change.
6708
6709 2011-02-17  Bruno Haible  <bruno@clisp.org>
6710
6711         havelib: Update config.rpath.
6712         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6713
6714 2011-02-17  Bruno Haible  <bruno@clisp.org>
6715
6716         getloadavg test: Add some plausibility checks.
6717         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6718         is improbable.
6719
6720 2011-02-16  Eric Blake  <eblake@redhat.com>
6721
6722         maintainer-makefile: make syntax-check a no-op from tarballs
6723         * top/maint.mk (no-vc-detected): New rule.
6724         (local-checks-available): Use it to avoid hanging if someone tries
6725         'make syntax-check' from a tarball.  Also append to any non-syntax
6726         checks already defined in cfg.mk.
6727
6728 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6729
6730         longlong: tune, particularly for common case of c99
6731
6732         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6733         or running anything if c99, or if unsigned long long int does not
6734         work.  In either case, we know the answer without further tests.
6735         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6736         it at most once, and use its results for both long long int and
6737         unsigned long long int.  This is more likely to be efficient in
6738         the common case where the program wants to check for both long
6739         long int and unsigned long long int.
6740         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6741         since the answer is already known.
6742
6743 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6744
6745         getloadavg: set errno
6746         * lib/getloadavg.c: Set errno when returning -1.  If no other
6747         error number looks appropriate, set it to ENOSYS if the getloadavg
6748         looks like it can't possibly ever work, ENOTSUP otherwise.
6749         Suggested by Bruno Haible in
6750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6751
6752         getloadavg: trim unused parts and speed up 'configure'
6753         * NEWS: Document this.
6754         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6755         always compiled if getloadavg is absent.
6756         Move test code to ...
6757         * tests/test-getloadavg.c: New file, containing previous
6758         contents of test from lib/getloadavg.c.  It also contains
6759         suggestions by Bruno Haible in
6760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6761         * modules/getloadavg-tests: New file.
6762         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6763         Do tests in the same order as they're needed for getloadavg.c.
6764         Omit setgid-related tests that generate symbols KMEM_GROUP,
6765         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6766         Do only the tests that are needed to see whether the system has
6767         getloadavg, moving the other tests into ...
6768         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6769         NLIST_NAME_UNION; nobody should be using it.  Do not define
6770         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6771         relevant, as the user of this module shouldn't care how getloadavg
6772         is implemented.
6773
6774         getloadavg: omit unused var
6775         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6776
6777 2011-02-15  Jim Meyering  <meyering@redhat.com>
6778
6779         doc: update users.txt
6780         * users.txt: Update iwhd's URL.
6781
6782 2011-02-13  Bruno Haible  <bruno@clisp.org>
6783
6784         Consistent macro naming for macros that use GCC __attribute__.
6785         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6786         _ATTRIBUTE_NONNULL_.
6787         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6788         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6789         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6790         ATTRIBUTE_DEPRECATED.
6791         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6792         ATTRIBUTE_NORETURN.
6793         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6794         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6795         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6796         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6797         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6798         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6799         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6800         ATTRIBUTE_SENTINEL.
6801         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6802         ATTRIBUTE_RETURN_CHECK.
6803         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6804         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6805         ATTRIBUTE_NORETURN.
6806         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6807         Reported by Paul Eggert.
6808
6809 2011-02-13  Bruno Haible  <bruno@clisp.org>
6810
6811         Don't interfere with a program's definition of __attribute__.
6812         * lib/argp.h (__attribute__): Remove definition.
6813         (_GL_ATTRIBUTE_FORMAT): New macro.
6814         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6815         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6816         (_GL_ATTRIBUTE_FORMAT): New macro.
6817         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6818         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6819         GCC 3 or newer.
6820         * lib/error.h (__attribute__): Remove definition.
6821         (_GL_ATTRIBUTE_FORMAT): New macro.
6822         (error, error_at_line): Use it.
6823         * lib/hash.h (__attribute__): Remove definition.
6824         (ATTRIBUTE_WUR): Update definition. Define always.
6825         * lib/openat.h (__attribute__): Remove definition.
6826         (ATTRIBUTE_NORETURN): Update definition. Define always.
6827         * lib/sigpipe-die.h (__attribute__): Remove definition.
6828         (ATTRIBUTE_NORETURN): Update definition. Define always.
6829         * lib/vasnprintf.h (__attribute__): Remove definition.
6830         (_GL_ATTRIBUTE_FORMAT): New macro.
6831         (asnprintf, vasnprintf): Use it.
6832         * lib/xalloc.h (__attribute__): Remove definition.
6833         (ATTRIBUTE_NORETURN): Update definition. Define always.
6834         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6835         * lib/xmemdup0.h (__attribute__): Remove definition.
6836         (ATTRIBUTE_NORETURN): Update definition. Define always.
6837         * lib/xprintf.h (__attribute__): Remove definition.
6838         (_GL_ATTRIBUTE_FORMAT): New macro.
6839         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6840         * lib/xstrtol.h (__attribute__): Remove definition.
6841         (ATTRIBUTE_NORETURN): Update definition. Define always.
6842         * lib/xvasprintf.h (__attribute__): Remove definition.
6843         (_GL_ATTRIBUTE_FORMAT): New macro.
6844         (xasprintf, xvasprintf): Use it.
6845         * tests/test-argmatch.c (__attribute__): Remove definition.
6846         (ATTRIBUTE_NORETURN): Update definition. Define always.
6847         * tests/test-exclude.c (__attribute__): Remove definition.
6848         (ATTRIBUTE_NORETURN): Update definition. Define always.
6849         Reported by Paul Eggert.
6850
6851 2011-02-13  Bruno Haible  <bruno@clisp.org>
6852
6853         mbrtowc: Add more tests for native Windows platforms.
6854         * tests/test-mbrtowc-w32-1.sh: New file.
6855         * tests/test-mbrtowc-w32-2.sh: New file.
6856         * tests/test-mbrtowc-w32-3.sh: New file.
6857         * tests/test-mbrtowc-w32-4.sh: New file.
6858         * tests/test-mbrtowc-w32-5.sh: New file.
6859         * tests/test-mbrtowc-w32.c: New file.
6860         * modules/mbrtowc-tests (Files): Add them.
6861         (Makefile.am): Arrange to run these tests.
6862         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6863         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6864
6865 2011-02-13  Bruno Haible  <bruno@clisp.org>
6866
6867         mbrtowc: Work around native Windows bug.
6868         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6869         guess when no suitable locale for testing was found.
6870         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6871
6872 2011-02-13  Bruno Haible  <bruno@clisp.org>
6873
6874         mbsinit: Work around mingw bug.
6875         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6876         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6877         Windows.
6878         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6879
6880 2011-02-13  Bruno Haible  <bruno@clisp.org>
6881
6882         mbsinit: Don't crash for a NULL argument.
6883         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6884         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6885
6886 2011-02-13  Bruno Haible  <bruno@clisp.org>
6887
6888         Don't interfere with a program's definition of __attribute__.
6889         * lib/stdio.in.h (__attribute__): Remove definition.
6890         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6891         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6892         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6893         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6894         * lib/string.in.h (__attribute__): Remove definition.
6895         Reported by Paul Eggert.
6896
6897 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6898
6899         stdlib: don't get in the way of non-GCC __attribute__
6900         See thread starting at
6901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6902         Revert previous stdlib change, installing the following instead:
6903         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6904         to get in the way of a non-GCC compiler that supports __attribute__.
6905         (_GL_ATTRIBUTE_RETURN): New macro.
6906         (_Exit): Use it instead of __attribute__.
6907
6908 2011-02-12  Bruno Haible  <bruno@clisp.org>
6909
6910         quotearg test: Avoid test failure on mingw.
6911         * tests/test-quotearg.sh: Convert the locale identifier from native
6912         Windows syntax to Unix syntax.
6913
6914 2011-02-12  Bruno Haible  <bruno@clisp.org>
6915
6916         setlocale: Prefer gnulib's override over libintl's override.
6917         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6918         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6919         GNULIB_defined_setlocale is set.
6920
6921 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6922
6923         stdlib: support non-GCC __attribute__
6924
6925         Fix a serious and tricky problem encountered when attempting to
6926         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6927         5.5, but it crashed due to memory corruption on Solaris 10 with
6928         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6929         bits that are otherwise zero.  This tagging is optional inside
6930         Emacs but is preferred and is used when __attribute__ ((__aligned
6931         (8))) works, as it does with both recent-enough GCC and with Sun C
6932         5.11.  However, Sun C 5.11 is not GCC and does not #define
6933         __GNUC__ and __GNUC_MINOR__.
6934
6935         When I added the getloadavg module to Emacs, it brought in
6936         stdlib.in.h, which contained this fragment:
6937
6938            #ifndef __attribute__
6939            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6940            #  define __attribute__(Spec)   /* empty */
6941            # endif
6942            #endif
6943
6944         When files that include <stdlib.h> were compiled with Sun C 5.11,
6945         the above code disabled __attribute__ ((__aligned (8))), which
6946         caused variables to not be properly aligned, which eventually led
6947         to the pointer corruption mentioned above.  (This was a bit hard
6948         to diagnose, unfortunately.)
6949
6950         Several "#define __attribute__(X) /* empty */" code snippets need
6951         to be eradicated from Gnulib to work with non-GCC compilers that
6952         support __attribute__.  The Autoconf way to do this is to test for
6953         each kind of attribute that we want support for, and selectively
6954         enable that in source code.
6955
6956         Fix this problem just for stdlib.h, by adding a test for the
6957         __noreturn__ attribute, and change stdlib.in.h to use that test
6958         when needed.  This technique can be easily generalized to the
6959         other *.in.h files and attributes, and a similar technique can be
6960         used for *.h and *.c files.  This patch is enough to solve the
6961         problem for Emacs + getloadavg, and I thought I'd publish it for
6962         feedback before undertaking further, similar fixes in other
6963         modules.
6964
6965         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6966         because it's not needed for stdlib.h.  It merely substitutes the
6967         value directly into stdlib.h.  We may well need to #define it, or
6968         similar symbols, for other modules, but it's nice to also have an
6969         option to not #define it for applications like Emacs that do not
6970         need it.
6971
6972         * lib/stdlib.in.h (__attribute__): Do not #define.
6973         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6974         be defined only if the _Exit module is also used.
6975         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6977         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6978         platforms.
6979         * modules/_Exit (Files): Add m4/attribute.m4.
6980         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6981         * m4/attribute.m4: New file.
6982
6983 2011-02-12  Bruno Haible  <bruno@clisp.org>
6984
6985         wcsrtombs: Work around bug on native Windows.
6986         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6987         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6988         instead of len.
6989         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6990
6991 2011-02-12  Bruno Haible  <bruno@clisp.org>
6992
6993         mbsrtowcs: Work around bug on native Windows.
6994         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6995         against mingw bug.
6996         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6997
6998 2011-02-12  Bruno Haible  <bruno@clisp.org>
6999
7000         Avoid setlocale bugs in tests.
7001         * modules/btowc (Dependencies): Add setlocale.
7002         * modules/c-strcase (Dependencies): Likewise.
7003         * modules/mbmemcasecmp (Dependencies): Likewise.
7004         * modules/mbmemcasecoll (Dependencies): Likewise.
7005         * modules/mbrtowc (Dependencies): Likewise.
7006         * modules/mbscasecmp (Dependencies): Likewise.
7007         * modules/mbscasestr (Dependencies): Likewise.
7008         * modules/mbschr (Dependencies): Likewise.
7009         * modules/mbscspn (Dependencies): Likewise.
7010         * modules/mbsinit (Dependencies): Likewise.
7011         * modules/mbsncasecmp (Dependencies): Likewise.
7012         * modules/mbsnrtowcs (Dependencies): Likewise.
7013         * modules/mbspbrk (Dependencies): Likewise.
7014         * modules/mbspcasecmp (Dependencies): Likewise.
7015         * modules/mbsrchr (Dependencies): Likewise.
7016         * modules/mbsrtowcs (Dependencies): Likewise.
7017         * modules/mbsspn (Dependencies): Likewise.
7018         * modules/mbsstr (Dependencies): Likewise.
7019         * modules/nl_langinfo (Dependencies): Likewise.
7020         * modules/quotearg (Dependencies): Likewise.
7021         * modules/unicase/locale-language (Dependencies): Likewise.
7022         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7023         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7024         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7025         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7026         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7027         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7028         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7029         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7030         * modules/vasnprintf-posix (Dependencies): Likewise.
7031         * modules/wcrtomb (Dependencies): Likewise.
7032         * modules/wcsnrtombs (Dependencies): Likewise.
7033         * modules/wcsrtombs (Dependencies): Likewise.
7034
7035 2011-02-12  Bruno Haible  <bruno@clisp.org>
7036
7037         setlocale: Workaround native Windows bug.
7038         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7039         succeeds but sets LC_CTYPE to "C", report a failure.
7040         * tests/test-setlocale2.sh: New file.
7041         * tests/test-setlocale2.c: New file.
7042         * modules/setlocale-tests (Files): Add the new files.
7043         (Makefile.am): Enable test-setlocale2.sh test.
7044         * doc/posix-functions/setlocale.texi: Mention workaround.
7045
7046 2011-02-11  Bruno Haible  <bruno@clisp.org>
7047
7048         Tests for module 'setlocale'.
7049         * modules/setlocale-tests: New file.
7050         * tests/test-setlocale1.sh: New file.
7051         * tests/test-setlocale1.c: New file.
7052
7053         New module 'setlocale'.
7054         * lib/locale.in.h (setlocale): New declaration.
7055         * lib/setlocale.c: New file, based on
7056         gettext/gettext-runtime/intl/setlocale.c.
7057         * m4/setlocale.m4: New file.
7058         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7059         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7060         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7061         REPLACE_SETLOCALE.
7062         * modules/setlocale: New file.
7063         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7064         * doc/posix-functions/setlocale.texi: Mention the new module.
7065
7066 2011-02-11  Bruno Haible  <bruno@clisp.org>
7067
7068         Prepare for locale dependent tests on mingw.
7069         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7070         because it has the wrong locale encoding.
7071         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7072         French_France.1252 instead of "fr".
7073         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7074         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7075         because it has the wrong locale encoding.
7076         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7077         native Windows, try Turkish_Turkey.65001.
7078         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7079         Chinese_China.54936.
7080
7081         Prepare for locale dependent tests on mingw.
7082         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7083         differently.
7084         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7085         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7086         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7087         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7088
7089 2011-02-11  Eric Blake  <eblake@redhat.com>
7090
7091         strptime: avoid compiler warnings
7092         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7093         compiler warnings about dead code.
7094         Reported by Daniel P. Berrange.
7095
7096 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7097
7098         doc: update users.txt
7099         * users.txt: Add rcs.
7100
7101 2011-02-10  John W. Eaton  <jwe@gnu.org>
7102
7103         doc: update users.txt
7104         * users.txt: Add octave.
7105
7106 2011-02-10  Jim Meyering  <meyering@redhat.com>
7107
7108         doc: update users.txt
7109         * users.txt: Add iwhd.
7110
7111 2011-02-09  Bruno Haible  <bruno@clisp.org>
7112
7113         gnulib-tool: Make copyright notice adjustment more robust.
7114         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7115         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7116         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7117         License".
7118         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7119
7120 2011-02-06  Bruno Haible  <bruno@clisp.org>
7121
7122         New module 'towctrans'.
7123         * modules/towctrans: New file.
7124         * lib/wctype.in.h (towctrans): New declaration.
7125         * lib/towctrans.c: New file.
7126         * lib/towctrans-impl.h: New file.
7127         * m4/towctrans.m4: New file.
7128         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7129         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7130         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7131         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7132         * doc/posix-functions/towctrans.texi: Mention the new module.
7133
7134 2011-02-06  Bruno Haible  <bruno@clisp.org>
7135
7136         New module 'wctrans'.
7137         * modules/wctrans: New file.
7138         * lib/wctype.in.h (wctrans): New declaration.
7139         * lib/wctrans.c: New file.
7140         * lib/wctrans-impl.h: New file.
7141         * m4/wctrans.m4: New file.
7142         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7143         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7144         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7145         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7146         * doc/posix-functions/wctrans.texi: Mention the new module.
7147
7148 2011-02-06  Bruno Haible  <bruno@clisp.org>
7149
7150         New module 'iswctype'.
7151         * modules/iswctype: New file.
7152         * lib/wctype.in.h (iswctype): New declaration.
7153         * lib/iswctype.c: New file.
7154         * lib/iswctype-impl.h: New file.
7155         * m4/iswctype.m4: New file.
7156         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7157         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7158         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7159         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7160         * doc/posix-functions/iswctype.texi: Mention the new module and the
7161         HP-UX 11.00 problem.
7162
7163 2011-02-06  Bruno Haible  <bruno@clisp.org>
7164
7165         New module 'wctype'.
7166         * modules/wctype: Change to represent the wctype() substitute.
7167         * lib/wctype.in.h (wctype): New declaration.
7168         * lib/wctype.c: New file.
7169         * lib/wctype-impl.h: New file.
7170         * m4/wctype.m4: New file.
7171         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7172         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7173         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7174         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7175         * doc/posix-functions/wctype.texi: Mention the new module and the
7176         HP-UX 11.00 problem.
7177
7178 2011-02-06  Bruno Haible  <bruno@clisp.org>
7179
7180         wctype-h: Ensure wctype_t and wctrans_t are defined.
7181         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7182         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7183         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7184         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7185         HAVE_WCTRANS_T.
7186         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7187
7188 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7189
7190         flock: fix license typo
7191
7192         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7193         omitted.
7194
7195 2011-02-08  Bruno Haible  <bruno@clisp.org>
7196
7197         Split large sed scripts, for HP-UX sed.
7198         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7199         to avoid HP-UX limit of 99 commands, in the near future.
7200         * modules/stdlib (Makefile.am): Likewise.
7201         * modules/unistd (Makefile.am): Likewise.
7202         * modules/wchar (Makefile.am): Likewise.
7203         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7204         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7205         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7206
7207 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7208             Bruno Haible  <bruno@clisp.org>
7209
7210         stdlib: improve random_r modularization
7211         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7212         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7213         you also need the random_r module to get this material right.
7214         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7215         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7216         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7217
7218 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7219
7220         stdlib: don't depend on stdint
7221         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7222         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7223         be independent of whether stdint.h is needed.
7224         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7225         here, instead of ...
7226         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7227         struct random_data should be using the random_r module, not just
7228         the stdlib module (which wouldn't make sense: what package needs
7229         just struct random_data without also needing random_r?).
7230         * modules/stdlib (Depends-on): Remove stdint.
7231
7232         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7233         See the thread rooted at
7234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7235         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7236         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7237         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7238         __VMS)); previously it was always included (via fcntl--.h).
7239         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7240         hand; this is good enough for load averages.  Also, do not use
7241         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7242         flags directly if available and don't bother otherwise.  (Packages
7243         that need the extra reliability should use the modules that define
7244         these flags on older platforms that lack them.)
7245         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7246         fcntl-safer.
7247
7248 2011-02-08  Jim Meyering  <meyering@redhat.com>
7249
7250         di-set.h, ino-map.h: add multiple-inclusion guard
7251         Technically, the guard is required only for ino-map.h, due to its
7252         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7253         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7254         * lib/ino-map.h: Likewise.
7255
7256 2011-02-06  Bruno Haible  <bruno@clisp.org>
7257
7258         iswblank: Ensure declaration on glibc systems.
7259         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7260         * modules/iswblank (Dependencies): Add 'extensions'.
7261         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7262
7263 2011-02-06  Bruno Haible  <bruno@clisp.org>
7264
7265         New module 'iswblank'.
7266         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7267         * modules/iswblank: New file.
7268         * modules/wctype-h (Files): Remove lib/iswblank.c.
7269         (Makefile.am): Substitute GNULIB_ISWBLANK.
7270         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7271         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7272         (gl_WCTYPE_H_DEFAULTS): New macro.
7273         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7274         * modules/iswblank-tests: New file.
7275         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7276         * tests/test-wctype-h.c (main): Remove iswblank tests.
7277         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7278         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7279         of 'wctype-h'.
7280         * NEWS: Mention the change.
7281         * modules/mbchar (Depends-on): Add iswblank.
7282
7283 2011-02-08  Bruno Haible  <bruno@clisp.org>
7284
7285         di-set tests: Refactor.
7286         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7287         unnecessary includes.
7288         (ASSERT): Remove macro.
7289         (main): Make C90 compliant by avoiding variable declaration after
7290         statement.
7291         * modules/di-set-tests (Files): Add tests/macros.h.
7292
7293 2011-02-08  Bruno Haible  <bruno@clisp.org>
7294
7295         ino-map tests: Refactor.
7296         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7297         unnecessary includes.
7298         (ASSERT): Remove macro.
7299         (main): Make C90 compliant by avoiding variable declaration after
7300         statement.
7301         * modules/ino-map-tests (Files): Add tests/macros.h.
7302
7303 2011-02-08  Jim Meyering  <meyering@redhat.com>
7304
7305         di-set: add "const" to a cast
7306         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7307         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7308
7309 2011-02-06  Bruno Haible  <bruno@clisp.org>
7310
7311         Rename module 'wctype' to 'wctype-h'.
7312         * modules/wctype-h: Renamed from modules/wctype.
7313         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7314         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7315         (Files, Depends-on, Makefile.am): Update.
7316         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7317         (Files, Makefile.am): Update.
7318         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7319         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7320         * doc/posix-headers/wctype.texi: Update.
7321         * doc/posix-functions/iswalnum.texi: Update.
7322         * doc/posix-functions/iswalpha.texi: Update.
7323         * doc/posix-functions/iswblank.texi: Update.
7324         * doc/posix-functions/iswcntrl.texi: Update.
7325         * doc/posix-functions/iswdigit.texi: Update.
7326         * doc/posix-functions/iswgraph.texi: Update.
7327         * doc/posix-functions/iswlower.texi: Update.
7328         * doc/posix-functions/iswprint.texi: Update.
7329         * doc/posix-functions/iswpunct.texi: Update.
7330         * doc/posix-functions/iswspace.texi: Update.
7331         * doc/posix-functions/iswupper.texi: Update.
7332         * doc/posix-functions/iswxdigit.texi: Update.
7333         * doc/posix-functions/towlower.texi: Update.
7334         * doc/posix-functions/towupper.texi: Update.
7335         * NEWS: Mention the change.
7336         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7337         * modules/mbchar (Dependencies): Likewise.
7338         * modules/mbswidth (Dependencies): Likewise.
7339         * modules/quotearg (Dependencies): Likewise.
7340         * modules/regex (Dependencies): Likewise.
7341         * modules/wcscasecmp (Dependencies): Likewise.
7342         * modules/wcsncasecmp (Dependencies): Likewise.
7343         * modules/wcwidth (Dependencies): Likewise.
7344
7345 2011-02-06  Bruno Haible  <bruno@clisp.org>
7346
7347         New module 'wcswidth'.
7348         * modules/wcswidth: New file.
7349         * lib/wchar.in.h (wcswidth): New declaration.
7350         * lib/wcswidth.c: New file.
7351         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7352         * m4/wcswidth.m4: New file.
7353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7355         REPLACE_WCSWIDTH.
7356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7357         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7358         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7359         * doc/posix-functions/wcswidth.texi: Mention the new module.
7360
7361 2011-02-06  Bruno Haible  <bruno@clisp.org>
7362
7363         New module 'wcstok'.
7364         * modules/wcstok: New file.
7365         * lib/wchar.in.h (wcstok): New declaration.
7366         * lib/wcstok.c: New file.
7367         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7368         * m4/wcstok.m4: New file.
7369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7372         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7373         * doc/posix-functions/wcstok.texi: Mention the new module.
7374
7375 2011-02-06  Bruno Haible  <bruno@clisp.org>
7376
7377         New module 'wcsstr'.
7378         * modules/wcsstr: New file.
7379         * lib/wchar.in.h (wcsstr): New declaration.
7380         * lib/wcsstr.c: New file.
7381         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7382         * m4/wcsstr.m4: New file.
7383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7386         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7387         * doc/posix-functions/wcsstr.texi: Mention the new module.
7388
7389 2011-02-06  Bruno Haible  <bruno@clisp.org>
7390
7391         New module 'wcspbrk'.
7392         * modules/wcspbrk: New file.
7393         * lib/wchar.in.h (wcspbrk): New declaration.
7394         * lib/wcspbrk.c: New file.
7395         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7396         * m4/wcspbrk.m4: New file.
7397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7400         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7401         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7402
7403 2011-02-06  Bruno Haible  <bruno@clisp.org>
7404
7405         New module 'wcsspn'.
7406         * modules/wcsspn: New file.
7407         * lib/wchar.in.h (wcsspn): New declaration.
7408         * lib/wcsspn.c: New file.
7409         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7410         * m4/wcsspn.m4: New file.
7411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7414         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7415         * doc/posix-functions/wcsspn.texi: Mention the new module.
7416
7417 2011-02-06  Bruno Haible  <bruno@clisp.org>
7418
7419         New module 'wcscspn'.
7420         * modules/wcscspn: New file.
7421         * lib/wchar.in.h (wcscspn): New declaration.
7422         * lib/wcscspn.c: New file.
7423         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7424         * m4/wcscspn.m4: New file.
7425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7427         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7428         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7429         * doc/posix-functions/wcscspn.texi: Mention the new module.
7430
7431 2011-02-06  Bruno Haible  <bruno@clisp.org>
7432
7433         New module 'wcsrchr'.
7434         * modules/wcsrchr: New file.
7435         * lib/wchar.in.h (wcsrchr): New declaration.
7436         * lib/wcsrchr.c: New file.
7437         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7438         * m4/wcsrchr.m4: New file.
7439         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7440         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7441         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7442         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7443         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7444
7445 2011-02-06  Bruno Haible  <bruno@clisp.org>
7446
7447         New module 'wcschr'.
7448         * modules/wcschr: New file.
7449         * lib/wchar.in.h (wcschr): New declaration.
7450         * lib/wcschr.c: New file.
7451         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7452         * m4/wcschr.m4: New file.
7453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7455         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7456         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7457         * doc/posix-functions/wcschr.texi: Mention the new module.
7458
7459 2011-02-06  Bruno Haible  <bruno@clisp.org>
7460
7461         New module 'wcsdup'.
7462         * modules/wcsdup: New file.
7463         * lib/wchar.in.h (wcsdup): New declaration.
7464         * lib/wcsdup.c: New file.
7465         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7466         * m4/wcsdup.m4: New file.
7467         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7468         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7469         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7470         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7471         * doc/posix-functions/wcsdup.texi: Mention the new module.
7472
7473 2011-02-06  Bruno Haible  <bruno@clisp.org>
7474
7475         New module 'wcsxfrm'.
7476         * modules/wcsxfrm: New file.
7477         * lib/wchar.in.h (wcsxfrm): New declaration.
7478         * lib/wcsxfrm.c: New file.
7479         * lib/wcsxfrm-impl.h: New file.
7480         * m4/wcsxfrm.m4: New file.
7481         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7482         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7483         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7484         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7485         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7486
7487 2011-02-06  Bruno Haible  <bruno@clisp.org>
7488
7489         New module 'wcscoll'.
7490         * modules/wcscoll: New file.
7491         * lib/wchar.in.h (wcscoll): New declaration.
7492         * lib/wcscoll.c: New file.
7493         * lib/wcscoll-impl.h: New file.
7494         * m4/wcscoll.m4: New file.
7495         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7496         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7498         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7499         * doc/posix-functions/wcscoll.texi: Mention the new module.
7500
7501 2011-02-06  Bruno Haible  <bruno@clisp.org>
7502
7503         New module 'wcsncasecmp'.
7504         * modules/wcsncasecmp: New file.
7505         * lib/wchar.in.h (wcsncasecmp): New declaration.
7506         * lib/wcsncasecmp.c: New file.
7507         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7508         * m4/wcsncasecmp.m4: New file.
7509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7511         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7512         HAVE_WCSNCASECMP.
7513         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7514         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7515
7516 2011-02-06  Bruno Haible  <bruno@clisp.org>
7517
7518         New module 'wcscasecmp'.
7519         * modules/wcscasecmp: New file.
7520         * lib/wchar.in.h (wcscasecmp): New declaration.
7521         * lib/wcscasecmp.c: New file.
7522         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7523         * m4/wcscasecmp.m4: New file.
7524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7527         HAVE_WCSCASECMP.
7528         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7529         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7530
7531 2011-02-05  Bruno Haible  <bruno@clisp.org>
7532
7533         New module 'wcsncmp'.
7534         * modules/wcsncmp: New file.
7535         * lib/wchar.in.h (wcsncmp): New declaration.
7536         * lib/wcsncmp.c: New file.
7537         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7538         * m4/wcsncmp.m4: New file.
7539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7541         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7542         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7543         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7544
7545 2011-02-05  Bruno Haible  <bruno@clisp.org>
7546
7547         New module 'wcscmp'.
7548         * modules/wcscmp: New file.
7549         * lib/wchar.in.h (wcscmp): New declaration.
7550         * lib/wcscmp.c: New file.
7551         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7552         * m4/wcscmp.m4: New file.
7553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7556         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7557         * doc/posix-functions/wcscmp.texi: Mention the new module.
7558
7559 2011-02-05  Bruno Haible  <bruno@clisp.org>
7560
7561         New module 'wcsncat'.
7562         * modules/wcsncat: New file.
7563         * lib/wchar.in.h (wcsncat): New declaration.
7564         * lib/wcsncat.c: New file.
7565         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7566         * m4/wcsncat.m4: New file.
7567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7569         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7570         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7571         * doc/posix-functions/wcsncat.texi: Mention the new module.
7572
7573 2011-02-05  Bruno Haible  <bruno@clisp.org>
7574
7575         New module 'wcscat'.
7576         * modules/wcscat: New file.
7577         * lib/wchar.in.h (wcscat): New declaration.
7578         * lib/wcscat.c: New file.
7579         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7580         * m4/wcscat.m4: New file.
7581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7584         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7585         * doc/posix-functions/wcscat.texi: Mention the new module.
7586
7587 2011-02-05  Bruno Haible  <bruno@clisp.org>
7588
7589         New module 'wcpncpy'.
7590         * modules/wcpncpy: New file.
7591         * lib/wchar.in.h (wcpncpy): New declaration.
7592         * lib/wcpncpy.c: New file.
7593         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7594         * m4/wcpncpy.m4: New file.
7595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7597         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7598         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7599         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7600
7601 2011-02-05  Bruno Haible  <bruno@clisp.org>
7602
7603         New module 'wcsncpy'.
7604         * modules/wcsncpy: New file.
7605         * lib/wchar.in.h (wcsncpy): New declaration.
7606         * lib/wcsncpy.c: New file.
7607         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7608         * m4/wcsncpy.m4: New file.
7609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7611         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7612         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7613         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7614
7615 2011-02-05  Bruno Haible  <bruno@clisp.org>
7616
7617         New module 'wcpcpy'.
7618         * modules/wcpcpy: New file.
7619         * lib/wchar.in.h (wcpcpy): New declaration.
7620         * lib/wcpcpy.c: New file.
7621         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7622         * m4/wcpcpy.m4: New file.
7623         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7624         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7625         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7626         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7627         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7628
7629 2011-02-05  Bruno Haible  <bruno@clisp.org>
7630
7631         New module 'wcscpy'.
7632         * modules/wcscpy: New file.
7633         * lib/wchar.in.h (wcscpy): New declaration.
7634         * lib/wcscpy.c: New file.
7635         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7636         * m4/wcscpy.m4: New file.
7637         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7638         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7639         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7640         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7641         * doc/posix-functions/wcscpy.texi: Mention the new module.
7642
7643 2011-02-05  Bruno Haible  <bruno@clisp.org>
7644
7645         New module 'wcsnlen'.
7646         * modules/wcsnlen: New file.
7647         * lib/wchar.in.h (wcsnlen): New declaration.
7648         * lib/wcsnlen.c: New file.
7649         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7650         * m4/wcsnlen.m4: New file.
7651         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7652         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7654         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7655         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7656
7657 2011-02-05  Bruno Haible  <bruno@clisp.org>
7658
7659         New module 'wcslen'.
7660         * modules/wcslen: New file.
7661         * lib/wchar.in.h (wcslen): New declaration.
7662         * lib/wcslen.c: New file.
7663         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7664         * m4/wcslen.m4: New file.
7665         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7666         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7667         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7668         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7669         * doc/posix-functions/wcslen.texi: Mention the new module.
7670
7671 2011-02-05  Bruno Haible  <bruno@clisp.org>
7672
7673         New module 'wmemset'.
7674         * modules/wmemset: New file.
7675         * lib/wchar.in.h (wmemset): New declaration.
7676         * lib/wmemset.c: New file.
7677         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7678         * m4/wmemset.m4: New file.
7679         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7680         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7681         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7682         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7683         * doc/posix-functions/wmemset.texi: Mention the new module.
7684
7685 2011-02-05  Bruno Haible  <bruno@clisp.org>
7686
7687         New module 'wmemmove'.
7688         * modules/wmemmove: New file.
7689         * lib/wchar.in.h (wmemmove): New declaration.
7690         * lib/wmemmove.c: New file.
7691         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7692         * m4/wmemmove.m4: New file.
7693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7695         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7696         HAVE_WMEMMOVE.
7697         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7698         * doc/posix-functions/wmemmove.texi: Mention the new module.
7699
7700 2011-02-05  Bruno Haible  <bruno@clisp.org>
7701
7702         New module 'wmemcpy'.
7703         * modules/wmemcpy: New file.
7704         * lib/wchar.in.h (wmemcpy): New declaration.
7705         * lib/wmemcpy.c: New file.
7706         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7707         * m4/wmemcpy.m4: New file.
7708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7710         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7711         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7712         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7713
7714 2011-02-05  Bruno Haible  <bruno@clisp.org>
7715
7716         New module 'wmemcmp'.
7717         * modules/wmemcmp: New file.
7718         * lib/wchar.in.h (wmemcmp): New declaration.
7719         * lib/wmemcmp.c: New file.
7720         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7721         * m4/wmemcmp.m4: New file.
7722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7724         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7725         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7726         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7727
7728 2011-02-07  Jim Meyering  <meyering@redhat.com>
7729
7730         di-set, ino-map: new modules, from coreutils
7731         * lib/di-set.c: New file.
7732         * lib/di-set.h: Likewise.
7733         * lib/ino-map.c: Likewise.
7734         * lib/ino-map.h: Likewise.
7735         * modules/di-set: Likewise.
7736         * modules/di-set-tests: Likewise.
7737         * modules/ino-map: Likewise.
7738         * modules/ino-map-tests: Likewise.
7739         * tests/test-di-set.c: Likewise.
7740         * tests/test-ino-map.c: Likewise.
7741
7742 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7743
7744         getloadavg: merge minor changes from Emacs
7745
7746         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7747         (getloadavg): Use memset, not bzero.
7748
7749         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7750         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7751         clash (bug#86).
7752
7753 2010-11-14  Bruno Haible  <bruno@clisp.org>
7754
7755         Allow multiple gnulib generated replacements to coexist.
7756         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7757         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7758         * lib/langinfo.in.h (nl_item): Likewise.
7759         * lib/math.in.h (_NaN, NAN): Likewise.
7760         * lib/netdb.in.h (struct addrinfo): Likewise.
7761         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7762         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7763         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7764         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7765         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7766         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7767         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7768         pthread_mutexattr_init, pthread_mutexattr_settype,
7769         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7770         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7771         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7772         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7773         * lib/sched.in.h (struct sched_param): Likewise.
7774         * lib/se-selinux.in.h (security_class_t, security_context_t,
7775         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7776         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7777         lsetfilecon, fsetfilecon, security_check_context,
7778         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7779         Likewise.
7780         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7781         Likewise.
7782         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7783         _gl_function_taking_int_returning_void_t, union sigval,
7784         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7785         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7786         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7787         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7788         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7789         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7790         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7791         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7792         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7793         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7794         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7795         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7796         socklen_t, rpl_fd_isset): Likewise.
7797         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7798         * lib/sys_time.in.h (struct timeval): Likewise.
7799         * lib/sys_times.in.h (struct tms): Likewise.
7800         * lib/sys_utsname.in.h (struct utsname):
7801         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7802         * lib/unistd.in.h (getpagesize): Likewise.
7803         * lib/wchar.in.h (mbstate_t): Likewise.
7804         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7805         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7806         towlower, towupper): Likewise.
7807         Reported by Sam Steingold <sds@gnu.org>.
7808
7809 2011-02-05  Eric Blake  <eblake@redhat.com>
7810
7811         unsetenv: work around Haiku issues
7812         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7813         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7814
7815 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7816
7817         libposix: avoid calling error() within libposix
7818         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7819         is defined.
7820
7821 2011-02-05  Eric Blake  <eblake@redhat.com>
7822
7823         strerror_r-posix: port to cygwin
7824         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7825         implementation.
7826         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7827         * tests/test-strerror_r.c (main): Fix test.
7828         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7829         issue.
7830
7831 2011-02-05  Bruno Haible  <bruno@clisp.org>
7832
7833         New module 'wmemchr'.
7834         * modules/wmemchr: New file.
7835         * lib/wchar.in.h (wmemchr): New declaration.
7836         * lib/wmemchr.c: New file.
7837         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7838         * m4/wmemchr.m4: New file.
7839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7841         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7842         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7843         * doc/posix-functions/wmemchr.texi: Mention the new module.
7844
7845 2011-02-04  Eric Blake  <eblake@redhat.com>
7846
7847         fdopendir: detect FreeBSD bug
7848         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7849         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7850
7851 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7852
7853         stdbool: do not define HAVE_STDBOOL_H
7854         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7855         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7856         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7857         imported from the latest Autoconf git.  It was motivated by Emacs,
7858         which uses gnulib but does not need HAVE_STDBOOL_H.
7859
7860 2011-02-04  Bruno Haible  <bruno@clisp.org>
7861
7862         wcsnrtombs: Prepare for new module wwcsnrtombs.
7863         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7864         * lib/wcsnrtombs.c: Include it.
7865         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7866
7867         wcsrtombs: Prepare for new module wwcsrtombs.
7868         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7869         * lib/wcsrtombs.c: Include it.
7870         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7871
7872         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7873         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7874         * lib/mbsnrtowcs.c: Include it.
7875         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7876
7877         mbsrtowcs: Prepare for new module mbsrtowwcs.
7878         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7879         * lib/mbsrtowcs.c: Include it.
7880         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7881
7882 2011-02-04  Bruno Haible  <bruno@clisp.org>
7883
7884         vasnprintf: Reduce use of malloc for small format strings.
7885         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7886         (arguments): Add room for the first 7 arguments.
7887         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7888         (char_directives, u8_directives, u16_directives, u32_directives): Add
7889         room for the first 7 directives.
7890         * lib/printf-parse.c: Include <string.h>.
7891         (PRINTF_PARSE): Change memory handling code so that it uses the first
7892         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7893         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7894         Reported by Pádraig Brady <P@draigbrady.com>.
7895
7896 2011-01-31  Eric Blake  <eblake@redhat.com>
7897
7898         dup2: work around Haiku bug
7899         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7900         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7901         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7902         * tests/test-dup2.c (main): Enhance test.
7903
7904 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7905
7906         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7907         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7908         declared by eglibc 2.11.2.
7909         * lib/stdio.in.h: Likewise.
7910
7911 2011-01-31  Eric Blake  <eblake@redhat.com>
7912
7913         ignore-value: add missing test dependency
7914         * tests/test-ignore-value.c: Revert previous change; stdio.h
7915         provides off_t.
7916         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7917
7918 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7919
7920         mktime: clarify long_int width checking
7921         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7922         the top level, to make it clearer that the assumption about
7923         long_int width is being checked.  See
7924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7925
7926 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7927
7928         ignore-value: Fix self-test.
7929         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7930
7931 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7932
7933         TYPE_MAXIMUM: avoid theoretically undefined behavior
7934         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7935         negative number, which the C Standard says has undefined behavior.
7936         In practice this is not a problem, but might as well do it by the book.
7937         Reported by Rich Felker and Eric Blake; see
7938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7939         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7940         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7942         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7943         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7944         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7945
7946         mktime: #undef mktime before #defining it
7947         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7948
7949         mktime: systematically normalize tm_isdst comparisons
7950         * lib/mktime.c (isdst_differ): New function.
7951         (__mktime_internal): Use it systematically for all isdst comparisons.
7952         This completes the fix for libc BZ #6723, and removes the need for
7953         normalizing tm_isdst.  See
7954         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7955         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7956
7957         mktime: fix some integer overflow issues and sidestep the rest
7958
7959         This was prompted by a bug report by Benjamin Lindner for MinGW
7960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7961         His bug is due to signed integer overflow (0 - INT_MIN), and I
7962         I scanned through mktime.c looking for other integer overflow
7963         problems, fixing all the bugs I found.
7964
7965         Although the C Standard says the resulting code is still not safe
7966         in the presence of integer overflow, in practice it should be good
7967         enough for all real-world two's-complement implementations, except
7968         for debugging environments that deliberately trap on integer
7969         overflow (e.g., gcc -ftrapv).
7970
7971         * lib/mktime.c (WRAPV): New macro.
7972         (SHR): Also check that long_int and time_t shift right in the
7973         usual way, before using the fast-but-unportable method.
7974         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7975         used.  The code already assumed two's complement, so there's
7976         no need to test for alternatives.  All uses removed.
7977         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7978         the C standard.  Problem reported by Rich Felker in
7979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7980         (twos_complement_arithmetic): Also check long_int and time_t.
7981         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7982         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7983         (__mktime_internal): Avoid integer overflow with unary subtraction
7984         in two instances where -1 - X is an adequate replacement for -X,
7985         since the calculations are approximate.
7986
7987 2011-01-29  Eric Blake  <eblake@redhat.com>
7988
7989         mktime: avoid infinite loop
7990         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7991         type; behavior is still undefined but portable to all known targets.
7992         Reported by Rich Felker.
7993
7994 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7995
7996         rename, unlink, same-inode: Relicense.
7997         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7998         * modules/unlink (License): Likewise.
7999         * modules/same-inode (License): Likewise.
8000
8001 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8002
8003         mktime: avoid problems on NetBSD 5 / i386
8004         * lib/mktime.c (long_int): New type.  This works around a problem
8005         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8006         but time_t is 64 bits, and where I expect the existing code is
8007         wrong in some cases.
8008         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8009         (ydhms_diff): Bring back the compile-time check for wide-enough
8010         year and yday.
8011
8012         mktime: fix misspelling in comment
8013         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8014         This merges all recent glibc changes of importance.
8015
8016 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8017
8018         move-if-change: cope with concurrent mv of identical file.
8019         * build-aux/move-if-change (CMPPROG): Accept environment
8020         variable as an override for `cmp'.
8021         (usage): Document CMPPROG.
8022         Adjust comparison to drop stdout.  Cope with failure of mv if
8023         the target file exists and is identical to the source, for
8024         parallel builds.
8025         Report from H.J. Lu against binutils in PR binutils/12283.
8026
8027 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8028
8029         * users.txt: Mention sharutils.
8030
8031 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8032
8033         * users.txt: Mention OATH Toolkit.
8034
8035 2011-01-27  Bruno Haible  <bruno@clisp.org>
8036
8037         Prepare for supporting FreeBSD 10.
8038         * build-aux/config.libpath: Remove handling of freebsd1*.
8039
8040 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8041
8042         Prepare for supporting FreeBSD 10.
8043         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8044         match FreeBSD 10.0.
8045
8046 2011-01-27  Bruno Haible  <bruno@clisp.org>
8047
8048         vma-iter, get-rusage-as: Add OpenBSD support.
8049         * modules/vma-iter (configure.ac): Test for mquery.
8050         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8051         * lib/vma-iter.c: Include <sys/mman.h>.
8052         (vma_iterate): Add an implementation based on mquery().
8053         * lib/resource-ext.h (get_rusage_as): Update comments.
8054         * lib/get-rusage-as.c: Likewise.
8055         * lib/get-rusage-data.c: Likewise.
8056
8057 2011-01-26  Karl Berry  <karl@gnu.org>
8058
8059         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8060         variables to make it easier to override the makeinfo program used.
8061
8062 2011-01-26  Eric Blake  <eblake@redhat.com>
8063
8064         fcntl: work around Haiku F_DUPFD bugs
8065         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8066         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8067         cloexec bit on duplication.
8068         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8069
8070 2011-01-26  Bruno Haible  <bruno@clisp.org>
8071
8072         Enable memory leak tests on AIX.
8073         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8074         * tests/test-fprintf-posix3.c (main): Likewise.
8075
8076 2011-01-26  Bruno Haible  <bruno@clisp.org>
8077
8078         Tests for module 'get-rusage-data'.
8079         * modules/get-rusage-data-tests: New file.
8080         * tests/test-get-rusage-data.c: New file.
8081
8082         New module 'get-rusage-data'.
8083         * lib/resource-ext.h (get_rusage_data): New declaration.
8084         * lib/get-rusage-data.c: New file.
8085         * modules/get-rusage-data: New file.
8086
8087 2011-01-25  Bruno Haible  <bruno@clisp.org>
8088
8089         get-rusage-as: Allow for easier testing.
8090         * lib/resource-ext.h (get_rusage_as): Add comment.
8091         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8092         (main): New function for interactive testing.
8093
8094 2011-01-25  Bruno Haible  <bruno@clisp.org>
8095
8096         vma-iter: Treat Haiku like BeOS.
8097         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8098         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8099
8100 2011-01-25  Eric Blake  <eblake@redhat.com>
8101
8102         c-stack: fix regression on cygwin when libsigsegv is present
8103         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8104
8105 2011-01-24  Bruno Haible  <bruno@clisp.org>
8106
8107         vma-iter: Avoid empty intervals.
8108         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8109         on an empty interval.
8110
8111 2011-01-24  Jim Meyering  <meyering@redhat.com>
8112
8113         u64: remove unnecessary #include
8114         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8115
8116 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8117
8118         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8119         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8120
8121 2011-01-23  Bruno Haible  <bruno@clisp.org>
8122
8123         New module 'vma-iter'.
8124         * lib/vma-iter.h: New file.
8125         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8126         * modules/vma-iter: New file.
8127         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8128         for get_rusage_as_via_iterator.
8129         (vma_iterate_callback): New function.
8130         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8131         * modules/get-rusage-as (Depends-on): Add vma-iter.
8132
8133 2011-01-23  Bruno Haible  <bruno@clisp.org>
8134
8135         uninorm: Tweak includes.
8136         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8137         Reported by Jim Meyering.
8138
8139 2011-01-23  Bruno Haible  <bruno@clisp.org>
8140
8141         get-rusage-as: Improve on NetBSD.
8142         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8143         /proc, like on FreeBSD.
8144
8145 2011-01-23  Jim Meyering  <meyering@redhat.com>
8146
8147         xreadlink.h: remove unnecessary #include
8148         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8149
8150         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8151         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8152
8153 2011-01-23  Bruno Haible  <bruno@clisp.org>
8154
8155         get-rusage-as: Fix bug.
8156         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8157         original limit when aborting the first loop.
8158
8159 2011-01-23  Bruno Haible  <bruno@clisp.org>
8160
8161         wctype: Ensure valid C syntax.
8162         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8163         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8164
8165 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8166
8167         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8169         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8170         as they are needed only for configure's test case.
8171         This removes two unnecessary symbols from config.h.
8172
8173         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8174         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8176         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8177         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8178         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8179         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8180         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8181         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8182         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8183         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8185         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8186         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8187         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8188         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8189         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8190         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8191
8192 2011-01-21  Eric Blake  <eblake@redhat.com>
8193
8194         maintainer-makefile: work with older git for submodule check
8195         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8196         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8197         Reported by Matthias Bolte.
8198
8199         bootstrap: minor portability fixes
8200         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8201         (usage): Omit leading capital and trailing . on help phrases, per
8202         GNU Coding Standards.
8203         (check_versions, top level): Prefix messages with script name.
8204
8205 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8206
8207         bootstrap: support --no-git option
8208         * build-aux/bootstrap: Add --no-git option, to be used when
8209         --gnulib-srcdir points to the exact desired checkout.
8210
8211 2011-01-21  Eric Blake  <eblake@redhat.com>
8212
8213         strerror_r-posix: work with glibc 2.13
8214         * lib/strerror_r.c (strerror_r): Fix return type.
8215
8216 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8217             Bruno Haible  <bruno@clisp.org>
8218
8219         uN_strstr: New unit tests.
8220         * modules/unistr/u8-strstr-tests: New file.
8221         * modules/unistr/u16-strstr-tests: New file.
8222         * modules/unistr/u32-strstr-tests: New file.
8223         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8224         * tests/unistr/test-u8-strstr.c: New file.
8225         * tests/unistr/test-u16-strstr.c: New file.
8226         * tests/unistr/test-u32-strstr.c: New file.
8227
8228 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8229             Bruno Haible  <bruno@clisp.org>
8230
8231         Make uN_strstr functions O(n) worst-case.
8232         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8233         16-bit and 32-bit unit cases, use the unibyte algorithm from
8234         lib/mbsstr.c.
8235         * lib/unistr/u8-strstr.c: Include <string.h>.
8236         (UNIT_IS_UINT8_T): New macro.
8237         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8238         (U_STRLEN, U_STRNLEN): New macros.
8239         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8240         (U_STRLEN, U_STRNLEN): New macros.
8241         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8242         (configure.ac): Update required libunistring version.
8243         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8244         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8245         malloca.
8246         (configure.ac): Update required libunistring version.
8247         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8248         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8249         malloca.
8250         (configure.ac): Update required libunistring version.
8251
8252 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8253             Bruno Haible  <bruno@clisp.org>
8254
8255         Prepare for faster uN_strstr functions.
8256         * lib/str-kmp.h: Support definable UNITs.
8257         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8258         needle_len argument.
8259         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8260         * lib/mbscasestr.c (mbscasestr): Likewise.
8261
8262 2011-01-21  Pádraig Brady <P@draigBrady.com>
8263
8264         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8265         * tests/test-malloca.c (main): Unset the environment variable
8266         to greatly speed up the test.
8267         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8268         * modules/malloca-tests: Depend on unsetenv.
8269
8270 2011-01-21  Pádraig Brady <P@draigBrady.com>
8271
8272         ignore-value: remove stdint dependency
8273         * lib/ignore-value.h: Remove <stdint.h>
8274         * modules/ignore-value: Remove stdint dependency.
8275
8276 2011-01-21  Jim Meyering  <meyering@redhat.com>
8277
8278         maint.mk: adjust variable name to be consistent with other gl_ vars
8279         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8280         to be lower case.
8281
8282 2011-01-20  Jim Meyering  <meyering@redhat.com>
8283
8284         maint.mk: make "check" depend on public-submodule-commit by default
8285         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8286
8287 2011-01-20  Bruno Haible  <bruno@clisp.org>
8288
8289         mbfile, mbiter: Complete change from 2008-12-21.
8290         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8291         * m4/mbiter.m4 (gl_MBITER): Likewise.
8292
8293 2011-01-20  Jim Meyering  <meyering@redhat.com>
8294
8295         init.sh: insert space between each function name and "()"
8296         * tests/init.sh: Make it a little easier to see that a function's
8297         name is "warn_", and not "warn" when looking at the first part of
8298         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8299
8300 2011-01-20  Jim Meyering  <meyering@redhat.com>
8301
8302         mountlist: clean up code formatting
8303         * lib/mountlist.c (read_file_system_list): Split a long line,
8304         correct bracing style, use NULL in place of "(struct statfs *)0",
8305         don't parenthesize return value, add spaces around "=" and after
8306         ";-in-for-stmt".
8307
8308 2011-01-14  Markus Duft <mduft@gentoo.org>
8309
8310         mountlist: add support for Interix
8311         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8312         Apply statvfs to all entries of /dev/fs.
8313         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8314         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8315
8316 2011-01-20  Jim Meyering  <meyering@redhat.com>
8317
8318         maint.mk: improve the public-submodule-commit rule
8319         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8320         to suppress printing of its commands... unless V=1.
8321         Add git submodule's --quiet option to suppress printing of e.g.,
8322         "Entering gnulib" output.
8323         "cd" into $(srcdir) before running git submodule.
8324
8325 2011-01-20  Bruno Haible  <bruno@clisp.org>
8326
8327         include_next: Fix bug introduced on 2011-01-18.
8328         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8329         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8330         ac_cv_header_... variable if the second argument is not 'check'.
8331         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8332         gl_NEXT_HEADERS_INTERNAL.
8333
8334 2011-01-20  Bruno Haible  <bruno@clisp.org>
8335
8336         Allow the user to avoid the GNULIB_TEST_* macros.
8337         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8338         Suggested by Paul Eggert.
8339
8340 2011-01-14  Jim Meyering  <meyering@redhat.com>
8341
8342         bootstrap: avoid failure when there is no .gitmodules file
8343         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8344         has been assigned to, even when its value is the empty string.
8345         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8346         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8347         Reported by John W. Eaton <jwe@gnu.org>.
8348
8349 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8350
8351         assume <ctype.h>, ..., <time.h> exist
8352         For years gnulib has been assuming the existence of the headers
8353         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8354         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8355         them, since they don't appear to be needed.
8356         * README (Portability guidelines): Document this.
8357         * lib/flock.c: Assume <fcntl.h> exists.
8358         * lib/regex_internal.h: Assume <locale.h> exists.
8359         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8360         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8361         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8362         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8363         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8364         * m4/regex.m4 (gl_REGEX): Likewise.
8365         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8366         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8367         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8368         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8369         * tests/test-argp.c: Likewise.
8370         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8371
8372         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8373         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8374         AA_APPLE_UNIVERSAL_BUILD.  See
8375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8376         * NEWS: Document this.
8377
8378 2011-01-19  Eric Blake  <eblake@redhat.com>
8379
8380         c-stack: assume stack overflow if SA_SIGINFO unsupported
8381         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8382         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8383         sigaction will work.
8384         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8385         behavior match Linux.
8386         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8387
8388         stdbool-tests: accomodate Haiku
8389         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8390
8391         binary-io: fix O_TEXT on Haiku
8392         * modules/binary-io (Depends-on): Add fcntl-h.
8393         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8394         than blindly undefining O_TEXT.
8395         Reported by Scott McCreary.
8396
8397 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8398
8399         include_next: do not check for standard headers like stddef.h
8400
8401         I found this problem when modifying Emacs to use gnulib.
8402         I noticed that it added HAVE_STDDEF_H to config.h, even though
8403         gnulib always assumes <stddef.h> exists as per README and this
8404         symbol is unnecessary.
8405         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8406         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8407         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8408         faster for headers like stddef.h that are known to exist.
8409         (gl_CHECK_NEXT_HEADERS): Use it.
8410         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8411         rather than gl_CHECK_NEXT_HEADERS.
8412         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8413         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8414
8415 2011-01-18  Eric Blake  <eblake@redhat.com>
8416
8417         ansi-c++-opt: skip C++ dependency style if C++ is unused
8418         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8419         tests when we know C++ compilation is not desired.
8420         Reported by Scott McCreary.
8421
8422 2011-01-18  Bruno Haible  <bruno@clisp.org>
8423
8424         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8425         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8426         (main): Perform test also when getrlimit and setrlimit don't exist or
8427         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8428         limiting the address space size using setrlimit, compare the address
8429         space size before and after the the test.
8430         * tests/test-dprintf-posix2.c: Likewise.
8431         * tests/test-fprintf-posix3.sh: Update skip messages.
8432         * tests/test-dprintf-posix2.sh: Likewise.
8433         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8434         * modules/dprintf-posix-tests (Depends-on): Likewise.
8435         Reported by Bruce Korb <bkorb@gnu.org> and
8436         Gary V. Vaughan <gary@gnu.org>.
8437
8438 2011-01-18  Bruno Haible  <bruno@clisp.org>
8439
8440         get-rusage-as: Improvement for Cygwin.
8441         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8442         areas that are merely reserved.
8443
8444 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8445
8446         strftime: remove dependencies on multibyte modules
8447
8448         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8449         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8450         only if __osf__ is defined, and I suspect OSF doesn't need these
8451         other modules.  If my guess is wrong, we'll need to come up with a
8452         variant of strftime that doesn't need the multibyte modules.
8453
8454         I discovered this problem when attempting modify Emacs to use the
8455         strftime module.  With the previous gnulib, this caused Emacs to
8456         need 31 new files, ranging from lib/config.charset to
8457         m4/wint_t.m4.  This was overkill and I expect would be offputting
8458         to the Emacs maintainers.  After this change, only 6 new files are
8459         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8460         stdbool.m4, and tm_gmtoff.m4.
8461
8462         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8463         Suggested by Bruno Haible in
8464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8465         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8466         and do not check for wchar.h.
8467         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8468         (Depends-on): Remove mbrlen, mbsinit, wchar.
8469
8470 2011-01-18  Bruno Haible  <bruno@clisp.org>
8471
8472         Tests for module 'get-rusage-as'.
8473         * modules/get-rusage-as-tests: New file.
8474         * tests/test-get-rusage-as.c: New file.
8475
8476         New module 'get-rusage-as'.
8477         * modules/get-rusage-as: New file.
8478         * lib/resource-ext.h: New file.
8479         * lib/get-rusage-as.c: New file.
8480
8481 2011-01-17  Eric Blake  <eblake@redhat.com>
8482
8483         sigaction: relax license from LGPLv3+ to LGPLv2+
8484         * modules/sigaction (License): Relax to LGPLv2+.
8485
8486 2011-01-14  Bruno Haible  <bruno@clisp.org>
8487
8488         filemode: Make function declarations usable in C++ mode.
8489         * lib/filemode.h: Enclose function declarations in extern "C" block.
8490         Reported by John W. Eaton <jwe@gnu.org>.
8491
8492 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8493
8494         save-cwd: no longer include "xgetcwd.h"
8495         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8496         This avoids a compilation failure in projects that use save-cwd
8497         without also using the xgetcwd module.
8498
8499 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8500
8501         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8502         This is so that a program like Emacs, which needs only dtoastr,
8503         does not have to bother with distributing and compiling ftoastr
8504         and ldtoastr.
8505         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8506         * modules/dtoastr, modules/ldtoastr: New files.
8507         * modules/ftoastr: Now works just for 'float'.
8508         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8509         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8510         dtoastr.c, ldtoastr.c.
8511
8512 2011-01-11  Jim Meyering  <meyering@redhat.com>
8513
8514         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8515         There is no need to work around the lack of the fchdir function,
8516         since gnulib can now provide a replacement when required.
8517         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8518         * modules/save-cwd (Depends-on): Add fchdir.
8519
8520 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8521
8522         openat, save-cwd: avoid xmalloc
8523
8524         This removes a direct (but undocumented) dependency of openat on
8525         xalloc, along with an indirect dependency via save-cwd.  It also
8526         removes a dependency of save-cwd on xgetcwd, and thereby
8527         indirectly on xalloc.  This change causes the openat substitute
8528         to fall back on save_cwd when memory is tight, and for save_cwd to
8529         fail instead of dying when memory is tight, but that's good enough.
8530         Problem and initial idea for fix reported by Bastien Roucaries in
8531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8532
8533         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8534         xalloc.h (for xmalloc).
8535         (openat_proc_name): Use malloc, not xmalloc.
8536         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8537         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8538
8539         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8540         This avoids heap allocation for file names whose lengths are in
8541         the range 512..1023, with the upper bound increasing to at most
8542         4031 depending on the platform's PATH_MAX.  (We do not want
8543         pathmax.h here as it might supply a non-constant PATH_MAX.)
8544         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8545         Perhaps they should be moved to malloca.h?
8546         (OPENAT_BUFFER_SIZE): Use them.
8547
8548 2011-01-10  Bruno Haible  <bruno@clisp.org>
8549
8550         doc: Update users.txt.
8551         * users.txt: Add recutils.
8552
8553 2011-01-09  Karl Berry  <karl@gnu.org>
8554
8555         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8556
8557         * doc/configmake.texi: New file.
8558         * doc/gnulib.texi: Include it.
8559         * modules/configmake: Move documentation from here.
8560
8561 2011-01-09  Bruno Haible  <bruno@clisp.org>
8562
8563         Update to Unicode 6.0.0.
8564         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8565         (get_lbp): Update for Unicode 6.0.0.
8566         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8567         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8568         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8569         U+11001, U+11038..U+11046. Remove U+06DE.
8570         (uc_width): Fix bounds of planes.
8571         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8572         lib/uniwidth/width.c.
8573         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8574         trailing whitespace removed.
8575         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8576         without comments, but with the original copyright notice.
8577         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8578         * lib/unicase/ignorable.h: Likewise.
8579         * lib/unicase/tocasefold.h: Likewise.
8580         * lib/unicase/tolower.h: Likewise.
8581         * lib/unicase/totitle.h: Likewise.
8582         * lib/unicase/toupper.h: Likewise.
8583         * lib/unictype/bidi_of.h: Likewise.
8584         * lib/unictype/blocks.h: Likewise.
8585         * lib/unictype/categ_C.h: Likewise.
8586         * lib/unictype/categ_Cn.h: Likewise.
8587         * lib/unictype/categ_L.h: Likewise.
8588         * lib/unictype/categ_Ll.h: Likewise.
8589         * lib/unictype/categ_Lm.h: Likewise.
8590         * lib/unictype/categ_Lo.h: Likewise.
8591         * lib/unictype/categ_Lu.h: Likewise.
8592         * lib/unictype/categ_M.h: Likewise.
8593         * lib/unictype/categ_Mc.h: Likewise.
8594         * lib/unictype/categ_Me.h: Likewise.
8595         * lib/unictype/categ_Mn.h: Likewise.
8596         * lib/unictype/categ_N.h: Likewise.
8597         * lib/unictype/categ_Nd.h: Likewise.
8598         * lib/unictype/categ_No.h: Likewise.
8599         * lib/unictype/categ_P.h: Likewise.
8600         * lib/unictype/categ_Po.h: Likewise.
8601         * lib/unictype/categ_S.h: Likewise.
8602         * lib/unictype/categ_Sc.h: Likewise.
8603         * lib/unictype/categ_Sk.h: Likewise.
8604         * lib/unictype/categ_Sm.h: Likewise.
8605         * lib/unictype/categ_So.h: Likewise.
8606         * lib/unictype/categ_of.h: Likewise.
8607         * lib/unictype/combining.h: Likewise.
8608         * lib/unictype/ctype_alnum.h: Likewise.
8609         * lib/unictype/ctype_alpha.h: Likewise.
8610         * lib/unictype/ctype_graph.h: Likewise.
8611         * lib/unictype/ctype_lower.h: Likewise.
8612         * lib/unictype/ctype_print.h: Likewise.
8613         * lib/unictype/ctype_punct.h: Likewise.
8614         * lib/unictype/ctype_upper.h: Likewise.
8615         * lib/unictype/decdigit.h: Likewise.
8616         * lib/unictype/digit.h: Likewise.
8617         * lib/unictype/numeric.h: Likewise.
8618         * lib/unictype/pr_alphabetic.h: Likewise.
8619         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8620         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8621         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8622         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8623         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8624         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8625         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8626         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8627         * lib/unictype/pr_case_ignorable.h: Likewise.
8628         * lib/unictype/pr_cased.h: Likewise.
8629         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8630         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8631         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8632         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8633         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8634         * lib/unictype/pr_combining.h: Likewise.
8635         * lib/unictype/pr_composite.h: Likewise.
8636         * lib/unictype/pr_currency_symbol.h: Likewise.
8637         * lib/unictype/pr_decimal_digit.h: Likewise.
8638         * lib/unictype/pr_deprecated.h: Likewise.
8639         * lib/unictype/pr_format_control.h: Likewise.
8640         * lib/unictype/pr_grapheme_base.h: Likewise.
8641         * lib/unictype/pr_grapheme_extend.h: Likewise.
8642         * lib/unictype/pr_grapheme_link.h: Likewise.
8643         * lib/unictype/pr_id_continue.h: Likewise.
8644         * lib/unictype/pr_id_start.h: Likewise.
8645         * lib/unictype/pr_ideographic.h: Likewise.
8646         * lib/unictype/pr_lowercase.h: Likewise.
8647         * lib/unictype/pr_math.h: Likewise.
8648         * lib/unictype/pr_numeric.h: Likewise.
8649         * lib/unictype/pr_other_alphabetic.h: Likewise.
8650         * lib/unictype/pr_other_id_continue.h: Likewise.
8651         * lib/unictype/pr_other_math.h: Likewise.
8652         * lib/unictype/pr_punctuation.h: Likewise.
8653         * lib/unictype/pr_sentence_terminal.h: Likewise.
8654         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8655         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8656         * lib/unictype/pr_unified_ideograph.h: Likewise.
8657         * lib/unictype/pr_uppercase.h: Likewise.
8658         * lib/unictype/pr_xid_continue.h: Likewise.
8659         * lib/unictype/pr_xid_start.h: Likewise.
8660         * lib/unictype/scripts.h: Likewise.
8661         * lib/unictype/scripts_byname.gperf: Likewise.
8662         * lib/unictype/sy_java_ident.h: Likewise.
8663         * lib/unigbrk/gbrkprop.h: Likewise.
8664         * lib/unilbrk/lbrkprop1.h: Likewise.
8665         * lib/unilbrk/lbrkprop2.h: Likewise.
8666         * lib/uninorm/decomposition-table2.h: Likewise.
8667         * lib/uniwbrk/wbrkprop.h: Likewise.
8668         * tests/unicase/test-cased.c: Likewise.
8669         * tests/unicase/test-ignorable.c: Likewise.
8670         * tests/unicase/test-uc_tolower.c: Likewise.
8671         * tests/unicase/test-uc_totitle.c: Likewise.
8672         * tests/unicase/test-uc_toupper.c: Likewise.
8673         * tests/unictype/test-categ_C.c: Likewise.
8674         * tests/unictype/test-categ_Cn.c: Likewise.
8675         * tests/unictype/test-categ_L.c: Likewise.
8676         * tests/unictype/test-categ_Ll.c: Likewise.
8677         * tests/unictype/test-categ_Lm.c: Likewise.
8678         * tests/unictype/test-categ_Lo.c: Likewise.
8679         * tests/unictype/test-categ_Lu.c: Likewise.
8680         * tests/unictype/test-categ_M.c: Likewise.
8681         * tests/unictype/test-categ_Mc.c: Likewise.
8682         * tests/unictype/test-categ_Me.c: Likewise.
8683         * tests/unictype/test-categ_Mn.c: Likewise.
8684         * tests/unictype/test-categ_N.c: Likewise.
8685         * tests/unictype/test-categ_Nd.c: Likewise.
8686         * tests/unictype/test-categ_No.c: Likewise.
8687         * tests/unictype/test-categ_P.c: Likewise.
8688         * tests/unictype/test-categ_Po.c: Likewise.
8689         * tests/unictype/test-categ_S.c: Likewise.
8690         * tests/unictype/test-categ_Sc.c: Likewise.
8691         * tests/unictype/test-categ_Sk.c: Likewise.
8692         * tests/unictype/test-categ_Sm.c: Likewise.
8693         * tests/unictype/test-categ_So.c: Likewise.
8694         * tests/unictype/test-ctype_alnum.c: Likewise.
8695         * tests/unictype/test-ctype_alpha.c: Likewise.
8696         * tests/unictype/test-ctype_graph.c: Likewise.
8697         * tests/unictype/test-ctype_lower.c: Likewise.
8698         * tests/unictype/test-ctype_print.c: Likewise.
8699         * tests/unictype/test-ctype_punct.c: Likewise.
8700         * tests/unictype/test-ctype_upper.c: Likewise.
8701         * tests/unictype/test-decdigit.h: Likewise.
8702         * tests/unictype/test-digit.h: Likewise.
8703         * tests/unictype/test-numeric.h: Likewise.
8704         * tests/unictype/test-pr_alphabetic.c: Likewise.
8705         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8706         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8707         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8708         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8709         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8710         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8711         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8712         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8713         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8714         * tests/unictype/test-pr_cased.c: Likewise.
8715         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8716         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8717         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8718         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8719         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8720         * tests/unictype/test-pr_combining.c: Likewise.
8721         * tests/unictype/test-pr_composite.c: Likewise.
8722         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8723         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8724         * tests/unictype/test-pr_deprecated.c: Likewise.
8725         * tests/unictype/test-pr_format_control.c: Likewise.
8726         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8727         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8728         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8729         * tests/unictype/test-pr_id_continue.c: Likewise.
8730         * tests/unictype/test-pr_id_start.c: Likewise.
8731         * tests/unictype/test-pr_ideographic.c: Likewise.
8732         * tests/unictype/test-pr_lowercase.c: Likewise.
8733         * tests/unictype/test-pr_math.c: Likewise.
8734         * tests/unictype/test-pr_numeric.c: Likewise.
8735         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8736         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8737         * tests/unictype/test-pr_other_math.c: Likewise.
8738         * tests/unictype/test-pr_punctuation.c: Likewise.
8739         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8740         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8741         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8742         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8743         * tests/unictype/test-pr_uppercase.c: Likewise.
8744         * tests/unictype/test-pr_xid_continue.c: Likewise.
8745         * tests/unictype/test-pr_xid_start.c: Likewise.
8746         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8747         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8748         changes.
8749         * lib/unictype/categ_Cc.h: Likewise.
8750         * lib/unictype/categ_Cf.h: Likewise.
8751         * lib/unictype/categ_Co.h: Likewise.
8752         * lib/unictype/categ_Cs.h: Likewise.
8753         * lib/unictype/categ_Lt.h: Likewise.
8754         * lib/unictype/categ_Nl.h: Likewise.
8755         * lib/unictype/categ_Pc.h: Likewise.
8756         * lib/unictype/categ_Pd.h: Likewise.
8757         * lib/unictype/categ_Pe.h: Likewise.
8758         * lib/unictype/categ_Pf.h: Likewise.
8759         * lib/unictype/categ_Pi.h: Likewise.
8760         * lib/unictype/categ_Ps.h: Likewise.
8761         * lib/unictype/categ_Z.h: Likewise.
8762         * lib/unictype/categ_Zl.h: Likewise.
8763         * lib/unictype/categ_Zp.h: Likewise.
8764         * lib/unictype/categ_Zs.h: Likewise.
8765         * lib/unictype/ctype_blank.h: Likewise.
8766         * lib/unictype/ctype_cntrl.h: Likewise.
8767         * lib/unictype/ctype_digit.h: Likewise.
8768         * lib/unictype/ctype_space.h: Likewise.
8769         * lib/unictype/ctype_xdigit.h: Likewise.
8770         * lib/unictype/mirror.h: Likewise.
8771         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8772         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8773         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8774         * lib/unictype/pr_bidi_control.h: Likewise.
8775         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8776         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8777         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8778         * lib/unictype/pr_bidi_pdf.h: Likewise.
8779         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8780         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8781         * lib/unictype/pr_dash.h: Likewise.
8782         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8783         * lib/unictype/pr_diacritic.h: Likewise.
8784         * lib/unictype/pr_extender.h: Likewise.
8785         * lib/unictype/pr_hex_digit.h: Likewise.
8786         * lib/unictype/pr_hyphen.h: Likewise.
8787         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8788         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8789         * lib/unictype/pr_ignorable_control.h: Likewise.
8790         * lib/unictype/pr_iso_control.h: Likewise.
8791         * lib/unictype/pr_join_control.h: Likewise.
8792         * lib/unictype/pr_left_of_pair.h: Likewise.
8793         * lib/unictype/pr_line_separator.h: Likewise.
8794         * lib/unictype/pr_logical_order_exception.h: Likewise.
8795         * lib/unictype/pr_non_break.h: Likewise.
8796         * lib/unictype/pr_not_a_character.h: Likewise.
8797         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8798         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8799         * lib/unictype/pr_other_id_start.h: Likewise.
8800         * lib/unictype/pr_other_lowercase.h: Likewise.
8801         * lib/unictype/pr_other_uppercase.h: Likewise.
8802         * lib/unictype/pr_paired_punctuation.h: Likewise.
8803         * lib/unictype/pr_paragraph_separator.h: Likewise.
8804         * lib/unictype/pr_pattern_syntax.h: Likewise.
8805         * lib/unictype/pr_pattern_white_space.h: Likewise.
8806         * lib/unictype/pr_private_use.h: Likewise.
8807         * lib/unictype/pr_quotation_mark.h: Likewise.
8808         * lib/unictype/pr_radical.h: Likewise.
8809         * lib/unictype/pr_soft_dotted.h: Likewise.
8810         * lib/unictype/pr_space.h: Likewise.
8811         * lib/unictype/pr_titlecase.h: Likewise.
8812         * lib/unictype/pr_variation_selector.h: Likewise.
8813         * lib/unictype/pr_white_space.h: Likewise.
8814         * lib/unictype/pr_zero_width.h: Likewise.
8815         * lib/unictype/sy_c_ident.h: Likewise.
8816         * lib/unictype/sy_c_whitespace.h: Likewise.
8817         * lib/unictype/sy_java_whitespace.h: Likewise.
8818         * lib/uninorm/composition-table.gperf: Likewise.
8819         * lib/uninorm/decomposition-table1.h: Likewise.
8820         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8821         LB8.
8822         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8823         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8824         * modules/unictype/*: Bump version number of expected libunistring
8825         version.
8826
8827 2011-01-09  Bruno Haible  <bruno@clisp.org>
8828
8829         Update to Unicode 5.2.0.
8830         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8831         trailing whitespace removed.
8832
8833 2011-01-09  Bruno Haible  <bruno@clisp.org>
8834
8835         New Unicode character properties, from Unicode 5.2.0.
8836         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8837         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8838         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8839         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8840         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8841         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8842         uc_is_property_cased, uc_is_property_case_ignorable,
8843         uc_is_property_changes_when_lowercased,
8844         uc_is_property_changes_when_uppercased,
8845         uc_is_property_changes_when_titlecased,
8846         uc_is_property_changes_when_casefolded,
8847         uc_is_property_changes_when_casemapped): New declarations.
8848         * lib/unictype/pr_byname.gperf: Add the new properties.
8849         * modules/unictype/property-byname (Depends-on): Depend on the new
8850         properties modules.
8851         * modules/unictype/property-all (Depends-on): Likewise.
8852         * MODULES.html.sh (Unicode string functions): Add
8853         unictype/property-case-ignorable, unictype/property-cased,
8854         unictype/property-changes-when-casefolded,
8855         unictype/property-changes-when-casemapped,
8856         unictype/property-changes-when-lowercased,
8857         unictype/property-changes-when-titlecased,
8858         unictype/property-changes-when-uppercased.
8859
8860         New module 'unictype/property-changes-when-casemapped'.
8861         * modules/unictype/property-changes-when-casemapped: New file.
8862         * lib/unictype/pr_changes_when_casemapped.c: New file.
8863         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8864         generated by gen-uni-tables.
8865         * modules/unictype/property-changes-when-casemapped-tests: New file.
8866         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8867         automatically generated by gen-uni-tables.
8868
8869         New module 'unictype/property-changes-when-casefolded'.
8870         * modules/unictype/property-changes-when-casefolded: New file.
8871         * lib/unictype/pr_changes_when_casefolded.c: New file.
8872         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8873         generated by gen-uni-tables.
8874         * modules/unictype/property-changes-when-casefolded-tests: New file.
8875         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8876         automatically generated by gen-uni-tables.
8877
8878         New module 'unictype/property-changes-when-titlecased'.
8879         * modules/unictype/property-changes-when-titlecased: New file.
8880         * lib/unictype/pr_changes_when_titlecased.c: New file.
8881         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8882         generated by gen-uni-tables.
8883         * modules/unictype/property-changes-when-titlecased-tests: New file.
8884         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8885         automatically generated by gen-uni-tables.
8886
8887         New module 'unictype/property-changes-when-uppercased'.
8888         * modules/unictype/property-changes-when-uppercased: New file.
8889         * lib/unictype/pr_changes_when_uppercased.c: New file.
8890         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8891         generated by gen-uni-tables.
8892         * modules/unictype/property-changes-when-uppercased-tests: New file.
8893         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8894         automatically generated by gen-uni-tables.
8895
8896         New module 'unictype/property-changes-when-lowercased'.
8897         * modules/unictype/property-changes-when-lowercased: New file.
8898         * lib/unictype/pr_changes_when_lowercased.c: New file.
8899         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8900         generated by gen-uni-tables.
8901         * modules/unictype/property-changes-when-lowercased-tests: New file.
8902         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8903         automatically generated by gen-uni-tables.
8904
8905         New module 'unictype/property-case-ignorable'.
8906         * modules/unictype/property-case-ignorable: New file.
8907         * lib/unictype/pr_case_ignorable.c: New file.
8908         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8909         by gen-uni-tables.
8910         * modules/unictype/property-case-ignorable-tests: New file.
8911         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8912         generated by gen-uni-tables.
8913
8914         New module 'unictype/property-cased'.
8915         * modules/unictype/property-cased: New file.
8916         * lib/unictype/pr_cased.c: New file.
8917         * lib/unictype/pr_cased.h: New file, automatically generated by
8918         gen-uni-tables.
8919         * modules/unictype/property-cased-tests: New file.
8920         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8921         gen-uni-tables.
8922
8923 2011-01-09  Bruno Haible  <bruno@clisp.org>
8924
8925         Update to Unicode 5.2.0.
8926         * lib/gen-uni-tables.c (output_predicate, output_category,
8927         output_combclass, output_bidi_category, output_decimal_digit_test,
8928         output_decimal_digit, output_digit_test, output_digit,
8929         output_numeric_test, output_numeric, output_mirror, output_scripts,
8930         output_scripts_byname, output_blocks, output_ident_category): Fix
8931         comment header.
8932         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8933         get_wbp.
8934         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8935         items.
8936         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8937         Changes_When_Lowercased, Changes_When_Uppercased,
8938         Changes_When_Titlecased, Changes_When_Casefolded,
8939         Changes_When_Casemapped.
8940         (is_property_alphabetic, is_property_default_ignorable_code_point):
8941         Update for Unicode 5.2.0.
8942         (is_property_cased, is_property_case_ignorable,
8943         is_property_changes_when_lowercased,
8944         is_property_changes_when_uppercased,
8945         is_property_changes_when_titlecased,
8946         is_property_changes_when_casefolded,
8947         is_property_changes_when_casemapped): New functions.
8948         (output_properties): Output also the properties cased, case_ignorable,
8949         changes_when_lowercased, changes_when_uppercased,
8950         changes_when_titlecased, changes_when_casefolded,
8951         changes_when_casemapped.
8952         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8953         Unicode TR#11 revision 17 -> 19.
8954         (LBP_CP): New enumeration value.
8955         (LBP_*): Adjust values accordingly.
8956         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8957         TR#14 revision 22 -> 24.
8958         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8959         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8960         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8961         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8962         is_WBP_MIDLETTER.
8963         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8964         the code1 and code2 of each composition rule.
8965         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8966         * lib/unicase/ignorable.h: Likewise.
8967         * lib/unicase/tocasefold.h: Likewise.
8968         * lib/unicase/tolower.h: Likewise.
8969         * lib/unicase/totitle.h: Likewise.
8970         * lib/unicase/toupper.h: Likewise.
8971         * lib/unictype/bidi_of.h: Likewise.
8972         * lib/unictype/blocks.h: Likewise.
8973         * lib/unictype/categ_C.h: Likewise.
8974         * lib/unictype/categ_Cf.h: Likewise.
8975         * lib/unictype/categ_Cn.h: Likewise.
8976         * lib/unictype/categ_L.h: Likewise.
8977         * lib/unictype/categ_Ll.h: Likewise.
8978         * lib/unictype/categ_Lm.h: Likewise.
8979         * lib/unictype/categ_Lo.h: Likewise.
8980         * lib/unictype/categ_Lu.h: Likewise.
8981         * lib/unictype/categ_M.h: Likewise.
8982         * lib/unictype/categ_Mc.h: Likewise.
8983         * lib/unictype/categ_Mn.h: Likewise.
8984         * lib/unictype/categ_N.h: Likewise.
8985         * lib/unictype/categ_Nd.h: Likewise.
8986         * lib/unictype/categ_Nl.h: Likewise.
8987         * lib/unictype/categ_No.h: Likewise.
8988         * lib/unictype/categ_P.h: Likewise.
8989         * lib/unictype/categ_Pd.h: Likewise.
8990         * lib/unictype/categ_Po.h: Likewise.
8991         * lib/unictype/categ_S.h: Likewise.
8992         * lib/unictype/categ_Sc.h: Likewise.
8993         * lib/unictype/categ_So.h: Likewise.
8994         * lib/unictype/categ_of.h: Likewise.
8995         * lib/unictype/combining.h: Likewise.
8996         * lib/unictype/ctype_alnum.h: Likewise.
8997         * lib/unictype/ctype_alpha.h: Likewise.
8998         * lib/unictype/ctype_graph.h: Likewise.
8999         * lib/unictype/ctype_lower.h: Likewise.
9000         * lib/unictype/ctype_print.h: Likewise.
9001         * lib/unictype/ctype_punct.h: Likewise.
9002         * lib/unictype/ctype_upper.h: Likewise.
9003         * lib/unictype/decdigit.h: Likewise.
9004         * lib/unictype/digit.h: Likewise.
9005         * lib/unictype/numeric.h: Likewise.
9006         * lib/unictype/pr_alphabetic.h: Likewise.
9007         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9008         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9009         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9010         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9011         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9012         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9013         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9014         * lib/unictype/pr_combining.h: Likewise.
9015         * lib/unictype/pr_composite.h: Likewise.
9016         * lib/unictype/pr_currency_symbol.h: Likewise.
9017         * lib/unictype/pr_dash.h: Likewise.
9018         * lib/unictype/pr_decimal_digit.h: Likewise.
9019         * lib/unictype/pr_deprecated.h: Likewise.
9020         * lib/unictype/pr_diacritic.h: Likewise.
9021         * lib/unictype/pr_extender.h: Likewise.
9022         * lib/unictype/pr_grapheme_base.h: Likewise.
9023         * lib/unictype/pr_grapheme_extend.h: Likewise.
9024         * lib/unictype/pr_grapheme_link.h: Likewise.
9025         * lib/unictype/pr_id_continue.h: Likewise.
9026         * lib/unictype/pr_id_start.h: Likewise.
9027         * lib/unictype/pr_ideographic.h: Likewise.
9028         * lib/unictype/pr_ignorable_control.h: Likewise.
9029         * lib/unictype/pr_logical_order_exception.h: Likewise.
9030         * lib/unictype/pr_lowercase.h: Likewise.
9031         * lib/unictype/pr_numeric.h: Likewise.
9032         * lib/unictype/pr_other_alphabetic.h: Likewise.
9033         * lib/unictype/pr_punctuation.h: Likewise.
9034         * lib/unictype/pr_sentence_terminal.h: Likewise.
9035         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9036         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9037         * lib/unictype/pr_unified_ideograph.h: Likewise.
9038         * lib/unictype/pr_uppercase.h: Likewise.
9039         * lib/unictype/pr_xid_continue.h: Likewise.
9040         * lib/unictype/pr_xid_start.h: Likewise.
9041         * lib/unictype/pr_zero_width.h: Likewise.
9042         * lib/unictype/scripts.h: Likewise.
9043         * lib/unictype/scripts_byname.gperf: Likewise.
9044         * lib/unictype/sy_java_ident.h: Likewise.
9045         * lib/unigbrk/gbrkprop.h: Likewise.
9046         * lib/unilbrk/lbrkprop1.h: Likewise.
9047         * lib/unilbrk/lbrkprop2.h: Likewise.
9048         * lib/unilbrk/lbrktables.h: Likewise.
9049         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9050         LBP_CP. Implement rule LB30.
9051         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9052         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9053         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9054         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9055         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9056         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9057         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9058         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9059         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9060         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9061         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9062         bits instead of 16 bits in the code1 and code2 of each composition
9063         rule.
9064         (uc_composition): Update for Unicode 5.2.0.
9065         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9066         * lib/uninorm/decomposition-table2.h: Likewise.
9067         * lib/uniwbrk/wbrkprop.h: Likewise.
9068         * tests/unicase/test-cased.c: Likewise.
9069         * tests/unicase/test-ignorable.c: Likewise.
9070         * tests/unicase/test-uc_tolower.c: Likewise.
9071         * tests/unicase/test-uc_totitle.c: Likewise.
9072         * tests/unicase/test-uc_toupper.c: Likewise.
9073         * tests/unictype/test-categ_C.c: Likewise.
9074         * tests/unictype/test-categ_Cf.c: Likewise.
9075         * tests/unictype/test-categ_Cn.c: Likewise.
9076         * tests/unictype/test-categ_L.c: Likewise.
9077         * tests/unictype/test-categ_Ll.c: Likewise.
9078         * tests/unictype/test-categ_Lm.c: Likewise.
9079         * tests/unictype/test-categ_Lo.c: Likewise.
9080         * tests/unictype/test-categ_Lu.c: Likewise.
9081         * tests/unictype/test-categ_M.c: Likewise.
9082         * tests/unictype/test-categ_Mc.c: Likewise.
9083         * tests/unictype/test-categ_Mn.c: Likewise.
9084         * tests/unictype/test-categ_N.c: Likewise.
9085         * tests/unictype/test-categ_Nd.c: Likewise.
9086         * tests/unictype/test-categ_Nl.c: Likewise.
9087         * tests/unictype/test-categ_No.c: Likewise.
9088         * tests/unictype/test-categ_P.c: Likewise.
9089         * tests/unictype/test-categ_Pd.c: Likewise.
9090         * tests/unictype/test-categ_Po.c: Likewise.
9091         * tests/unictype/test-categ_S.c: Likewise.
9092         * tests/unictype/test-categ_Sc.c: Likewise.
9093         * tests/unictype/test-categ_So.c: Likewise.
9094         * tests/unictype/test-ctype_alnum.c: Likewise.
9095         * tests/unictype/test-ctype_alpha.c: Likewise.
9096         * tests/unictype/test-ctype_graph.c: Likewise.
9097         * tests/unictype/test-ctype_lower.c: Likewise.
9098         * tests/unictype/test-ctype_print.c: Likewise.
9099         * tests/unictype/test-ctype_punct.c: Likewise.
9100         * tests/unictype/test-ctype_upper.c: Likewise.
9101         * tests/unictype/test-decdigit.h: Likewise.
9102         * tests/unictype/test-digit.h: Likewise.
9103         * tests/unictype/test-numeric.h: Likewise.
9104         * tests/unictype/test-pr_alphabetic.c: Likewise.
9105         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9106         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9107         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9108         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9109         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9110         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9111         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9112         * tests/unictype/test-pr_combining.c: Likewise.
9113         * tests/unictype/test-pr_composite.c: Likewise.
9114         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9115         * tests/unictype/test-pr_dash.c: Likewise.
9116         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9117         * tests/unictype/test-pr_deprecated.c: Likewise.
9118         * tests/unictype/test-pr_diacritic.c: Likewise.
9119         * tests/unictype/test-pr_extender.c: Likewise.
9120         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9121         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9122         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9123         * tests/unictype/test-pr_id_continue.c: Likewise.
9124         * tests/unictype/test-pr_id_start.c: Likewise.
9125         * tests/unictype/test-pr_ideographic.c: Likewise.
9126         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9127         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9128         * tests/unictype/test-pr_lowercase.c: Likewise.
9129         * tests/unictype/test-pr_numeric.c: Likewise.
9130         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9131         * tests/unictype/test-pr_punctuation.c: Likewise.
9132         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9133         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9134         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9135         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9136         * tests/unictype/test-pr_uppercase.c: Likewise.
9137         * tests/unictype/test-pr_xid_continue.c: Likewise.
9138         * tests/unictype/test-pr_xid_start.c: Likewise.
9139         * tests/unictype/test-pr_zero_width.c: Likewise.
9140         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9141         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9142         changed behaviour: line breaking is now disallowed between a letter
9143         or '=' and '('.
9144         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9145         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9146         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9147         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9148         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9149         lib/uniwidth/width.c.
9150         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9151         without comments, but with the original copyright notice.
9152         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9153         changes.
9154         * lib/unictype/categ_Cc.h: Likewise.
9155         * lib/unictype/categ_Co.h: Likewise.
9156         * lib/unictype/categ_Cs.h: Likewise.
9157         * lib/unictype/categ_Lt.h: Likewise.
9158         * lib/unictype/categ_Me.h: Likewise.
9159         * lib/unictype/categ_Pc.h: Likewise.
9160         * lib/unictype/categ_Pe.h: Likewise.
9161         * lib/unictype/categ_Pf.h: Likewise.
9162         * lib/unictype/categ_Pi.h: Likewise.
9163         * lib/unictype/categ_Ps.h: Likewise.
9164         * lib/unictype/categ_Sk.h: Likewise.
9165         * lib/unictype/categ_Sm.h: Likewise.
9166         * lib/unictype/categ_Z.h: Likewise.
9167         * lib/unictype/categ_Zl.h: Likewise.
9168         * lib/unictype/categ_Zp.h: Likewise.
9169         * lib/unictype/categ_Zs.h: Likewise.
9170         * lib/unictype/ctype_blank.h: Likewise.
9171         * lib/unictype/ctype_cntrl.h: Likewise.
9172         * lib/unictype/ctype_digit.h: Likewise.
9173         * lib/unictype/ctype_space.h: Likewise.
9174         * lib/unictype/ctype_xdigit.h: Likewise.
9175         * lib/unictype/mirror.h: Likewise.
9176         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9177         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9178         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9179         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9180         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9181         * lib/unictype/pr_bidi_control.h: Likewise.
9182         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9183         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9184         * lib/unictype/pr_bidi_pdf.h: Likewise.
9185         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9186         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9187         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9188         * lib/unictype/pr_format_control.h: Likewise.
9189         * lib/unictype/pr_hex_digit.h: Likewise.
9190         * lib/unictype/pr_hyphen.h: Likewise.
9191         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9192         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9193         * lib/unictype/pr_iso_control.h: Likewise.
9194         * lib/unictype/pr_join_control.h: Likewise.
9195         * lib/unictype/pr_left_of_pair.h: Likewise.
9196         * lib/unictype/pr_line_separator.h: Likewise.
9197         * lib/unictype/pr_math.h: Likewise.
9198         * lib/unictype/pr_non_break.h: Likewise.
9199         * lib/unictype/pr_not_a_character.h: Likewise.
9200         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9201         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9202         * lib/unictype/pr_other_id_continue.h: Likewise.
9203         * lib/unictype/pr_other_id_start.h: Likewise.
9204         * lib/unictype/pr_other_lowercase.h: Likewise.
9205         * lib/unictype/pr_other_math.h: Likewise.
9206         * lib/unictype/pr_other_uppercase.h: Likewise.
9207         * lib/unictype/pr_paired_punctuation.h: Likewise.
9208         * lib/unictype/pr_paragraph_separator.h: Likewise.
9209         * lib/unictype/pr_pattern_syntax.h: Likewise.
9210         * lib/unictype/pr_pattern_white_space.h: Likewise.
9211         * lib/unictype/pr_private_use.h: Likewise.
9212         * lib/unictype/pr_quotation_mark.h: Likewise.
9213         * lib/unictype/pr_radical.h: Likewise.
9214         * lib/unictype/pr_soft_dotted.h: Likewise.
9215         * lib/unictype/pr_space.h: Likewise.
9216         * lib/unictype/pr_titlecase.h: Likewise.
9217         * lib/unictype/pr_variation_selector.h: Likewise.
9218         * lib/unictype/pr_white_space.h: Likewise.
9219         * lib/unictype/sy_c_ident.h: Likewise.
9220         * lib/unictype/sy_c_whitespace.h: Likewise.
9221         * lib/unictype/sy_java_whitespace.h: Likewise.
9222         * modules/uni*/*: Bump version number of expected libunistring version.
9223         Reported by Simon Josefsson.
9224
9225 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9226
9227         useless-if-before-free: fix typo in --help and make the internal,
9228         automatic version date update process work once again.
9229         --help output contained a NUL character instead of the
9230         backslash-zero that was intended.  Also, the "must lie within
9231         the first 8 lines" line is on line 9, and hence not getting
9232         automatically updated.
9233         * build-aux/useless-if-before-free: Fix the former by adding a
9234         backslash, and the latter by condensing the three lines of what-it-does
9235         to a single line, leaving one line of slack for the future.
9236
9237 2011-01-09  Bruno Haible  <bruno@clisp.org>
9238
9239         uniwidth/width: Fix width of U+1D173..U+1D17A.
9240         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9241         symbolic_width, output_width_property_test): New functions.
9242         (main): Invoke output_nonspacing_property, output_width_property_test.
9243         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9244         U+1D173..U+1D17A.
9245         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9246         1.
9247         * modules/uniwidth/*: Bump version number of expected libunistring
9248         version.
9249         * modules/unilbrk/*: Likewise.
9250
9251 2011-01-08  Bruno Haible  <bruno@clisp.org>
9252
9253         uninorm tests: Preserve copyright of Unicode data file.
9254         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9255         Mention modifications.
9256
9257 2011-01-08  Bruno Haible  <bruno@clisp.org>
9258
9259         gen-uni-tables: Prepare for Unicode 5.2.0.
9260         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9261         (debug_output_lbp, output_lbp): Update.
9262
9263 2011-01-08  Bruno Haible  <bruno@clisp.org>
9264
9265         unilbrk: Clarify gen-uni-tables.c code.
9266         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9267         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9268         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9269
9270 2011-01-07  Bruno Haible  <bruno@clisp.org>
9271
9272         strtod: Restore errno when successfully parsing Infinity or NaN.
9273         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9274         restore the original errno.
9275
9276 2011-01-07  Bruno Haible  <bruno@clisp.org>
9277
9278         remove test: Avoid failure on HP-UX 11.
9279         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9280
9281 2011-01-07  Bruno Haible  <bruno@clisp.org>
9282
9283         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9284         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9285         error code.
9286
9287 2011-01-07  Pádraig Brady <P@draigBrady.com>
9288
9289         ignore-value: fixup comments, and add Eric Blake
9290         as an author since he rewrote the macros.
9291         * lib/ignore-value.h (ignore_value):  State that
9292         we now support aggregates.  Also specify exactly
9293         when the GCC warn_unused_result feature was added.
9294
9295 2011-01-06  Eric Blake  <eblake@redhat.com>
9296
9297         ignore-value: support aggregate types
9298         * lib/ignore-value.h (ignore_value): Provide separate gcc
9299         definition.
9300         * modules/ignore-value-tests: New test module.
9301         * tests/test-ignore-value.c: New test.
9302
9303         maint.mk: improve sc_prohibit_strcmp regex
9304         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9305         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9306         definition of STRNEQ.
9307
9308         signal: work around Haiku issue with SIGBUS
9309         * lib/siglist.h: Add comment.
9310         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9311         strsignal's favoring of SIGSEGV.
9312         * tests/test-signal.c (main): Avoid test failure.
9313         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9314         Reported by Scott McCreary.
9315
9316         maint.mk: add pre-release check to ensure submodule commits are public
9317         * top/maint.mk (public-submodule-commit): New rule.
9318         (submodule-checks): New variable.
9319         (alpha beta stable): Depend on the variable.
9320
9321 2011-01-05  Pádraig Brady <P@draigBrady.com>
9322         and Jim Meyering  <meyering@redhat.com>
9323
9324         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9325         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9326         (ATTRIBUTE_DEPRECATED): Define.
9327         (_ignore_case): New function.
9328         (ignore_value): New macro, to replace the old function.
9329         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9330         * modules/ignore-value (Depends-on): Add stdint.
9331
9332 2011-01-04  Eric Blake  <eblake@redhat.com>
9333
9334         doc: regenerate INSTALL
9335         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9336         @firstparagraphindent support, now that autoconf dropped it.
9337         (INSTALL_PRELUDE): Reinstate old macro.
9338         * doc/install.texi: Resync from autoconf.
9339         * doc/INSTALL: Reflect recent autoconf update.
9340         * doc/INSTALL.ISO: Likewise.
9341         * doc/INSTALL.UTF-8: Likewise.
9342         Reported by Karl Berry.
9343
9344 2011-01-04  Bruce Korb  <address@hidden>
9345
9346         git-version-gen: avoid a sub-shell
9347         * build-aux/git-version-gen: Redirect stderr in `...` via
9348         "exec 2>...", rather than via an added sub-shell.
9349
9350 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9351
9352         git-version-gen: use (...) rather than sh -c '...'
9353         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9354         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9355
9356 2011-01-03  Jim Meyering  <meyering@redhat.com>
9357
9358         git-version-gen: convert leading TABs to spaces
9359         * build-aux/git-version-gen: Expand leading TABs.
9360
9361         git-version-gen: handle failed "git rev-list"
9362         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9363         from git and proceeding as if it had succeeded but printed no SHA1
9364         checksums, suppress the diagnostic and handle the failure.
9365         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9366
9367         git-version-gen: include command name in one more diagnostic
9368         * build-aux/git-version-gen: When the required .tarball-version file
9369         was missing or unreadable, you might see the diagnostic from "cat",
9370         but no trace of the name of the invoking script.  Now, you still see
9371         the diagnostic from cat, but also get one from "git-version-gen: ".
9372         Inspired by a patch from Bruce Korb.
9373
9374         update-copyright: adjust test to match changed code
9375         * tests/test-update-copyright.sh: Change test's expected output
9376         to match new actual output.
9377
9378 2011-01-02  Bruno Haible  <bruno@clisp.org>
9379
9380         getlogin_r: Avoid test failure on HP-UX 11.
9381         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9382         ERANGE when the second argument is zero.
9383         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9384         portability problem.
9385
9386 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9387
9388         * build-aux/update-copyright: doc Simon's changes
9389
9390 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9391
9392         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9393         environment variable.
9394
9395 2011-01-02  Bruno Haible  <bruno@clisp.org>
9396
9397         unigbrk: Avoid gcc warnings.
9398         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9399         unused variable.
9400         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9401         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9402         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9403         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9404         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9405         Change type of first argument to 'const char *'.
9406         (main): Remove unused variable.
9407         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9408         type of first argument to 'const char *'.
9409         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9410         Likewise.
9411         (main): Change type of variable 's'.
9412         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9413         to 'int'.
9414
9415 2011-01-02  Bruno Haible  <bruno@clisp.org>
9416
9417         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9418         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9419         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9420         bug.
9421         * lib/pwrite.c: Undo 2010-12-31 patch.
9422         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9423
9424 2011-01-02  Bruno Haible  <bruno@clisp.org>
9425
9426         pread: Fix test whether it works.
9427         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9428
9429 2011-01-02  Bruno Haible  <bruno@clisp.org>
9430
9431         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9432         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9433         ends in "6". Don't require a specific month name. Try also the locale
9434         names found on HP-UX 11 and Solaris 7.
9435
9436 2011-01-02  Bruno Haible  <bruno@clisp.org>
9437
9438         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9439         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9440         C linkage.
9441         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9442
9443 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9444
9445         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9446         for consistency, since the "cluster" term is not used elsewhere.
9447         * lib/unigbrk.in.h: Update name.
9448         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9449         * lib/unigbrk/u16-grapheme-next.c: Update name.
9450         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9451         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9452         * lib/unigbrk/u32-grapheme-next.c: Update name.
9453         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9454         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9455         * lib/unigbrk/u8-grapheme-next.c: Update name.
9456         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9457         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9458         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9459         Suggested by Bruno Haible.
9460
9461 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9462
9463         Remove module 'u8-grapheme-len' as too redundant with
9464         'u8-grapheme-next'.
9465         * modules/unigbrk/u8-grapheme-len: Delete file.
9466         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9467         * lib/unigbrk.in.h: Remove prototype for deleted function.
9468         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9469         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9470
9471         Remove module 'u16-grapheme-len' as too redundant with
9472         'u16-grapheme-next'.
9473         * modules/unigbrk/u16-grapheme-len: Delete file.
9474         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9475         * lib/unigbrk.in.h: Remove prototype for deleted function.
9476         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9477         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9478
9479         Remove module 'u32-grapheme-len' as too redundant with
9480         'u32-grapheme-next'.
9481         * modules/unigbrk/u32-grapheme-len: Delete file.
9482         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9483         * lib/unigbrk.in.h: Remove prototype for deleted function.
9484         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9485         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9486
9487         Suggested by Bruno Haible.
9488
9489 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9490
9491         * unigbrk.in.h: Fix typo: "ben" => "been".
9492         Reported by Bruno Haible.
9493
9494 2011-01-01  Jim Meyering  <meyering@redhat.com>
9495
9496         maint: update almost all copyright ranges to include 2011
9497         Run the new "make update-copyright" rule.
9498
9499 2011-01-01  Jim Meyering  <meyering@redhat.com>
9500
9501         maint: update-copyright: exempt doc/INSTALL*
9502         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9503         since they are generated.  Suggested by Bruno Haible.
9504
9505 2011-01-01  Jim Meyering  <meyering@redhat.com>
9506
9507         maint: refine the update-copyright rule
9508         * Makefile (update-copyright): Also exclude any file that includes
9509         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9510         code that merely generates the comment.
9511
9512 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9513
9514         New module 'u8-grapheme-len'.
9515         * modules/unigbrk/u8-grapheme-len: New file.
9516         * modules/unigbrk/u8-grapheme-len-tests: New file.
9517         * lib/unigbrk.in.h: Add prototype for new function.
9518         * lib/unigbrk/u8-grapheme-len.c: New file.
9519         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9520
9521         New module 'u16-grapheme-len'.
9522         * modules/unigbrk/u16-grapheme-len: New file.
9523         * modules/unigbrk/u16-grapheme-len-tests: New file.
9524         * lib/unigbrk.in.h: Add prototype for new function.
9525         * lib/unigbrk/u16-grapheme-len.c: New file.
9526         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9527
9528         New module 'u32-grapheme-len'.
9529         * modules/unigbrk/u32-grapheme-len: New file.
9530         * modules/unigbrk/u32-grapheme-len-tests: New file.
9531         * lib/unigbrk.in.h: Add prototype for new function.
9532         * lib/unigbrk/u32-grapheme-len.c: New file.
9533         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9534
9535         New module 'u8-grapheme-next'.
9536         * modules/unigbrk/u8-grapheme-next: New file.
9537         * modules/unigbrk/u8-grapheme-next-tests: New file.
9538         * lib/unigbrk.in.h: Add prototype for new function.
9539         * lib/unigbrk/u8-grapheme-next.c: New file.
9540         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9541
9542         New module 'u16-grapheme-next'.
9543         * modules/unigbrk/u16-grapheme-next: New file.
9544         * modules/unigbrk/u16-grapheme-next-tests: New file.
9545         * lib/unigbrk.in.h: Add prototype for new function.
9546         * lib/unigbrk/u16-grapheme-next.c: New file.
9547         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9548
9549         New module 'u32-grapheme-next'.
9550         * modules/unigbrk/u32-grapheme-next: New file.
9551         * modules/unigbrk/u32-grapheme-next-tests: New file.
9552         * lib/unigbrk.in.h: Add prototype for new function.
9553         * lib/unigbrk/u32-grapheme-next.c: New file.
9554         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9555
9556         New module 'u8-grapheme-prev'.
9557         * modules/unigbrk/u8-grapheme-prev: New file.
9558         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9559         * lib/unigbrk.in.h: Add prototype for new function.
9560         * lib/unigbrk/u8-grapheme-prev.c: New file.
9561         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9562
9563         New module 'u16-grapheme-prev'.
9564         * modules/unigbrk/u16-grapheme-prev: New file.
9565         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9566         * lib/unigbrk.in.h: Add prototype for new function.
9567         * lib/unigbrk/u16-grapheme-prev.c: New file.
9568         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9569
9570         New module 'u32-grapheme-prev'.
9571         * modules/unigbrk/u32-grapheme-prev: New file.
9572         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9573         * lib/unigbrk.in.h: Add prototype for new function.
9574         * lib/unigbrk/u32-grapheme-prev.c: New file.
9575         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9576
9577         New module 'u8-grapheme-breaks'.
9578         * modules/unigbrk/u8-grapheme-breaks: New file.
9579         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9580         * lib/unigbrk.in.h: Add prototype for new function.
9581         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9582         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9583
9584         New module 'u16-grapheme-breaks'.
9585         * modules/unigbrk/u16-grapheme-breaks: New file.
9586         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9587         * lib/unigbrk.in.h: Add prototype for new function.
9588         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9589         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9590
9591         New module 'u32-grapheme-breaks'.
9592         * modules/unigbrk/u32-grapheme-breaks: New file.
9593         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9594         * lib/unigbrk.in.h: Add prototype for new function.
9595         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9596         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9597
9598         New module 'ulc-grapheme-breaks'.
9599         * modules/unigbrk/ulc-grapheme-breaks: New file.
9600         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9601         * m4/locale-ar.m4: New file.
9602         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9603         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9604         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9605
9606 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9607
9608         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9609         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9610         modified how this file was generated before I initially submitted
9611         the module, but failed to regenerate it.  This meant that several
9612         of the level2 entries were wrong.
9613         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9614         Remove the division-by-2 that is folded into the table now that
9615         gbrkprop.h has been regenerated properly.  Now -1 entries are
9616         handled correctly.
9617
9618         New module 'unigbrk/uc-gbrk-prop-tests'.
9619         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9620         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9621         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9622         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9623
9624 2011-01-01  Bruno Haible  <bruno@clisp.org>
9625
9626         Avoid use of hexadecimal escapes.
9627         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9628         instead of hexadecimal escapes.
9629
9630 2011-01-01  Jim Meyering  <meyering@redhat.com>
9631
9632         maint: new rule to update copyright year ranges
9633         * Makefile (update-copyright): New rule.
9634
9635         maint: indent with TABs in Makefile
9636         * Makefile: Expand leading sequences of spaces to TABs
9637
9638         version-etc: update the copyright year it reports
9639         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9640
9641 2010-12-31  Bruno Haible  <bruno@clisp.org>
9642
9643         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9644         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9645         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9646         zero.
9647
9648 2010-12-31  Bruno Haible  <bruno@clisp.org>
9649
9650         pwrite: Work around HP-UX 11.11 bug.
9651         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9652         works and set REPLACE_PWRITE if not.
9653         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9654         function.
9655         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9656
9657 2010-12-31  Bruno Haible  <bruno@clisp.org>
9658
9659         pread: Work around HP-UX 11 bugs.
9660         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9661         and set REPLACE_PREAD if not.
9662         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9663
9664 2010-12-31  Eric Blake  <eblake@redhat.com>
9665
9666         nl_langinfo: fix YESEXPR on Irix 6.5
9667         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9668         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9669         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9670         it.
9671
9672 2010-12-31  Bruno Haible  <bruno@clisp.org>
9673
9674         iconv: Document HP-UX 11 bug.
9675         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9676
9677 2010-12-31  Bruno Haible  <bruno@clisp.org>
9678
9679         ldexpl: Fix link error on HP-UX 11.
9680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9681         LDEXPL_LIBM, using $ISNANL_LIBM.
9682
9683 2010-12-31  Eric Blake  <eblake@redhat.com>
9684
9685         ftello: avoid compilation failure with SunStudio c89
9686         * lib/ftello.c (ftello): Use lseek, not llseek.
9687
9688         tests: avoid failing coreutils tests on cygwin
9689         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9690         (create_exe_shims_): Return 0 when skipping.
9691
9692 2010-12-31  Bruno Haible  <bruno@clisp.org>
9693
9694         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9695         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9696
9697 2010-12-31  Bruno Haible  <bruno@clisp.org>
9698
9699         waitpid: Fix link error in C++ mode.
9700         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9701
9702 2010-12-31  Bruno Haible  <bruno@clisp.org>
9703
9704         isnan: Use GCC built-ins when possible.
9705         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9706         __builtin_isnan.
9707         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9708         (isnan): Define using GCC built-ins for GCC >= 4.0.
9709
9710 2010-12-31  Bruno Haible  <bruno@clisp.org>
9711
9712         isnand: Fix mistake.
9713         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9714         __builtin_isnand.
9715
9716 2010-12-31  Bruno Haible  <bruno@clisp.org>
9717
9718         open: Avoid C++ error on HP-UX 11.
9719         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9720
9721 2010-12-31  Bruno Haible  <bruno@clisp.org>
9722
9723         time_r: Add missing declarations on HP-UX 11.
9724         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9725         instead of HAVE_LOCALTIME_R.
9726         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9727         HAVE_LOCALTIME_R always.
9728         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9729         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9730         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9731         HAVE_LOCALTIME_R.
9732         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9733         * doc/posix-functions/localtime_r.texi: Likewise.
9734
9735 2010-12-29  Eric Blake  <eblake@redhat.com>
9736
9737         mountlist: tweak previous commit
9738         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9739         Reported by Paul Eggert.
9740
9741         mountlist: fix local drive detection on cygwin
9742         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9743         that works for cygwin.
9744
9745 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9746
9747         ftoastr, snprintf: ftoastr + snprintf module
9748         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9749         since the snprintf module now should be good enough here.
9750         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9751         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9752         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9753         GNULIB_SNPRINTF only for the test directory, and the latter
9754         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9755         seems to suffice by itself.
9756
9757 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9758
9759         alloca: one step towards thread-safety
9760         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9761         need for a static variable.  All callers changed.  This does not
9762         make the alloca replacement thread-safe, but it's one step.
9763
9764         tests: minor indenting change
9765         * tests/init.sh: Sync from coreutils housekeeping patch
9766         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9767         to keep lines within 80 columns.
9768
9769 2010-12-28  Jim Meyering  <meyering@redhat.com>
9770
9771         regex: don't infloop on persistent failing calloc
9772         * lib/regexec.c (build_trtable): Return failure indication upon
9773         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9774         In glibc, this was fixed for version 2.13:
9775         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9776
9777 2010-12-28  Bruno Haible  <bruno@clisp.org>
9778             Paul Eggert <eggert@cs.ucla.edu>
9779
9780         linkat: Make implementation robust against system behaviour variations.
9781         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9782         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9783         way, and to -2 if it needs a generic runtime test.
9784         * lib/linkat.c (solaris_optimized_link_immediate,
9785         solaris_optimized_link_follow): New functions.
9786         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9787         (check_same_link): Use it.
9788
9789 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9790
9791         New module 'unigbrk/base'.
9792         * modules/unigbrk/base: New file.
9793         * lib/unigbrk.in.h: New file.
9794
9795         New module 'unigbrk/uc-gbrk-prop'.
9796         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9797         * modules/unigbrk/uc-gbrk-prop: New file.
9798         * lib/unigbrk/gbrkprop.h: New file.
9799         * lib/unigbrk/uc-gbrk-prop.c: New file.
9800
9801         New module 'unigbrk/uc-is-grapheme-break'.
9802         * modules/unigbrk/uc-is-grapheme-break: New file.
9803         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9804         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9805         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9806         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9807         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9808
9809         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9810
9811 2010-12-27  Bruno Haible  <bruno@clisp.org>
9812
9813         linkat test: Avoid failure on Solaris 11 2010-11.
9814         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9815
9816 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9817
9818         utimens: work around glibc rounding bug on more platforms
9819         * lib/utimens.c (fdutimens): Work around rounding bug even if
9820         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9821         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9822
9823 2010-12-27  Bruno Haible  <bruno@clisp.org>
9824
9825         select tests: Improve comments.
9826         * tests/test-select.c (do_select): Add comments.
9827
9828 2010-12-27  Bruno Haible  <bruno@clisp.org>
9829
9830         select tests: Safer way of handling timeout.
9831         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9832         at every invocation.
9833
9834 2010-12-27  Bruno Haible  <bruno@clisp.org>
9835
9836         select tests: Use 'bool' where appropriate.
9837         * tests/test-select.c (connect_to_socket): Change argument type to
9838         'bool'.
9839
9840 2010-12-27  Bruno Haible  <bruno@clisp.org>
9841
9842         select tests: Use existing modules.
9843         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9844         (configure.ac): Don't test for unistd.h.
9845         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9846         declared in <unistd.h>.
9847
9848 2010-12-27  Bruno Haible  <bruno@clisp.org>
9849
9850         mbrtowc: Work around a Solaris 7 bug.
9851         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9852         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9853         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9854         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9855         MBRTOWC_NULL_ARG1_BUG.
9856         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9857         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9858         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9859         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9860
9861 2010-12-27  Jim Meyering  <meyering@redhat.com>
9862
9863         read-file.c: tweak syntax
9864         * lib/read-file.c (fread_file): Remove space after "*" in function
9865         definitions.
9866
9867 2010-12-27  Bruno Haible  <bruno@clisp.org>
9868
9869         times test: Avoid gcc warnings on OSF/1.
9870         * tests/test-times.c (main): Cast printf arguments from clock_t to
9871         'long int'.
9872
9873 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9874
9875         utimens: work around glibc rounding bug on older Linux kernels
9876         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9877         on Linux with a glibc whose utimes might not work, then work
9878         around a longstanding glibc bug involving rounding rather than
9879         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9880         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9881
9882 2010-12-26  Bruno Haible  <bruno@clisp.org>
9883
9884         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9885         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9886         _GL_CXXALIAS_SYS.
9887         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9888
9889 2010-12-26  Bruno Haible  <bruno@clisp.org>
9890
9891         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9892         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9893         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9894         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9895         looking for the declaration.
9896         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9897         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9898         problem.
9899         * doc/posix-functions/inet_pton.texi: Likewise.
9900
9901 2010-12-26  Bruno Haible  <bruno@clisp.org>
9902
9903         arpa_inet: Use the common idioms with C++ support.
9904         * lib/arpa_inet.in.h: Include c++defs.h.
9905         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9906         support.
9907         * modules/arpa_inet (Depends-on): Add c++defs.
9908         (Makefile.am): Substitute the contents of c++defs.h.
9909         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9910         * modules/arpa_inet-c++-tests: New file.
9911         * tests/test-arpa_inet-c++.cc: New file.
9912
9913 2010-12-25  Bruno Haible  <bruno@clisp.org>
9914
9915         Fix more C++ link errors on Solaris 8.
9916         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9917         $(LIB_EACCESS).
9918         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9919         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9920         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9921         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9922         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9923
9924 2010-12-25  Bruno Haible  <bruno@clisp.org>
9925
9926         printf-posix: Fix link error when a non-GCC compiler is used.
9927         * lib/stdio.in.h (printf): When not using GCC, override printf
9928         correctly.
9929         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9930
9931 2010-12-25  Bruno Haible  <bruno@clisp.org>
9932
9933         strerror_r-posix: Update doc.
9934         * doc/posix-functions/strerror_r.texi: Update doc about the return
9935         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9936
9937 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9938
9939         utimens: simplify the logic of the previous change
9940         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9941         This should not affect whether the test succeeds or fails.
9942
9943         utimens: configure better on hosts with NFS clock skew
9944         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9945         uses the clock of the local host.  It might use the clock of the
9946         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9947         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9948
9949 2010-12-25  Bruno Haible  <bruno@clisp.org>
9950
9951         ptsname test: Avoid failure on Solaris.
9952         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9953         open a pseudo-terminal; don't use BSD-style ptys.
9954         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9955
9956 2010-12-25  Bruno Haible  <bruno@clisp.org>
9957
9958         ptsname: Avoid ERANGE failure on some systems.
9959         * lib/ptsname.c (buffer): Increase size.
9960
9961 2010-12-25  Bruno Haible  <bruno@clisp.org>
9962
9963         rename, renameat: Avoid test failures at NFS mounted locations.
9964         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9965         so that subsequent mkdir calls succeed.
9966
9967 2010-12-25  Bruno Haible  <bruno@clisp.org>
9968
9969         iswblank: Fix C++ link error on Solaris 8.
9970         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9971         _GL_FUNCDECL_SYS.
9972
9973 2010-12-25  Bruno Haible  <bruno@clisp.org>
9974
9975         unistd: Fix C++ link error on Solaris 8.
9976         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9977
9978 2010-12-25  Bruno Haible  <bruno@clisp.org>
9979
9980         readlink doc: Mention an old glibc bug.
9981         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9982
9983 2010-12-25  Bruno Haible  <bruno@clisp.org>
9984
9985         fcntl-h: Fix for use of C++ on glibc systems.
9986         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9987         also on glibc systems in C++ mode.
9988         Reported by Gary V. Vaughan <gary@gnu.org>.
9989
9990 2010-12-25  Bruno Haible  <bruno@clisp.org>
9991
9992         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9993         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9994
9995 2010-12-25  Bruno Haible  <bruno@clisp.org>
9996
9997         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9998         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9999         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10000         test whether truncl works according to ISO C 99 with IEC 60559.
10001         * m4/truncl-ieee.m4: New file.
10002         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10003         m4/signbit.m4.
10004         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10005
10006 2010-12-25  Bruno Haible  <bruno@clisp.org>
10007
10008         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10009         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10010         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10011         test whether ceill works according to ISO C 99 with IEC 60559.
10012         * m4/ceill-ieee.m4: New file.
10013         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10014         m4/signbit.m4.
10015         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10016
10017 2010-12-25  Bruno Haible  <bruno@clisp.org>
10018
10019         Ensure all prerequisites of <wchar.h> are included.
10020         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10021         before <wchar.h>.
10022         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10023         gl_MBRLEN_NUL_RETVAL): Likewise.
10024         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10025         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10026         AC_FUNC_MBRTOWC): Likewise.
10027         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10028         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10029         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10030         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10031         Likewise.
10032         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10033         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10034         (gl_WCHAR_H): Improve comments.
10035         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10036
10037 2010-12-25  Bruno Haible  <bruno@clisp.org>
10038
10039         strtok_r: Fix C syntax error in autoconf macro.
10040         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10041         characters in test program.
10042
10043 2010-12-24  Bruno Haible  <bruno@clisp.org>
10044
10045         ceil, trunc, round: Fix gcc warnings.
10046         * lib/ceil.c (MIN): Undefine before redefining.
10047         * lib/trunc.c (MIN): Likewise.
10048         * lib/round.c (MIN): Likewise.
10049         Include <math.h> first.
10050
10051 2010-12-24  Bruno Haible  <bruno@clisp.org>
10052
10053         select tests: Avoid failures on OSF/1 5.1.
10054         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10055         failure of closing the last socket; it may fail with ECONNRESET.
10056
10057 2010-12-24  Eric Blake  <eblake@redhat.com>
10058
10059         stdint: avoid HP-UX 10.20 preprocessor bug
10060         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10061         than #if.
10062         * tests/test-floor2.c (main): Likewise.
10063         Reported by Peter O'Gorman.
10064
10065         pipe: make obsoletion transition easier
10066         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10067         * modules/pipe (Files): Include revived file.
10068         (Include): Drop reference, to mirror getdate's behavior.
10069
10070 2010-12-24  Bruno Haible  <bruno@clisp.org>
10071
10072         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10073         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10074         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10075         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10076
10077 2010-12-24  Bruno Haible  <bruno@clisp.org>
10078
10079         gethostname: Ensure declaration on NonStop Kernel.
10080         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10081         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10082
10083 2010-12-24  Bruno Haible  <bruno@clisp.org>
10084
10085         sys_select: Ensure all necessary types on NonStop Kernel.
10086         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10087         include <sys/time.h>.
10088         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10089         NonStop Kernel.
10090         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10091
10092 2010-12-24  Bruno Haible  <bruno@clisp.org>
10093
10094         sys_select: Remove unneeded include.
10095         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10096         have <sys/select.h>.
10097
10098 2010-12-24  Bruno Haible  <bruno@clisp.org>
10099
10100         gethostname: Provide a fallback for HOST_NAME_MAX.
10101         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10102         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10103         instead.
10104         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10105
10106 2010-12-24  Bruno Haible  <bruno@clisp.org>
10107
10108         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10109         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10110         (SA_RESTART): Likewise.
10111         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10112
10113 2010-12-24  Bruno Haible  <bruno@clisp.org>
10114
10115         signal: Define NSIG.
10116         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10117         * tests/test-signal.c (nsig): New variable.
10118         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10119
10120 2010-12-24  Bruno Haible  <bruno@clisp.org>
10121
10122         rename, renameat: Avoid test failures on OSF/1 5.1.
10123         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10124         alternative error codes.
10125         * tests/test-renameat.c (main): Likewise.
10126
10127 2010-12-24  Bruno Haible  <bruno@clisp.org>
10128
10129         *printf: Detect large precisions bug on Solaris 10/SPARC.
10130         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10131         by Paul Eggert.
10132         * tests/test-snprintf-posix.h (test_function): Add this test code here
10133         too.
10134         * tests/test-sprintf-posix.h (test_function): Likewise.
10135         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10136         * tests/test-vasprintf-posix.c (test_function): Likewise.
10137         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10138         around by gnulib.
10139         * doc/posix-functions/printf.texi: Likewise.
10140         * doc/posix-functions/snprintf.texi: Likewise.
10141         * doc/posix-functions/sprintf.texi: Likewise.
10142         * doc/posix-functions/vfprintf.texi: Likewise.
10143         * doc/posix-functions/vprintf.texi: Likewise.
10144         * doc/posix-functions/vsnprintf.texi: Likewise.
10145         * doc/posix-functions/vsprintf.texi: Likewise.
10146         * doc/posix-functions/dprintf.texi: Undo last commit.
10147         * doc/posix-functions/vdprintf.texi: Likewise.
10148
10149 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10150
10151         tests: port test-fdutimensat.c to Solaris 8
10152         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10153         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10154         On Solaris 8, it fails with errno == ENOSYS, because there is no
10155         futimens (so it can't use the fd), and there is no lutimens (so it
10156         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10157
10158         vsnprintf: make more consistent with snprintf; doc fixes
10159
10160         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10161         the byte count return problem was promoted from the snprintf-posix
10162         to the snprintf module.
10163         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10164         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10165         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10166         * tests/test-snprintf.c (main): Check the byte count returned.
10167         * tests/test-vsnprintf.c (main): Likewise.
10168
10169 2010-12-23  Eric Blake  <eblake@redhat.com>
10170
10171         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10172         * modules/sigpipe (License): Relax license.
10173
10174 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10175
10176         doc: document Solaris printf bug with large float precisions
10177         * doc/posix-functions/dprintf.texi (dprintf):
10178         * doc/posix-functions/fprintf.texi (fprintf):
10179         * doc/posix-functions/printf.texi (printf):
10180         * doc/posix-functions/snprintf.texi (snprintf):
10181         * doc/posix-functions/sprintf.texi (sprintf):
10182         * doc/posix-functions/vdprintf.texi (vdprintf):
10183         * doc/posix-functions/vfprintf.texi (vfprintf):
10184         * doc/posix-functions/vprintf.texi (vprintf):
10185         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10186         * doc/posix-functions/vsprintf.texi (vsprintf):
10187         Mention that these functions mishandle large floating point
10188         precisions on Solaris 10.  The same bug is also present in Solaris
10189         8, and I assume earlier.  This causes "cd gnulib-tests; make
10190         check" to fail on Solaris 8 (and I assume, later) when building
10191         the latest coreutils, in test-vasprintf-posix's call to
10192         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10193         the wide flavors (e.g., wprintf) so this patch just updates the
10194         documentation for the narrow ones.
10195
10196         test-posixtm.c: add two tests
10197         * tests/test-posixtm.c: Add two tests, to highlight the
10198         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10199         around this bug; this is merely to document it.
10200
10201 2010-12-22  Bruno Haible  <bruno@clisp.org>
10202
10203         getlogin_r: Work around portability problem on OSF/1.
10204         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10205         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10206         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10207         test for a truncated result.
10208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10209         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10210         * modules/getlogin_r (Depends-on): Add memchr.
10211         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10212
10213 2010-12-22  Bruno Haible  <bruno@clisp.org>
10214
10215         ptsname: Avoid test failure on OSF/1 5.1.
10216         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10217         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10218         (same_slave): New function.
10219         (main): Use it to compare ptsname's result with the expected file name.
10220
10221 2010-12-22  Bruno Haible  <bruno@clisp.org>
10222
10223         Port extended stdio modules to HP NonStop Kernel.
10224         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10225         macros.
10226         * lib/fbufmode.c: Update comments.
10227         * lib/fflush.c: Likewise.
10228         * lib/fpurge.c: Likewise.
10229         * lib/freadable.c: Likewise.
10230         * lib/freadahead.c: Likewise.
10231         * lib/freading.c: Likewise.
10232         * lib/freadptr.c: Likewise.
10233         * lib/freadseek.c: Likewise.
10234         * lib/fseeko.c: Likewise.
10235         * lib/fseterr.c: Likewise.
10236         * lib/fwritable.c: Likewise.
10237         * lib/fwriting.c: Likewise.
10238         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10239
10240 2010-12-22  Bruno Haible  <bruno@clisp.org>
10241
10242         ttyname_r: Work around bug on OSF/1 5.1.
10243         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10244         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10245         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10246         present.
10247         * lib/ttyname_r.c (ttyname_r): Update comments.
10248
10249 2010-12-22  Bruno Haible  <bruno@clisp.org>
10250
10251         round: Implement result sign according to IEEE 754.
10252         * lib/round.c (MIN, MINUS_ZERO): New macros.
10253         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10254         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10255         * tests/test-round-ieee.c (main): Likewise.
10256         * tests/test-roundl-ieee.c (main): Likewise.
10257
10258         trunc: Implement result sign according to IEEE 754.
10259         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10260         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10261         * tests/test-trunc2.c: Include minus-zero.h.
10262         (MINUS_ZERO): New macro.
10263         (trunc_reference): Keep in sync with lib/trunc.c.
10264         * tests/test-truncf2.c: Include minus-zero.h.
10265         (MINUS_ZERO): New macro.
10266         (truncf_reference): Keep in sync with lib/trunc.c.
10267         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10268         * tests/test-trunc-ieee.c (main): Likewise.
10269         * tests/test-truncl-ieee.c (main): Likewise.
10270
10271         ceil: Implement result sign according to IEEE 754.
10272         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10273         (FUNC): Return -0.0 for -1 < x < 0.
10274         * tests/test-ceil2.c: Include minus-zero.h.
10275         (MINUS_ZERO): New macro.
10276         (ceil_reference): Keep in sync with lib/ceil.c.
10277         * tests/test-ceilf2.c: Include minus-zero.h.
10278         (MINUS_ZERO): New macro.
10279         (ceilf_reference): Keep in sync with lib/ceil.c.
10280         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10281         * tests/test-ceil-ieee.c (main): Likewise.
10282         * tests/test-ceill-ieee.c (main): Likewise.
10283
10284         floor: Implement result sign according to IEEE 754.
10285         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10286         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10287         * tests/test-floorf2.c (floorf_reference): Likewise.
10288         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10289         * tests/test-floor-ieee.c (main): Likewise.
10290         * tests/test-floorl-ieee.c (main): Likewise.
10291
10292 2010-12-22  Bruno Haible  <bruno@clisp.org>
10293
10294         getaddrinfo: Update doc.
10295         * doc/posix-functions/gai_strerror.texi: Return type is also different
10296         on AIX and HP-UX.
10297
10298 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10299
10300         getaddrinfo, inet_ntop: Update doc for Solaris.
10301         * doc/posix-functions/gai_strerror.texi: Return type is also an
10302         issue on Solaris 9 and earlier.
10303         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10304         on Solaris 10 and earlier.
10305
10306 2010-12-21  Bruno Haible  <bruno@clisp.org>
10307
10308         New module 'roundl-ieee'.
10309         * modules/roundl-ieee: New file.
10310         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10311         test whether roundl works according to ISO C 99 with IEC 60559.
10312         * m4/roundl-ieee.m4: New file.
10313         * modules/roundl-ieee-tests: New file.
10314         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10315         * tests/test-roundl.c (main): Remove signbit tests.
10316         * modules/roundl-tests (Depends-on): Remove signbit.
10317         * doc/posix-functions/roundl.texi: Mention the new module.
10318
10319 2010-12-21  Bruno Haible  <bruno@clisp.org>
10320
10321         New module 'truncl-ieee'.
10322         * modules/truncl-ieee: New file.
10323         * modules/truncl-ieee-tests: New file.
10324         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10325         * tests/test-truncl.c (main): Remove signbit tests.
10326         * modules/truncl-tests (Depends-on): Remove signbit.
10327         * doc/posix-functions/truncl.texi: Mention the new module.
10328
10329 2010-12-21  Bruno Haible  <bruno@clisp.org>
10330
10331         New module 'ceill-ieee'.
10332         * modules/ceill-ieee: New file.
10333         * modules/ceill-ieee-tests: New file.
10334         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10335         * tests/test-ceill.c (main): Remove signbit tests.
10336         * modules/ceill-tests (Depends-on): Remove signbit.
10337         * doc/posix-functions/ceill.texi: Mention the new module.
10338
10339 2010-12-21  Bruno Haible  <bruno@clisp.org>
10340
10341         New module 'floorl-ieee'.
10342         * modules/floorl-ieee: New file.
10343         * modules/floorl-ieee-tests: New file.
10344         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10345         * tests/test-floorl.c (main): Remove signbit tests.
10346         * modules/floorl-tests (Depends-on): Remove signbit.
10347         * doc/posix-functions/floorl.texi: Mention the new module.
10348
10349 2010-12-21  Bruno Haible  <bruno@clisp.org>
10350
10351         New module 'round-ieee'.
10352         * modules/round-ieee: New file.
10353         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10354         whether round works according to ISO C 99 with IEC 60559.
10355         * m4/round-ieee.m4: New file.
10356         * modules/round-ieee-tests: New file.
10357         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10358         * tests/test-round1.c (main): Remove signbit tests.
10359         * modules/round-tests (Depends-on): Remove 'signbit'.
10360         * doc/posix-functions/round.texi: Mention the new module.
10361
10362 2010-12-21  Bruno Haible  <bruno@clisp.org>
10363
10364         New module 'trunc-ieee'.
10365         * modules/trunc-ieee: New file.
10366         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10367         whether trunc works according to ISO C 99 with IEC 60559.
10368         * m4/trunc-ieee.m4: New file.
10369         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10371         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10372         * modules/trunc-ieee-tests: New file.
10373         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10374         * tests/test-trunc1.c (main): Remove signbit tests.
10375         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10376         * doc/posix-functions/trunc.texi: Mention the new module.
10377
10378 2010-12-21  Bruno Haible  <bruno@clisp.org>
10379
10380         New module 'ceil-ieee'.
10381         * modules/ceil-ieee: New file.
10382         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10383         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10384         ISO C 99 with IEC 60559.
10385         * m4/ceil-ieee.m4: New file.
10386         * modules/ceil (Files): Add lib/ceil.c.
10387         (Depends-on): Add 'float'.
10388         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10389         * lib/math.in.h (ceil): New declaration.
10390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10391         REPLACE_CEIL.
10392         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10393         * modules/ceil-ieee-tests: New file.
10394         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10395         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10396         * doc/posix-functions/ceil.texi: Mention the new module.
10397
10398 2010-12-21  Bruno Haible  <bruno@clisp.org>
10399
10400         New module 'floor-ieee'.
10401         * modules/floor-ieee: New file.
10402         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10403         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10404         ISO C 99 with IEC 60559.
10405         * m4/floor-ieee.m4: New file.
10406         * modules/floor (Files): Add lib/floor.c.
10407         (Depends-on): Add 'float'.
10408         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10409         * lib/math.in.h (floor): New declaration.
10410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10411         REPLACE_FLOOR.
10412         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10413         * modules/floor-ieee-tests: New file.
10414         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10415         * tests/test-math-c++.cc: Check the signature of 'floor'.
10416         * doc/posix-functions/floor.texi: Mention the new module.
10417
10418 2010-12-21  Bruno Haible  <bruno@clisp.org>
10419
10420         New module 'roundf-ieee'.
10421         * modules/roundf-ieee: New file.
10422         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10423         test whether roundf works according to ISO C 99 with IEC 60559.
10424         * m4/roundf-ieee.m4: New file.
10425         * modules/roundf-ieee-tests: New file.
10426         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10427         * tests/test-roundf1.c (main): Remove signbit tests.
10428         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10429         * doc/posix-functions/roundf.texi: Mention the new module.
10430
10431 2010-12-21  Bruno Haible  <bruno@clisp.org>
10432
10433         New module 'truncf-ieee'.
10434         * modules/truncf-ieee: New file.
10435         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10436         test whether truncf works according to ISO C 99 with IEC 60559.
10437         * m4/truncf-ieee.m4: New file.
10438         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10440         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10441         * modules/truncf-ieee-tests: New file.
10442         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10443         * tests/test-truncf1.c (main): Remove signbit tests.
10444         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10445         * doc/posix-functions/truncf.texi: Mention the new module.
10446
10447 2010-12-21  Bruno Haible  <bruno@clisp.org>
10448
10449         New module 'ceilf-ieee'.
10450         * modules/ceilf-ieee: New file.
10451         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10452         test whether ceilf works according to ISO C 99 with IEC 60559.
10453         * m4/ceilf-ieee.m4: New file.
10454         * modules/ceilf-ieee-tests: New file.
10455         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10456         * tests/test-ceilf1.c (main): Remove signbit tests.
10457         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10458         * doc/posix-functions/ceilf.texi: Mention the new module.
10459
10460 2010-12-21  Bruno Haible  <bruno@clisp.org>
10461
10462         New module 'floorf-ieee'.
10463         * modules/floorf-ieee: New file.
10464         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10465         test whether floorf works according to ISO C 99 with IEC 60559.
10466         * m4/floorf-ieee.m4: New file.
10467         * modules/floorf-ieee-tests: New file.
10468         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10469         * tests/test-floorf1.c (main): Remove signbit tests.
10470         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10471         * doc/posix-functions/floorf.texi: Mention the new module.
10472
10473 2010-12-21  Bruno Haible  <bruno@clisp.org>
10474
10475         Support for minus zero in autoconf macros.
10476         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10477         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10478         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10479         * tests/minus-zero.h: Update comments.
10480
10481 2010-12-21  Bruno Haible  <bruno@clisp.org>
10482
10483         Tests for module 'ceil'.
10484         * modules/ceil-tests: New file.
10485         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10486         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10487
10488 2010-12-21  Bruno Haible  <bruno@clisp.org>
10489
10490         Tests for module 'floor'.
10491         * modules/floor-tests: New file.
10492         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10493         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10494
10495 2010-12-21  Bruno Haible  <bruno@clisp.org>
10496
10497         math: Fix indentation.
10498         * lib/math.in.h (floorf): Fix indentation.
10499
10500 2010-12-21  Bruno Haible  <bruno@clisp.org>
10501
10502         Fix cross-compilation guesses on Solaris.
10503         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10504         not match "solaris2.10".
10505         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10506         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10507         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10508
10509 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10510
10511         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10512         This fixes a problem observed with the latest coreutils snapshot
10513         that caused a test to fail on Solaris 8.  src/csplit.c's call
10514         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10515         earlier, instead of returning the number of bytes that would have
10516         been generated; this causes csplit to incorrectly report memory
10517         exhaustion.
10518         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10519         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10520         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10521         comments to match.
10522         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10523         Fix typo in matching older versions of Solaris: "solaris2.10"
10524         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10525         only for guessing while cross-compiling.
10526         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10527
10528 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10529
10530         ftoastr: fix comment again
10531         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10533         Also, simplify example a bit by using flags = 0.
10534
10535 2010-12-20  Bruno Haible  <bruno@clisp.org>
10536
10537         round*, trunc*: Update documentation regarding glibc.
10538         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10539         * doc/posix-functions/round.texi: Likewise.
10540         * doc/posix-functions/roundl.texi: Likewise.
10541         * doc/posix-functions/truncf.texi: Likewise.
10542         * doc/posix-functions/trunc.texi: Likewise.
10543         * doc/posix-functions/truncl.texi: Likewise.
10544
10545 2010-12-20  Bruno Haible  <bruno@clisp.org>
10546
10547         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10548         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10549         * doc/posix-functions/round.texi: Likewise.
10550         * doc/posix-functions/roundl.texi: Likewise.
10551
10552 2010-12-20  Bruno Haible  <bruno@clisp.org>
10553
10554         ttyname_r: Add missing declaration on HP-UX 11.
10555         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10556         HAVE_TTYNAME_R.
10557         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10558         declared. Set HAVE_TTYNAME_R always.
10559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10560         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10561         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10562         HAVE_TTYNAME_R.
10563         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10564
10565 2010-12-20  Bruno Haible  <bruno@clisp.org>
10566
10567         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10568         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10569         * doc/posix-functions/getlogin_r.texi: Likewise.
10570         * tests/test-getlogin.c: Include <errno.h>.
10571         (main): Avoid test failure on HP-UX 11.11.
10572         * tests/test-getlogin_r.c (main): Likewise.
10573
10574 2010-12-20  Bruno Haible  <bruno@clisp.org>
10575
10576         getlogin_r: Add missing declaration on HP-UX 11.
10577         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10578         declared also when it exists as a function.
10579         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10580
10581 2010-12-20  Bruno Haible  <bruno@clisp.org>
10582
10583         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10584         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10585         through wcrtomb.
10586
10587 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10588
10589         ftoastr: fix comment
10590         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10591         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10592
10593 2010-12-19  Bruno Haible  <bruno@clisp.org>
10594
10595         isnan: Ensure it is a macro.
10596         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10597         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10598         Solaris.
10599
10600 2010-12-19  Bruno Haible  <bruno@clisp.org>
10601
10602         ldexpl test: Fix link error on OSF/1 5.1.
10603         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10604
10605 2010-12-19  Bruno Haible  <bruno@clisp.org>
10606
10607         wctype: Make it work in C++ mode on OSF/1 5.1.
10608         * lib/wctype.in.h (iswblank): Declare but not define here.
10609         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10610         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10611         * modules/wctype (Files): Add lib/iswblank.c.
10612
10613 2010-12-19  Bruno Haible  <bruno@clisp.org>
10614
10615         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10616         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10617         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10618
10619 2010-12-19  Bruno Haible  <bruno@clisp.org>
10620
10621         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10622         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10623         _POSIX_PII_SOCKET.
10624         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10625         * doc/posix-functions/recvfrom.texi: Likewise.
10626         * doc/posix-functions/send.texi: Likewise.
10627         * doc/posix-functions/sendto.texi: Likewise.
10628
10629 2010-12-19  Bruno Haible  <bruno@clisp.org>
10630
10631         tcgetsid: Add missing declaration on OSF/1 5.1.
10632         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10633         HAVE_TCGETSID.
10634         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10635         Don't set HAVE_TCGETSID.
10636         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10637         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10638         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10639         HAVE_TCGETSID.
10640         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10641
10642 2010-12-19  Bruno Haible  <bruno@clisp.org>
10643
10644         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10645         * lib/stdio.in.h: During the include_next statement, let recursive
10646         includes of this file include only the system header file.
10647
10648 2010-12-19  Bruno Haible  <bruno@clisp.org>
10649
10650         iconv_open: Fix regression from 2010-12-04.
10651         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10652         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10653
10654 2010-12-19  Bruno Haible  <bruno@clisp.org>
10655
10656         stdbool test: Avoid a gcc warning.
10657         * tests/test-stdbool.c (main): Fail if e1 is false.
10658         Reported by Jim Meyering.
10659
10660 2010-12-19  Jim Meyering  <meyering@redhat.com>
10661
10662         setenv: restore to working order
10663         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10664         mistakenly removed.
10665         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10666         HAVE_SETENV.
10667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10668         HAVE_SETENV.
10669
10670 2010-12-19  Bruno Haible  <bruno@clisp.org>
10671
10672         Document some different function declarations on OSF/1 5.1.
10673         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10674         * doc/posix-functions/inet_ntop.texi: Likewise.
10675         * doc/posix-functions/gethostname.texi: Likewise.
10676         * lib/unistd.in.h (gethostname): Update comment.
10677
10678 2010-12-19  Bruno Haible  <bruno@clisp.org>
10679
10680         doc: Mention vasprintf-posix module.
10681         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10682         the 'vasprintf-posix' module.
10683         * doc/glibc-functions/vasprintf.texi: Likewise.
10684
10685 2010-12-19  Bruno Haible  <bruno@clisp.org>
10686
10687         unsetenv: Add missing declaration on OSF/1 5.1.
10688         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10689         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10690         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10692         not HAVE_UNSETENV.
10693         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10694         HAVE_UNSETENV.
10695         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10696
10697 2010-12-19  Bruno Haible  <bruno@clisp.org>
10698
10699         setenv: Add missing declaration on OSF/1 5.1.
10700         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10701         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10702         declared. Don't set HAVE_SETENV.
10703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10704         not HAVE_SETENV.
10705         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10706         HAVE_SETENV.
10707         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10708
10709 2010-12-19  Bruno Haible  <bruno@clisp.org>
10710
10711         nl_langinfo tests: Avoid gcc warning.
10712         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10713
10714 2010-12-19  Bruno Haible  <bruno@clisp.org>
10715
10716         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10717         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10718         _GL_CXXALIAS_SYS.
10719
10720 2010-12-19  Bruno Haible  <bruno@clisp.org>
10721
10722         stdbool: Relax test.
10723         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10724         address to 'bool' work in static initializer, for compilers other than
10725         GCC.
10726
10727 2010-12-19  Bruno Haible  <bruno@clisp.org>
10728
10729         ftello: Add missing declaration on OSF/1 5.1.
10730         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10731         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10733         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10734         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10735
10736 2010-12-19  Bruno Haible  <bruno@clisp.org>
10737
10738         fseeko: Add missing declaration on OSF/1 5.1.
10739         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10740         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10742         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10743         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10744
10745 2010-12-19  Bruno Haible  <bruno@clisp.org>
10746
10747         fchdir: Add missing declaration on OSF/1 5.1.
10748         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10751         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10752         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10753
10754 2010-12-19  Bruno Haible  <bruno@clisp.org>
10755
10756         relocatable-prog-wrapper: Separate from relocatable-prog.
10757         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10758         uninstall-relocwrapper rule here.
10759         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10760         Reported by Ian Beckwith <ianb@erislabs.net>.
10761
10762 2010-12-19  Bruno Haible  <bruno@clisp.org>
10763
10764         unistr/u8-mbsnlen: Add missing dependency.
10765         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10766         Reported by Ian Beckwith <ianb@erislabs.net>.
10767
10768 2010-12-19  Bruno Haible  <bruno@clisp.org>
10769
10770         iconv: Make it possible again to use this module without 'iconv-h'.
10771         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10772         if it is not defined.
10773         Reported by Ian Beckwith <ianb@erislabs.net>.
10774
10775 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10776
10777         acl: port to Solaris 8 when copying from tmpfs to ufs
10778         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10779         error number.  Problem observed on Solaris 8 with latest
10780         coreutils, with "mv A B", where A is on a tmpfs file system and B
10781         is on a ufs file system.  This caused coreutils' mv/part-symlink
10782         test to fail.
10783
10784         tests: set fail=0 at start
10785         * tests/init.sh (setup_): Move fail=0 initialization here ...
10786         (mktempd_): ... from here, so that tests can rely on fail being
10787         set to 0 initially.  This fixes a problem in coreutils; see:
10788         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10789
10790 2010-12-18  Bruno Haible  <bruno@clisp.org>
10791
10792         memmem-simple: Stylistic changes.
10793         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10794         Fix preprocessor directive indentation.
10795
10796 2010-12-15  Pádraig Brady <P@draigBrady.com>
10797
10798         memmem, memmem-simple: reorganize and expand empty needle check
10799         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10800         functional checks to memmem-simple so that one has a fully functional
10801         memmem by using just this module.
10802         Restrict the performance only check to the memmem module.
10803         Also expand the empty needle check to ensure the correct
10804         pointer is returned, not just a non NULL pointer.
10805         * doc/glibc-functions/memmem.texi: Rearrange the portability
10806         documentation to correlate with the rearranged checks.
10807         Clarify exactly how the memmem and memmem-simple modules
10808         relate to each other.
10809
10810 2010-12-15  Pádraig Brady <P@draigBrady.com>
10811             Bruno Haible  <bruno@clisp.org>
10812
10813         Improve cross-compilation guesses for uClibc.
10814         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10815         that uClibc does not have the glibc bug.
10816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10817         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10818
10819 2010-12-14  Eric Blake  <eblake@redhat.com>
10820
10821         configmake: provide fallbacks for oldest supported autotools
10822         * m4/configmake.m4: New file.
10823         * modules/configmake (Files): Ship it.
10824         (configure.ac): Use it to guarantee fallbacks.
10825
10826 2010-12-13  Pádraig Brady <P@draigBrady.com>
10827
10828         read-file: Improve handling of large files
10829         * lib/read-file.c (fread_file): Minimize realloc()s
10830         for regular files, and better manage sizes around SIZE_MAX.
10831
10832 2010-12-13  Eric Blake  <eblake@redhat.com>
10833
10834         cloexec, fcntl: relax license
10835         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10836         consent from all contributors.
10837         * modules/fcntl (License): Likewise.
10838
10839 2010-12-10  Bruno Haible  <bruno@clisp.org>
10840
10841         Tests for module 'pipe-posix'.
10842         * modules/pipe-posix-tests: New file.
10843         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10844
10845 2010-12-10  Bruno Haible  <bruno@clisp.org>
10846
10847         pipe-posix: Make it work in C++ mode.
10848         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10849         (pipe): Use common idiom, not a macro definition.
10850         * lib/pipe.c: New file.
10851         * m4/pipe.m4: New file.
10852         * modules/pipe-posix (Description): Enhance.
10853         (Files): Add lib/pipe.c, m4/pipe.m4.
10854         (configure.ac): Invoke gl_FUNC_PIPE.
10855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10856         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10857         * tests/test-unistd-c++.cc: Check the signature of pipe.
10858
10859 2010-12-10  Bruno Haible  <bruno@clisp.org>
10860
10861         Rename module 'pipe' to 'spawn-pipe'.
10862         * modules/spawn-pipe: New file, renamed from modules/pipe.
10863         (Files, configure.ac, Makefile.am): Update.
10864         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10865         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10866         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10867         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10868         "spawn-pipe.h" instead of "pipe.h".
10869         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10870         to gl_SPAWN_PIPE.
10871         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10872         (Files, Makefile.am): Update.
10873         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10874         Update.
10875         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10876         Include "spawn-pipe.h" instead of "pipe.h".
10877         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10878         * lib/javacomp.c: Likewise.
10879         * lib/javaversion.c: Likewise.
10880         * lib/pipe-filter-gi.c: Likewise.
10881         * lib/pipe-filter-ii.c: Likewise.
10882         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10883         * modules/javacomp (Depends-on): Likewise.
10884         * modules/javaversion (Depends-on): Likewise.
10885         * modules/pipe-filter-gi (Depends-on): Likewise.
10886         * modules/pipe-filter-ii (Depends-on): Likewise.
10887         * MODULES.html.sh (Executing programs): Update.
10888         * NEWS: Mention the change.
10889
10890 2010-12-10  Eric Blake  <eblake@redhat.com>
10891
10892         pipe-posix: new module
10893         * modules/pipe-posix: New file.
10894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10895         (gl_UNISTD_H): Check for declaration.
10896         * modules/unistd (Makefile.am): Substitute it.
10897         * lib/unistd.in.h (pipe): Provide it for mingw.
10898         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10899         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10900
10901 2010-12-07  Bruno Haible  <bruno@clisp.org>
10902
10903         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10904         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10905         u8_strcmp_gnu.
10906         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10907
10908 2010-12-06  Bruno Haible  <bruno@clisp.org>
10909
10910         Update internal documentation.
10911         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10912
10913 2010-12-04  Bruno Haible  <bruno@clisp.org>
10914
10915         Put more information about failed tests into the test return codes.
10916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10917         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10918         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10919         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10920         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10921         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10922         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10923         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10924         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10927         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10928         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10929         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10930         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10931         returns a bit mask.
10932         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10933         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10934         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10935         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10936         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10937         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10940         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10941         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10942         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10943         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10944         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10945         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10946         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10947         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10948         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10949         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10950         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10951         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10952         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10953         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10954         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10955         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10956         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10957         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10958         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10959         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10960         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10961         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10962         gl_PRINTF_PRECISION): Likewise.
10963         * m4/regex.m4 (gl_REGEX): Likewise.
10964         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10965         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10966         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10967         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10968         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10970         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10971         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10972         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10973         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10974         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10975         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10976         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10977         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10978         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10979         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10980         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10981         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10983         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10984         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10985         enumerated value.
10986         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10987
10988 2010-12-04  Bruno Haible  <bruno@clisp.org>
10989
10990         Update for Solaris 11 2010-11.
10991         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10992         Express, released in November 2010.
10993
10994 2010-12-04  Bruno Haible  <bruno@clisp.org>
10995
10996         nproc: Relax license.
10997         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10998         and Paul Eggert.
10999         Requested by Ludovic Courtès <ludo@gnu.org>.
11000
11001 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11002
11003         utimecmp: fine-grained src to nearby coarse-grained dest
11004
11005         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11006         and the source is on a file system with higher-resolution time
11007         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11008         not work, and the time stamps are close together, the algorithm to
11009         determine the exact resolution from the read-back mtime was buggy:
11010         it had a "!=" where it should have had an "==".  This bug has been
11011         in the code ever since it was introduced to gnulib.
11012         Problem reported by Dan Jacobson in
11013         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11014
11015 2010-11-30  Bruno Haible  <bruno@clisp.org>
11016
11017         strerror_r-posix: Fix autoconf test.
11018         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11019
11020 2010-11-28  Bruno Haible  <bruno@clisp.org>
11021             Paul Eggert  <eggert@cs.ucla.edu>
11022
11023         Tests for module 'getdomainname'.
11024         * modules/getdomainname-tests: New file.
11025         * tests/test-getdomainname.c: New file, based on
11026         tests/test-gethostname.c.
11027
11028 2010-11-28  Bruno Haible  <bruno@clisp.org>
11029             Paul Eggert  <eggert@cs.ucla.edu>
11030
11031         getdomainname: Use the system function when possible.
11032         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11033         (getdomainname): Replace if needed. Provide the declaration if it is
11034         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11035         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11036         (getdomainname): When the system has getdomainname, call the system
11037         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11038         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11039         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11040         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11041         the function if its second argument is of type 'int' or if it is found
11042         in libnsl.
11043         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11044         <sys/systeminfo.h> and sysinfo().
11045         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11047         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11048         HAVE_GETDOMAINNAME.
11049         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11050         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11051         * doc/glibc-functions/getdomainname.texi: Document the problems with
11052         the getdomainname declaration.
11053
11054 2010-11-28  Bruno Haible  <bruno@clisp.org>
11055
11056         sys_socket: Ensure ss_family field on AIX.
11057         * lib/sys_socket.in.h (ss_family): New macro definition.
11058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11059         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11060         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11061         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11062         * modules/sys_socket (Makefile.am): Substitute
11063         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11064         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11065
11066 2010-11-27  Bruno Haible  <bruno@clisp.org>
11067
11068         readline: Improve configure output.
11069         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11070         "checking for readline..." result understandable.
11071
11072 2010-11-27  Bruno Haible  <bruno@clisp.org>
11073
11074         *printf-posix: Detect a bug on Solaris 10/x86.
11075         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11076         for floating-point output.
11077         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11078         directive.
11079         * tests/test-snprintf-posix.h (test_function): Likewise.
11080         * tests/test-sprintf-posix.h (test_function): Likewise.
11081         * tests/test-vasprintf-posix.c (test_function): Likewise.
11082         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11083         * doc/posix-functions/printf.texi: Likewise.
11084         * doc/posix-functions/snprintf.texi: Likewise.
11085         * doc/posix-functions/sprintf.texi: Likewise.
11086         * doc/posix-functions/vfprintf.texi: Likewise.
11087         * doc/posix-functions/vprintf.texi: Likewise.
11088         * doc/posix-functions/vsnprintf.texi: Likewise.
11089         * doc/posix-functions/vsprintf.texi: Likewise.
11090         * doc/glibc-functions/obstack_printf.texi: Likewise.
11091         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11092
11093 2010-11-27  Bruno Haible  <bruno@clisp.org>
11094
11095         Fix link error when module libunistring-optional is in use.
11096         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11097         * modules/striconveha-tests (Makefile.am): Likewise.
11098
11099 2010-11-27  Bruno Haible  <bruno@clisp.org>
11100
11101         regex: Mention link dependencies.
11102         * modules/regex (Link): New section.
11103         * modules/rpmatch (Link): Likewise.
11104         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11105
11106 2010-11-27  Bruno Haible  <bruno@clisp.org>
11107
11108         ftoastr: Fix compilation error on Solaris.
11109         * lib/ftoastr.c: Include <config.h>.
11110
11111 2010-11-27  Bruno Haible  <bruno@clisp.org>
11112
11113         getloadavg: Update documentation.
11114         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11115
11116 2010-11-27  Bruno Haible  <bruno@clisp.org>
11117
11118         sys_socket: Fix test whether the functions are declared.
11119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11120         not <sys/select.h>.
11121
11122 2010-11-27  Bruno Haible  <bruno@clisp.org>
11123
11124         getpass: Make sure to get system declaration on some platforms.
11125         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11126         gl_USE_SYSTEM_EXTENSIONS.
11127         * modules/getpass (Depends-on): Add extensions.
11128
11129 2010-11-26  Bruno Haible  <bruno@clisp.org>
11130
11131         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11132         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11133         'iconv' module is present.
11134         (ICONV_CONST): New macro.
11135         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11136         ICONV_CONST.
11137         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11138         set ICONV_CONST.
11139         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11140         here.
11141         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11142         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11143         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11144         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11145         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11146         present.
11147
11148 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11149
11150         ftoastr: comment fix
11151         * lib/ftoastr.c: "little" -> "little or no" in comment
11152
11153 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11154
11155         stdint: port to GCC 4.3 + OSX + Octave
11156         On this platform, stdint.h is buggy and defines int64_t to long
11157         long int.  The replacement defined it to long int, causing
11158         problems with C++ style name mangling.  Instead, trust the system
11159         definition if INT64_MAX is defined, and likewise for the unsigned
11160         variant.   Problem reported by Jarno Rajahalme in
11161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11162         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11163         and don't mess with int64_t and INT64_MAX in this case.
11164         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11165
11166 2010-11-24  Bruno Haible  <bruno@clisp.org>
11167
11168         doc: Corrections regarding MacOS X 10.4 and 10.5.
11169         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11170         MacOS X.
11171         Reported by Simon Josefsson.
11172
11173 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11174
11175         Uninstall ".bin" files installed by relocwrapper.
11176         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11177         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11178         unless it is already there.
11179
11180 2010-11-21  Bruno Haible  <bruno@clisp.org>
11181
11182         Update for NetBSD 5.0.
11183         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11184         NetBSD; the test fails on NetBSD 5.0.
11185         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11186         about NetBSD.
11187
11188 2010-11-21  Bruno Haible  <bruno@clisp.org>
11189
11190         Update for HP-UX 11.23 and HP-UX 11.31.
11191         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11192         HP-UX.
11193
11194 2010-11-21  Bruno Haible  <bruno@clisp.org>
11195
11196         Update for MacOS X 10.5.
11197         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11198         MacOS X; the test fails on MacOS X 10.5.8.
11199         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11200         about MacOS X.
11201
11202 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11203
11204         bootstrap: add bootstrap_sync option.
11205         See discussion at
11206         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11207         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11208         * build-aux/bootstrap: Accept --bootstrap-sync to update
11209         bootstrap if it is not identical to the local gnulib's
11210         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11211         enable this by default.  Accept --no-bootstrap-sync to disable
11212         it.
11213
11214 2010-11-20  Bruno Haible  <bruno@clisp.org>
11215
11216         Ensure that <features.h> is included before __GLIBC__ is tested.
11217         * lib/printf-parse.h: Include <features.h>.
11218         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11219         Reported by Mike Frysinger <vapier@gentoo.org>.
11220
11221         Ensure that <features.h> is included before __GLIBC__ is tested.
11222         * lib/wchar.in.h: Include <features.h>.
11223         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11224         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11225         Reported by Mike Frysinger <vapier@gentoo.org>.
11226
11227         Ensure that <features.h> is included before __GLIBC__ is tested.
11228         * lib/arpa_inet.in.h: Include <features.h>.
11229         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11230         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11231         Reported by Mike Frysinger <vapier@gentoo.org>.
11232
11233         Ensure that <features.h> is included before __GLIBC__ is tested.
11234         * build-aux/link-warning.h: Include <features.h>.
11235         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11236         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11237         Reported by Mike Frysinger <vapier@gentoo.org>.
11238
11239         Ensure that <features.h> is included before __GLIBC__ is tested.
11240         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11241         Reported by Mike Frysinger <vapier@gentoo.org>.
11242
11243 2010-11-20  Bruno Haible  <bruno@clisp.org>
11244
11245         memmem: Fix autoconf test.
11246         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11247
11248 2010-11-20  Bruno Haible  <bruno@clisp.org>
11249
11250         Port to uClibc.
11251         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11252         * lib/fcntl.in.h: Likewise.
11253         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11254         * lib/mbrtowc.c (mbrtowc): Likewise.
11255         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11256         * lib/strerror_r.c: Likewise.
11257         * lib/unistr/u8-strnlen.c: Likewise.
11258         * lib/vasnprintf.c (decimal_point_char): Likewise.
11259         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11260         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11261         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11262         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11263         * tests/test-sigaction.c (handler, main): Likewise.
11264         * lib/freading.h: Treat uClibc like a non-glibc platform.
11265         * lib/freading.c: Likewise.
11266         * lib/gettext.h: Likewise.
11267         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11268         Likewise.
11269         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11270         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11271         * lib/propername.c (proper_name_utf8): Likewise.
11272         * lib/spawn.in.h: Likewise.
11273         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11274         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11275         mem_cd_iconveh_internal): Likewise.
11276         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11277         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11278         strstr, strcasestr): Likewise.
11279         * lib/unicodeio.c (unicode_to_mb): Likewise.
11280         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11281         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11282         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11283         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11284         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11285         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11286         * lib/unistr/u8-stpncpy.c: Likewise.
11287         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11288         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11289         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11290         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11291         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11292         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11293         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11296         Likewise.
11297         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11298         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11299         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11301         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11302         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11303         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11304         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11305         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11306         * tests/test-striconveha.c (main): Likewise.
11307         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11308         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11309         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11310         * doc/posix-functions/getline.texi: Likewise.
11311         Reported by Mike Frysinger <vapier@gentoo.org>.
11312
11313 2010-11-20  Bruno Haible  <bruno@clisp.org>
11314
11315         nproc: Fix condition.
11316         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11317         HAVE_PTHREAD_AFFINITY_NP.
11318
11319 2010-11-20  Bruno Haible  <bruno@clisp.org>
11320
11321         Fix a comment.
11322         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11323
11324 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11325
11326         ftoastr: don't assume snprintf
11327         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11328         Implement a subset of snprintf here, by using sprintf safely.
11329         * modules/ftoastr (Depends-on): Remove snprintf.
11330
11331 2010-11-19  Jim Meyering  <meyering@redhat.com>
11332
11333         test-rename.h: fix compilation failure
11334         * tests/test-rename.h (test_rename): Add omitted "}".
11335
11336 2010-11-17  Jim Meyering  <meyering@redhat.com>
11337
11338         maint.mk: add a URL discussing the no-@acronym policy
11339         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11340
11341 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11342
11343         ftoastr: depend on snprintf, improve comments
11344         * lib/ftoastr.c: Also mention Loitsch's draft.
11345         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11346         needed in the current implementation, but it might simplify
11347         speeding up the code later.
11348         * modules/ftoastr: Depend on snprintf; this improves portability.
11349         Suggested by Bruno Haible in the same email.
11350
11351         ftoastr: port to hosts lacking strtof and strtold
11352         Problem reported by Bruno Haible in
11353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11354         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11355         environment and strtold (and presumably strtof) are not available.
11356         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11357         (configure.ac): Require gl_C99_STRTOLD.
11358
11359 2010-11-18  Bruno Haible  <bruno@clisp.org>
11360
11361         c-strtold: Avoid link error on AIX 7.
11362         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11363         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11364         (gl_C_STRTOLD): Test whether strtold_l exists.
11365         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11366
11367 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11368
11369         intprops: new macro INT_BITS_STRLEN_BOUND
11370         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11371         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11372         not exposed.  Also, it uses a slightly tighter bound than before;
11373         though this makes no practical difference, we might as well be as
11374         tight as we easily can.
11375
11376         ftoastr: new module, for lossless conversion of floats to short strings
11377         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11378         * modules/ftoastr: New files.
11379
11380 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11381
11382         bootstrap: port to Solaris sed
11383         * build-aux/bootstrap (get_version): Port to Solaris sed.
11384         See Ralf Wildenhues's note in
11385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11386
11387 2010-11-14  Jim Meyering  <meyering@redhat.com>
11388
11389         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11390         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11391         and move definition closer to sole use.
11392
11393 2010-11-13  Jim Meyering  <meyering@redhat.com>
11394
11395         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11396         Now we require at least autoconf-2.59, which means the work-around
11397         is no longer needed.
11398         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11399         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11400         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11401         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11402         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11403
11404 2010-11-13  Bruno Haible  <bruno@clisp.org>
11405
11406         rename, renameat: Avoid test failures at NFS mounted locations.
11407         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11408         functions.
11409         (test_rename): Use assert_nonexistent.
11410         * tests/test-rename.c: Include <dirent.h>.
11411         * tests/test-renameat.c: Likewise.
11412         Reported by Gary V. Vaughan <gary@gnu.org>.
11413
11414         rename, renameat: Document Linux bug with NFS
11415         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11416         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11417         * doc/posix-functions/renameat.texi: Likewise.
11418         Suggested by Eric Blake.
11419
11420 2010-11-13  Bruno Haible  <bruno@clisp.org>
11421
11422         rename test: Add comments.
11423         * tests/test-rename.h (test_rename): Add structure and comments.
11424
11425 2010-11-13  Eric Blake  <eblake@redhat.com>
11426
11427         maintainer-makefile: cover a few more files
11428         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11429         scripts generated within C files, for libvirt.
11430
11431 2010-11-13  Bruno Haible  <bruno@clisp.org>
11432
11433         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11434         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11435         character, return the number of bytes that belong together, not always
11436         1.
11437         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11438         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11439         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11440         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11441         number of bytes of an invalid character.
11442         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11443         (main): Invoke it.
11444         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11445         results.
11446         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11447         malformed byte sequences.
11448         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11449         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11450         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11451         Reported by Ben Pfaff and Paolo Bonzini.
11452
11453 2010-11-13  Bruno Haible  <bruno@clisp.org>
11454
11455         openat: Work around glibc bug with fchownat() and empty file names.
11456         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11457         (gl_FUNC_FCHOWNAT): Invoke it.
11458         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11459         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11460         Reported by Gary V. Vaughan <gary@gnu.org>.
11461
11462 2010-11-13  Bruno Haible  <bruno@clisp.org>
11463
11464         openat: Ensure autoconf macro ordering.
11465         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11466         gl_USE_SYSTEM_EXTENSIONS.
11467         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11468
11469 2010-11-13  Bruno Haible  <bruno@clisp.org>
11470
11471         Update comments.
11472         * lib/unistr/u8-check.c: Update file name in comments.
11473         * lib/unistr/u8-mblen.c: Likewise.
11474         * lib/unistr/u8-prev.c: Likewise.
11475         * lib/unistr/u8-strmblen.c: Likewise.
11476         * lib/unistr/u8-strmbtouc.c: Likewise.
11477
11478 2010-11-13  Jim Meyering  <meyering@redhat.com>
11479
11480         tests: avoid test failure on Solaris 10 due to lack of PATH export
11481         * tests/test-update-copyright.sh: Don't forget to export PATH.
11482
11483         init.sh: ensure that IFS is defined, just in case...
11484         * tests/init.sh (setup_): Ensure that IFS is defined,
11485         so that saving and restoring it works as expected.  This
11486         appears to be useful at least for an old version of dash
11487         from a long time ago (RH 6).  See here for details:
11488         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11489
11490         maint.mk: tighten "test a == b" check
11491         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11492         test to files that contain something like #!/bin/sh.
11493         Without this, coreutils would get two false positives in
11494         the comments of C source files.
11495
11496 2010-11-12  Eric Blake  <eblake@redhat.com>
11497
11498         bootstrap: fix typo in previous attempt
11499         * build-aux/bootstrap (buildreq): Correct the grouping.
11500         Reported by Paul Eggert.
11501
11502         maintainer-makefile: prohibit test x == x
11503         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11504         Based on a report by Matthias Bolte.
11505
11506         bootstrap: allow FreeBSD gzip
11507         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11508         which has no '.' and goes to stderr.
11509         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11510         Reported by Matthias Bolte.
11511
11512         maintainer-makefile: check for i18n setup
11513         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11514         will likely work.
11515
11516 2010-11-12  Bruno Haible  <bruno@clisp.org>
11517
11518         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11519         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11520         * lib/nanosleep.c (nanosleep): Likewise.
11521
11522 2010-11-11  Bruno Haible  <bruno@clisp.org>
11523
11524         fcntl-h: Fix for use of C++ on glibc systems.
11525         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11526         also on glibc systems in C++ mode.
11527         Reported by Gary V. Vaughan <gary@gnu.org>.
11528
11529 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11530
11531         mknod: avoid false failure with dash
11532         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11533
11534 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11535
11536         unlink: Fix "is it should" typo in diagnostic.
11537         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11538         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11539
11540 2010-11-11  Bruno Haible  <bruno@clisp.org>
11541
11542         Tests for module 'strerror_r-posix'.
11543         * modules/strerror_r-posix-tests: New file.
11544         * tests/test-strerror_r.c: New file.
11545         * tests/test-string-c++.cc: Check the signature of strerror_r.
11546
11547         New module 'strerror_r-posix'.
11548         * lib/string.in.h (strerror_r): New declaration.
11549         * lib/strerror_r.c: New file.
11550         * m4/strerror_r.m4: New file.
11551         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11552         of strerror_r.
11553         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11554         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11555         * modules/strerror_r-posix: New file.
11556         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11557         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11558         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11559         portability problems.
11560
11561 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11562
11563         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11564         line is also considered for output. Quoted function name in shell
11565         command, so temporary files for functions like MyClass::operator()
11566         are removed correctly without errors.
11567
11568 2010-11-09  Bruno Haible  <bruno@clisp.org>
11569
11570         * doc/posix-functions/strerror.texi: List more failing platforms.
11571
11572         * doc/posix-functions/strerror.texi: Add a comment.
11573
11574 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11575
11576         fdopendir: fix bug on MacOS X when low on file descriptors
11577
11578         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11579         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11580         All callers changed.
11581         (fdopendir): Invoke save_cwd at the top level, not after using
11582         multiple dup() calls to use up file descriptors.  Then retry
11583         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11584         less than the maximum number of open file descriptors, because
11585         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11586         on Mac OS X 10.6.4 for tar 1.24
11587         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11588         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11589         and for tar 1.25
11590         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11591
11592 2010-11-07  Bruno Haible  <bruno@clisp.org>
11593
11594         vasnprintf: Support I flag on glibc systems.
11595         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11596         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11597         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11598         snprintf function.
11599         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11600         glibc systems.
11601         * tests/test-vasnprintf-posix3.c: New file.
11602         * modules/vasnprintf-posix-tests (Files): Add it.
11603         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11604
11605 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11606
11607         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11608         * MODULES.html.sh: For compiler warnings, use name
11609         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11610
11611 2010-11-05  Eric Blake  <eblake@redhat.com>
11612
11613         ceil, floor: avoid spurious failure with icc
11614         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11615         [denormals-as-zero] when optimizing without -mieee-fp option.
11616         * tests/test-floorf2.c (floorf_reference): Likewise.
11617         * tests/test-ceilf1.c (dummy): New function.
11618         (main): Use it to outsmart icc's optimization.
11619         * tests/test-floorf1.c (dummy, main): Likewise.
11620
11621         tests: require working signbit
11622         * modules/ceilf-tests (Depends-on): Add signbit.
11623         * modules/ceill-tests (Depends-on): Likewise.
11624         * modules/floorf-tests (Depends-on): Likewise.
11625         * modules/floorl-tests (Depends-on): Likewise.
11626         * modules/round-tests (Depends-on): Likewise.
11627         * modules/roundf-tests (Depends-on): Likewise.
11628         * modules/roundl-tests (Depends-on): Likewise.
11629         * modules/trunc-tests (Depends-on): Likewise.
11630         * modules/truncf-tests (Depends-on): Likewise.
11631         * modules/truncl-tests (Depends-on): Likewise.
11632
11633         strtod: work around icc bug
11634         * lib/strtod.c (minus_zero): Define to working value.
11635         (strtod): Use it to avoid icc bug.
11636
11637         copysign: enhance tests
11638         * modules/copysign-tests (Files): Add minus-zero.h.
11639         * tests/test-copysign.c (main): Also test zeros.
11640
11641 2010-11-04  Eric Blake  <eblake@redhat.com>
11642
11643         ceil, floor, round, trunc: enhance tests of -0
11644         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11645         * tests/test-ceill.c (main): Likewise.
11646         * tests/test-floorf1.c (main): Likewise.
11647         * tests/test-floorl.c (main): Likewise.
11648         * tests/test-round1.c (main): Likewise.
11649         * tests/test-roundf1.c (main): Likewise.
11650         * tests/test-roundl.c (main): Likewise.
11651         * tests/test-trunc1.c (main): Likewise.
11652         * tests/test-truncf1.c (main): Likewise.
11653         * tests/test-truncl.c (main): Likewise.
11654
11655 2010-11-04  Eric Blake  <eblake@redhat.com>
11656
11657         frexp, tests: work around ICC bug with -zero
11658         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11659         works with more compilers.
11660         * tests/minus-zero.h: New file.
11661         * modules/ceilf-tests (Files): Include it.
11662         * modules/ceill-tests (Files): Likewise.
11663         * modules/floorf-tests (Files): Likewise.
11664         * modules/floorl-tests (Files): Likewise.
11665         * modules/frexp-nolibm-tests (Files): Likewise.
11666         * modules/frexp-tests (Files): Likewise.
11667         * modules/frexpl-nolibm-tests (Files): Likewise.
11668         * modules/frexpl-tests (Files): Likewise.
11669         * modules/isnan-tests (Files): Likewise.
11670         * modules/isnand-nolibm-tests (Files): Likewise.
11671         * modules/isnand-tests (Files): Likewise.
11672         * modules/isnanf-nolibm-tests (Files): Likewise.
11673         * modules/isnanf-tests (Files): Likewise.
11674         * modules/isnanl-nolibm-tests (Files): Likewise.
11675         * modules/isnanl-tests (Files): Likewise.
11676         * modules/round-tests (Files): Likewise.
11677         * modules/roundf-tests (Files): Likewise.
11678         * modules/roundl-tests (Files): Likewise.
11679         * modules/ldexpl-tests (Files): Likewise.
11680         * modules/signbit-tests (Files): Likewise.
11681         * modules/snprintf-posix-tests (Files): Likewise.
11682         * modules/sprintf-posix-tests (Files): Likewise.
11683         * modules/strtod-tests (Files): Likewise.
11684         * modules/trunc-tests (Files): Likewise.
11685         * modules/truncf-tests (Files): Likewise.
11686         * modules/truncl-tests (Files): Likewise.
11687         * modules/vsnprintf-posix-tests (Files): Likewise.
11688         * modules/vsprintf-posix-tests (Files): Likewise.
11689         * modules/vasnprintf-posix-tests (Files): Likewise.
11690         * modules/vasprintf-posix-tests (Files): Likewise.
11691         * tests/test-ceilf1.c (main): Use it.
11692         * tests/test-ceill.c (main): Likewise.
11693         * tests/test-floorf1.c (main): Likewise.
11694         * tests/test-floorl.c (main): Likewise.
11695         * tests/test-frexp.c (main): Likewise.
11696         * tests/test-frexpl.c (main): Likewise.
11697         * tests/test-isnan.c (main): Likewise.
11698         * tests/test-isnand.h (main): Likewise.
11699         * tests/test-isnanf.h (main): Likewise.
11700         * tests/test-isnanl.h (main): Likewise.
11701         * tests/test-ldexpl.c (main): Likewise.
11702         * tests/test-round.c (main): Likewise.
11703         * tests/test-roundf.c (main): Likewise.
11704         * tests/test-roundl.c (main): Likewise.
11705         * tests/test-signbit.c (test_signbitf, test_signbitd)
11706         (test_signbitl): Likewise.
11707         * tests/test-snprintf-posix.h (test_function): Likewise.
11708         * tests/test-sprintf-posix.h (test_function): Likewise.
11709         * tests/test-strtod.c (main): Likewise.
11710         * tests/test-trunc1.c (main): Likewise.
11711         * tests/test-truncf1.c (main): Likewise.
11712         * tests/test-truncl.c (main): Likewise.
11713
11714         isnanl: work around icc bug
11715         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11716
11717 2010-11-03  Eric Blake  <eblake@redhat.com>
11718
11719         tests: fix compiler warnings
11720         * tests/test-getopt.h (test_getopt): Fix condition.
11721         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11722         * tests/test-pipe2.c (main): Likewise.
11723         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11724
11725         utimens: fix broken m4 test
11726         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11727
11728 2010-10-28  Bruno Haible  <bruno@clisp.org>
11729
11730         posix_spawn*, getdtablesize: Relax license.
11731         * modules/posix_spawn (License): Change to LGPLv2+.
11732         * modules/posix_spawnp (License): Likewise.
11733         * modules/posix_spawn-internal (License): Likewise.
11734         * modules/posix_spawnattr_init (License): Likewise.
11735         * modules/posix_spawnattr_getflags (License): Likewise.
11736         * modules/posix_spawnattr_setflags (License): Likewise.
11737         * modules/posix_spawnattr_getpgroup (License): Likewise.
11738         * modules/posix_spawnattr_setpgroup (License): Likewise.
11739         * modules/posix_spawnattr_getschedparam (License): Likewise.
11740         * modules/posix_spawnattr_setschedparam (License): Likewise.
11741         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11742         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11743         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11744         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11745         * modules/posix_spawnattr_getsigmask (License): Likewise.
11746         * modules/posix_spawnattr_setsigmask (License): Likewise.
11747         * modules/posix_spawnattr_destroy (License): Likewise.
11748         * modules/posix_spawn_file_actions_init (License): Likewise.
11749         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11750         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11751         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11752         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11753         * modules/getdtablesize (License): Likewise.
11754         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11755
11756 2010-10-26  Bruno Haible  <bruno@clisp.org>
11757
11758         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11759         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11760         Cygwin and mingw.
11761         Suggested by Eric Blake.
11762
11763 2010-10-26  Bruno Haible  <bruno@clisp.org>
11764
11765         stdio: Work around compilation error due to renameat() on Solaris 10.
11766         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11767         * lib/renameat.c: Don't include <unistd.h> here.
11768         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11769         Reported by Paul Eggert and Eric Blake.
11770
11771 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11772
11773         renameat: port to Solaris 10, which declares renameat in unistd.h
11774
11775         * lib/renameat.c: Include unistd.h before stdio.h, because
11776         Solaris 10 declares renameat in unistd.h.  Problem encountered
11777         when building GNU tar 1.24 on Solaris 10.
11778
11779 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11780
11781         fdopendir: fix C89 compilation
11782         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11783         compilers.
11784
11785 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11786
11787         inttostr: simplify by removing unnecessary redundancy
11788         * lib/anytostr.c: Don't include verify.h.
11789         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11790         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11791         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11792         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11793         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11794         Likewise.
11795         * modules/inttostr (Depends-on): Remove 'verify'.
11796
11797 2010-10-23  Bruno Haible  <bruno@clisp.org>
11798
11799         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11800         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11801         Reported by Eric Blake.
11802
11803 2010-10-23  Bruno Haible  <bruno@clisp.org>
11804
11805         Tests: Fix LOCALE_JA on MirBSD 10.
11806         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11807         to an UTF-8 locale.
11808         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11809         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11810         Reported by Eric Blake.
11811
11812 2010-10-21  Bruno Haible  <bruno@clisp.org>
11813
11814         nl_langinfo test: Avoid test failure on NetBSD 5.
11815         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11816         Reported by Eric Blake.
11817
11818 2010-10-21  Eric Blake  <eblake@redhat.com>
11819
11820         c-stack: work around libsigsegv 2.8 bug
11821         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11822         overflow on at least PowerPC64.
11823
11824 2010-10-17  Bruno Haible  <bruno@clisp.org>
11825
11826         userspec: Drop redundant file.
11827         * modules/userspec (Files): Remove lib/inttostr.h.
11828
11829 2010-10-17  Bruno Haible  <bruno@clisp.org>
11830
11831         nl_langinfo tests: Silence some warnings.
11832         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11833         Reported by Jim Meyering.
11834
11835 2010-10-17  Bruno Haible  <bruno@clisp.org>
11836
11837         Make use of GCC's attribute __alloc_size__.
11838         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11839         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11840         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11841         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11842         __alloc_size__.
11843         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11844         Suggested by Jim Meyering.
11845
11846 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11847
11848         bootstrap: anchor .gitignore entries.
11849         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11850         with...
11851         (insert_vc_ignore): ... this new function, which prepends `/' to
11852         all .gitignore entries before passing them to
11853         insert_sorted_if_absent.
11854
11855 2010-10-16  Bruno Haible  <bruno@clisp.org>
11856
11857         nextafter: Fix configure check.
11858         * modules/nextafter (configure.ac): Correct expected prototype.
11859
11860 2010-10-16  Bruno Haible  <bruno@clisp.org>
11861
11862         termios: Update documentation.
11863         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11864
11865 2010-10-16  Bruno Haible  <bruno@clisp.org>
11866
11867         tests: Make them compile with TinyCC.
11868         * tests/test-strstr.c (main): Remove parentheses around array
11869         initializer.
11870
11871 2010-10-15  Eric Blake  <eblake@redhat.com>
11872
11873         ignore-value: make header idempotent
11874         * lib/ignore-value.h: Add double-inclusion guards.
11875         Reported by Stefan Berger.
11876
11877 2010-10-15  Jim Meyering  <meyering@redhat.com>
11878
11879         GNUmakefile: handle "stable" target, not "major"
11880         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11881         lists in maint.mk and announce-gen.  Without this, "make stable"
11882         would fail to ensure that $(VERSION) is up to date.
11883
11884 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11885
11886         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11887         & co.
11888
11889 2010-10-14  Bruno Haible  <bruno@clisp.org>
11890
11891         vasnprintf: Don't set errno to 0.
11892         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11893         block that sets it to 0.
11894         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11895
11896 2010-10-14  Bruno Haible  <bruno@clisp.org>
11897
11898         socketlib: Fix.
11899         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11900         gl_PREREQ_SYS_H_WINSOCK2.
11901         Reported by Ian Beckwith <ianb@erislabs.net>.
11902
11903 2010-10-13  Jim Meyering  <meyering@redhat.com>
11904
11905         test-select-stdin.c: avoid warn_unused_result warnings
11906         * tests/test-select-stdin.c: Include "macros.h".
11907         ASSERT that read and fflush succeed.
11908
11909 2010-10-13  Jim Meyering  <meyering@redhat.com>
11910
11911         git-version-gen: do require git-VC'd files in cwd
11912         * build-aux/git-version-gen: Reject a git version string
11913         if there are no commits associated with the current directory.
11914         This avoids an unlikely false-positive (unrelated dir whose parent
11915         repository also contains a tag matching v*), as pointed out
11916         by Giuseppe Scrivano in
11917         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11918
11919 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11920
11921         argv-iter: omit nonconforming declaration
11922         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11923         enum arg_iter_err declaration, which doesn't conform to C99.
11924         Solaris 10 cc warns about this.
11925
11926 2010-10-13  Eric Blake  <eblake@redhat.com>
11927
11928         termios: fix compilation on mingw
11929         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11930         (gl_TERMIOS_H): Adjust it on mingw.
11931         * modules/termios (Makefile.am): Substitute new key.
11932         * lib/termios.in.h (includes): Make include_next conditional.
11933         * doc/posix-headers/termios.texi (termios.h): Update
11934         documentation.
11935         Reported by Daniel P. Berrange.
11936
11937 2010-10-13  Jim Meyering  <meyering@redhat.com>
11938
11939         git-version-gen: don't require that .git/ be in the current dir
11940         * build-aux/git-version-gen: Adjust this script so that it works
11941         when run from any working directory beneath the top-level .git/-
11942         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11943         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11944
11945         test-select: avoid warn_unused_result warnings
11946         * tests/test-select.c: Include "macros.h".
11947         ASSERT that each call to read, write, and pipe succeeds.
11948         While not technically required, also check each "close".
11949         * modules/select-tests (Files): Add tests/macros.h.
11950
11951         test-symlinkat: remove declaration of unused local
11952         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11953
11954         test-inttostr: avoid shadowing warnings
11955         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11956         and use malloc rather than the stack for the same reason as
11957         mentioned in the comment justifying the other allocation.
11958
11959 2010-10-11  Bruno Haible  <bruno@clisp.org>
11960
11961         stdlib: Allow multiple gnulib generated replacements to coexist.
11962         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11963         Reported by Sam Steingold <sds@gnu.org>.
11964
11965 2010-10-11  Jim Meyering  <meyering@redhat.com>
11966
11967         fix a documentation typo
11968         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11969
11970 2010-10-11  Eric Blake  <eblake@redhat.com>
11971
11972         futimens: work around Solaris 11 bug
11973         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11974         * tests/test-futimens.h (test_futimens): Enhance, rather than
11975         weaken test.
11976         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11977
11978 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11979
11980         Indentation.
11981         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11982         higher-level operators more to the left.
11983
11984 2010-10-11  Jim Meyering  <meyering@redhat.com>
11985
11986         test-futimens: avoid unwarranted test failure on Solaris 5.11
11987         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11988         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11989         because it tries to dereference the NULL name argument.
11990
11991 2010-10-11  Bruno Haible  <bruno@clisp.org>
11992
11993         Indentation.
11994         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11995         indentation.
11996
11997 2010-10-11  Jim Meyering  <meyering@redhat.com>
11998
11999         spawn.in.h: make indentation consistent with parentheses
12000         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12001         Make indentation consistent with parentheses.
12002
12003 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12004
12005         Fix mismatched parens in previous commit
12006         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12007         parens.
12008
12009 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12010
12011         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12012
12013         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12014         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12015         * lib/malloca.c: Include "verify.h".
12016         (verify1): Remove, replacing with a verify call.
12017         * lib/relocwrapper.c (verify1): Likewise.
12018         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12019         Likewise.
12020         * modules/malloca (Depends-on): Add 'verify'.
12021         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12022         * modules/vasnprintf (Depends-on): Add 'verify'.
12023         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12024         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12025         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12026         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12027         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12028         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12029         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12030
12031         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12032
12033         Formerly the style was sometimes 2*X - 1, because the C standard
12034         was wrongly thought to disallow ?: in integral constant expressions.
12035         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12036         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12037         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12038         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12039         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12040         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12041         verify that time_t cannot be floating.
12042
12043 2010-10-08  Eric Blake  <eblake@redhat.com>
12044
12045         time: enforce recent POSIX ruling that time_t is integral
12046         * lib/time.in.h (__time_t_must_be_integral): Detect any
12047         problematic systems, allowing the rest of gnulib to assume POSIX.
12048
12049 2010-10-08  Jim Meyering  <meyering@redhat.com>
12050
12051         fdopendir: fix a bug on systems lacking openat and /proc support
12052         OpenBSD 4.7 is one such system.  The most noticeable effect was
12053         failure of any application making nontrivial use of fts: rm, du,
12054         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12055           ./rm: traversal failed: `a': Bad file descriptor
12056         Debugging that, you see that even though FD 6 was closed just
12057         prior to the opendir call in fd_clone_opendir, its resulting
12058         dir->dd_fd was 8, rather than the expected value of 6:
12059
12060         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12061         93                close (fd);
12062         (gdb) n
12063         94                dir = fd_clone_opendir (dupfd);
12064         (gdb) n
12065         95                saved_errno = errno;
12066         (gdb) p dir->dd_fd
12067         $11 = 8
12068
12069         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12070         The problem is that on OpenBSD, fd_clone_opendir has to resort
12071         to using the old-style save/restore CWD mechanism, due to its
12072         lack of openat/proc support, and *that* would steal the FD (6)
12073         that opendir was supposed to use.
12074
12075         The fix is to squirrel away the desired FD so that save_cwd uses a
12076         different one, and then free the dest FD right before calling opendir.
12077         That guarantees opendir will use the required file descriptor.
12078
12079         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12080
12081 2010-10-08  Bruno Haible  <bruno@clisp.org>
12082
12083         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12084         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12085
12086 2010-10-08  Bruno Haible  <bruno@clisp.org>
12087
12088         nanosleep: Make replacement POSIX compliant.
12089         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12090         is out of range.
12091         Reported by Jim Meyering.
12092
12093 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12094
12095         bootstrap: add hook for altering gnulib.mk, for Bison
12096         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12097         the Bison bootstrapping process can rewrite file names and variables
12098         in this file before later parts of 'bootstrap' use the file.
12099         Bison wants to include lib/gnulib.mk from the top-level makefile,
12100         so it needs the file names in this file to be relative to the top
12101         level, not relative to lib; plus it needs variable names to be
12102         rewritten.
12103         (slurp): Use the new function.
12104
12105         bootstrap: reformat for readability
12106         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12107
12108 2010-10-08  Eric Blake  <eblake@redhat.com>
12109
12110         docs: update cygwin progress
12111         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12112         1.7.7.
12113         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12114         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12115         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12116         * doc/posix-functions/carg.texi (carg): Likewise.
12117         * doc/posix-functions/cargf.texi (cargf): Likewise.
12118         * doc/posix-functions/casin.texi (casin): Likewise.
12119         * doc/posix-functions/casinf.texi (casinf): Likewise.
12120         * doc/posix-functions/casinh.texi (casinh): Likewise.
12121         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12122         * doc/posix-functions/catan.texi (catan): Likewise.
12123         * doc/posix-functions/catanf.texi (catanf): Likewise.
12124         * doc/posix-functions/catanh.texi (catanh): Likewise.
12125         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12126         * doc/posix-functions/ccos.texi (ccos): Likewise.
12127         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12128         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12129         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12130         * doc/posix-functions/cexp.texi (cexp): Likewise.
12131         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12132         * doc/posix-functions/cimag.texi (cimag): Likewise.
12133         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12134         * doc/posix-functions/clog.texi (clog): Likewise.
12135         * doc/posix-functions/clogf.texi (clogf): Likewise.
12136         * doc/posix-functions/conj.texi (conj): Likewise.
12137         * doc/posix-functions/conjf.texi (conjf): Likewise.
12138         * doc/posix-functions/cpow.texi (cpow): Likewise.
12139         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12140         * doc/posix-functions/cproj.texi (cproj): Likewise.
12141         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12142         * doc/posix-functions/creal.texi (creal): Likewise.
12143         * doc/posix-functions/crealf.texi (crealf): Likewise.
12144         * doc/posix-functions/csin.texi (csin): Likewise.
12145         * doc/posix-functions/csinf.texi (csinf): Likewise.
12146         * doc/posix-functions/csinh.texi (csinh): Likewise.
12147         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12148         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12149         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12150         * doc/posix-functions/ctan.texi (ctan): Likewise.
12151         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12152         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12153         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12154         * doc/posix-headers/complex.texi (complex.h): Likewise.
12155
12156 2010-10-07  Jim Meyering  <meyering@redhat.com>
12157
12158         parse-datetime: avoid compilation failure on OpenBSD 4.7
12159         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12160         This works around a compilation failure on OpenBSD 4.7:
12161         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12162
12163 2010-10-07  Eric Blake  <eblake@redhat.com>
12164
12165         docs: update cygwin progress
12166         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12167         1.7.6.
12168         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12169         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12170         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12171         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12172         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12173         Likewise.
12174         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12175         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12176         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12177         Likewise.
12178         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12179         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12180         Likewise.
12181         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12182         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12183         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12184         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12185         Likewise.
12186         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12187         Likewise.
12188         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12189
12190         docs: update parse-datetime history
12191         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12192         documentation of this function's history and alternatives.
12193
12194         cygwin: use more robust version check
12195         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12196         exclude an eventual cygwin 1.9.1.
12197         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12199         (gl_FUNC_STRCASESTR): Likewise.
12200         Reported by Bruno Haible.
12201
12202 2010-10-06  Bruno Haible  <bruno@clisp.org>
12203
12204         string, sys_select: Avoid #including large headers unless necessary.
12205         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12206         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12207         OSF/1, BeOS, Haiku.
12208         Reported by Jim Meyering.
12209
12210 2010-10-05  Eric Blake  <eblake@redhat.com>
12211
12212         memmem, strstr, strcasestr: fix bug with long periodic needle
12213         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12214         periodic needle having false positive.
12215         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12216         and cygwin 1.7.7.
12217         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12218         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12219         (gl_FUNC_STRCASESTR): Likewise.
12220         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12221         * tests/test-memmem.c (main): Expose the bug.
12222         * tests/test-strcasestr.c (main): Likewise.
12223         * tests/test-strstr.c (main): Likewise.
12224         * tests/test-c-strcasestr.c (main): Likewise.
12225         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12226         * doc/posix-functions/strstr.texi (strstr): Likewise.
12227         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12228         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12229
12230 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12231
12232         parse-datetime: do some more renaming
12233         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12234         parse_datetime, not get_date.  Mention the renaming.
12235         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12236         in comments.
12237         * m4/bison.m4: Likewise.
12238
12239 2010-10-05  Eric Blake  <eblake@redhat.com>
12240
12241         parse-datetime: better name than get_date
12242         * NEWS: Reword the deprecation notice.
12243         * modules/get_date: Rename to modules/parse-datetime.
12244         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12245         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12246         * lib/get_date.y: Rename to lib/parse-datetime.y.
12247         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12248         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12249         * doc/getdate.texi: Provide fallback wrapper.
12250         * lib/getdate.h: Move guts, and wrap...
12251         * lib/parse-datetime.h: ...new file.
12252         * lib/parse-datetime.y (get_date): Rename...
12253         (parse_datetime): ...to this.
12254         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12255         (gl_PARSE_DATETIME): ...to this.
12256         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12257         documentation.
12258         * modules/getdate (Files): Provide fallback docs and header.
12259         (Notice, Depends-on): Update references.
12260         * tests/test-parse-datetime.c: Likewise.
12261         * DEPENDENCIES: Likewise.
12262         * MODULES.html.sh (Date and time <time.h>): Likewise.
12263         * doc/parse-datetime.texi (Date input formats)
12264         (Authors of parse_datetime): Likewise.
12265         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12266         (Include): Likewise.
12267         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12268         * gnulib-tool: Likewise.
12269         * m4/bison.m4 (gl_BISON): Likewise.
12270         Suggested by Bruno Haible.
12271
12272 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12273
12274         more ports to Solaris tr, which needs [] around ranges
12275         * gnulib-tool: Solaris tr needs [] around ranges.
12276         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12277         * tests/test-pipe-filter-gi1.c (main): Likewise.
12278         * tests/test-pipe-filter-ii1.c (main): Likewise.
12279
12280 2010-10-05  Eric Blake  <eblake@redhat.com>
12281
12282         bootstrap: fix Solaris regression
12283         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12284         around ranges.
12285         Reported by Pádraig Brady.
12286
12287         bootstrap: work with pkg-config
12288         * build-aux/bootstrap (check_versions): Also transliterate - in
12289         prerequisite name.
12290         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12291         prerequisites that were already found, to avoid confusion.
12292         Reported by Justin Clift.
12293
12294         faccessat: remove unused wrappers
12295         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12296         presence of these wrappers dragged in -lgen on Solaris.
12297         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12298
12299 2010-10-05  Jim Meyering  <meyering@redhat.com>
12300
12301         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12302         * Makefile (sc_pragma_columns): New syntax-check rule.
12303
12304 2010-10-04  Bruno Haible  <bruno@clisp.org>
12305
12306         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12307         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12308         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12309         Reported by Bruce Korb and Eric Blake.
12310
12311 2010-10-04  Bruno Haible  <bruno@clisp.org>
12312
12313         threadlib: Make option --with-libpth-prefix work.
12314         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12315         use $LIBPTH, not just -lpth.
12316
12317 2010-10-04  Bruno Haible  <bruno@clisp.org>
12318
12319         Avoid line length limitation from HP NonStop system header files.
12320         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12321         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12322         * lib/ctype.in.h: Likewise.
12323         * lib/dirent.in.h: Likewise.
12324         * lib/errno.in.h: Likewise.
12325         * lib/fcntl.in.h: Likewise.
12326         * lib/float.in.h: Likewise.
12327         * lib/getopt.in.h: Likewise.
12328         * lib/iconv.in.h: Likewise.
12329         * lib/inttypes.in.h: Likewise.
12330         * lib/langinfo.in.h: Likewise.
12331         * lib/locale.in.h: Likewise.
12332         * lib/math.in.h: Likewise.
12333         * lib/netdb.in.h: Likewise.
12334         * lib/netinet_in.in.h: Likewise.
12335         * lib/poll.in.h: Likewise.
12336         * lib/pthread.in.h: Likewise.
12337         * lib/pty.in.h: Likewise.
12338         * lib/sched.in.h: Likewise.
12339         * lib/se-selinux.in.h: Likewise.
12340         * lib/search.in.h: Likewise.
12341         * lib/signal.in.h: Likewise.
12342         * lib/spawn.in.h: Likewise.
12343         * lib/stdarg.in.h: Likewise.
12344         * lib/stddef.in.h: Likewise.
12345         * lib/stdint.in.h: Likewise.
12346         * lib/stdio.in.h: Likewise.
12347         * lib/stdlib.in.h: Likewise.
12348         * lib/string.in.h: Likewise.
12349         * lib/strings.in.h: Likewise.
12350         * lib/sys_file.in.h: Likewise.
12351         * lib/sys_ioctl.in.h: Likewise.
12352         * lib/sys_select.in.h: Likewise.
12353         * lib/sys_socket.in.h: Likewise.
12354         * lib/sys_stat.in.h: Likewise.
12355         * lib/sys_time.in.h: Likewise.
12356         * lib/sys_times.in.h: Likewise.
12357         * lib/sys_utsname.in.h: Likewise.
12358         * lib/sys_wait.in.h: Likewise.
12359         * lib/sysexits.in.h: Likewise.
12360         * lib/termios.in.h: Likewise.
12361         * lib/time.in.h: Likewise.
12362         * lib/unistd.in.h: Likewise.
12363         * lib/wchar.in.h: Likewise.
12364         * lib/wctype.in.h: Likewise.
12365         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12366         * modules/ctype (Makefile.am): Likewise.
12367         * modules/dirent (Makefile.am): Likewise.
12368         * modules/errno (Makefile.am): Likewise.
12369         * modules/fcntl-h (Makefile.am): Likewise.
12370         * modules/float (Makefile.am): Likewise.
12371         * modules/getopt-posix (Makefile.am): Likewise.
12372         * modules/iconv-h (Makefile.am): Likewise.
12373         * modules/inttypes (Makefile.am): Likewise.
12374         * modules/langinfo (Makefile.am): Likewise.
12375         * modules/locale (Makefile.am): Likewise.
12376         * modules/math (Makefile.am): Likewise.
12377         * modules/netdb (Makefile.am): Likewise.
12378         * modules/netinet_in (Makefile.am): Likewise.
12379         * modules/poll-h (Makefile.am): Likewise.
12380         * modules/pthread (Makefile.am): Likewise.
12381         * modules/pty (Makefile.am): Likewise.
12382         * modules/sched (Makefile.am): Likewise.
12383         * modules/search (Makefile.am): Likewise.
12384         * modules/selinux-h (Makefile.am): Likewise.
12385         * modules/signal (Makefile.am): Likewise.
12386         * modules/spawn (Makefile.am): Likewise.
12387         * modules/stdarg (Makefile.am): Likewise.
12388         * modules/stddef (Makefile.am): Likewise.
12389         * modules/stdint (Makefile.am): Likewise.
12390         * modules/stdio (Makefile.am): Likewise.
12391         * modules/stdlib (Makefile.am): Likewise.
12392         * modules/string (Makefile.am): Likewise.
12393         * modules/strings (Makefile.am): Likewise.
12394         * modules/sys_file (Makefile.am): Likewise.
12395         * modules/sys_ioctl (Makefile.am): Likewise.
12396         * modules/sys_select (Makefile.am): Likewise.
12397         * modules/sys_socket (Makefile.am): Likewise.
12398         * modules/sys_stat (Makefile.am): Likewise.
12399         * modules/sys_time (Makefile.am): Likewise.
12400         * modules/sys_times (Makefile.am): Likewise.
12401         * modules/sys_utsname (Makefile.am): Likewise.
12402         * modules/sys_wait (Makefile.am): Likewise.
12403         * modules/sysexits (Makefile.am): Likewise.
12404         * modules/termios (Makefile.am): Likewise.
12405         * modules/time (Makefile.am): Likewise.
12406         * modules/unistd (Makefile.am): Likewise.
12407         * modules/wchar (Makefile.am): Likewise.
12408         * modules/wctype (Makefile.am): Likewise.
12409
12410 2010-10-04  Bruno Haible  <bruno@clisp.org>
12411
12412         read-file tests: Avoid a test failure on NonStop Kernel.
12413         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12414         a regular file.
12415         Reported by Joachim Schmitz <schmitz@hp.com>.
12416
12417 2010-10-03  Bruno Haible  <bruno@clisp.org>
12418
12419         gnulib-tool: Fixes for --create-testdir with --libtool.
12420         * gnulib-tool (func_get_automake_snippet): Don't augment
12421         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12422         an executable.
12423         (func_create_testdir): Handle module 'alloca' like func_import.
12424         Reported by Bruce Korb <bruce.korb@gmail.com>.
12425
12426 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12427
12428         Avoid some lines longer than 80 characters.
12429         * lib/stdint.in.h: Break long comment lines.
12430         * lib/math.in.h: Likewise.
12431         (_GL_NUM_UINT_WORDS): New macro, for readability.
12432         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12433         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12434         * lib/stdlib.in.h: Likewise.
12435         * lib/spawn.in.h: Likewise.
12436         * lib/sys_socket.in.h: Update an URL.
12437         * lib/sys_stat.in.h: Break long line.
12438
12439 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12440
12441         Improve pmccabe2html.
12442         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12443         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12444         when the sources change. Remove the line in the HTML about "Used
12445         ranges" (which implied that there might be other unused ranges),
12446         rename "Resume" to "Summary" (easier to understand for more users).
12447         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12448         styles, and some unnecessary blank lines.
12449
12450 2010-10-03  Bruno Haible  <bruno@clisp.org>
12451             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12452
12453         acl: Add support for ACLs on NonStop Kernel.
12454         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12455         Check whether the function aclsort() exists.
12456         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12457         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12458         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12459         (acl_nontrivial [HAVE_ACLSORT]: New function.
12460         (file_has_acl): Implement for NonStop Kernel.
12461         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12462         (qset_acl): Implement for NonStop Kernel.
12463         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12464         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12465         (main): Implement for NonStop Kernel.
12466         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12467         Kernel. Handle this flavor.
12468         * tests/test-set-mode-acl.sh: Likewise.
12469         * tests/test-copy-acl.sh: Likewise.
12470         * tests/test-copy-file.sh: Likewise.
12471
12472 2010-10-03  Bruno Haible  <bruno@clisp.org>
12473
12474         Info about ACLs on NonStop Kernel.
12475         * doc/acl-resources.txt: Add info about NonStop Kernel.
12476         References by Joachim Schmitz <schmitz@hp.com>.
12477
12478 2010-10-02  Bruno Haible  <bruno@clisp.org>
12479
12480         Define missing EDQUOT on NonStop Kernel.
12481         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12482         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12483         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12484         missing.
12485         * doc/posix-headers/errno.texi: Mention the NSK bug.
12486         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12487         Reported by Joachim Schmitz <schmitz@hp.com>.
12488
12489 2010-10-02  Bruno Haible  <bruno@clisp.org>
12490
12491         Update doc for POSIX:2008.
12492         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12493         Update URL of POSIX specification.
12494
12495 2010-10-02  Bruno Haible  <bruno@clisp.org>
12496
12497         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12498         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12499         from gnulib, not from Automake.
12500
12501 2010-10-02  Bruno Haible  <bruno@clisp.org>
12502
12503         New module 'system-posix'.
12504         * modules/system-posix: New file.
12505         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12506         module is present.
12507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12508         GNULIB_SYSTEM_POSIX.
12509         * modules/stdlib (Depends-on): Remove sys_wait.
12510         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12511         * doc/posix-functions/system.texi: Mention the new module.
12512         * doc/posix-headers/stdlib.texi: Likewise.
12513         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12514         define test_sys_wait_macros to a no-op.
12515         Reported by Sam Steingold <sds@gnu.org>.
12516
12517 2010-09-30  Bruno Haible  <bruno@clisp.org>
12518
12519         More renaming from 'getdate' to 'get_date'.
12520         * doc/get_date.texi: Renamed from doc/getdate.texi.
12521         * modules/get_date (Files): Update.
12522         * MODULES.html.sh (Date and time <time.h>): Update.
12523         * DEPENDENCIES: Update.
12524         * gnulib-tool: Update comment.
12525         * m4/bison.m4 (gl_BISON): Likewise.
12526         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12527
12528 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12529
12530         bootstrap: support ACLOCAL_FLAGS during aclocal
12531         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12532         can add additional -I dir for third-party .m4 files.
12533
12534 2010-09-30  Eric Blake  <eblake@redhat.com>
12535
12536         bootstrap: use glibtoolize on MacOS
12537         * build-aux/bootstrap (check_versions): Convert libtool into
12538         libtoolize.
12539         (tool search): Move libtool check earlier, and look for
12540         glibtoolize for MacOS.
12541         (gnulib_tool_options): Auto-add --libtool when appropriate.
12542         Reported by Justin Clift.
12543
12544         poll: fix typo that broke test on MacOS
12545         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12546         Reported by Justin Clift.
12547
12548         getdate: rename to get_date
12549         Note: getdate.h is not renamed, to minimize client impact.
12550         * modules/getdate: Mark obsolete.  Move old contents...
12551         * modules/get_date: ...to new module name.
12552         * modules/getdate-tests: Move...
12553         * modules/get_date-tests: ...here.
12554         * m4/getdate.m4: Move...
12555         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12556         * lib/getdate.y: Move...
12557         * lib/get_date.y: ...here.
12558         * tests/test-getdate.c: Move...
12559         * tests/test-get_date.c: ...here.
12560         * doc/posix-functions/getdate.texi (getdate): Update name.
12561         * NEWS: Mention the change.
12562
12563 2010-09-29  Bruno Haible  <bruno@clisp.org>
12564
12565         Separate the module 'waitpid' from the module 'sys_wait'.
12566         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12567         present.
12568         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12569         gl_MODULE_INDICATOR_FOR_TESTS.
12570         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12571         * modules/sys_wait (Depends-on): Remove waitpid.
12572         (Makefile.am): Substitute GNULIB_WAITPID.
12573         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12574         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12575         signature only if the 'waitpid' module is present.
12576         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12577         * NEWS: Mention the change.
12578         * modules/grantpt (Depends-on): Add waitpid.
12579         * modules/wait-process (Depends-on): Likewise.
12580
12581 2010-09-29  Bruno Haible  <bruno@clisp.org>
12582
12583         More tests for module 'sys_wait'.
12584         * modules/sys_wait-c++-tests: New file.
12585         * tests/test-sys_wait-c++.cc: New file.
12586         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12587         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12588
12589 2010-09-29  Bruno Haible  <bruno@clisp.org>
12590
12591         New module 'waitpid'.
12592         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12593         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12594         Don't include <process.h>.
12595         (waitpid): Declare only, using modern idiom.
12596         * m4/waitpid.m4: New file.
12597         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12598         * modules/waitpid: New file.
12599         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12600         (Makefile.am): Update.
12601         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12602
12603 2010-09-28  Bruno Haible  <bruno@clisp.org>
12604
12605         poll: Assume ANSI C.
12606         * lib/poll.c (poll): Use an ANSI C declaration.
12607
12608 2010-09-28  Bruno Haible  <bruno@clisp.org>
12609
12610         poll-h: Create poll.h on all platforms.
12611         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12612         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12613         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12614         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12615         (gl_REPLACE_POLL_H): Don't set POLL_H.
12616         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12617         * modules/poll-h (Depends-on): Add include_next.
12618         (Makefile.am): Create poll.h unconditionally. Substitute also
12619         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12620
12621 2010-09-28  Bruno Haible  <bruno@clisp.org>
12622
12623         Tests for module 'poll-h'.
12624         * modules/poll-h-c++-tests: New file.
12625         * tests/test-poll-h-c++.cc: New file.
12626
12627         Tests for module 'poll-h'.
12628         * modules/poll-h-tests: New file.
12629         * tests/test-poll-h.c: New file.
12630
12631 2010-09-28  Bruno Haible  <bruno@clisp.org>
12632
12633         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12634         * modules/poll-h (Depends-on): Add 'extensions'.
12635
12636 2010-09-28  Bruno Haible  <bruno@clisp.org>
12637
12638         New module 'poll-h'.
12639         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12640         (poll): Use modern idiom.
12641         * modules/poll-h: New file.
12642         * modules/poll (Files): Remove lib/poll.in.h.
12643         (Depends-on): Add poll-h.
12644         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12645         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12646         * m4/poll_h.m4: New file.
12647         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12648         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12649         and invoke gl_REPLACE_POLL_H.
12650         * lib/poll.c: Use common idiom.
12651         * tests/test-poll.c: Likewise.
12652         * doc/posix-headers/poll.texi: Mention the poll-h module.
12653         Suggested by Eric Blake.
12654
12655 2010-09-26  Bruno Haible  <bruno@clisp.org>
12656
12657         sys_wait: Implement WSTOPSIG.
12658         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12659         Reported by Simon Josefsson.
12660
12661 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12662
12663         stdlib, sys_wait: Avoid compilation error on mingw.
12664         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12665
12666 2010-09-26  Bruno Haible  <bruno@clisp.org>
12667
12668         stdlib tests: Avoid code duplication.
12669         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12670         * modules/sys_wait-tests (Files): Likewise.
12671         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12672         * tests/test-stdlib.c: Include test-sys_wait.h.
12673         (main): Invoke test_sys_wait_macros.
12674         * tests/test-sys_wait.c: Include test-sys_wait.h.
12675         (main): Invoke test_sys_wait_macros.
12676
12677 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12678
12679         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12680         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12681         sure Windows sockets are working before calling getaddrinfo.
12682         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12683         * doc/gnulib.texi (Windows sockets): Fix typo.
12684
12685 2010-09-25  Bruno Haible  <bruno@clisp.org>
12686
12687         Tests for module 'regex-quote'.
12688         * modules/regex-quote-tests: New file.
12689         * tests/test-regex-quote.c: New file.
12690
12691         New module 'regex-quote'.
12692         * lib/regex-quote.h: New file.
12693         * lib/regex-quote.c: New file.
12694         * modules/regex-quote: New file.
12695         Suggested by Reuben Thomas <rrt@sc3d.org>.
12696
12697 2010-09-24  Bruno Haible  <bruno@clisp.org>
12698
12699         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12700         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12701
12702 2010-09-23  Bruno Haible  <bruno@clisp.org>
12703
12704         setenv: Relax license.
12705         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12706         Blake.
12707         Requested by Eric Blake.
12708
12709 2010-09-22  Bruno Haible  <bruno@clisp.org>
12710
12711         termios: Relax license.
12712         * modules/termios (License): Change to LGPLv2+.
12713         Requested by Eric Blake.
12714
12715 2010-09-22  Bruno Haible  <bruno@clisp.org>
12716
12717         threadlib: Allow the package to change the default to 'no'.
12718         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12719         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12720         Reported by Paul Eggert.
12721
12722 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12723             Bruno Haible  <bruno@clisp.org>
12724
12725         Fix endless loop in mbmemcasecoll.
12726         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12727         byte.
12728         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12729
12730 2010-09-22  Bruno Haible  <bruno@clisp.org>
12731
12732         Tests for module 'memcoll'.
12733         * modules/memcoll-tests: New file.
12734         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12735
12736         memcoll, xmemcoll: Clarify size vs. length.
12737         * modules/memcoll.c (memcoll0): Clarify specification.
12738         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12739         passed to collate_error.
12740
12741 2010-09-22  Bruno Haible  <bruno@clisp.org>
12742
12743         Tests for module 'memcasecmp'.
12744         * modules/memcasecmp-tests: New file.
12745         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12746
12747 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12748
12749         * lib/pthread.in.h: Add split double-inclusion guard, and include
12750         system <pthread.h> if there is one.  Use @@-style as in other
12751         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12752         pthread.h doesn't.
12753         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12754         (pthread_mutexattr_settype, pthread_mutex_trylock):
12755         New static inline functions, if there's no system <pthread.h>.
12756         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12757         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12758         Approximate with mutexes if the system lacks spinlocks, as in
12759         MacOS.
12760         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12761         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12762         @@-style.  Check for spinlocks separately.
12763         (gl_PTHREAD_DEFAULTS): New macro.
12764         * modules/pthread: Redo to use a more typical style for in.h files.
12765
12766 2010-09-21  Eric Blake  <eblake@redhat.com>
12767
12768         net_if: enhance tests
12769         * tests/test-net_if.c (main): Move signature checks earlier.
12770         Print failures to stderr.
12771         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12772         Document the bug that we do not yet fix.
12773
12774 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12775
12776         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12777         about gnulib, not GSS.
12778
12779 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12780
12781         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12782         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12783         for Emacs.
12784         * build-aux/pmccabe2html: Make Makefile.am example code more
12785         cut-and-paste friendly.
12786
12787 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12788
12789         * tests/test-net_if.c: New file.
12790         * modules/net_if-tests: New file.
12791
12792 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12793
12794         pthread: add pthread_spin_destroy
12795         * lib/pthread.in.h (pthread_spin_destroy): New function.
12796
12797 2010-09-19  Bruno Haible  <bruno@clisp.org>
12798
12799         gnulib-tool: Fix --help output.
12800         * gnulib-tool (func_usage): Fix help message.
12801         Reported by Reuben Thomas <rrt@sc3d.org>.
12802
12803 2010-09-18  Jim Meyering  <meyering@redhat.com>
12804
12805         maint.mk: avoid unexpanded \n in two diagnostics
12806         * top/maint.mk (sc_prohibit_always_true_header_tests):
12807         Don't use a literal \n in a halt=... assignment.  It would not be
12808         expanded, and the two \n bytes would appear in the diagnostic output
12809         rather than the desired newline.  Use halt=$$(printf ... instead.
12810         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12811
12812 2010-09-18  Bruno Haible  <bruno@clisp.org>
12813
12814         netinet_in: Doc tweak.
12815         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12816         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12817
12818 2010-09-18  Jim Meyering  <meyering@redhat.com>
12819
12820         init.sh: correct an outdated comment
12821         * tests/init.sh (create_exe_shims_):  s/function/alias/
12822
12823         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12824         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12825         a file named "*.exe" is removed between the glob expansion and the
12826         processing of that oddly named file.
12827
12828 2010-09-17  Eric Blake  <eblake@redhat.com>
12829
12830         mirbsd: add some more support
12831         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12832         in BSD family.
12833         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12834         devices as OpenBSD.
12835         * m4/host-os.m4 (mirbsd): Add MirBSD.
12836
12837         tests: fix unportable assumption on sys/wait.h
12838         * tests/test-sys_wait.c (main): Relax test.
12839         * tests/test-stdlib.c (main): Likewise.
12840
12841         init.sh: accomodate directory with no .exes
12842         * tests/init.sh: Accomodate directory containing only scripts.
12843
12844         tests: avoid compiler warning
12845         * tests/test-stdlib.c (main): Use the variable.
12846
12847         fdutimens, fdutimensat: update signature, again
12848         * lib/utimens.h (gl_futimens): Delete, and move signature...
12849         (fdutimens): ...here.
12850         (fdutimensat): Rearrange signature.
12851         (lutimensat): Rename variable for clarity.
12852         * lib/fdutimensat.c (fdutimensat): Update signature.
12853         * lib/utimens.c (fdutimens): Likewise.
12854         (gl_futimens): Delete.
12855         (utimens, lutimens): Update callers.
12856         * lib/futimens.c (futimens): Likewise.
12857         * tests/test-fdutimensat.c: Likewise.
12858         * tests/test-utimens.c: Likewise.
12859         * tests/test-futimens.h: Update comment.
12860         * NEWS: Mention this.
12861         Suggested by Paul Eggert.
12862
12863 2010-09-17  Bruno Haible  <bruno@clisp.org>
12864
12865         Take over the maintenance of some older macros from Autoconf.
12866         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12867         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12868         GNU Autoconf.
12869         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12870         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12871
12872 2010-09-17  Eric Blake  <eblake@redhat.com>
12873
12874         fdutimensat: drop atflag validation
12875         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12876         with valid fd, to close a race scenario where futimens is
12877         unsupported and FILE was replaced by a symlink.
12878         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12879         accordingly.
12880         Suggested by Paul Eggert.
12881
12882 2010-09-16  Bruno Haible  <bruno@clisp.org>
12883
12884         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12885         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12886
12887 2010-09-16  Bruno Haible  <bruno@clisp.org>
12888
12889         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12890         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12891         login_tty exists.
12892         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12893
12894 2010-09-16  Bruno Haible  <bruno@clisp.org>
12895
12896         login_tty: Make the replacement code work on BSD systems.
12897         * lib/login_tty.c: Include <sys/ioctl.h>.
12898         (login_tty): Use ioctl TIOCSCTTY when available.
12899         * modules/login_tty (Depends-on): Add sys_ioctl.
12900         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12901
12902 2010-09-16  Bruno Haible  <bruno@clisp.org>
12903
12904         login_tty: Stricter unit test.
12905         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12906         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12907         and tcgetsid() after login_tty.
12908         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12909
12910 2010-09-16  Bruno Haible  <bruno@clisp.org>
12911
12912         New module 'tcgetsid'.
12913         * lib/tcgetsid.c: New file.
12914         * m4/tcgetsid.m4: New file.
12915         * modules/tcgetsid: New file.
12916         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12917         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12918         GNULIB_TCGETSID, HAVE_TCGETSID.
12919         * lib/termios.in.h: Include <sys/types.h>.
12920         (tcgetsid): New declaration.
12921         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12922         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12923         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12924         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12925
12926 2010-09-16  Bruno Haible  <bruno@clisp.org>
12927
12928         Tests for module 'termios'.
12929         * modules/termios-c++-tests: New file.
12930         * modules/termios-tests: New file.
12931         * tests/test-termios-c++.cc: New file.
12932         * tests/test-termios.c: New file.
12933
12934         New module 'termios'.
12935         * modules/termios: New file.
12936         * lib/termios.in.h: New file.
12937         * m4/termios_h.m4: New file.
12938         * doc/posix-headers/termios.texi: Mention the new module.
12939
12940 2010-09-16  Eric Blake  <eblake@redhat.com>
12941
12942         fdutimensat: add an atflag parameter
12943         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12944         * lib/utimens.h (fdutimensat): Update prototype.
12945         * tests/test-fdutimensat.c: Adjust test to match.
12946         * NEWS: Document the change.
12947         Suggested by Paul Eggert.
12948
12949 2010-09-16  Bruno Haible  <bruno@clisp.org>
12950
12951         Fix typos in comments.
12952         * lib/striconveh.h: Fix typo in comment.
12953         * lib/login_tty.c (login_tty): Likewise.
12954
12955 2010-09-15  Bruno Haible  <bruno@clisp.org>
12956
12957         stdlib: clarify MirBSD WEXITSTATUS bug
12958         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12959         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12960
12961 2010-09-15  Eric Blake  <eblake@redhat.com>
12962
12963         stdlib: work around MirBSD WEXITSTATUS bug
12964         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12965         * modules/stdlib (Depends-on): Add sys_wait.
12966         * tests/test-sys_wait.c (main): Enhance test.
12967         * tests/test-stdlib.c (main): Likewise.
12968         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12969
12970         docs: mention MacOS issue with WEXITSTATUS(constant)
12971         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12972         issue.
12973         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12974
12975         strnlen: add tests
12976         * modules/strnlen-tests: New file.
12977         * tests/test-strnlen.c: Likewise.
12978
12979 2010-09-14  Bruno Haible  <bruno@clisp.org>
12980
12981         unistr/base: Avoid link errors when module 'libunistring' is also used.
12982         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12983         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12984         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12985         Declare also when HAVE_LIBUNISTRING is set.
12986         Reported by Pádraig Brady <P@draigbrady.com>.
12987
12988 2010-09-14  Eric Blake  <eblake@redhat.com>
12989
12990         test-rawmemchr: make more robust
12991         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12992         (Depends-on, configure.ac): Add needed prerequisites to use it.
12993         * modules/memchr-tests (Files, Depends-on, configure.ac):
12994         Likewise, to avoid implicit reliance on memchr module prereqs.
12995         * tests/test-memchr.c (main): Ensure proper masking.
12996         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12997         reads.
12998
12999         memchr: detect glibc Alpha bug
13000         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13001         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13002         Alpha.
13003         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13004         * tests/test-memchr.c (main): Enhance test.
13005         Reported by Nelson H. F. Beebe.
13006
13007 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13008
13009         fts, getcwd, glob: audit for dirfd returning -1
13010         * lib/fts.c (opendir): Remove #define; no longer used.
13011         (opendirat): New arg PDIR_FD.  All callers changed.
13012         (fts_build, _opendir2): Use new opendirat to avoid the need for
13013         dirfd, or for checking whether dirfd returns a negative value.
13014         Don't use opendir; always use openat followed by fdopendir.
13015         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13016         it.
13017         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13018         returns -1 here.
13019         * modules/fts (Depends-on): Remove dirfd.
13020         * modules/getcwd (Depends-on): Likewise.
13021
13022 2010-09-13  Eric Blake  <eblake@redhat.com>
13023
13024         float: fix broken MirBSD header
13025         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13026         * doc/posix-headers/float.texi (float.h): Document it.
13027
13028 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13029
13030         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13031         * lib/fts.c (opendirat): New arg extra_flags.
13032         (__opendir2): Use it to avoid following symlinks when opening
13033         a directory, if symlinks are not supposed to be followed.  See
13034         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13035
13036         fdopendir: preserve argument fd before returning
13037         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13038         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13039         (fdopendir): Use them, arranging for FD to be open to the same
13040         directory that it was when it started.  (It might be temporarily
13041         closed while fdopendir is running, so this not thread- or
13042         signal-safe.)  Be careful to do the right thing even when file
13043         descriptors are scarce and dup fails with errno == EMFILE.  See
13044         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13045
13046 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13047
13048         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13049         * NEWS: Document change.
13050         * m4/regex.m4: Disable test for regoff_t size.
13051
13052 2010-09-13  Jim Meyering  <meyering@redhat.com>
13053
13054         fts: don't operate on an invalid file descriptor after failed dup
13055         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13056         negative file descriptor.
13057
13058 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13059
13060         savedir: add streamsavedir, deprecate fdsavedir
13061         * NEWS: Mention deprecation of fdsavedir.
13062         * lib/savedir.c (streamsavedir): New extern function, whose name
13063         ends in "savedir" to be consistent with the others.  This differs
13064         from savedirstream in that it doesn't close its argument.  The
13065         next version of GNU tar will use this instead of fdsavedir, to
13066         avoid some race conditions and conserve file descriptors.
13067         (savedirstream): Reimplement as a wrapper around streamsavedir.
13068         (fdsavedir): Add a comment deprecating this function.  As far as
13069         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13070         * lib/savedir.h (streamsavedir): New decl.
13071         (fdsavedir): Add a comment deprecating this.
13072
13073 2010-09-10  Bruno Haible  <bruno@clisp.org>
13074
13075         langinfo: Fix last commit.
13076         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13077         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13079
13080 2010-09-10  Bruno Haible  <bruno@clisp.org>
13081
13082         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13083         * lib/progreloc.c (O_EXEC): Define fallback.
13084
13085 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13086
13087         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13088         * NEWS: Document recent changes to fcntl-h.
13089         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13090         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13091         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13092         Similarly for O_SEARCH; this last was already true, but not documented.
13093         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13094         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13095         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13096         Likewise.
13097         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13098         is zero, not whether it is defined.
13099         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13100         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13101         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13102
13103 2010-09-10  Bruno Haible  <bruno@clisp.org>
13104
13105         langinfo, nl_langinfo: Fix for IRIX 5.3.
13106         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13107         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13108         HAVE_LANGINFO_YESEXPR.
13109         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13110         HAVE_LANGINFO_YESEXPR.
13111         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13112         HAVE_LANGINFO_T_FMT_AMPM is 0.
13113         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13114         HAVE_LANGINFO_YESEXPR is 0.
13115         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13116         NOEXPR.
13117         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13118         * doc/posix-functions/nl_langinfo.texi: Likewise.
13119         Reported by Eric Blake.
13120
13121 2010-09-10  Bruno Haible  <bruno@clisp.org>
13122
13123         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13124         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13125         on FreeBSD 8.0 and OpenBSD 4.6.
13126         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13127         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13128         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13129         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13130         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13131         ac_includes_default.
13132         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13133
13134 2010-09-09  Eric Blake  <eblake@redhat.com>
13135
13136         strsignal: work around NetBSD bug
13137         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13138         * lib/string.in.h (includes): Likewise.
13139         * doc/posix-functions/strsignal.texi (strsignal): Document the
13140         bug.
13141         Reported by Nelson H. F. Beebe.
13142
13143         gnulib-tool: work with NetBSD /bin/sh
13144         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13145         (func_get_description, func_get_comment, func_get_status)
13146         (func_get_notice, func_get_applicability, func_get_filelist)
13147         (func_get_dependencies, func_get_autoconf_early_snippet)
13148         (func_get_autoconf_snippet, func_get_automake_snippet)
13149         (func_get_include_directive, func_get_link_directive)
13150         (func_get_license, func_get_maintainer, func_import): Avoid
13151         shell syntax errors from parsing syntax extensions.
13152
13153 2010-09-09  Bruno Haible  <bruno@clisp.org>
13154
13155         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13156         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13157         a reliable way to determine whether the 'alias' command works.
13158
13159 2010-09-08  Jim Meyering  <meyering@redhat.com>
13160
13161         init.sh: penalize a set-x-impaired shell; don't disqualify it
13162         * tests/init.sh: Too many shells corrupt application stderr when
13163         you set -x, so we can't afford to disqualify them, since at least
13164         on Irix-6.5, that would disqualify all bourne shells.
13165         Instead, use a two-pass approach.
13166         On the first pass, try to find a shell that meets the stricter
13167         condition that set -x does not corrupt stderr.
13168         If no shell meets the stricter condition, retest each candidate
13169         shell, but without that extra condition.  Finally, when
13170         VERBOSE=yes is requested and set -x might cause trouble, simply
13171         issue a warning and refrain from enabling debug output.
13172
13173 2010-09-08  Eric Blake  <eblake@redhat.com>
13174
13175         unsetenv: fix OpenBSD bug
13176         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13177         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13178         documentation.
13179         Reported by Jim Meyering.
13180
13181         strtod: work around IRIX 6.5 bug
13182         * lib/strtod.c (strtod): Reparse number on shorter string if
13183         exponent parse was invalid.
13184         * tests/test-strtod.c (main): Add check for "0x1p 2".
13185         Reported by Tom G. Christensen.
13186
13187         getopt: optimize previous patch
13188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13189         empty variable.  Speed up awk script.
13190         Reported by Paolo Bonzini.
13191
13192 2010-09-08  Jim Meyering  <meyering@redhat.com>
13193
13194         test.sh: disqualify shells for which set -x corrupts stderr
13195         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13196         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13197         appear in stderr output.  For example, this command:
13198             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13199         prints "P=1" on those two systems:
13200
13201 2010-09-08  Bruno Haible  <bruno@clisp.org>
13202
13203         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13204         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13205         commands, because some shells ignore redirections when there is an
13206         error in the command lookup.
13207         Reported by Eric Blake.
13208
13209 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13210
13211         * lib/regex.h: Fix a mention of `regex_compile' (should be
13212         `re_compile_pattern').
13213         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13214         (re_set_registers): Correct name of parameter in comment.
13215
13216         * doc/regex.texi: Add documentation for missing syntax flags.
13217         Remove commented-out documentation of defunct syntax option
13218         RE_NO_EMPTY_ALTS.
13219         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13220         Add documentation of re_set_registers.
13221         Document trick to re-use a pattern buffer by setting fastmap manually.
13222         Update documentation of struct re_pattern_buffer per public members.
13223         Uncomment documentation of equivalence class operators and
13224         collating symbol operators, since they are now implemented,
13225         Explain leftmost-longest matching in relation to alternatives.
13226         Tidy documentation of substring matching.
13227         Remove POSIX documentation, which is done better in
13228         glibc, and refer the reader there. Keep BSD API documentation, as
13229         that is not readily available elsewhere.
13230
13231 2010-09-07  Eric Blake  <eblake@redhat.com>
13232
13233         getopt: handle POSIXLY_CORRECT set but not exported
13234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13235         export state of POSIXLY_CORRECT, due to bash set -o posix.
13236         Reported by Dustin J. Mitchell.
13237
13238 2010-09-05  Bruno Haible  <bruno@clisp.org>
13239
13240         gnulib-tool: Highlight the changed options.
13241         * gnulib-tool (func_usage): Display the --import, --add-import,
13242         --remove-import explanations in bold font.
13243
13244 2010-09-06  Karl Berry  <karl@gnu.org>
13245
13246         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13247
13248 2010-09-05  Bruno Haible  <bruno@clisp.org>
13249
13250         uniwidth/width: Update comment.
13251         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13252         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13253
13254 2010-09-05  Bruno Haible  <bruno@clisp.org>
13255
13256         isinf, isnan: Relax license.
13257         * modules/isinf (License): Change from GPL to LGPL, with consent from
13258         Ben Pfaff.
13259         * modules/isnan (License): Likewise.
13260         Requested by Ludovic Courtès.
13261
13262 2010-09-04  Bruno Haible  <bruno@clisp.org>
13263
13264         gnulib-tool: Help migration from --import to --add-import or --update.
13265         * gnulib-tool: Emit a verbose error message when --import is used
13266         without any module name.
13267
13268 2010-09-04  Bruno Haible  <bruno@clisp.org>
13269
13270         Update doc about gnulib-tool.
13271         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13272         'gnulib-tool --update' in more detail.
13273         Reported by Eric Blake.
13274
13275 2010-09-04  Bruno Haible  <bruno@clisp.org>
13276
13277         gnulib-tool: Change --import. New options --add/remove-import.
13278         * gnulib-tool: New options --add-import, --remove-import.
13279         (func_usage): Document them.
13280         (have_associative): Define always.
13281         (func_import): In import mode, don't merge the specified settings with
13282         the cached settings. Implement remove-import mode.
13283         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13284         Explain when to use them versus --import.
13285         (Simple update): Use --add-import instead of --import.
13286         * NEWS: Mention the change.
13287
13288 2010-09-04  Bruno Haible  <bruno@clisp.org>
13289
13290         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13291         separate gnulib.mk.
13292
13293 2010-09-04  Bruno Haible  <bruno@clisp.org>
13294
13295         gnulib-tool: Don't talk about CVS any more.
13296         * gnulib-tool (func_usage, func_import): Write "version control"
13297         instead of CVS.
13298
13299 2010-09-04  Jim Meyering  <meyering@redhat.com>
13300
13301         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13302         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13303         false positives (whose names may be ill-chosen) when searching
13304         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13305         would cause a false-positive.
13306
13307         avoid coreutils "make distcheck" failure
13308         Coreutils tests with an absolute build directory name that contains
13309         a space.  Not quoting this directory name caused a failure.
13310         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13311         * tests/test-vc-list-files-cvs.sh: Likewise.
13312
13313 2010-09-04  Bruno Haible  <bruno@clisp.org>
13314
13315         gnulib-tool: Avoid error when run in a package without Makefile.am.
13316         * gnulib-tool: When collecting the m4dirs in a package that does not
13317         have a Makefile.am, eliminate those directories that contain no
13318         gnulib-cache.m4. Fix expression that counts these directories.
13319
13320 2010-09-04  Bruno Haible  <bruno@clisp.org>
13321
13322         update-copyright test: Improve output when perl is missing or too old.
13323         * tests/test-update-copyright.sh: Move test of Perl version down after
13324         the test whether Perl exists. Provide an explanation relating Perl's
13325         error message to Automake's SKIP: message.
13326
13327 2010-09-04  Bruno Haible  <bruno@clisp.org>
13328
13329         Don't augment PATH in TESTS_ENVIRONMENT.
13330         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13331         set abs_aux_dir instead of augmenting PATH.
13332         * modules/vc-list-files-tests (Makefile.am): Likewise.
13333         * tests/test-update-copyright.sh: Augment PATH here.
13334         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13335         path_prepend_.
13336         * tests/test-vc-list-files-git.sh: Likewise.
13337
13338 2010-09-04  Jim Meyering  <meyering@redhat.com>
13339
13340         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13341         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13342
13343 2010-09-04  Bruno Haible  <bruno@clisp.org>
13344
13345         strdup: Fix compilation error in C++ mode.
13346         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13347         the macro.
13348
13349 2010-09-04  Bruno Haible  <bruno@clisp.org>
13350
13351         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13352         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13353         macro into a function.
13354         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13355
13356 2010-09-04  Bruno Haible  <bruno@clisp.org>
13357
13358         Set PATH_SEPARATOR the same way autoconf does.
13359         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13360         the value of PATH_SEPARATOR the same way autoconf-generated configure
13361         scripts do.
13362         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13363         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13364
13365 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13366
13367         Set PATH_SEPARATOR the same way autoconf does.
13368         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13369         the same way autoconf-generated configure scripts do.
13370         * posix-modules: Likewise.
13371
13372 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13373
13374         hash: fix safe_hasher const typo
13375         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13376         const; otherwise, there is a type error later.
13377
13378 2010-09-02  Jim Meyering  <meyering@redhat.com>
13379
13380         test-update-copyright.sh: require perl 5.8.0
13381         * tests/test-update-copyright.sh: Require 5.8.0,
13382         which Tom G. Christensen has confirmed is adequate,
13383         while 5.6.1 is not.
13384
13385 2010-09-02  Eric Blake  <eblake@redhat.com>
13386
13387         tests: init.sh improvements for re-exec'ing with zsh
13388         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13389         -vx through shell re-exec.
13390         Reported by Tom G. Christensen.
13391
13392         wctype: fix typo in previous commit
13393         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13394         Reported by Ludovic Courtès.
13395
13396 2010-09-02  Jim Meyering  <meyering@redhat.com>
13397
13398         test-update-copyright.sh: skip test if Perl is too old
13399         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13400         Reported by Tom G. Christensen.
13401
13402 2010-09-02  Bruno Haible  <bruno@clisp.org>
13403
13404         wctype: Avoid compilation error on IRIX 6.5.30.
13405         * lib/wctype.in.h (iswblank): Declare with a replacement if
13406         REPLACE_ISWBLANK is set.
13407         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13408         declared. Set REPLACE_ISWBLANK.
13409         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13410         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13411         * doc/posix-headers/wctype.texi: Likewise.
13412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13413
13414 2010-09-01  Bruno Haible  <bruno@clisp.org>
13415
13416         New module 'socketlib'.
13417         * modules/socketlib: New file.
13418         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13419         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13420         * modules/sockets (Depends-on): Add socketlib.
13421         Suggested by Sam Steingold <sds@gnu.org>.
13422
13423 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13424
13425         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13426
13427         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13428         when one needs search access to a directory but not read access.
13429         On systems where it is available, it works in some cases where
13430         O_RDONLY does not, namely on directories that are searchable but
13431         not readable, and which need only to be searchable.  If O_SEARCH
13432         is not available, fall back to the traditional method of using
13433         O_RDONLY.
13434
13435         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13436         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13437         when opening a directory that needs only to be searchable.
13438         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13439         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13440         * lib/openat-proc.c (openat_proc_name): Likewise.
13441         * lib/openat.c (openat_needs_fchdir): Likewise.
13442         * lib/save-cwd.c (save_cwd): Likewise.
13443         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13444
13445 2010-08-28  Bruno Haible  <bruno@clisp.org>
13446
13447         New module 'host-cpu-c-abi'.
13448         * modules/host-cpu-c-abi: New file.
13449         * m4/host-cpu-c-abi.m4: New file, based on part of
13450         clisp/src/m4/general.m4.
13451         Requested by Sam Steingold <sds@gnu.org>.
13452
13453 2010-08-31  Eric Blake  <eblake@redhat.com>
13454         and Jim Meyering  <meyering@redhat.com>
13455
13456         hash: factor, and guard against misbehaving hasher function
13457         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13458         of table->hasher's return value.  Also protect against a hash value
13459         so large that adding it to table->bucket results in a NULL pointer.
13460         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13461         Use it in place of open-coded check-and-abort.
13462
13463 2010-08-30  Bruno Haible  <bruno@clisp.org>
13464
13465         hash: silence spurious clang warning
13466         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13467         Reported by Eric Blake.
13468
13469 2010-08-30  Eric Blake  <eblake@redhat.com>
13470
13471         strstr, memmem, strcasestr: avoid leaked shell message
13472         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13473         FreeBSD.
13474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13475         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13476
13477         tests: silence clang warning
13478         * tests/test-malloca.c (do_allocation): Avoid dead store.
13479
13480 2010-08-29  Bruno Haible  <bruno@clisp.org>
13481
13482         gettext: Fix recent mistake.
13483         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13484
13485 2010-08-29  Bruno Haible  <bruno@clisp.org>
13486
13487         selinux-h: Offer a --without-selinux option.
13488         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13489         --without-selinux was specified, skip all tests and define
13490         HAVE_SELINUX_SELINUX_H to 0.
13491         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13492         set LIB_SELINUX to empty.
13493         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13494         gl_LIBSELINUX. If --without-selinux was specified, replace
13495         selinux/context.h.
13496         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13497
13498 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13499             Bruno Haible  <bruno@clisp.org>
13500
13501         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13502         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13503         of HAVE_REALLOC.
13504         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13505         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13506         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13507         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13508
13509 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13510             Bruno Haible  <bruno@clisp.org>
13511
13512         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13513         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13514         HAVE_CALLOC.
13515         * lib/xmalloc.c: Update accordingly.
13516         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13517         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13518         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13519
13520 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13521             Bruno Haible  <bruno@clisp.org>
13522
13523         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13524         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13525         HAVE_MALLOC.
13526         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13527         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13528         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13529
13530 2010-08-29  Bruno Haible  <bruno@clisp.org>
13531
13532         Update modules list.
13533         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13534         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13535         (String handling <string.h>): Add astrxfrm.
13536         (File system functions): Add readlinkat.
13537
13538 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13539
13540         Tests for module 'realloc-gnu'.
13541         * modules/realloc-gnu-tests: New file.
13542         * tests/test-realloc-gnu.c: New file.
13543
13544         Tests for module 'calloc-gnu'.
13545         * modules/calloc-gnu-tests: New file.
13546         * tests/test-calloc-gnu.c: New file.
13547
13548         Tests for module 'malloc-gnu'.
13549         * modules/malloc-gnu-tests: New file.
13550         * tests/test-malloc-gnu.c: New file.
13551
13552 2010-08-28  Bruno Haible  <bruno@clisp.org>
13553
13554         Rename module 'realloc' -> 'realloc-gnu'.
13555         * modules/realloc-gnu: New file, copied from modules/realloc.
13556         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13557         obsolete.
13558         * modules/mgetgroups (Depends-on): Update.
13559         * doc/posix-functions/realloc.texi: Update.
13560         * NEWS: Mention the change.
13561
13562         Rename module 'calloc' -> 'calloc-gnu'.
13563         * modules/calloc-gnu: New file, copied from modules/calloc.
13564         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13565         obsolete.
13566         * doc/posix-functions/calloc.texi: Update.
13567         * NEWS: Mention the change.
13568
13569         Rename module 'malloc' -> 'malloc-gnu'.
13570         * modules/malloc-gnu: New file, copied from modules/malloc.
13571         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13572         obsolete.
13573         * modules/argp (Depends-on): Update.
13574         * modules/regex (Depends-on): Update.
13575         * doc/posix-functions/malloc.texi: Update.
13576         * NEWS: Mention the change.
13577
13578 2010-08-28  Eric Blake  <eblake@redhat.com>
13579
13580         pread, pwrite: add missing dependency
13581         * modules/pread (Depends-on): Add extensions.
13582         * modules/pwrite (Depends-on): Likewise.
13583
13584 2010-08-28  Bruno Haible  <bruno@clisp.org>
13585
13586         unistr/u*-strchr: Fix tests dependencies.
13587         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13588         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13589         Reported by Ian Beckwith <ianb@erislabs.net>.
13590
13591 2010-08-28  Bruno Haible  <bruno@clisp.org>
13592
13593         read-file: Don't occupy too much unused memory.
13594         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13595
13596 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13597             Eric Blake  <eblake@redhat.com>
13598             Bruno Haible  <bruno@clisp.org>
13599
13600         read-file: Avoid memory reallocations with regular files.
13601         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13602         (fread_file): With regular files, use the remaining length as the
13603         initial buffer size.  Check against overflow.
13604         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13605         sys_stat.
13606
13607 2010-08-28  Bruno Haible  <bruno@clisp.org>
13608
13609         ftello: Relax license.
13610         * modules/ftello (License): Relax to LGPLv2+.
13611         Reported by Eric Blake.
13612
13613 2010-08-28  Bruno Haible  <bruno@clisp.org>
13614
13615         Avoid relocwrapper link errors due to gnulib replacement functions.
13616         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13617         function.
13618         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13619
13620 2010-08-28  Bruno Haible  <bruno@clisp.org>
13621
13622         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13623         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13624         defined.
13625         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13626         Suggested by Eric Blake.
13627
13628 2010-08-28  Bruno Haible  <bruno@clisp.org>
13629
13630         sys_socket, netdb: Ensure socklen_t gets defined.
13631         * modules/sys_socket (Depends-on): Add socklen.
13632         * modules/netdb (Depends-on): Likewise.
13633         * modules/getaddrinfo (Depends-on): Remove socklen.
13634         * modules/getsockopt (Depends-on): Likewise.
13635         * modules/setsockopt (Depends-on): Likewise.
13636         * tests/test-sys_socket.c: Check that socklen_t is defined.
13637         * tests/test-netdb.c: Likewise.
13638         * m4/socklen.m4: Update comments.
13639         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13640
13641 2010-08-27  Eric Blake  <eblake@redhat.com>
13642
13643         login_tty: add missing dependency
13644         * modules/login_tty (Depends-on): Add pty.
13645
13646 2010-08-26  Eric Blake  <eblake@redhat.com>
13647
13648         lib-symbol-versions: fix m4 quoting
13649         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13650         format for AC_LINK_IFELSE.
13651
13652         glob: fix compile test
13653         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13654
13655         btowc: fix missing file
13656         * modules/btowc (Files): Also ship locale-fr.m4.
13657
13658         lseek: fix link test
13659         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13660         AC_LINK_IFELSE.
13661
13662         include_next: silence autoconf 2.68 warning
13663         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13664         AC_COMPILE_IFELSE as special.
13665         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13666         autoconf < 2.68.
13667
13668         acl: fix compilation test
13669         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13670         AC_COMPILE_IFELSE.
13671
13672 2010-08-26  Bruno Haible  <bruno@clisp.org>
13673
13674         Modernize AC_TRY_RUN invocations.
13675         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13676         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13677         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13678         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13679         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13680         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13681         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13683         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13684         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13685         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13686         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13687         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13688         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13689         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13690         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13691         gl_MBRLEN_NUL_RETVAL): Likewise.
13692         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13693         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13694         Likewise.
13695         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13696         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13697         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13698         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13699         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13700         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13701         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13702         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13703         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13704         Likewise.
13705         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13706         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13707         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13708         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13709         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13710         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13711         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13712         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13713         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13715
13716 2010-08-26  Bruno Haible  <bruno@clisp.org>
13717
13718         Modernize AC_TRY_LINK invocations.
13719         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13720         AC_TRY_LINK.
13721         * m4/argp.m4 (gl_ARGP): Likewise.
13722         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13723         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13724         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13725         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13726         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13727         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13728         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13729         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13730         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13731         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13732         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13733         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13734         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13735         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13736         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13737         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13738         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13739         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13740         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13741         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13742         Likewise.
13743         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13744         Likewise.
13745         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13746         Likewise.
13747         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13748         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13749         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13750         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13751         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13752         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13753         * m4/servent.m4 (gl_SERVENT): Likewise.
13754         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13755         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13756         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13757         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13758         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13759         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13760         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13761         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13762         * modules/tsearch-tests (configure.ac): Likewise.
13763
13764 2010-08-26  Bruno Haible  <bruno@clisp.org>
13765
13766         Modernize AC_TRY_COMPILE invocations.
13767         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13768         AC_TRY_COMPILE.
13769         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13770         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13771         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13772         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13773         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13774         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13775         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13776         * m4/lock.m4 (gl_LOCK): Likewise.
13777         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13778         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13779         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13780         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13781         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13782         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13783         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13785         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13786         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13787         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13788         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13789         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13790         extraneous semicolon.
13791
13792 2010-08-26  Jim Meyering  <meyering@redhat.com>
13793
13794         stat-time: relax license LGPL
13795         * modules/stat-time (License): Change from GPL to LGPL,
13796         with consent from all contributors, for use in libguile.
13797         Requested by Ludovic Courtès.
13798
13799 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13800
13801         poll: return immediately on POLLHUP.
13802         * lib/poll.c (poll): Always set timeout before wait_timeout is
13803         computed.
13804
13805 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13806
13807         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13808         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13809         rmdir ("dir/.//"), unlinkat.
13810
13811 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13812
13813         stdbool: avoid spurious failure with modern xlc
13814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13815
13816 2010-08-24  Bruno Haible  <bruno@clisp.org>
13817
13818         getloadavg: simplify code
13819         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13820         gl_have_func. Update comments.
13821
13822 2010-08-24  Eric Blake  <eblake@redhat.com>
13823
13824         getloadavg: don't define SVR4 on cygwin
13825         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13826         only define SVR4 when -lkvm is required.
13827         Reported by Yaakov Selkowitz.
13828
13829 2010-08-24  Bruno Haible  <bruno@clisp.org>
13830
13831         priv-set: fix comment
13832         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13833
13834 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13835
13836         priv-set: fix comments
13837         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13838         to match code, as suggested by David Bartley in:
13839         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13840
13841 2010-08-23  Eric Blake  <eblake@redhat.com>
13842
13843         stdbool: avoid rejecting clang
13844         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13845         * tests/test-stdbool.c: Enable more tests if using the system
13846         <stdbool.h> instead of the gnulib replacement.
13847         (main): Move xlc bug test to a runtime test for all compilers.
13848         Reported by Anders Kaseorg.
13849
13850         argz: fix shell quoting issue
13851         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13852         Reported by Charles Wilson.
13853
13854 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13855             Erik Faye-Lund <kusmabite@gmail.com>
13856
13857         poll, select: handle ERROR_BROKEN_PIPE.
13858         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13859         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13860         * lib/select.c (win32_compute_revents): Do not mark a pipe
13861         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13862
13863 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13864
13865         fts: allow compilation with C++
13866         * lib/fts_.h: Specify extern "C" linkage with C++.
13867
13868 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13869
13870         Fix gnulib-tool sed script de-commentation for AIX sed.
13871         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13872         sed.
13873
13874 2010-08-17  Eric Blake  <eblake@redhat.com>
13875
13876         test-stddef: test for (some) offsetof bugs
13877         * tests/test-stddef.c: Enhance test to ensure correct type of
13878         offsetof.
13879         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13880         that we are not fixing at this time.
13881
13882 2010-08-15  Bruno Haible  <bruno@clisp.org>
13883
13884         stpncpy: Allow stpncpy to be defined as a macro.
13885         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13886         if it's already correctly declared.
13887         * lib/string.in.h (stpncpy): Undefine before redefining.
13888         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13889
13890 2010-08-14  Bruno Haible  <bruno@clisp.org>
13891
13892         Rename module 'memxfrm' to 'amemxfrm'.
13893         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13894         (amemxfrm): Renamed from memxfrm.
13895         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13896         (amemxfrm): Renamed from memxfrm.
13897         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13898         * NEWS: Mention the change.
13899         * MODULES.html.sh (String handling <string.h>): Update.
13900         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13901         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13902         * lib/unicase/u16-casexfrm.c: Likewise.
13903         * lib/unicase/u32-casexfrm.c: Likewise.
13904         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13905         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13906         * lib/uninorm/u16-normxfrm.c: Likewise.
13907         * lib/uninorm/u32-normxfrm.c: Likewise.
13908         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13909         memxfrm.
13910         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13911         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13912         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13913         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13914         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13915         Suggested by Paul Eggert.
13916
13917 2010-08-14  Bruno Haible  <bruno@clisp.org>
13918
13919         Tests for module 'astrxfrm'.
13920         * modules/astrxfrm-tests: New file.
13921         * tests/test-astrxfrm.c: New file.
13922
13923         New module 'astrxfrm'.
13924         * lib/astrxfrm.h: New file.
13925         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13926         * modules/astrxfrm: New file.
13927
13928 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13929
13930         regex: Tweak doc.
13931         * doc/regex.texi (Overview): Don't mention regex.c.
13932         (GNU Regular Expression Compiling): Likewise.
13933         (Match-end-of-line Operator): Mention 'not_eol'.
13934
13935 2010-08-14  Brian Gough  <bjg@gnu.org>
13936             Bruno Haible  <bruno@clisp.org>
13937
13938         git-merge-changelog: add doc relating to use with bzr and hg.
13939         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13940
13941 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13942
13943         pthread: fix pthread.h creation for srcdir != builddir
13944         * modules/pthread (Makefile.am): Fix the rule to work also in a
13945         non-srcdir build.
13946
13947 2010-08-13  Karl Berry  <karl@gnu.org>
13948
13949         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13950         * doc/posix-*/*: force line break before @url of POSIX
13951         specifications.
13952         Suggested by Werner Lemberg.
13953
13954 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13955
13956         strtod: fix const diagnostic
13957         * lib/strtod.c (strtod): Don't assign const char * to char *,
13958         as this elicits a warning from GCC when warnings are enabled.
13959
13960 2010-08-10  Pádraig Brady <P@draigbrady.com>
13961         and Eric Blake  <eblake@redhat.com>
13962
13963         copy-acl: ignore ENOTSUP on HP-UX
13964         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13965         so that it is available for HP-UX.
13966         * lib/copy-acl.c (qcopy_acl): Use it.
13967         Reported by Patrick M. Callahan.
13968
13969 2010-08-10  Eric Blake  <eblake@redhat.com>
13970
13971         open, chown: relax license
13972         * modules/open (License): Change to LGPLv2+, with consent by all
13973         authors, for use in augeas.
13974         * modules/chown (License): Likewise.
13975         * modules/lchown (Likewise): Likewise.
13976         Requested by Adam Stokes.
13977
13978 2010-08-09  Karl Berry  <karl@gnu.org>
13979
13980         * build-aux/ar-lib: new file, import from Automake.
13981         * config/srclist.txt: autocheck for updates.
13982
13983 2010-08-09  Eric Blake  <eblake@redhat.com>
13984
13985         readlinkat: adjust client modules
13986         * modules/areadlinkat (Depends-on): Use readlinkat, not
13987         symlinkat.
13988         * modules/areadlinkat-with-size (Depends-on): Likewise.
13989
13990         mknod: be more vocal about danger of running tests as root
13991         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13992         root, since that is just asking for problems.
13993         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13994
13995         readlinkat: split into its own module
13996         * modules/symlinkat: Split readlinkat...
13997         * modules/readlinkat: ...into separate module.
13998         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13999         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14000         * lib/symlinkat.c (readlinkat): Move...
14001         * lib/readlinkat.c: ...into new file.
14002         * modules/symlinkat-tests: Split readlinkat test...
14003         * modules/readlinkat-tests: ...into separate module.
14004         * tests/test-symlinkat.c: Split...
14005         * tests/test-readlinkat.c: ...into new file.
14006         * NEWS: Document the split.
14007         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14008         * lib/unistd.in.h (readlinkat): Likewise.
14009         Suggested by Bruno Haible.
14010
14011 2010-08-08  Bruno Haible  <bruno@clisp.org>
14012
14013         memxfrm: Speed up.
14014         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14015         that usually only one call to strxfrm is necessary for each string
14016         part.
14017         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14018
14019 2010-08-07  Karl Berry  <karl@gnu.org>
14020
14021         * doc/posix-headers/limits.texi,
14022         * doc/posix-functions/malloc.texi,
14023         * doc/posix-functions/strsignal.texi: missing @item.
14024         * doc/ld-version-script.texi: spurious leading i.
14025         * doc/regex.texi (Interval Operators): no commas inside @var.
14026
14027 2010-08-01  Bruno Haible  <bruno@clisp.org>
14028
14029         Integrate the regex documentation.
14030         * doc/gnulib.texi: Define 'cn' index.
14031         (Regular expressions): New a chapter that includes regex.texi and
14032         regexprops-generic.texi.
14033         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14034         syntax.
14035
14036         Whitespace cleanup.
14037         * doc/regex.texi: Remove trailing spaces.
14038
14039         Add regex documentation.
14040         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14041         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14042         Written by Kathy A. Hargreaves and Karl Berry.
14043
14044 2010-08-01  Bruno Haible  <bruno@clisp.org>
14045
14046         link: Update documentation.
14047         * doc/posix-functions/link.texi: Update regarding Solaris.
14048
14049 2010-07-31  Bruno Haible  <bruno@clisp.org>
14050
14051         Update modules list.
14052         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14053         (String handling <string.h>): Add memcmp2, memxfrm.
14054         (Container data structures): Add xlist, xsublist, xoset.
14055         (Core language properties): Add alignof, unused-parameter.
14056         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14057         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14058         (Unibyte characters <ctype.h>): New section.
14059         (String handling <string.h>): New section.
14060         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14061         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14062         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14063         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14064         tan, tanh, tanl, y0, y1, yn.
14065         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14066         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14067         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14068         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14069         unlockpt, vdprintf, vdprintf-posix.
14070         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14071         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14072         xconcat-filename.
14073         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14074         getdtablesize, pipe2, pipe2-safer.
14075         (Security): New section.
14076         (Networking functions): Add accept4.
14077         (Signal handling): Add sigpipe.
14078         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14079         mbmemcasecoll.
14080         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14081         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14082         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14083         pipe-filter-ii.
14084         (Misc): Add argp-version-etc, login_tty, parse-duration.
14085
14086 2010-07-31  Bruno Haible  <bruno@clisp.org>
14087
14088         Improve doc in MODULES.html.
14089         * modules/linkat (Description): Add the word "function".
14090         * modules/mkfifo (Description): Likewise.
14091         * modules/mknod (Description): Likewise.
14092         * modules/remove (Description): Likewise.
14093         * modules/renameat (Description): Likewise.
14094         * modules/stat (Description): Likewise.
14095         * modules/symlink (Description): Likewise.
14096         * modules/unlink (Description): Likewise.
14097
14098 2010-07-31  Bruno Haible  <bruno@clisp.org>
14099
14100         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14101         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14102         option --enable/disable-c++ instead of --enable/disable-cxx.
14103         * NEWS: Mention the change.
14104
14105 2010-07-31  Bruno Haible  <bruno@clisp.org>
14106
14107         readlink, areadlink: Relax test a bit.
14108         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14109         alternative to ENOTDIR.
14110         * tests/test-areadlink.h (test_areadlink): Likewise.
14111         Reported by Rainer Tammer.
14112
14113 2010-07-31  Bruno Haible  <bruno@clisp.org>
14114
14115         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14116         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14117         character, perform the search using U_STRCHR.
14118         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14119         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14120         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14121         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14122         Suggested by Paolo Bonzini.
14123
14124 2010-07-31  Bruno Haible  <bruno@clisp.org>
14125
14126         unistr/u*-strstr: Fix dependencies.
14127         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14128         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14129         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14130
14131 2010-07-31  Bruno Haible  <bruno@clisp.org>
14132
14133         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14134         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14135         the beginning of the loop.
14136         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14137         cases in 'switch' statement.
14138
14139         unistr/u8-strchr: Fix several bugs.
14140         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14141         the string. When not found, return NULL, not a pointer near the end.
14142
14143         More tests for unistr/u8-strchr.
14144         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14145         that the function does not read past the first occurrence of the byte
14146         being searched.
14147         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14148         * tests/unistr/test-u16-strchr.c (main): New function.
14149         * tests/unistr/test-u32-strchr.c (main): New function.
14150
14151 2010-07-31  Bruno Haible  <bruno@clisp.org>
14152
14153         posix-modules: Ignore backup files of documentation files.
14154         * posix-modules: grep only through files named *.texi.
14155
14156 2010-07-31  Bruno Haible  <bruno@clisp.org>
14157
14158         symlinkat: Fix documentation.
14159         * doc/posix-functions/readlinkat.texi: Fix module name.
14160
14161 2010-07-31  Bruno Haible  <bruno@clisp.org>
14162
14163         fchownat: Replace also when chown has the trailing slash bug.
14164         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14165         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14166         introduced on 2010-04-10.
14167         Reported by Rainer Tammer.
14168
14169 2010-07-31  Bruno Haible  <bruno@clisp.org>
14170
14171         linkat: Work around AIX 7.1 bug.
14172         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14173         whether linkat handles trailing slash correctly. If not, replace linkat
14174         and define LINKAT_TRAILING_SLASH_BUG.
14175         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14176         check whether (fd1,file1) points to a directory if file1 or file2 ends
14177         in a slash. Code taken from lib/link.c.
14178         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14179         Reported by Rainer Tammer.
14180
14181 2010-07-31  Bruno Haible  <bruno@clisp.org>
14182
14183         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14184         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14185         This disables an xlc optimization that was causing wrong test results.
14186         Reported by Rainer Tammer.
14187
14188 2010-07-31  Bruno Haible  <bruno@clisp.org>
14189
14190         iconv: Work around AIX 6.1..7.1 bug.
14191         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14192         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14193         cross-compiling, guess no on all versions of AIX.
14194         Reported by Rainer Tammer.
14195
14196 2010-07-31  Bruno Haible  <bruno@clisp.org>
14197
14198         readlink: Relax test a bit.
14199         * tests/test-readlink.h (test_readlink): Allow different errno value
14200         when readlink is called with a file name that ends in / and refers to
14201         a file.
14202         Suggested by Eric Blake.
14203         Reported by Rainer Tammer.
14204
14205 2010-07-31  Bruno Haible  <bruno@clisp.org>
14206
14207         copysign: Does not require -lm on glibc systems.
14208         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14209         gl_COMMON_DOUBLE_MATHFUNC.
14210         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14211
14212 2010-07-31  Bruno Haible  <bruno@clisp.org>
14213
14214         duplocale: Work around AIX 7.1 bug.
14215         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14216         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14217         * lib/duplocale.c (rpl_duplocale): Update comment.
14218         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14219         Reported by Rainer Tammer.
14220
14221 2010-07-30  Bruno Haible  <bruno@clisp.org>
14222
14223         dirfd: Avoid link error on AIX 7.1.
14224         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14225         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14226         exist, set REPLACE_DIRFD.
14227         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14228         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14229         * doc/posix-functions/dirfd.texi: Update.
14230         Reported by Rainer Tammer.
14231
14232 2010-07-30  Eric Blake  <eblake@redhat.com>
14233
14234         strtod: next round of AIX fixes
14235         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14236         exponent.
14237         * tests/test-strtod.c (main): Enhance tests.
14238         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14239         Reported by Rainer Tammer.
14240
14241         futimens: fix configure check
14242         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14243         Reported by Bruno Haible.
14244
14245 2010-07-30  Bruno Haible  <bruno@clisp.org>
14246
14247         getline: Update regarding AIX.
14248         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14249         Reported by Rainer Tammer.
14250
14251 2010-07-30  Bruno Haible  <bruno@clisp.org>
14252
14253         wcwidth: Drop replacement on AIX 7.
14254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14255         AIX 7.
14256         Reported by Rainer Tammer.
14257
14258 2010-07-30  Bruno Haible  <bruno@clisp.org>
14259
14260         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14261         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14262         a 'char *'.
14263         Reported by Rainer Tammer.
14264
14265 2010-07-30  Bruno Haible  <bruno@clisp.org>
14266
14267         unlink: Update regarding AIX.
14268         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14269         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14270         Reported by Rainer Tammer.
14271
14272 2010-07-30  Bruno Haible  <bruno@clisp.org>
14273
14274         symlink: Update regarding AIX.
14275         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14276         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14277         Reported by Rainer Tammer.
14278
14279 2010-07-30  Bruno Haible  <bruno@clisp.org>
14280
14281         strndup: Update regarding AIX.
14282         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14283         AIX 7.
14284         Reported by Rainer Tammer.
14285
14286 2010-07-30  Bruno Haible  <bruno@clisp.org>
14287
14288         stat: Update regarding AIX.
14289         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14290         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14291         Reported by Rainer Tammer.
14292
14293 2010-07-30  Bruno Haible  <bruno@clisp.org>
14294
14295         truncl: Fix autoconf test.
14296         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14297         whether truncl works.
14298         Reported by Rainer Tammer.
14299
14300 2010-07-30  Bruno Haible  <bruno@clisp.org>
14301
14302         round: Update regarding AIX.
14303         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14304         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14305         Reported by Rainer Tammer.
14306
14307 2010-07-30  Bruno Haible  <bruno@clisp.org>
14308
14309         rename: Update regarding AIX.
14310         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14311         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14312         Reported by Rainer Tammer.
14313
14314 2010-07-30  Bruno Haible  <bruno@clisp.org>
14315
14316         printf.m4: Update regarding AIX.
14317         * m4/printf.m4: Update comments regarding AIX.
14318         Reported by Rainer Tammer.
14319
14320 2010-07-30  Bruno Haible  <bruno@clisp.org>
14321
14322         iconv: Update regarding AIX.
14323         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14324         AIX 7.
14325         Reported by Rainer Tammer.
14326
14327 2010-07-30  Bruno Haible  <bruno@clisp.org>
14328
14329         getopt: Update regarding AIX.
14330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14331         no on AIX.
14332         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14333         Reported by Rainer Tammer.
14334
14335 2010-07-30  Bruno Haible  <bruno@clisp.org>
14336
14337         ldexpl; Update regarding AIX.
14338         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14339         on AIX 7.
14340         Reported by Rainer Tammer.
14341
14342 2010-07-30  Bruno Haible  <bruno@clisp.org>
14343
14344         frexpl: Update regarding AIX.
14345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14346         on AIX 7.
14347         Reported by Rainer Tammer.
14348
14349 2010-07-30  Bruno Haible  <bruno@clisp.org>
14350
14351         open, fopen: Update regarding AIX.
14352         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14353         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14354         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14355         * doc/posix-functions/fopen.texi: Likewise.
14356         Reported by Rainer Tammer.
14357
14358 2010-07-30  Bruno Haible  <bruno@clisp.org>
14359
14360         chown: Update doc regarding AIX.
14361         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14362         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14363         Reported by Rainer Tammer.
14364
14365 2010-07-30  Eric Blake  <eblake@redhat.com>
14366
14367         strtod: fix bug in replacement function on AIX
14368         * lib/strtod.c (strtod): Special case broken "0x" parse in
14369         underlying strtod.
14370         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14371         * doc/posix-functions/strtod.texi (strtod): Likewise.
14372         Reported by Rainer Tammer.
14373
14374 2010-07-30  Bruno Haible  <bruno@clisp.org>
14375
14376         mbrlen: Fix cross-compilation guess for AIX.
14377         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14378         guess. Leftover from 2008-12-22.
14379
14380 2010-07-30  Bruno Haible  <bruno@clisp.org>
14381
14382         mbrtowc: Fix cross-compilation guess for AIX.
14383         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14384         guess. Leftover from 2008-12-21.
14385
14386 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14387
14388         init.sh: work around trap limitation of some shells
14389         * tests/init.sh (setup_): Move exit trap outside of shell function.
14390
14391 2010-07-29  Eric Blake  <eblake@redhat.com>
14392
14393         strtod: aid debugging
14394         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14395         understanding why strtod is rejected.
14396
14397 2010-07-28  Bruno Haible  <bruno@clisp.org>
14398
14399         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14400         * lib/unistr/u8-chr.c: Include <string.h>.
14401         * tests/unistr/test-u8-chr.c: Likewise.
14402         * tests/unistr/test-u16-chr.c: Likewise.
14403         * tests/unistr/test-u32-chr.c: Likewise.
14404         * tests/unistr/test-u8-strchr.c: Likewise.
14405         * tests/unistr/test-u16-strchr.c: Likewise.
14406         * tests/unistr/test-u32-strchr.c: Likewise.
14407         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14408         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14409         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14410         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14411
14412 2010-07-28  Bruno Haible  <bruno@clisp.org>
14413
14414         Use spaces for indentation, not tabs.
14415         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14416
14417 2010-07-27  Bruno Haible  <bruno@clisp.org>
14418
14419         mbspcasecmp: Fix function specification.
14420         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14421         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14422         Reported by Eric Blake <eblake@redhat.com>.
14423
14424 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14425
14426         timespec: use cast and not conditional, as truncation isn't possible
14427         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14428         instead of a conditional.  Comment about the situation in more detail.
14429         This undoes most of the 2009-10-29 patch.
14430
14431 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14432
14433         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14434         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14435         * lib/unistr/u8-strchr.c: Likewise.
14436         * modules/unistr/u8-chr: Depend on memchr.
14437
14438         unistr/u*-strchr: add tests
14439         * modules/unistr/u8-strchr-tests: New file.
14440         * modules/unistr/u16-strchr-tests: New file.
14441         * modules/unistr/u32-strchr-tests: New file.
14442         * tests/unistr/test-strchr.h: New file.
14443         * tests/unistr/test-u8-strchr.c: New file.
14444         * tests/unistr/test-u16-strchr.c: New file.
14445         * tests/unistr/test-u32-strchr.c: New file.
14446
14447         unistr/u*-chr: test multibyte sequences more
14448         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14449         test vector.
14450         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14451         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14452         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14453
14454         unistr/u*-chr: test multibyte sequences
14455         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14456
14457         unistr/u*-chr: prepare for multibyte tests
14458         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14459         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14460         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14461         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14462         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14463         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14464
14465 2010-07-18  Bruno Haible  <bruno@clisp.org>
14466
14467         unistr/u8-strchr: Optimize non-ASCII argument case.
14468         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14469         because the first byte often matches anyway.
14470         Reported by Pádraig Brady <P@draigbrady.com>.
14471
14472 2010-07-15  Karl Berry  <karl@gnu.org>
14473
14474         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14475
14476 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14477
14478         getcwd: on Solaris, work better if ancestors are inaccessible
14479         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14480         buffer and size, try again with a large buffer.  This works better
14481         on Solaris, since its getcwd succeeds even if the path to the root
14482         is inaccessible, and this is helpful in common cases such as .zfs
14483         hidden directories.  Problem reported by J Chapman Flack in
14484         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14485         Use system getcwd if it's declared, not merely if it's partly
14486         working; use the partly-working test only to avoid needless effort
14487         if the system getcwd fails.
14488         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14489         comment that was already obsolete and is now even more obsolete.
14490         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14491         now might call strdup.
14492
14493 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14494
14495         pthread: Add enough so that coreutils/src/sort.c compiles.
14496         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14497         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14498         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14499         Include <sys/types.h>, in case it defines pthread_t.
14500         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14501         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14502         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14503         (pthread_rwlockattr_t, pthread_spinlock_t):
14504         New typedefs, if HAVE_PTHREAD_T is not defined.
14505         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14506         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14507         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14508         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14509         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14510         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14511         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14512         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14513         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14514         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14515         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14516         New macros.
14517         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14518         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14519         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14520         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14521         (pthread_spin_unlock): New dummy functions.
14522         (pthread_create): Return EAGAIN; don't set errno.
14523         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14524         require AC_C_INLINE.
14525         * modules/pthread (Depends-on): Add sched, time.
14526         (pthread.h): Use AM_V_GEN.
14527
14528 2010-07-13  Bruno Haible  <bruno@clisp.org>
14529
14530         striconveh: Don't malloc memory if the result buffer is sufficient.
14531         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14532         buffer if its size is sufficient.
14533         Reported by Ludovic Courtès <ludo@gnu.org>.
14534
14535 2010-07-13  Bruno Haible  <bruno@clisp.org>
14536
14537         strtod: Add safety check.
14538         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14539
14540 2010-07-12  Bruno Haible  <bruno@clisp.org>
14541
14542         Unify tests that set gl_cv_func_ldexpl_no_libm.
14543         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14544         gl_FUNC_LDEXPL.
14545         (gl_FUNC_LDEXPL): Invoke it.
14546         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14547
14548 2010-07-12  Bruno Haible  <bruno@clisp.org>
14549
14550         Unify tests that set gl_cv_func_ldexp_no_libm.
14551         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14552         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14553         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14554         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14555         * modules/strtod (Files): Add m4/ldexp.m4.
14556
14557 2010-07-12  Bruno Haible  <bruno@clisp.org>
14558
14559         Unify tests that set gl_cv_func_frexpl_no_libm.
14560         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14561         gl_FUNC_FREXPL_NO_LIBM.
14562         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14563         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14564
14565 2010-07-12  Bruno Haible  <bruno@clisp.org>
14566
14567         Unify tests that set gl_cv_func_frexp_no_libm.
14568         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14569         gl_FUNC_FREXP_NO_LIBM.
14570         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14571         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14572
14573 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14574
14575         memcoll: clarify sizes versus lengths, document better, and tweak perf
14576         * lib/memcoll.c (strcoll_loop, memcoll0):
14577         Improve quality of descriptive comments.  Name variables
14578         consistently as to whether they are lengths (which do not include
14579         terminating null) versus sizes (which do).
14580         * lib/xmemcoll.c (xmemcoll0): Likewise.
14581         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14582         returned when s1size == 0; this is easier to compile and saves
14583         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14584
14585 2010-07-12  Bruno Haible  <bruno@clisp.org>
14586
14587         Tests for module '_Exit'.
14588         * modules/_Exit-tests: New file.
14589         * tests/test-_Exit.sh: New file.
14590         * tests/test-_Exit.c: New file.
14591
14592         New module '_Exit'.
14593         * lib/stdlib.in.h (__attribute__): New macro.
14594         (_Exit): New declaration.
14595         * lib/_Exit.c: New file.
14596         * m4/_Exit.m4: New file.
14597         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14598         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14599         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14600         * modules/_Exit: New file.
14601         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14602         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14603
14604 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14605
14606         strtod: make it more-accurate typically, and don't require libm
14607         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14608         Include limits.h.  Don't include string.h.
14609         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14610         (locale_isspace): New function, so that no casts are needed to
14611         check whether *s is a space.
14612         (ldexp): Provide an unused dummy if not available.
14613         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14614         (strtod): Use them.  This implementation prefers to use the
14615         underlying strtod if available, falling back on our own code
14616         only to fix known bugs.  This is more likely to produce an
14617         accurate result.  Also, it avoids the use of libm functions.
14618         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14619         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14620         was absent, but it caused a test failure with coreutils.
14621         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14622         with libm.
14623         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14624         * modules/strtod-tests (Makefile.am): Likewise.
14625
14626 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14627             Bruno Haible  <bruno@clisp.org>
14628
14629         unistr/u8-strchr: Optimize ASCII argument case.
14630         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14631
14632 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14633
14634         (x)memcoll: minor tweaks
14635         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14636         is after the type that it qualifies.
14637         (memcoll0): Likewise.
14638         * lib/memcoll.h (memcoll0): Likewise.
14639         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14640         * lib/xmemcoll.h (xmemcoll0): Likewise.
14641         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14642         differs from memcoll in that the NUL byte is part of the argument.
14643         Omit the abort-checks, as performance is a real issue here.  Plus,
14644         the checks were wrong anyway (an off-by-one error).  Omit local
14645         variable 'diff', as it's a bit clearer that way.
14646         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14647         no longer needed.
14648
14649 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14650
14651         (x)memcoll: speedup when input is known to be NUL delimited
14652         * lib/memcoll.c: Include stdlib.
14653         (memcoll0): New function.
14654         (strcoll_loop): New function, refactored for use in both memcoll
14655         and memcoll0.
14656         * lib/memcoll.h (memcoll0): Add prototype.
14657         * lib/xmemcoll.c (xmemcoll0): New function.
14658         (collate_error): New function, refactored for use in both xmemcoll
14659         and xmemcoll0.
14660         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14661         * m4/memcoll.m4: add inline invocation.
14662
14663 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14664
14665         * build-aux/bootstrap: Remove any local translations
14666         from the translation project synchronization directory,
14667         so that local only translations are not distributed.
14668
14669 2010-07-04  Bruno Haible  <bruno@clisp.org>
14670
14671         fsusage: Clarify which code applies to which platforms.
14672         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14673         platform.
14674         * lib/fsusage.c (get_fs_usage): Likewise.
14675
14676 2010-07-04  Bruno Haible  <bruno@clisp.org>
14677
14678         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14679         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14680         Reported by Martin Lambers <marlam@marlam.de>.
14681
14682 2010-07-04  Jim Meyering  <meyering@redhat.com>
14683
14684         hash: once again explicitly disallow insertion of NULL
14685         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14686         inserting a NULL pointer cannot work with these functions.
14687         Add a comment with details.
14688         This reverts part of the 2010-07-01 commit, 5bef1a35
14689         "hash: extend module to deal with non-pointer keys".
14690
14691 2010-07-01  Bruno Haible  <bruno@clisp.org>
14692
14693         stdbool: Update doc.
14694         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14695         Info from Christian Weisgerber <naddy@mips.inka.de>.
14696
14697 2010-07-01  Jim Meyering  <meyering@redhat.com>
14698
14699         hash: extend module to deal with non-pointer keys
14700         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14701         but that allows insertion of non-pointer entries.
14702         Do not disallow an ENTRY value of NULL.
14703         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14704         * lib/hash.h (hash_insert0): Declare.
14705
14706 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14707
14708         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14709         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14710         not present (i.e. with autoconf 2.59 and when using gettextize, not
14711         gnulib), require AC_GNU_SOURCE instead.
14712
14713 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14714
14715         idpriv-drop: Fix tests.
14716         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14717         not to the test-idpriv-droptemp program.
14718
14719 2010-06-29  Bruno Haible  <bruno@clisp.org>
14720
14721         string: Fix syntax error with g++ 2.96.
14722         * lib/string.in.h (__pure__): Remove definition.
14723         (_GL_ATTRIBUTE_PURE): New macro.
14724         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14725         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14726         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14727
14728 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14729
14730         unitypes: Fix bug introduced on 2010-05-18.
14731         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14732
14733 2010-06-22  Eric Blake  <eblake@redhat.com>
14734
14735         memmem: slight optimization
14736         * lib/str-two-way.h (critical_factorization): Update comments.
14737         Reduce work during factorization phase.
14738         Reported by Carlos Bueno <carlos@bueno.org>.
14739
14740 2010-06-21  Bruno Haible  <bruno@clisp.org>
14741
14742         Fix HAVE_CALLOC_POSIX misnomer.
14743         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14744         !HAVE_CALLOC_POSIX.
14745         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14746         HAVE_CALLOC_POSIX.
14747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14748         instead of HAVE_CALLOC_POSIX.
14749         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14750         HAVE_CALLOC_POSIX.
14751
14752         Use modern idiom for calloc() replacement.
14753         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14754         AC_FUNC_CALLOC.
14755         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14756         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14757         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14758         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14759         (gl_REPLACE_CALLOC): New macro.
14760
14761 2010-06-21  Bruno Haible  <bruno@clisp.org>
14762
14763         Fix HAVE_REALLOC_POSIX misnomer.
14764         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14765         !HAVE_REALLOC_POSIX.
14766         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14767         HAVE_REALLOC_POSIX.
14768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14769         instead of HAVE_REALLOC_POSIX.
14770         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14771         HAVE_REALLOC_POSIX.
14772
14773         Use modern idiom for realloc() replacement.
14774         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14775         AC_FUNC_REALLOC.
14776         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14777         Autoconf's AC_FUNC_REALLOC.
14778         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14779         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14780         (gl_REPLACE_REALLOC): New macro.
14781         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14782
14783 2010-06-21  Bruno Haible  <bruno@clisp.org>
14784
14785         Fix HAVE_MALLOC_POSIX misnomer.
14786         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14787         !HAVE_MALLOC_POSIX.
14788         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14789         HAVE_MALLOC_POSIX.
14790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14791         instead of HAVE_MALLOC_POSIX.
14792         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14793         HAVE_MALLOC_POSIX.
14794
14795         Use modern idiom for malloc() replacement.
14796         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14797         AC_FUNC_MALLOC.
14798         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14799         Autoconf's AC_FUNC_MALLOC.
14800         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14801         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14802         (gl_REPLACE_MALLOC): New macro.
14803         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14804
14805 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14806
14807         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14808         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14809         This macro takes 3 arguments, not 4.
14810
14811 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14812
14813         ipv6: fix detection under mingw
14814         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14815         in6_addr.
14816
14817 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14818
14819         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14820         that strtod() works when cross-compiling to a glibc version known
14821         to work.
14822
14823 2010-06-15  Bruno Haible  <bruno@clisp.org>
14824
14825         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14826
14827 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14828
14829         select: Correct timeout.
14830         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14831
14832 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14833
14834         git-version-gen: init shell var to avoid env var influence
14835         * build-aux/git-version-gen (v): Init shell var to empty.
14836
14837 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14838
14839         priv-set: Don't assume that priv.h exists merely because getppriv does.
14840         See Jan Andersen's bug report about AIX 5L in
14841         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14842         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14843         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14844         * lib/priv-set.h: Likewise.
14845         * tests/test-priv-set.c: Likewise.
14846
14847 2010-06-13  Bruno Haible  <bruno@clisp.org>
14848
14849         relocatable: Make it easier to test whether to install wrappers.
14850         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14851         RELOCATABLE_VIA_WRAPPER.
14852
14853 2010-06-13  Bruno Haible  <bruno@clisp.org>
14854
14855         gnulib-tool: Display specified modules and dependencies differently.
14856         * gnulib-tool (func_show_module_list): New function.
14857         (func_import, func_create_testdir): Invoke it.
14858         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14859
14860 2010-06-13  Bruno Haible  <bruno@clisp.org>
14861
14862         gnulib-tool: Align code of func_import and func_create_testdir.
14863         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14864         specified_modules.
14865
14866 2010-06-12  Jim Meyering  <meyering@redhat.com>
14867
14868         test-inttostr: avoid spurious failure on Solaris 9
14869         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14870         to accept "%ju".  Reported by Bruno Haible.
14871
14872 2010-06-11  Jim Meyering  <meyering@redhat.com>
14873
14874         test-sys_socket: mark variables as used more readably
14875         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14876         as "used" explicitly via (void) statement casts.  This is more
14877         readable than using them in an artificial return expression.
14878         Suggestion from Bruno Haible.
14879
14880 2010-06-11  Bruno Haible  <bruno@clisp.org>
14881
14882         Avoid some more warnings from "gcc -Wwrite-strings".
14883         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14884         to 'const char *'.
14885         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14886         * tests/test-c-strcasestr.c (main): Likewise.
14887         * tests/test-mbscasestr1.c (main): Likewise.
14888         * tests/test-mbscasestr2.c (main): Likewise.
14889         * tests/test-memmem.c (main): Likewise.
14890         * tests/test-strstr.c (main): Likewise.
14891         * tests/test-strcasestr.c (main): Likewise.
14892
14893 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14894
14895         init.sh: change framework_failure_ to fail with status 99, not 1
14896         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14897         automake's parallel-tests rule that this is an unexpected failure,
14898         even if the test is listed in XFAIL_TESTS.
14899
14900 2010-06-11  Jim Meyering  <meyering@redhat.com>
14901
14902         test-inttostr: avoid warnings about 4-6KB literal strings
14903         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14904         Include "macros.h", for its definition of ASSERT.
14905         (CK): s/assert/ASSERT/
14906         * modules/inttostr-tests (Files): Add macros.h.
14907
14908         init.sh: don't use $ME_ or skip_ before they are defined
14909         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14910         their first uses.  Also hoist their companions: warn_, fail_,
14911         framework_failure_, $stderr_fileno.  Prompted by a patch from
14912         Stefano Lattarini.
14913
14914         test-sys_socket: avoid set-but-not-used warnings from gcc
14915         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14916         avoid warning about set-but-not-used variables.
14917
14918         test-xvasprintf: avoid 'const' discard warnings
14919         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14920         "const" when assigning from literal strings.
14921         (test_xasprintf): Add "void" in function argument list to placate
14922         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14923
14924         tests: avoid compilation warnings in argmatch and exclude tests...
14925         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14926         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14927         Since it always exits, declare with the "noreturn" attribute.
14928         * tests/test-argmatch.c: Likewise.
14929
14930         tests: avoid 'const' discard warnings in mbsstr tests
14931         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14932         * tests/test-mbsstr2.c (main): Likewise.
14933
14934         test-verify: avoid warning from gcc's -Wmissing-declarations
14935         * tests/test-verify.c (function): Declare to be static.
14936
14937         test-inttostr.c: include <string.h> for use of strcmp
14938         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14939
14940         test-linkat: avoid failed assertion on "other" architectures
14941         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14942         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14943         sparc: https://bugs.launchpad.net/bugs/591968
14944
14945 2010-06-11  Jim Meyering  <meyering@redhat.com>
14946
14947         printf.m4: avoid autoconf's "Expanded Before Required" warning
14948         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14949         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14950         autoconf warning.
14951
14952 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14953
14954         Replacement header templates are now named with ".in", not "_".
14955         * doc/gnulib-intro.texi: Correct.
14956
14957 2010-06-10  Jim Meyering  <meyering@redhat.com>
14958
14959         inttostr-tests: depend on snprintf, not snprintf-posix
14960         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14961         snprintf-posix, to avoid this aclocal failure:
14962           missing file gnulib-tests/vasnprintf.c
14963           configure.ac:45: error: expected source file, required through \
14964           AC_LIBSOURCES, not found
14965
14966 2010-06-10  Jim Meyering  <meyering@redhat.com>
14967
14968         inttostr: add a new function, inttostr, and tests
14969         The namesake function was not available.  The existence of the
14970         template file, inttostr.c makes its addition nontrivial.
14971         * lib/anytostr.c: Rename from inttostr.c.
14972         (anytostr): Rename from inttostr.
14973         * lib/inttostr.c: New file.
14974         * modules/inttostr (Files): Add anytostr.c.
14975         (Makefile.am): Set lib_SOURCES instead of ...
14976         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14977         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14978         * lib/offtostr.c: Likewise.
14979         * lib/uinttostr.c: Likewise.
14980         * lib/umaxtostr.c: Likewise.
14981         * modules/inttostr-tests: New file.
14982         * tests/test-inttostr.c: New file.  Test these functions.
14983
14984 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14985             Bruno Haible  <bruno@clisp.org>
14986
14987         Add "Extending Gnulib" chapter to manual.
14988         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14989         chapter.
14990         (Extending Gnulib): New chapter.
14991         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14992         chapter.
14993
14994 2010-06-09  Bruno Haible  <bruno@clisp.org>
14995
14996         Avoid relocwrapper link errors due to gnulib replacement functions.
14997         * lib/areadlink.c: Use the system's malloc, realloc functions.
14998         (areadlink): Set errno to ENOMEM explicitly.
14999         * modules/areadlink (Depends-on): Remove malloc-posix.
15000         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15001
15002 2010-06-09  Bruno Haible  <bruno@clisp.org>
15003
15004         Avoid relocwrapper link errors due to gnulib replacement functions.
15005         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15006         * lib/malloca.c: Likewise.
15007         * lib/relocatable.c: Likewise.
15008         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15009         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15010         * lib/setenv.c: Use the system's malloc, realloc functions.
15011         * lib/strerror.c: Use the system's sprintf function.
15012         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15013
15014 2010-06-04  Bruno Haible  <bruno@clisp.org>
15015
15016         Prefer documented low-level autoconf macro names.
15017         * m4/lib-link.m4: Use m4_translit instead of translit.
15018         * m4/environ.m4: Likewise.
15019         * m4/mathfunc.m4: Likewise.
15020         * m4/onceonly.m4: Likewise.
15021         * m4/stdint.m4: Likewise.
15022         Suggested by Eric Blake.
15023
15024 2010-06-04  Martin Lambers  <marlam@marlam.de>
15025             Bruno Haible  <bruno@clisp.org>
15026
15027         havelib: Allow library names with '+' characters.
15028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15029         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15030
15031 2010-06-09  Bruno Haible  <bruno@clisp.org>
15032
15033         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15034         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15035         realloc failed.
15036
15037 2010-06-08  Peter Simons  <simons@cryp.to>
15038
15039         maint.mk: make the news-check rule more configurable
15040         * top/maint.mk (news-check-lines-spec): New variable.
15041         (news-check): Use "sed -n 1,10p" in place of "head".
15042
15043 2010-06-07  Jim Meyering  <meyering@redhat.com>
15044
15045         do-release-commit-and-tag: fix typo in --help
15046         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15047
15048         regex: avoid new dead-code warning with gcc-4.6.0
15049         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15050         if-block containing a while-loop.  It's been unused for at least
15051         5 years.
15052
15053 2010-06-05  Bruno Haible  <bruno@clisp.org>
15054
15055         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15056         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15057
15058 2010-06-04  Bruno Haible  <bruno@clisp.org>
15059
15060         Update to GNU gettext 0.18.1.
15061         * modules/gettext (configure.ac): Require gettext infrastructure from
15062         version 0.18.1.
15063
15064 2010-06-03  Bruno Haible  <bruno@clisp.org>
15065
15066         Don't use AC_LIBOBJ with file names in subdirectories.
15067         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15068         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15069         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15070         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15071         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15072         gl_LIBUNISTRING_LIBSOURCE.
15073         (Makefile.am): Augment lib_SOURCES here, conditionally.
15074         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15075
15076 2010-06-03  Bruno Haible  <bruno@clisp.org>
15077
15078         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15079         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15080         expansion does not end with a newline.
15081         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15082         unnecessary newline.
15083
15084 2010-06-03  Bruno Haible  <bruno@clisp.org>
15085
15086         Reduce dependencies.
15087         * tests/test-quotearg.h: New file, extracted from
15088         tests/test-quotearg.c.
15089         * tests/test-quotearg-simple.c: New file, extracted from
15090         tests/test-quotearg.c.
15091         * tests/test-quotearg.c: Don't include <ctype.h>.
15092         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15093         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15094         use_quote_double_quotes, use_quotearg_colon): Moved to
15095         tests/test-quotearg.h.
15096         (results_g, flag_results, custom_quotes, custom_results): Moved
15097         to tests/test-quotearg-simple.c.
15098         (main): Moved the part that does not depend on gettext to
15099         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15100         performed.
15101         * modules/quotearg-simple: New file.
15102         * modules/quotearg-simple-tests: New file.
15103         * modules/quotearg (Depends-on): Add quotearg-simple.
15104         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15105         (Files): Add tests/test-quotearg.h.
15106         Reported by Paolo Bonzini.
15107
15108 2010-06-03  Bruno Haible  <bruno@clisp.org>
15109
15110         Reduce dependencies.
15111         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15112
15113 2010-06-03  Bruno Haible  <bruno@clisp.org>
15114
15115         time: Undefine more broken macros.
15116         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15117         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15118         Reported by Eric Blake.
15119
15120 2010-06-03  Bruno Haible  <bruno@clisp.org>
15121
15122         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15123         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15124         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15125         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15126         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15127         Reported by Ludovic Courtès <ludo@gnu.org>.
15128
15129 2010-06-02  Eric Blake  <eblake@redhat.com>
15130
15131         time: work with mingw + pthreads-win32 library
15132         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15133         if timespec is defined only in pthread.h.
15134         * modules/time (Makefile.am): Substitute it.
15135         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15136         <pthread.h>, when needed.
15137         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15138         from the library.
15139
15140 2010-05-31  Bruno Haible  <bruno@clisp.org>
15141
15142         Avoid expanding two macros in the wrong order.
15143         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15144         gl_LIBUNISTRING if it is defined.
15145         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15146         autoconf >= 2.64.
15147         Reported by Ludovic Courtès <ludo@gnu.org>.
15148
15149 2010-05-27  Jim Meyering  <meyering@redhat.com>
15150
15151         maint.mk: also prohibit "#undef" of always-defined symbols
15152         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15153         Allow more than one space before the symbol name.
15154         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15155         the regexp uses alternation.
15156
15157 2010-05-26  Eric Blake  <eblake@redhat.com>
15158
15159         maint.mk: avoid echo -e
15160         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15161         Convert all uses of echo -* to printf.
15162         Reported by Matthias Bolte.
15163
15164 2010-05-25  Bruno Haible  <bruno@clisp.org>
15165
15166         Update to GNU gettext 0.18, part 2.
15167         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15168         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15169
15170 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15171
15172         Add missing include in test-pwrite.c.
15173         * tests/test-pwrite.c: Include string.h, for strcmp.
15174
15175 2010-05-24  Bruno Haible  <bruno@clisp.org>
15176
15177         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15178
15179 2010-05-24  Bruno Haible  <bruno@clisp.org>
15180
15181         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15182         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15183         iconveh_error argument.
15184         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15185         U_STRCONV_TO_LOCALE.
15186         * lib/unistr/u16-strcoll.c: Likewise.
15187         * lib/unistr/u32-strcoll.c: Likewise.
15188         * modules/unistr/u8-strcoll (Depends-on): Add
15189         uniconv/u8-strconv-to-enc, localcharset. Remove
15190         uniconv/u8-strconv-to-locale.
15191         (configure.ac): Bump version number.
15192         * modules/unistr/u16-strcoll (Depends-on): Add
15193         uniconv/u16-strconv-to-enc, localcharset. Remove
15194         uniconv/u16-strconv-to-locale.
15195         (configure.ac): Bump version number.
15196         * modules/unistr/u32-strcoll (Depends-on): Add
15197         uniconv/u32-strconv-to-enc, localcharset. Remove
15198         uniconv/u32-strconv-to-locale.
15199         (configure.ac): Bump version number.
15200
15201 2010-05-24  Bruno Haible  <bruno@clisp.org>
15202
15203         Avoid a test failure on NetBSD 5.0.
15204         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15205         an iconv() bug.
15206
15207 2010-05-24  Bruno Haible  <bruno@clisp.org>
15208
15209         Adjust #include directive style.
15210         * modules/regex (Includes): Recommend to write <regex.h>.
15211
15212 2010-05-24  Bruno Haible  <bruno@clisp.org>
15213
15214         regex: Don't require alloca.
15215         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15216         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15217         only inside if (0).
15218
15219 2010-05-23  Jim Meyering  <meyering@redhat.com>
15220
15221         test-renameat.c: include <sys/stat.h>
15222         * tests/test-renameat.c: Include <sys/stat.h>; required for
15223         definition of S_IS* macros.
15224
15225 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15226
15227         Update maintainer documentation for 'relocatable-prog' module.
15228         * doc/relocatable-maint.texi: Update.
15229         Comments by Bruno Haible.
15230
15231 2010-05-23  Bruno Haible  <bruno@clisp.org>
15232
15233         git-merge-changelog: Enable --split-merged-entry by default.
15234         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15235         (usage): Don't mention this option any more.
15236         Reported by Ralf Wildenhues.
15237
15238 2010-05-23  Jim Meyering  <meyering@redhat.com>
15239
15240         test-pwrite: do not leave behind a test file named "out"
15241         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15242         The trivial-looking use of init.sh is really necessary.
15243         It ensures that the temporary file, "out", is created in
15244         a temporary directory, and removed upon termination.
15245         * tests/test-pwrite.sh: Re-add file.
15246         * modules/pwrite-tests: Reference it.
15247
15248 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15249
15250         Fix output redirection buglet in init.sh.
15251         * tests/init.sh: Fix redirection of stderr.
15252
15253 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15254
15255         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15256
15257 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15258
15259         * modules/valgrind-tests: New file.
15260         * m4/valgrind-tests.m4: New file.
15261         * doc/valgrind-tests.texi: New file.
15262         * doc/gnulib.texi (Running self-tests under valgrind): New
15263         section.
15264
15265 2010-05-19  Bruno Haible  <bruno@clisp.org>
15266
15267         Clean up dead code in recent commit.
15268         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15269         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15270         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15271         Suggested by Paolo Bonzini.
15272
15273 2010-05-19  Bruno Haible  <bruno@clisp.org>
15274
15275         Avoid valgrind error reports from libunistring.
15276         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15277         * modules/libunistring (Files): Add it.
15278         * modules/libunistring-optional (Files): Likewise.
15279
15280 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15281             Bruno Haible  <bruno@clisp.org>
15282
15283         New module 'libunistring-optional'.
15284         * modules/libunistring-optional: New file.
15285         * m4/libunistring-base.m4: New file.
15286         * m4/libunistring-optional.m4: New file.
15287         * lib/unicase.in.h: Renamed from lib/unicase.h.
15288         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15289         * lib/unictype.in.h: Renamed from lib/unictype.h.
15290         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15291         * lib/uniname.in.h: Renamed from lib/uniname.h.
15292         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15293         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15294         * lib/unistr.in.h: Renamed from lib/unistr.h.
15295         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15296         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15297         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15298         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15299         gl_LIBUNISTRING. If the library was found, determine the installed
15300         version and set LIBUNISTRING_VERSION.
15301         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15302         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15303         handle a configuration option --with-included-libunistring.
15304         * modules/libunistring (Files): Add m4/absolute-header.m4.
15305         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15306         Add m4/libunistring-base.m4.
15307         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15308         (Makefile.am): Build unicase.h from unicase.in.h.
15309         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15310         Add m4/libunistring-base.m4.
15311         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15312         (Makefile.am): Build uniconv.h from uniconv.in.h.
15313         * modules/unictype/base (Files): Use unictype.in.h instead of
15314         unictype.h. Add m4/libunistring-base.m4.
15315         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15316         (Makefile.am): Build unictype.h from unictype.in.h.
15317         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15318         Add m4/libunistring-base.m4.
15319         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15320         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15321         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15322         Add m4/libunistring-base.m4.
15323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15324         (Makefile.am): Build uniname.h from uniname.in.h.
15325         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15326         Add m4/libunistring-base.m4.
15327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15328         (Makefile.am): Build uninorm.h from uninorm.in.h.
15329         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15330         unistdio.h. Add m4/libunistring-base.m4.
15331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15332         (Makefile.am): Build unistdio.h from unistdio.in.h.
15333         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15334         Add m4/libunistring-base.m4.
15335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15336         (Makefile.am): Build unistr.h from unistr.in.h.
15337         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15338         Add m4/libunistring-base.m4.
15339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15340         (Makefile.am): Build unitypes.h from unitypes.in.h.
15341         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15342         Add m4/libunistring-base.m4.
15343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15344         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15345         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15346         uniwidth.h. Add m4/libunistring-base.m4.
15347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15348         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15349         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15350         instead of augmenting lib_SOURCES.
15351         * modules/unicase/empty-suffix-context: Likewise.
15352         * modules/unicase/locale-language: Likewise.
15353         * modules/unicase/tolower: Likewise.
15354         * modules/unicase/totitle: Likewise.
15355         * modules/unicase/toupper: Likewise.
15356         * modules/unicase/u8-casecmp: Likewise.
15357         * modules/unicase/u8-casecoll: Likewise.
15358         * modules/unicase/u8-casefold: Likewise.
15359         * modules/unicase/u8-casexfrm: Likewise.
15360         * modules/unicase/u8-ct-casefold: Likewise.
15361         * modules/unicase/u8-ct-tolower: Likewise.
15362         * modules/unicase/u8-ct-totitle: Likewise.
15363         * modules/unicase/u8-ct-toupper: Likewise.
15364         * modules/unicase/u8-is-cased: Likewise.
15365         * modules/unicase/u8-is-casefolded: Likewise.
15366         * modules/unicase/u8-is-lowercase: Likewise.
15367         * modules/unicase/u8-is-titlecase: Likewise.
15368         * modules/unicase/u8-is-uppercase: Likewise.
15369         * modules/unicase/u8-prefix-context: Likewise.
15370         * modules/unicase/u8-suffix-context: Likewise.
15371         * modules/unicase/u8-tolower: Likewise.
15372         * modules/unicase/u8-totitle: Likewise.
15373         * modules/unicase/u8-toupper: Likewise.
15374         * modules/unicase/u16-casecmp: Likewise.
15375         * modules/unicase/u16-casecoll: Likewise.
15376         * modules/unicase/u16-casefold: Likewise.
15377         * modules/unicase/u16-casexfrm: Likewise.
15378         * modules/unicase/u16-ct-casefold: Likewise.
15379         * modules/unicase/u16-ct-tolower: Likewise.
15380         * modules/unicase/u16-ct-totitle: Likewise.
15381         * modules/unicase/u16-ct-toupper: Likewise.
15382         * modules/unicase/u16-is-cased: Likewise.
15383         * modules/unicase/u16-is-casefolded: Likewise.
15384         * modules/unicase/u16-is-lowercase: Likewise.
15385         * modules/unicase/u16-is-titlecase: Likewise.
15386         * modules/unicase/u16-is-uppercase: Likewise.
15387         * modules/unicase/u16-prefix-context: Likewise.
15388         * modules/unicase/u16-suffix-context: Likewise.
15389         * modules/unicase/u16-tolower: Likewise.
15390         * modules/unicase/u16-totitle: Likewise.
15391         * modules/unicase/u16-toupper: Likewise.
15392         * modules/unicase/u32-casecmp: Likewise.
15393         * modules/unicase/u32-casecoll: Likewise.
15394         * modules/unicase/u32-casefold: Likewise.
15395         * modules/unicase/u32-casexfrm: Likewise.
15396         * modules/unicase/u32-ct-casefold: Likewise.
15397         * modules/unicase/u32-ct-tolower: Likewise.
15398         * modules/unicase/u32-ct-totitle: Likewise.
15399         * modules/unicase/u32-ct-toupper: Likewise.
15400         * modules/unicase/u32-is-cased: Likewise.
15401         * modules/unicase/u32-is-casefolded: Likewise.
15402         * modules/unicase/u32-is-lowercase: Likewise.
15403         * modules/unicase/u32-is-titlecase: Likewise.
15404         * modules/unicase/u32-is-uppercase: Likewise.
15405         * modules/unicase/u32-prefix-context: Likewise.
15406         * modules/unicase/u32-suffix-context: Likewise.
15407         * modules/unicase/u32-tolower: Likewise.
15408         * modules/unicase/u32-totitle: Likewise.
15409         * modules/unicase/u32-toupper: Likewise.
15410         * modules/unicase/ulc-casecmp: Likewise.
15411         * modules/unicase/ulc-casecoll: Likewise.
15412         * modules/unicase/ulc-casexfrm: Likewise.
15413         * modules/uniconv/u8-conv-from-enc: Likewise.
15414         * modules/uniconv/u8-conv-to-enc: Likewise.
15415         * modules/uniconv/u8-strconv-from-enc: Likewise.
15416         * modules/uniconv/u8-strconv-from-locale: Likewise.
15417         * modules/uniconv/u8-strconv-to-enc: Likewise.
15418         * modules/uniconv/u8-strconv-to-locale: Likewise.
15419         * modules/uniconv/u16-conv-from-enc: Likewise.
15420         * modules/uniconv/u16-conv-to-enc: Likewise.
15421         * modules/uniconv/u16-strconv-from-enc: Likewise.
15422         * modules/uniconv/u16-strconv-from-locale: Likewise.
15423         * modules/uniconv/u16-strconv-to-enc: Likewise.
15424         * modules/uniconv/u16-strconv-to-locale: Likewise.
15425         * modules/uniconv/u32-conv-from-enc: Likewise.
15426         * modules/uniconv/u32-conv-to-enc: Likewise.
15427         * modules/uniconv/u32-strconv-from-enc: Likewise.
15428         * modules/uniconv/u32-strconv-from-locale: Likewise.
15429         * modules/uniconv/u32-strconv-to-enc: Likewise.
15430         * modules/uniconv/u32-strconv-to-locale: Likewise.
15431         * modules/unictype/bidicategory-byname: Likewise.
15432         * modules/unictype/bidicategory-name: Likewise.
15433         * modules/unictype/bidicategory-of: Likewise.
15434         * modules/unictype/bidicategory-test: Likewise.
15435         * modules/unictype/block-list: Likewise.
15436         * modules/unictype/block-test: Likewise.
15437         * modules/unictype/category-C: Likewise.
15438         * modules/unictype/category-Cc: Likewise.
15439         * modules/unictype/category-Cf: Likewise.
15440         * modules/unictype/category-Cn: Likewise.
15441         * modules/unictype/category-Co: Likewise.
15442         * modules/unictype/category-Cs: Likewise.
15443         * modules/unictype/category-L: Likewise.
15444         * modules/unictype/category-Ll: Likewise.
15445         * modules/unictype/category-Lm: Likewise.
15446         * modules/unictype/category-Lo: Likewise.
15447         * modules/unictype/category-Lt: Likewise.
15448         * modules/unictype/category-Lu: Likewise.
15449         * modules/unictype/category-M: Likewise.
15450         * modules/unictype/category-Mc: Likewise.
15451         * modules/unictype/category-Me: Likewise.
15452         * modules/unictype/category-Mn: Likewise.
15453         * modules/unictype/category-N: Likewise.
15454         * modules/unictype/category-Nd: Likewise.
15455         * modules/unictype/category-Nl: Likewise.
15456         * modules/unictype/category-No: Likewise.
15457         * modules/unictype/category-P: Likewise.
15458         * modules/unictype/category-Pc: Likewise.
15459         * modules/unictype/category-Pd: Likewise.
15460         * modules/unictype/category-Pe: Likewise.
15461         * modules/unictype/category-Pf: Likewise.
15462         * modules/unictype/category-Pi: Likewise.
15463         * modules/unictype/category-Po: Likewise.
15464         * modules/unictype/category-Ps: Likewise.
15465         * modules/unictype/category-S: Likewise.
15466         * modules/unictype/category-Sc: Likewise.
15467         * modules/unictype/category-Sk: Likewise.
15468         * modules/unictype/category-Sm: Likewise.
15469         * modules/unictype/category-So: Likewise.
15470         * modules/unictype/category-Z: Likewise.
15471         * modules/unictype/category-Zl: Likewise.
15472         * modules/unictype/category-Zp: Likewise.
15473         * modules/unictype/category-Zs: Likewise.
15474         * modules/unictype/category-and: Likewise.
15475         * modules/unictype/category-and-not: Likewise.
15476         * modules/unictype/category-byname: Likewise.
15477         * modules/unictype/category-name: Likewise.
15478         * modules/unictype/category-none: Likewise.
15479         * modules/unictype/category-of: Likewise.
15480         * modules/unictype/category-or: Likewise.
15481         * modules/unictype/category-test: Likewise.
15482         * modules/unictype/combining-class: Likewise.
15483         * modules/unictype/ctype-alnum: Likewise.
15484         * modules/unictype/ctype-alpha: Likewise.
15485         * modules/unictype/ctype-blank: Likewise.
15486         * modules/unictype/ctype-cntrl: Likewise.
15487         * modules/unictype/ctype-digit: Likewise.
15488         * modules/unictype/ctype-graph: Likewise.
15489         * modules/unictype/ctype-lower: Likewise.
15490         * modules/unictype/ctype-print: Likewise.
15491         * modules/unictype/ctype-punct: Likewise.
15492         * modules/unictype/ctype-space: Likewise.
15493         * modules/unictype/ctype-upper: Likewise.
15494         * modules/unictype/ctype-xdigit: Likewise.
15495         * modules/unictype/decimal-digit: Likewise.
15496         * modules/unictype/digit: Likewise.
15497         * modules/unictype/mirror: Likewise.
15498         * modules/unictype/numeric: Likewise.
15499         * modules/unictype/property-alphabetic: Likewise.
15500         * modules/unictype/property-ascii-hex-digit: Likewise.
15501         * modules/unictype/property-bidi-arabic-digit: Likewise.
15502         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15503         * modules/unictype/property-bidi-block-separator: Likewise.
15504         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15505         * modules/unictype/property-bidi-common-separator: Likewise.
15506         * modules/unictype/property-bidi-control: Likewise.
15507         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15508         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15509         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15510         * modules/unictype/property-bidi-european-digit: Likewise.
15511         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15512         * modules/unictype/property-bidi-left-to-right: Likewise.
15513         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15514         * modules/unictype/property-bidi-other-neutral: Likewise.
15515         * modules/unictype/property-bidi-pdf: Likewise.
15516         * modules/unictype/property-bidi-segment-separator: Likewise.
15517         * modules/unictype/property-bidi-whitespace: Likewise.
15518         * modules/unictype/property-byname: Likewise.
15519         * modules/unictype/property-combining: Likewise.
15520         * modules/unictype/property-composite: Likewise.
15521         * modules/unictype/property-currency-symbol: Likewise.
15522         * modules/unictype/property-dash: Likewise.
15523         * modules/unictype/property-decimal-digit: Likewise.
15524         * modules/unictype/property-default-ignorable-code-point: Likewise.
15525         * modules/unictype/property-deprecated: Likewise.
15526         * modules/unictype/property-diacritic: Likewise.
15527         * modules/unictype/property-extender: Likewise.
15528         * modules/unictype/property-format-control: Likewise.
15529         * modules/unictype/property-grapheme-base: Likewise.
15530         * modules/unictype/property-grapheme-extend: Likewise.
15531         * modules/unictype/property-grapheme-link: Likewise.
15532         * modules/unictype/property-hex-digit: Likewise.
15533         * modules/unictype/property-hyphen: Likewise.
15534         * modules/unictype/property-id-continue: Likewise.
15535         * modules/unictype/property-id-start: Likewise.
15536         * modules/unictype/property-ideographic: Likewise.
15537         * modules/unictype/property-ids-binary-operator: Likewise.
15538         * modules/unictype/property-ids-trinary-operator: Likewise.
15539         * modules/unictype/property-ignorable-control: Likewise.
15540         * modules/unictype/property-iso-control: Likewise.
15541         * modules/unictype/property-join-control: Likewise.
15542         * modules/unictype/property-left-of-pair: Likewise.
15543         * modules/unictype/property-line-separator: Likewise.
15544         * modules/unictype/property-logical-order-exception: Likewise.
15545         * modules/unictype/property-lowercase: Likewise.
15546         * modules/unictype/property-math: Likewise.
15547         * modules/unictype/property-non-break: Likewise.
15548         * modules/unictype/property-not-a-character: Likewise.
15549         * modules/unictype/property-numeric: Likewise.
15550         * modules/unictype/property-other-alphabetic: Likewise.
15551         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15552         * modules/unictype/property-other-grapheme-extend: Likewise.
15553         * modules/unictype/property-other-id-continue: Likewise.
15554         * modules/unictype/property-other-id-start: Likewise.
15555         * modules/unictype/property-other-lowercase: Likewise.
15556         * modules/unictype/property-other-math: Likewise.
15557         * modules/unictype/property-other-uppercase: Likewise.
15558         * modules/unictype/property-paired-punctuation: Likewise.
15559         * modules/unictype/property-paragraph-separator: Likewise.
15560         * modules/unictype/property-pattern-syntax: Likewise.
15561         * modules/unictype/property-pattern-white-space: Likewise.
15562         * modules/unictype/property-private-use: Likewise.
15563         * modules/unictype/property-punctuation: Likewise.
15564         * modules/unictype/property-quotation-mark: Likewise.
15565         * modules/unictype/property-radical: Likewise.
15566         * modules/unictype/property-sentence-terminal: Likewise.
15567         * modules/unictype/property-soft-dotted: Likewise.
15568         * modules/unictype/property-space: Likewise.
15569         * modules/unictype/property-terminal-punctuation: Likewise.
15570         * modules/unictype/property-test: Likewise.
15571         * modules/unictype/property-titlecase: Likewise.
15572         * modules/unictype/property-unassigned-code-value: Likewise.
15573         * modules/unictype/property-unified-ideograph: Likewise.
15574         * modules/unictype/property-uppercase: Likewise.
15575         * modules/unictype/property-variation-selector: Likewise.
15576         * modules/unictype/property-white-space: Likewise.
15577         * modules/unictype/property-xid-continue: Likewise.
15578         * modules/unictype/property-xid-start: Likewise.
15579         * modules/unictype/property-zero-width: Likewise.
15580         * modules/unictype/scripts: Likewise.
15581         * modules/unictype/syntax-c-ident: Likewise.
15582         * modules/unictype/syntax-c-whitespace: Likewise.
15583         * modules/unictype/syntax-java-ident: Likewise.
15584         * modules/unictype/syntax-java-whitespace: Likewise.
15585         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15586         * modules/unilbrk/u8-width-linebreaks: Likewise.
15587         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15588         * modules/unilbrk/u16-width-linebreaks: Likewise.
15589         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15590         * modules/unilbrk/u32-width-linebreaks: Likewise.
15591         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15592         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15593         * modules/uniname/uniname: Likewise.
15594         * modules/uninorm/canonical-decomposition: Likewise.
15595         * modules/uninorm/composition: Likewise.
15596         * modules/uninorm/decomposing-form: Likewise.
15597         * modules/uninorm/decomposition: Likewise.
15598         * modules/uninorm/filter: Likewise.
15599         * modules/uninorm/nfc: Likewise.
15600         * modules/uninorm/nfd: Likewise.
15601         * modules/uninorm/nfkc: Likewise.
15602         * modules/uninorm/nfkd: Likewise.
15603         * modules/uninorm/u8-normalize: Likewise.
15604         * modules/uninorm/u8-normcmp: Likewise.
15605         * modules/uninorm/u8-normcoll: Likewise.
15606         * modules/uninorm/u8-normxfrm: Likewise.
15607         * modules/uninorm/u16-normalize: Likewise.
15608         * modules/uninorm/u16-normcmp: Likewise.
15609         * modules/uninorm/u16-normcoll: Likewise.
15610         * modules/uninorm/u16-normxfrm: Likewise.
15611         * modules/uninorm/u32-normalize: Likewise.
15612         * modules/uninorm/u32-normcmp: Likewise.
15613         * modules/uninorm/u32-normcoll: Likewise.
15614         * modules/uninorm/u32-normxfrm: Likewise.
15615         * modules/unistdio/u8-asnprintf: Likewise.
15616         * modules/unistdio/u8-asprintf: Likewise.
15617         * modules/unistdio/u8-snprintf: Likewise.
15618         * modules/unistdio/u8-sprintf: Likewise.
15619         * modules/unistdio/u8-u8-asnprintf: Likewise.
15620         * modules/unistdio/u8-u8-asprintf: Likewise.
15621         * modules/unistdio/u8-u8-snprintf: Likewise.
15622         * modules/unistdio/u8-u8-sprintf: Likewise.
15623         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15624         * modules/unistdio/u8-u8-vasprintf: Likewise.
15625         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15626         * modules/unistdio/u8-u8-vsprintf: Likewise.
15627         * modules/unistdio/u8-vasnprintf: Likewise.
15628         * modules/unistdio/u8-vasprintf: Likewise.
15629         * modules/unistdio/u8-vsnprintf: Likewise.
15630         * modules/unistdio/u8-vsprintf: Likewise.
15631         * modules/unistdio/u16-asnprintf: Likewise.
15632         * modules/unistdio/u16-asprintf: Likewise.
15633         * modules/unistdio/u16-snprintf: Likewise.
15634         * modules/unistdio/u16-sprintf: Likewise.
15635         * modules/unistdio/u16-u16-asnprintf: Likewise.
15636         * modules/unistdio/u16-u16-asprintf: Likewise.
15637         * modules/unistdio/u16-u16-snprintf: Likewise.
15638         * modules/unistdio/u16-u16-sprintf: Likewise.
15639         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15640         * modules/unistdio/u16-u16-vasprintf: Likewise.
15641         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15642         * modules/unistdio/u16-u16-vsprintf: Likewise.
15643         * modules/unistdio/u16-vasnprintf: Likewise.
15644         * modules/unistdio/u16-vasprintf: Likewise.
15645         * modules/unistdio/u16-vsnprintf: Likewise.
15646         * modules/unistdio/u16-vsprintf: Likewise.
15647         * modules/unistdio/u32-asnprintf: Likewise.
15648         * modules/unistdio/u32-asprintf: Likewise.
15649         * modules/unistdio/u32-snprintf: Likewise.
15650         * modules/unistdio/u32-sprintf: Likewise.
15651         * modules/unistdio/u32-u32-asnprintf: Likewise.
15652         * modules/unistdio/u32-u32-asprintf: Likewise.
15653         * modules/unistdio/u32-u32-snprintf: Likewise.
15654         * modules/unistdio/u32-u32-sprintf: Likewise.
15655         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15656         * modules/unistdio/u32-u32-vasprintf: Likewise.
15657         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15658         * modules/unistdio/u32-u32-vsprintf: Likewise.
15659         * modules/unistdio/u32-vasnprintf: Likewise.
15660         * modules/unistdio/u32-vasprintf: Likewise.
15661         * modules/unistdio/u32-vsnprintf: Likewise.
15662         * modules/unistdio/u32-vsprintf: Likewise.
15663         * modules/unistdio/ulc-asnprintf: Likewise.
15664         * modules/unistdio/ulc-asprintf: Likewise.
15665         * modules/unistdio/ulc-fprintf: Likewise.
15666         * modules/unistdio/ulc-snprintf: Likewise.
15667         * modules/unistdio/ulc-sprintf: Likewise.
15668         * modules/unistdio/ulc-vasnprintf: Likewise.
15669         * modules/unistdio/ulc-vasprintf: Likewise.
15670         * modules/unistdio/ulc-vfprintf: Likewise.
15671         * modules/unistdio/ulc-vsnprintf: Likewise.
15672         * modules/unistdio/ulc-vsprintf: Likewise.
15673         * modules/unistr/u8-check: Likewise.
15674         * modules/unistr/u8-chr: Likewise.
15675         * modules/unistr/u8-cmp: Likewise.
15676         * modules/unistr/u8-cmp2: Likewise.
15677         * modules/unistr/u8-cpy: Likewise.
15678         * modules/unistr/u8-cpy-alloc: Likewise.
15679         * modules/unistr/u8-endswith: Likewise.
15680         * modules/unistr/u8-mblen: Likewise.
15681         * modules/unistr/u8-mbsnlen: Likewise.
15682         * modules/unistr/u8-mbtouc: Likewise.
15683         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15684         * modules/unistr/u8-mbtoucr: Likewise.
15685         * modules/unistr/u8-move: Likewise.
15686         * modules/unistr/u8-next: Likewise.
15687         * modules/unistr/u8-prev: Likewise.
15688         * modules/unistr/u8-set: Likewise.
15689         * modules/unistr/u8-startswith: Likewise.
15690         * modules/unistr/u8-stpcpy: Likewise.
15691         * modules/unistr/u8-stpncpy: Likewise.
15692         * modules/unistr/u8-strcat: Likewise.
15693         * modules/unistr/u8-strchr: Likewise.
15694         * modules/unistr/u8-strcmp: Likewise.
15695         * modules/unistr/u8-strcoll: Likewise.
15696         * modules/unistr/u8-strcpy: Likewise.
15697         * modules/unistr/u8-strcspn: Likewise.
15698         * modules/unistr/u8-strdup: Likewise.
15699         * modules/unistr/u8-strlen: Likewise.
15700         * modules/unistr/u8-strmblen: Likewise.
15701         * modules/unistr/u8-strmbtouc: Likewise.
15702         * modules/unistr/u8-strncat: Likewise.
15703         * modules/unistr/u8-strncmp: Likewise.
15704         * modules/unistr/u8-strncpy: Likewise.
15705         * modules/unistr/u8-strnlen: Likewise.
15706         * modules/unistr/u8-strpbrk: Likewise.
15707         * modules/unistr/u8-strrchr: Likewise.
15708         * modules/unistr/u8-strspn: Likewise.
15709         * modules/unistr/u8-strstr: Likewise.
15710         * modules/unistr/u8-strtok: Likewise.
15711         * modules/unistr/u8-to-u16: Likewise.
15712         * modules/unistr/u8-to-u32: Likewise.
15713         * modules/unistr/u8-uctomb: Likewise.
15714         * modules/unistr/u16-check: Likewise.
15715         * modules/unistr/u16-chr: Likewise.
15716         * modules/unistr/u16-cmp: Likewise.
15717         * modules/unistr/u16-cmp2: Likewise.
15718         * modules/unistr/u16-cpy: Likewise.
15719         * modules/unistr/u16-cpy-alloc: Likewise.
15720         * modules/unistr/u16-endswith: Likewise.
15721         * modules/unistr/u16-mblen: Likewise.
15722         * modules/unistr/u16-mbsnlen: Likewise.
15723         * modules/unistr/u16-mbtouc: Likewise.
15724         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15725         * modules/unistr/u16-mbtoucr: Likewise.
15726         * modules/unistr/u16-move: Likewise.
15727         * modules/unistr/u16-next: Likewise.
15728         * modules/unistr/u16-prev: Likewise.
15729         * modules/unistr/u16-set: Likewise.
15730         * modules/unistr/u16-startswith: Likewise.
15731         * modules/unistr/u16-stpcpy: Likewise.
15732         * modules/unistr/u16-stpncpy: Likewise.
15733         * modules/unistr/u16-strcat: Likewise.
15734         * modules/unistr/u16-strchr: Likewise.
15735         * modules/unistr/u16-strcmp: Likewise.
15736         * modules/unistr/u16-strcoll: Likewise.
15737         * modules/unistr/u16-strcpy: Likewise.
15738         * modules/unistr/u16-strcspn: Likewise.
15739         * modules/unistr/u16-strdup: Likewise.
15740         * modules/unistr/u16-strlen: Likewise.
15741         * modules/unistr/u16-strmblen: Likewise.
15742         * modules/unistr/u16-strmbtouc: Likewise.
15743         * modules/unistr/u16-strncat: Likewise.
15744         * modules/unistr/u16-strncmp: Likewise.
15745         * modules/unistr/u16-strncpy: Likewise.
15746         * modules/unistr/u16-strnlen: Likewise.
15747         * modules/unistr/u16-strpbrk: Likewise.
15748         * modules/unistr/u16-strrchr: Likewise.
15749         * modules/unistr/u16-strspn: Likewise.
15750         * modules/unistr/u16-strstr: Likewise.
15751         * modules/unistr/u16-strtok: Likewise.
15752         * modules/unistr/u16-to-u32: Likewise.
15753         * modules/unistr/u16-to-u8: Likewise.
15754         * modules/unistr/u16-uctomb: Likewise.
15755         * modules/unistr/u32-check: Likewise.
15756         * modules/unistr/u32-chr: Likewise.
15757         * modules/unistr/u32-cmp: Likewise.
15758         * modules/unistr/u32-cmp2: Likewise.
15759         * modules/unistr/u32-cpy: Likewise.
15760         * modules/unistr/u32-cpy-alloc: Likewise.
15761         * modules/unistr/u32-endswith: Likewise.
15762         * modules/unistr/u32-mblen: Likewise.
15763         * modules/unistr/u32-mbsnlen: Likewise.
15764         * modules/unistr/u32-mbtouc: Likewise.
15765         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15766         * modules/unistr/u32-mbtoucr: Likewise.
15767         * modules/unistr/u32-move: Likewise.
15768         * modules/unistr/u32-next: Likewise.
15769         * modules/unistr/u32-prev: Likewise.
15770         * modules/unistr/u32-set: Likewise.
15771         * modules/unistr/u32-startswith: Likewise.
15772         * modules/unistr/u32-stpcpy: Likewise.
15773         * modules/unistr/u32-stpncpy: Likewise.
15774         * modules/unistr/u32-strcat: Likewise.
15775         * modules/unistr/u32-strchr: Likewise.
15776         * modules/unistr/u32-strcmp: Likewise.
15777         * modules/unistr/u32-strcoll: Likewise.
15778         * modules/unistr/u32-strcpy: Likewise.
15779         * modules/unistr/u32-strcspn: Likewise.
15780         * modules/unistr/u32-strdup: Likewise.
15781         * modules/unistr/u32-strlen: Likewise.
15782         * modules/unistr/u32-strmblen: Likewise.
15783         * modules/unistr/u32-strmbtouc: Likewise.
15784         * modules/unistr/u32-strncat: Likewise.
15785         * modules/unistr/u32-strncmp: Likewise.
15786         * modules/unistr/u32-strncpy: Likewise.
15787         * modules/unistr/u32-strnlen: Likewise.
15788         * modules/unistr/u32-strpbrk: Likewise.
15789         * modules/unistr/u32-strrchr: Likewise.
15790         * modules/unistr/u32-strspn: Likewise.
15791         * modules/unistr/u32-strstr: Likewise.
15792         * modules/unistr/u32-strtok: Likewise.
15793         * modules/unistr/u32-to-u16: Likewise.
15794         * modules/unistr/u32-to-u8: Likewise.
15795         * modules/unistr/u32-uctomb: Likewise.
15796         * modules/uniwbrk/u8-wordbreaks: Likewise.
15797         * modules/uniwbrk/u16-wordbreaks: Likewise.
15798         * modules/uniwbrk/u32-wordbreaks: Likewise.
15799         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15800         * modules/uniwbrk/wordbreak-property: Likewise.
15801         * modules/uniwidth/u8-strwidth: Likewise.
15802         * modules/uniwidth/u8-width: Likewise.
15803         * modules/uniwidth/u16-strwidth: Likewise.
15804         * modules/uniwidth/u16-width: Likewise.
15805         * modules/uniwidth/u32-strwidth: Likewise.
15806         * modules/uniwidth/u32-width: Likewise.
15807         * modules/uniwidth/width: Likewise.
15808         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15809         with $(LIBUNISTRING).
15810         * modules/unicase/ignorable-tests: Likewise.
15811         * modules/unicase/locale-language-tests: Likewise.
15812         * modules/unicase/tolower-tests: Likewise.
15813         * modules/unicase/totitle-tests: Likewise.
15814         * modules/unicase/toupper-tests: Likewise.
15815         * modules/unicase/u8-casecmp-tests: Likewise.
15816         * modules/unicase/u8-casecoll-tests: Likewise.
15817         * modules/unicase/u8-casefold-tests: Likewise.
15818         * modules/unicase/u8-is-cased-tests: Likewise.
15819         * modules/unicase/u8-is-casefolded-tests: Likewise.
15820         * modules/unicase/u8-is-lowercase-tests: Likewise.
15821         * modules/unicase/u8-is-titlecase-tests: Likewise.
15822         * modules/unicase/u8-is-uppercase-tests: Likewise.
15823         * modules/unicase/u8-tolower-tests: Likewise.
15824         * modules/unicase/u8-totitle-tests: Likewise.
15825         * modules/unicase/u8-toupper-tests: Likewise.
15826         * modules/unicase/u16-casecmp-tests: Likewise.
15827         * modules/unicase/u16-casecoll-tests: Likewise.
15828         * modules/unicase/u16-casefold-tests: Likewise.
15829         * modules/unicase/u16-is-cased-tests: Likewise.
15830         * modules/unicase/u16-is-casefolded-tests: Likewise.
15831         * modules/unicase/u16-is-lowercase-tests: Likewise.
15832         * modules/unicase/u16-is-titlecase-tests: Likewise.
15833         * modules/unicase/u16-is-uppercase-tests: Likewise.
15834         * modules/unicase/u16-tolower-tests: Likewise.
15835         * modules/unicase/u16-totitle-tests: Likewise.
15836         * modules/unicase/u16-toupper-tests: Likewise.
15837         * modules/unicase/u32-casecmp-tests: Likewise.
15838         * modules/unicase/u32-casecoll-tests: Likewise.
15839         * modules/unicase/u32-casefold-tests: Likewise.
15840         * modules/unicase/u32-is-cased-tests: Likewise.
15841         * modules/unicase/u32-is-casefolded-tests: Likewise.
15842         * modules/unicase/u32-is-lowercase-tests: Likewise.
15843         * modules/unicase/u32-is-titlecase-tests: Likewise.
15844         * modules/unicase/u32-is-uppercase-tests: Likewise.
15845         * modules/unicase/u32-tolower-tests: Likewise.
15846         * modules/unicase/u32-totitle-tests: Likewise.
15847         * modules/unicase/u32-toupper-tests: Likewise.
15848         * modules/unicase/ulc-casecmp-tests: Likewise.
15849         * modules/unicase/ulc-casecoll-tests: Likewise.
15850         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15851         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15852         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15853         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15854         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15855         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15856         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15857         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15858         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15859         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15860         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15861         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15862         * modules/unictype/bidicategory-byname-tests: Likewise.
15863         * modules/unictype/bidicategory-name-tests: Likewise.
15864         * modules/unictype/bidicategory-of-tests: Likewise.
15865         * modules/unictype/bidicategory-test-tests: Likewise.
15866         * modules/unictype/block-list-tests: Likewise.
15867         * modules/unictype/block-of-tests: Likewise.
15868         * modules/unictype/block-test-tests: Likewise.
15869         * modules/unictype/category-C-tests: Likewise.
15870         * modules/unictype/category-Cc-tests: Likewise.
15871         * modules/unictype/category-Cf-tests: Likewise.
15872         * modules/unictype/category-Cn-tests: Likewise.
15873         * modules/unictype/category-Co-tests: Likewise.
15874         * modules/unictype/category-Cs-tests: Likewise.
15875         * modules/unictype/category-L-tests: Likewise.
15876         * modules/unictype/category-Ll-tests: Likewise.
15877         * modules/unictype/category-Lm-tests: Likewise.
15878         * modules/unictype/category-Lo-tests: Likewise.
15879         * modules/unictype/category-Lt-tests: Likewise.
15880         * modules/unictype/category-Lu-tests: Likewise.
15881         * modules/unictype/category-M-tests: Likewise.
15882         * modules/unictype/category-Mc-tests: Likewise.
15883         * modules/unictype/category-Me-tests: Likewise.
15884         * modules/unictype/category-Mn-tests: Likewise.
15885         * modules/unictype/category-N-tests: Likewise.
15886         * modules/unictype/category-Nd-tests: Likewise.
15887         * modules/unictype/category-Nl-tests: Likewise.
15888         * modules/unictype/category-No-tests: Likewise.
15889         * modules/unictype/category-P-tests: Likewise.
15890         * modules/unictype/category-Pc-tests: Likewise.
15891         * modules/unictype/category-Pd-tests: Likewise.
15892         * modules/unictype/category-Pe-tests: Likewise.
15893         * modules/unictype/category-Pf-tests: Likewise.
15894         * modules/unictype/category-Pi-tests: Likewise.
15895         * modules/unictype/category-Po-tests: Likewise.
15896         * modules/unictype/category-Ps-tests: Likewise.
15897         * modules/unictype/category-S-tests: Likewise.
15898         * modules/unictype/category-Sc-tests: Likewise.
15899         * modules/unictype/category-Sk-tests: Likewise.
15900         * modules/unictype/category-Sm-tests: Likewise.
15901         * modules/unictype/category-So-tests: Likewise.
15902         * modules/unictype/category-Z-tests: Likewise.
15903         * modules/unictype/category-Zl-tests: Likewise.
15904         * modules/unictype/category-Zp-tests: Likewise.
15905         * modules/unictype/category-Zs-tests: Likewise.
15906         * modules/unictype/category-and-not-tests: Likewise.
15907         * modules/unictype/category-and-tests: Likewise.
15908         * modules/unictype/category-byname-tests: Likewise.
15909         * modules/unictype/category-name-tests: Likewise.
15910         * modules/unictype/category-none-tests: Likewise.
15911         * modules/unictype/category-of-tests: Likewise.
15912         * modules/unictype/category-or-tests: Likewise.
15913         * modules/unictype/category-test-withtable-tests: Likewise.
15914         * modules/unictype/combining-class-tests: Likewise.
15915         * modules/unictype/ctype-alnum-tests: Likewise.
15916         * modules/unictype/ctype-alpha-tests: Likewise.
15917         * modules/unictype/ctype-blank-tests: Likewise.
15918         * modules/unictype/ctype-cntrl-tests: Likewise.
15919         * modules/unictype/ctype-digit-tests: Likewise.
15920         * modules/unictype/ctype-graph-tests: Likewise.
15921         * modules/unictype/ctype-lower-tests: Likewise.
15922         * modules/unictype/ctype-print-tests: Likewise.
15923         * modules/unictype/ctype-punct-tests: Likewise.
15924         * modules/unictype/ctype-space-tests: Likewise.
15925         * modules/unictype/ctype-upper-tests: Likewise.
15926         * modules/unictype/ctype-xdigit-tests: Likewise.
15927         * modules/unictype/decimal-digit-tests: Likewise.
15928         * modules/unictype/digit-tests: Likewise.
15929         * modules/unictype/mirror-tests: Likewise.
15930         * modules/unictype/numeric-tests: Likewise.
15931         * modules/unictype/property-alphabetic-tests: Likewise.
15932         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15933         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15934         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15935         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15936         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15937         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15938         * modules/unictype/property-bidi-control-tests: Likewise.
15939         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15940         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15941         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15942         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15943         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15944         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15945         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15946         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15947         * modules/unictype/property-bidi-pdf-tests: Likewise.
15948         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15949         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15950         * modules/unictype/property-byname-tests: Likewise.
15951         * modules/unictype/property-combining-tests: Likewise.
15952         * modules/unictype/property-composite-tests: Likewise.
15953         * modules/unictype/property-currency-symbol-tests: Likewise.
15954         * modules/unictype/property-dash-tests: Likewise.
15955         * modules/unictype/property-decimal-digit-tests: Likewise.
15956         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15957         * modules/unictype/property-deprecated-tests: Likewise.
15958         * modules/unictype/property-diacritic-tests: Likewise.
15959         * modules/unictype/property-extender-tests: Likewise.
15960         * modules/unictype/property-format-control-tests: Likewise.
15961         * modules/unictype/property-grapheme-base-tests: Likewise.
15962         * modules/unictype/property-grapheme-extend-tests: Likewise.
15963         * modules/unictype/property-grapheme-link-tests: Likewise.
15964         * modules/unictype/property-hex-digit-tests: Likewise.
15965         * modules/unictype/property-hyphen-tests: Likewise.
15966         * modules/unictype/property-id-continue-tests: Likewise.
15967         * modules/unictype/property-id-start-tests: Likewise.
15968         * modules/unictype/property-ideographic-tests: Likewise.
15969         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15970         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15971         * modules/unictype/property-ignorable-control-tests: Likewise.
15972         * modules/unictype/property-iso-control-tests: Likewise.
15973         * modules/unictype/property-join-control-tests: Likewise.
15974         * modules/unictype/property-left-of-pair-tests: Likewise.
15975         * modules/unictype/property-line-separator-tests: Likewise.
15976         * modules/unictype/property-logical-order-exception-tests: Likewise.
15977         * modules/unictype/property-lowercase-tests: Likewise.
15978         * modules/unictype/property-math-tests: Likewise.
15979         * modules/unictype/property-non-break-tests: Likewise.
15980         * modules/unictype/property-not-a-character-tests: Likewise.
15981         * modules/unictype/property-numeric-tests: Likewise.
15982         * modules/unictype/property-other-alphabetic-tests: Likewise.
15983         * modules/unictype/property-other-default-ignorable-code-point-tests:
15984         Likewise.
15985         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15986         * modules/unictype/property-other-id-continue-tests: Likewise.
15987         * modules/unictype/property-other-id-start-tests: Likewise.
15988         * modules/unictype/property-other-lowercase-tests: Likewise.
15989         * modules/unictype/property-other-math-tests: Likewise.
15990         * modules/unictype/property-other-uppercase-tests: Likewise.
15991         * modules/unictype/property-paired-punctuation-tests: Likewise.
15992         * modules/unictype/property-paragraph-separator-tests: Likewise.
15993         * modules/unictype/property-pattern-syntax-tests: Likewise.
15994         * modules/unictype/property-pattern-white-space-tests: Likewise.
15995         * modules/unictype/property-private-use-tests: Likewise.
15996         * modules/unictype/property-punctuation-tests: Likewise.
15997         * modules/unictype/property-quotation-mark-tests: Likewise.
15998         * modules/unictype/property-radical-tests: Likewise.
15999         * modules/unictype/property-sentence-terminal-tests: Likewise.
16000         * modules/unictype/property-soft-dotted-tests: Likewise.
16001         * modules/unictype/property-space-tests: Likewise.
16002         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16003         * modules/unictype/property-test-tests: Likewise.
16004         * modules/unictype/property-titlecase-tests: Likewise.
16005         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16006         * modules/unictype/property-unified-ideograph-tests: Likewise.
16007         * modules/unictype/property-uppercase-tests: Likewise.
16008         * modules/unictype/property-variation-selector-tests: Likewise.
16009         * modules/unictype/property-white-space-tests: Likewise.
16010         * modules/unictype/property-xid-continue-tests: Likewise.
16011         * modules/unictype/property-xid-start-tests: Likewise.
16012         * modules/unictype/property-zero-width-tests: Likewise.
16013         * modules/unictype/scripts-tests: Likewise.
16014         * modules/unictype/syntax-c-ident-tests: Likewise.
16015         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16016         * modules/unictype/syntax-java-ident-tests: Likewise.
16017         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16018         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16019         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16020         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16021         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16022         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16023         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16024         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16025         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16026         * modules/uniname/uniname-tests: Likewise.
16027         * modules/uninorm/canonical-decomposition-tests: Likewise.
16028         * modules/uninorm/compat-decomposition-tests: Likewise.
16029         * modules/uninorm/composition-tests: Likewise.
16030         * modules/uninorm/decomposing-form-tests: Likewise.
16031         * modules/uninorm/decomposition-tests: Likewise.
16032         * modules/uninorm/filter-tests: Likewise.
16033         * modules/uninorm/nfc-tests: Likewise.
16034         * modules/uninorm/nfd-tests: Likewise.
16035         * modules/uninorm/nfkc-tests: Likewise.
16036         * modules/uninorm/nfkd-tests: Likewise.
16037         * modules/uninorm/u8-normcmp-tests: Likewise.
16038         * modules/uninorm/u8-normcoll-tests: Likewise.
16039         * modules/uninorm/u16-normcmp-tests: Likewise.
16040         * modules/uninorm/u16-normcoll-tests: Likewise.
16041         * modules/uninorm/u32-normcmp-tests: Likewise.
16042         * modules/uninorm/u32-normcoll-tests: Likewise.
16043         * modules/unistdio/u8-asnprintf-tests: Likewise.
16044         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16045         * modules/unistdio/u8-vasprintf-tests: Likewise.
16046         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16047         * modules/unistdio/u8-vsprintf-tests: Likewise.
16048         * modules/unistdio/u16-asnprintf-tests: Likewise.
16049         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16050         * modules/unistdio/u16-vasprintf-tests: Likewise.
16051         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16052         * modules/unistdio/u16-vsprintf-tests: Likewise.
16053         * modules/unistdio/u32-asnprintf-tests: Likewise.
16054         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16055         * modules/unistdio/u32-vasprintf-tests: Likewise.
16056         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16057         * modules/unistdio/u32-vsprintf-tests: Likewise.
16058         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16059         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16060         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16061         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16062         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16063         * modules/unistr/u8-check-tests: Likewise.
16064         * modules/unistr/u8-chr-tests: Likewise.
16065         * modules/unistr/u8-cmp-tests: Likewise.
16066         * modules/unistr/u8-cmp2-tests: Likewise.
16067         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16068         * modules/unistr/u8-cpy-tests: Likewise.
16069         * modules/unistr/u8-mblen-tests: Likewise.
16070         * modules/unistr/u8-mbsnlen-tests: Likewise.
16071         * modules/unistr/u8-mbtouc-tests: Likewise.
16072         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16073         * modules/unistr/u8-mbtoucr-tests: Likewise.
16074         * modules/unistr/u8-move-tests: Likewise.
16075         * modules/unistr/u8-next-tests: Likewise.
16076         * modules/unistr/u8-prev-tests: Likewise.
16077         * modules/unistr/u8-set-tests: Likewise.
16078         * modules/unistr/u8-stpcpy-tests: Likewise.
16079         * modules/unistr/u8-stpncpy-tests: Likewise.
16080         * modules/unistr/u8-strcat-tests: Likewise.
16081         * modules/unistr/u8-strcmp-tests: Likewise.
16082         * modules/unistr/u8-strcoll-tests: Likewise.
16083         * modules/unistr/u8-strcpy-tests: Likewise.
16084         * modules/unistr/u8-strdup-tests: Likewise.
16085         * modules/unistr/u8-strlen-tests: Likewise.
16086         * modules/unistr/u8-strmblen-tests: Likewise.
16087         * modules/unistr/u8-strmbtouc-tests: Likewise.
16088         * modules/unistr/u8-strncat-tests: Likewise.
16089         * modules/unistr/u8-strncmp-tests: Likewise.
16090         * modules/unistr/u8-strncpy-tests: Likewise.
16091         * modules/unistr/u8-strnlen-tests: Likewise.
16092         * modules/unistr/u8-to-u16-tests: Likewise.
16093         * modules/unistr/u8-to-u32-tests: Likewise.
16094         * modules/unistr/u8-uctomb-tests: Likewise.
16095         * modules/unistr/u16-check-tests: Likewise.
16096         * modules/unistr/u16-chr-tests: Likewise.
16097         * modules/unistr/u16-cmp-tests: Likewise.
16098         * modules/unistr/u16-cmp2-tests: Likewise.
16099         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16100         * modules/unistr/u16-cpy-tests: Likewise.
16101         * modules/unistr/u16-mblen-tests: Likewise.
16102         * modules/unistr/u16-mbsnlen-tests: Likewise.
16103         * modules/unistr/u16-mbtouc-tests: Likewise.
16104         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16105         * modules/unistr/u16-mbtoucr-tests: Likewise.
16106         * modules/unistr/u16-move-tests: Likewise.
16107         * modules/unistr/u16-next-tests: Likewise.
16108         * modules/unistr/u16-prev-tests: Likewise.
16109         * modules/unistr/u16-set-tests: Likewise.
16110         * modules/unistr/u16-stpcpy-tests: Likewise.
16111         * modules/unistr/u16-stpncpy-tests: Likewise.
16112         * modules/unistr/u16-strcat-tests: Likewise.
16113         * modules/unistr/u16-strcmp-tests: Likewise.
16114         * modules/unistr/u16-strcoll-tests: Likewise.
16115         * modules/unistr/u16-strcpy-tests: Likewise.
16116         * modules/unistr/u16-strdup-tests: Likewise.
16117         * modules/unistr/u16-strlen-tests: Likewise.
16118         * modules/unistr/u16-strmblen-tests: Likewise.
16119         * modules/unistr/u16-strmbtouc-tests: Likewise.
16120         * modules/unistr/u16-strncat-tests: Likewise.
16121         * modules/unistr/u16-strncmp-tests: Likewise.
16122         * modules/unistr/u16-strncpy-tests: Likewise.
16123         * modules/unistr/u16-strnlen-tests: Likewise.
16124         * modules/unistr/u16-to-u32-tests: Likewise.
16125         * modules/unistr/u16-to-u8-tests: Likewise.
16126         * modules/unistr/u16-uctomb-tests: Likewise.
16127         * modules/unistr/u32-check-tests: Likewise.
16128         * modules/unistr/u32-chr-tests: Likewise.
16129         * modules/unistr/u32-cmp-tests: Likewise.
16130         * modules/unistr/u32-cmp2-tests: Likewise.
16131         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16132         * modules/unistr/u32-cpy-tests: Likewise.
16133         * modules/unistr/u32-mblen-tests: Likewise.
16134         * modules/unistr/u32-mbsnlen-tests: Likewise.
16135         * modules/unistr/u32-mbtouc-tests: Likewise.
16136         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16137         * modules/unistr/u32-mbtoucr-tests: Likewise.
16138         * modules/unistr/u32-move-tests: Likewise.
16139         * modules/unistr/u32-next-tests: Likewise.
16140         * modules/unistr/u32-prev-tests: Likewise.
16141         * modules/unistr/u32-set-tests: Likewise.
16142         * modules/unistr/u32-stpcpy-tests: Likewise.
16143         * modules/unistr/u32-stpncpy-tests: Likewise.
16144         * modules/unistr/u32-strcat-tests: Likewise.
16145         * modules/unistr/u32-strcmp-tests: Likewise.
16146         * modules/unistr/u32-strcoll-tests: Likewise.
16147         * modules/unistr/u32-strcpy-tests: Likewise.
16148         * modules/unistr/u32-strdup-tests: Likewise.
16149         * modules/unistr/u32-strlen-tests: Likewise.
16150         * modules/unistr/u32-strmblen-tests: Likewise.
16151         * modules/unistr/u32-strmbtouc-tests: Likewise.
16152         * modules/unistr/u32-strncat-tests: Likewise.
16153         * modules/unistr/u32-strncmp-tests: Likewise.
16154         * modules/unistr/u32-strncpy-tests: Likewise.
16155         * modules/unistr/u32-strnlen-tests: Likewise.
16156         * modules/unistr/u32-to-u16-tests: Likewise.
16157         * modules/unistr/u32-to-u8-tests: Likewise.
16158         * modules/unistr/u32-uctomb-tests: Likewise.
16159         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16160         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16161         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16162         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16163         * modules/uniwidth/u8-strwidth-tests: Likewise.
16164         * modules/uniwidth/u8-width-tests: Likewise.
16165         * modules/uniwidth/u16-strwidth-tests: Likewise.
16166         * modules/uniwidth/u16-width-tests: Likewise.
16167         * modules/uniwidth/u32-strwidth-tests: Likewise.
16168         * modules/uniwidth/u32-width-tests: Likewise.
16169         * modules/uniwidth/width-tests: Likewise.
16170
16171 2010-05-18  Richard Jones  <rjones@redhat.com>
16172
16173         doc: users.txt: list hivex
16174         * users.txt: Add hivex.
16175
16176 2010-05-18  Richard Jones  <rjones@redhat.com>
16177
16178         doc: users.txt: list febootstrap
16179         * users.txt: Add febootstrap.
16180
16181 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16182
16183         bootstrap: fix an error when gnulib is not used as a git submodule
16184         * build-aux/bootstrap (gnulib_path): If its length is zero then
16185         assign "gnulib" to it.
16186         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16187
16188 2010-05-16  Bruno Haible  <bruno@clisp.org>
16189
16190         Avoid autoconf warnings about AM_ICONV.
16191         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16192         2.64.
16193
16194 2010-05-16  Bruno Haible  <bruno@clisp.org>
16195
16196         absolute-header: Make the macro usable in more situations.
16197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16198         from gl_ABSOLUTE_HEADER.
16199         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16200
16201 2010-05-16  James Youngman  <jay@gnu.org>
16202
16203         doc: update users.txt
16204         * users.txt: Add CSSC.
16205
16206 2010-05-16  Jim Meyering  <meyering@redhat.com>
16207
16208         init.sh: fix an error in the previous change; add more comments
16209         * tests/init.sh: Compare exit code in loop against 9, not 2.
16210         Patch by Bruno Haible.
16211         Make the two tests more similar by adding an empty "then" clause.
16212         Add comments.
16213
16214         init.sh: avoid unnecessary shell re-exec
16215         * tests/init.sh: Improve the re-exec-required check to first test the
16216         current shell.  If it passes the test, do not search for a shell that
16217         does pass, and do not re-exec.  This test is particularly contorted to
16218         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16219         of $(...) evokes a syntax error and causes immediate shell exit with
16220         status 2.  Bruno Haible reported that the re-exec made it impossible
16221         to single-step through any init.sh-using script.
16222
16223 2010-05-16  Bruno Haible  <bruno@clisp.org>
16224
16225         Fix collision between gnulib's and libintl's printf replacements.
16226         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16227         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16228         (printf): When using GNU C, map the __printf__ function to rpl_printf
16229         via __asm__. When not using GNU C, define rpl_printf instead of
16230         __printf__.
16231         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16232         commit.
16233         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16234         commit.
16235         * m4/asm-underscore.m4: New file.
16236         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16237         * modules/stdio (Files): Add m4/asm-underscore.m4.
16238         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16239         Reported by Ben Pfaff.
16240
16241 2010-05-16  Bruno Haible  <bruno@clisp.org>
16242
16243         verify: Avoid skipping the test on openSUSE 11.0.
16244         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16245
16246 2010-05-13  Bruno Haible  <bruno@clisp.org>
16247
16248         Avoid useless warnings from G++.
16249         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16250         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16251         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16252
16253 2010-05-11  Jim Meyering  <meyering@redhat.com>
16254
16255         maint.mk: tweak preceding change
16256         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16257         regexps tighter by anchoring at EOL, and make the new group "shy"
16258         for slightly decreased overhead.
16259
16260 2010-05-11  Eric Blake  <eblake@redhat.com>
16261
16262         maint.mk: gnulib doesn't guarantee NSIG
16263         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16264
16265 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16266
16267         test-pwrite.c: Remove unused variable declaration.
16268         * tests/test-pwrite.c (main): Remove read_buf declaration.
16269
16270         Remove useless test-pwrite.sh file.
16271         * tests/test-pwrite.sh: Delete file.
16272         * modules/pwrite-tests: Remove references.
16273         Reported by Bruno Haible.
16274
16275 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16276
16277         init.sh: fix a typo
16278         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16279
16280 2010-05-10  Jim Meyering  <meyering@redhat.com>
16281
16282         maint.mk: avoid using a temporary file in the always-defined-macros check
16283         * top/maint.mk (.re-defmac): Remove rule.
16284         (gl_trap_): Remove definition.
16285         (sc_prohibit_always-defined_macros): Rewrite not to create and
16286         depend on a temporary file.  Instead, depend on GNU grep's ability
16287         to read a list of regular expressions from stdin when given "-f -".
16288
16289 2010-05-09  Bruno Haible  <bruno@clisp.org>
16290
16291         Update to GNU gettext 0.18, part 1.
16292         * m4/gettext.m4: Update to GNU gettext 0.18.
16293         * m4/intl.m4: Likewise.
16294         * m4/po.m4: Likewise.
16295         * modules/gettext (Files): Add m4/fcntl-o.m4.
16296         (configure.ac): Require gettext infrastructure from version 0.18.
16297
16298 2010-05-09  Jim Meyering  <meyering@redhat.com>
16299
16300         init.sh: enable MALLOC_PERTURB_
16301         * tests/init.sh: Enable glibc's malloc-perturbing option.
16302
16303         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16304         With my recent change in init.sh from the two-line form:
16305             -#   : ${srcdir=.}
16306             -#   . "$srcdir/init.sh"; path_prepend_ .
16307             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16308         I noticed that using the one-line form would cause this test
16309         to fail with a false-positive, or to stop working altogether,
16310         depending on whether help-version changed or all the tests did.
16311         * top/maint.mk (_hv_regex): Remove this definition.
16312         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16313         (_hv_regex_strong): Use a stronger regex to check for conformance.
16314         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16315         Give a separate diagnostic for lack of conforming use.
16316
16317         maint.mk: prohibit definition of symbols defined by gnulib
16318         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16319         definition of symbols defined by gnulib.
16320
16321 2010-05-09  Bruno Haible  <bruno@clisp.org>
16322
16323         acl: Avoid test failure on Cygwin-hosted mingw.
16324         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16325
16326 2010-05-09  Bruno Haible  <bruno@clisp.org>
16327
16328         error: Use system's fcntl function.
16329         * lib/error.c (fcntl): Undefine.
16330
16331 2010-05-09  Jim Meyering  <meyering@redhat.com>
16332
16333         verify: adjust formatting to be more consistent
16334         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16335         argument-list '('s, and after one comma.
16336
16337 2010-05-09  Bruno Haible  <bruno@clisp.org>
16338
16339         error: More reliable output on mingw.
16340         * lib/error.c: Include <windows.h>.
16341         (is_open): New function.
16342         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16343         defined.
16344
16345 2010-05-09  Bruno Haible  <bruno@clisp.org>
16346
16347         vasnprintf: Fix syntax errors in libintl build on mingw.
16348         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16349         pad_ourselves and prec_ourselves after use.
16350
16351 2010-05-08  Bruno Haible  <bruno@clisp.org>
16352
16353         * lib/config.charset: Update comments for Cygwin 1.7.
16354         * lib/localcharset.c: Likewise.
16355
16356 2010-05-07  Jim Meyering  <meyering@redhat.com>
16357
16358         init.sh: improve comments
16359         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16360         . "${srcdir=.}/init.sh"; path_prepend_ .
16361         Add a note about path_prepend_ and the alternative of using
16362         TESTS_ENVIRONMENT.
16363
16364 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16365
16366         exclude: Unescape hashed patterns in wildcard mode.
16367         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16368         to the hash list.
16369         * tests/test-exclude8.sh: New test case.
16370         * modules/exclude-tests: Add new test.
16371
16372 2010-05-05  Eric Blake  <eblake@redhat.com>
16373
16374         verify: automate tests
16375         * modules/verify-tests: New module.
16376         * tests/test-verify.sh: New file.
16377         * tests/test-verify.c: Guard each negative test with a unique id.
16378         Also avoid warning about unused left hand of comma expressions.
16379
16380 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16381
16382         Further improvements to verify.h, suggested by Eric Blake.
16383         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16384         the GL_* versions, to avoid collision with OpenGL.
16385         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16386         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16387         than testing merely whether it's defined.
16388
16389         Modify verify.h to pacify gcc -Wredundant_decls.
16390         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16391         These use the prefix "GL_" since they're likely to be useful elsewhere.
16392         We may need to break them out into a different .h file.
16393         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16394         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16395         of verify_function__.
16396
16397 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16398
16399         Tests for module pwrite.
16400         * modules/pwrite-tests: New file.
16401         * tests/test-pwrite.sh: New file.
16402         * tests/test-pwrite.c: New file.
16403
16404         New module pwrite.
16405         * lib/unistd.in.h (pwrite): New declaration.
16406         * lib/pwrite.c: New file, from glibc with modifications.
16407         * m4/pwrite.m4: New file.
16408         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16409         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16410         REPLACE_PWRITE.
16411         * modules/pwrite: New file.
16412         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16413         REPLACE_PWRITE.
16414         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16415         * doc/posix-functions/pwrite.texi: Mention the new module.
16416
16417 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16418
16419         pread: Update documentation.
16420         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16421
16422 2010-05-04  Eric Blake  <eblake@redhat.com>
16423
16424         docs: update cygwin progress
16425         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16426         this bug.
16427         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16428         Added in cygwin 1.7.2.
16429         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16430         Likewise.
16431         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16432         Likewise.
16433         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16434         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16435         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16436         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16437         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16438         Mention nproc module.
16439         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16440         bug in cygwin 1.7.5 addition.
16441         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16442         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16443         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16444         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16445         1.7.5.
16446         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16447         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16448         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16449         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16450         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16451         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16452         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16453         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16454         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16455         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16456         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16457         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16458         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16459         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16460         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16461         Likewise.
16462         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16463         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16464         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16465         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16466         Likewise.
16467         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16468         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16469         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16470         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16471         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16472         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16473         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16474         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16475         Likewise.
16476         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16477         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16478         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16479         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16480         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16481         Likewise.
16482         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16483         Likewise.
16484         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16485         Likewise.
16486         * doc/glibc-functions/xdrrec_endofrecord.texi
16487         (xdrrec_endofrecord): Likewise.
16488         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16489         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16490         Likewise.
16491         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16492         Likewise.
16493
16494 2010-05-04  Jim Meyering  <meyering@redhat.com>
16495
16496         gendocs.sh: make its "-s FILE" option more useful
16497         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16498         $PACKAGE to reflect the probably-different basename of "FILE".
16499
16500 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16501
16502         bootstrap: don't ignore download_po_files failure
16503         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16504         failure.
16505
16506 2010-05-03  Jim Meyering  <meyering@redhat.com>
16507
16508         maint.mk: allow to pass options to gendocs.sh
16509         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16510         (gendocs_options_): New overridable variable.
16511
16512         gnu-web-doc-update: don't ignore configure or build failure
16513         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16514
16515         announce-gen: backslash-escape '@'s in --help output
16516         * build-aux/announce-gen: Fix syntax errors.
16517
16518         maint.mk, announce-gen: allow project-specific announcement mail headers
16519         * top/maint.mk (translation_project_): Define default.
16520         (announcement_Cc_, announcement_mail_headers_): Likewise.
16521         (announcement): Invoke announce-gen with new --mail-headers option.
16522         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16523
16524         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16525         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16526         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16527         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16528         line in the "err2" output file when running "make check" in verbose
16529         mode (i.e., with set -x enabled).
16530
16531 2010-05-03  Bruno Haible  <bruno@clisp.org>
16532
16533         wctob: Fix for weird platforms.
16534         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16535         argument value.
16536
16537 2010-05-03  Jim Meyering  <meyering@redhat.com>
16538
16539         maint.mk: prohibit unwarranted use of <strings.h>
16540         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16541         strings.h in a file that does not also use strcasecmp, strncasecmp,
16542         ffs or ffsll.
16543
16544         maint.mk: remove obsolete comments
16545         * top/maint.mk: Remove stale, commented-out rules.
16546
16547 2010-05-02  Bruno Haible  <bruno@clisp.org>
16548
16549         wcwidth: Declare also when it's aliased.
16550         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16551         macro.
16552
16553 2010-05-02  Bruno Haible  <bruno@clisp.org>
16554
16555         Fix regression from 2010-04-25.
16556         * gnulib-tool (func_modules_transitive_closure): Check the status of
16557         all modules, not only of the tests that are of the form foo-tests where
16558         foo is a module.
16559
16560 2010-05-02  Bruno Haible  <bruno@clisp.org>
16561
16562         wctob: Work around nasty Cygwin 1.7.2 bug.
16563         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16564         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16565
16566 2010-05-01  Bruno Haible  <bruno@clisp.org>
16567
16568         fpurge: Sharper test.
16569         * tests/test-fpurge.c (main): Add one more ftell check.
16570         * modules/fpurge-tests (Depends-on): Add ftell.
16571         Suggested by Eric Blake.
16572
16573 2010-05-01  Bruno Haible  <bruno@clisp.org>
16574
16575         ftello: Another test.
16576         * tests/test-ftello3.c: New file.
16577         * modules/ftello-tests (Files): Add it.
16578         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16579         MOSTLYCLEANFILES.
16580
16581         ftell: Another test.
16582         * tests/test-ftell3.c: New file.
16583         * modules/ftell-tests (Files): Add it.
16584         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16585         MOSTLYCLEANFILES.
16586
16587 2010-05-01  Bruno Haible  <bruno@clisp.org>
16588
16589         ftell, ftello: Work around Solaris bug.
16590         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16591         * lib/ftello.c: Include stdio-impl.h.
16592         (ftello): On Solaris, when _IOWRT is set, compute the result without
16593         looking at _IOREAD.
16594         * modules/ftello (Files): Add lib/stdio-impl.h.
16595         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16596         * doc/posix-functions/ftello.texi: Likewise.
16597         Reported by Eric Blake.
16598
16599 2010-05-01  Bruno Haible  <bruno@clisp.org>
16600
16601         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16602         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16603         the _IOWRT flag is also set.
16604
16605 2010-05-01  Bruno Haible  <bruno@clisp.org>
16606
16607         Fix doc about a HP-UX stdio bug.
16608         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16609         * doc/posix-functions/ftello.texi: Likewise.
16610
16611 2010-05-01  Bruno Haible  <bruno@clisp.org>
16612
16613         lseek test: Fix failure on Solaris.
16614         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16615         output.
16616
16617 2010-04-30  Jim Meyering  <meyering@redhat.com>
16618
16619         bootstrap: don't ignore failure to generate po*/Makevars
16620         * build-aux/bootstrap (with_gettext): Don't ignore failure
16621         to create po/Makevars or runtime-po/Makevars.
16622
16623 2010-04-29  Eric Blake  <eblake@redhat.com>
16624
16625         headers: relax license to LGPLv2+
16626         * modules/fcntl-h (License): Relax license.
16627         * modules/getopt-posix (License): Likewise.
16628         * modules/locale (License): Likewise.
16629         * modules/math (License): Likewise.
16630         * modules/pty (License): Likewise.
16631         * modules/sched (License): Likewise.
16632         * modules/search (License): Likewise.
16633         * modules/spawn (License): Likewise.
16634         * modules/stdarg (License): Likewise.
16635         * modules/sysexits (License): Likewise.
16636
16637 2010-04-29  Jim Meyering  <meyering@redhat.com>
16638
16639         inttypes: relax license to LGPLv2+
16640         * modules/inttypes (License): Relax license.
16641
16642 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16643
16644         * top/maint.mk (indent): Run twice to produce idempotent results.
16645
16646 2010-04-28  Bruno Haible  <bruno@clisp.org>
16647
16648         getdate: Generate getdate.c in the source directory.
16649         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16650         MOSTLYCLEANFILES.
16651         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16652
16653 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16654
16655         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16656         is not declared as a const *; avoid warnings in that case.
16657
16658 2010-04-28  Eric Blake  <eblake@redhat.com>
16659
16660         canonicalize-lgpl: avoid compiler warning
16661         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16662         declaration' / 'extraneous semicolon' warning with some compilers.
16663         Reported by Andreas Gruenbacher.
16664
16665 2010-04-28  Jim Meyering  <meyering@redhat.com>
16666
16667         init.sh: ensure a more reliable exit status when exiting via trap
16668         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16669         Inspired by patches from Dmitry V. Levin.
16670         Also trap on signal 3 (SIGQUIT).
16671
16672 2010-04-27  Bruno Haible  <bruno@clisp.org>
16673
16674         Update doc about utimes().
16675         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16676         'utimens' module.
16677         Reported by Andreas Gruenbacher <agruen@suse.de>.
16678
16679 2010-04-27  Eric Blake  <eblake@redhat.com>
16680
16681         full-read, full-write: relax license
16682         * modules/full-read (License): Drop to LGPLv2+.
16683         * modules/full-write (License): Likewise.
16684         * modules/safe-read (License): Likewise.
16685         * modules/safe-write (License): Likewise.
16686
16687         pthread: mention library for linking
16688         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16689
16690 2010-04-27  Jim Meyering  <meyering@redhat.com>
16691
16692         maint.mk: fix a bug introduced in last change
16693         * top/maint.mk (gl_assured_headers_): Now that all names are on
16694         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16695         is not anchored to end of word, it should be adequate.
16696
16697         maint.mk: avoid side-effect in latest syntax-check
16698         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16699         to run commands via $(shell...), and hence to incur cost only when
16700         the new rule is actually run.
16701
16702         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16703         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16704         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16705         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16706         (gl_assured_headers_, az_, AZ_): Define.
16707         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16708
16709 2010-04-26  Jim Meyering  <jim@meyering.net>
16710             Bruno Haible  <bruno@clisp.org>
16711
16712         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16713         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16714         Prompted by an exchange with Gilles Espinasse.
16715
16716 2010-04-26  Jim Meyering  <meyering@redhat.com>
16717
16718         git-version-gen: aesthetic tweak
16719         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16720         so that the command remains on a single line.
16721
16722 2010-04-26  Eric Blake  <eblake@redhat.com>
16723
16724         git-version-gen: allow use on EBCDIC hosts
16725         * build-aux/git-version-gen (dirty): Use literal rather than tying
16726         ourselves to ascii.
16727         Reported by Steve Goetze.
16728
16729 2010-04-25  Bruno Haible  <bruno@clisp.org>
16730
16731         netdb: Add support for GNULIB_POSIXCHECK.
16732         * lib/netdb.in.h: Include warn-on-use.h.
16733         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16734         functions are used when GNULIB_POSIXCHECK is defined and the
16735         getaddrinfo module is not in use.
16736         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16737         freeaddrinfo, gai_strerror, getnameinfo are declared.
16738         * modules/netdb (Depends-on): Add warn-on-use.
16739         (Makefile.am): Include warn-on-use.h in netdb.h.
16740
16741 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16742
16743         build: avoid "make check" failure without .git/ directory
16744         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16745         there is no .git/ directory.
16746
16747 2010-04-25  Bruno Haible  <bruno@clisp.org>
16748
16749         ptsname: Fix misuse of ttyname_r.
16750         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16751         of errno.
16752
16753 2010-04-25  Bruno Haible  <bruno@clisp.org>
16754
16755         ttyname_r: Make it work on Solaris 10.
16756         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16757         if the system function has the POSIX declaration. Test whether the
16758         function fails if the buffer is less than 128 bytes large.
16759         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16760         system's ttyname_r function. Provide a reasonably large buffer.
16761         * modules/ttyname_r (Depends-on): Add extensions.
16762         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16763
16764 2010-04-25  Bruno Haible  <bruno@clisp.org>
16765
16766         Use the 'extensions' module for some more functions on Solaris.
16767         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16768         module.
16769         * doc/posix-functions/ctime_r.texi: Likewise.
16770         * doc/posix-functions/getgrgid_r.texi: Likewise.
16771         * doc/posix-functions/getgrnam_r.texi: Likewise.
16772         * doc/posix-functions/getpwnam_r.texi: Likewise.
16773         * doc/posix-functions/getpwuid_r.texi: Likewise.
16774         * doc/posix-functions/readdir_r.texi: Likewise.
16775         * doc/posix-functions/sigwait.texi: Likewise.
16776         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16777         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16778
16779 2010-04-25  Bruno Haible  <bruno@clisp.org>
16780
16781         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16782         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16783         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16784         * lib/ttyname_r.c: Include <limits.h>.
16785         (ttyname_r): Define using the system's ttyname_r function, if it exists
16786         and not on Solaris.
16787         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16788         set.
16789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16790         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16791         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16792         Reported by Simon Josefsson.
16793
16794 2010-04-25  Bruno Haible  <bruno@clisp.org>
16795
16796         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16797         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16798         * doc/posix-functions/ctime_r.texi: Likewise.
16799         * doc/posix-functions/getgrgid_r.texi: Likewise.
16800         * doc/posix-functions/getgrnam_r.texi: Likewise.
16801         * doc/posix-functions/getlogin_r.texi: Likewise.
16802         * doc/posix-functions/getpwnam_r.texi: Likewise.
16803         * doc/posix-functions/getpwuid_r.texi: Likewise.
16804         * doc/posix-functions/readdir_r.texi: Likewise.
16805         * doc/posix-functions/sigwait.texi: Likewise.
16806         * doc/posix-functions/ttyname_r.texi: Likewise.
16807         Reported by Simon Josefsson.
16808
16809 2010-04-25  Bruno Haible  <bruno@clisp.org>
16810
16811         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16812         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16813         also to --create-testdir.
16814         (func_acceptable): Don't consider the status of *-tests modules here.
16815         (func_modules_transitive_closure): Consider it here, before including a
16816         test module.
16817         (func_import, func_create_testdir): Set inc_all_direct_tests,
16818         inc_all_indirect_tests.
16819         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16820         --create-testdir and --create-megatestdir.
16821
16822 2010-04-25  Bruno Haible  <bruno@clisp.org>
16823
16824         gnulib-tool: Add --without-*-tests options.
16825         * gnulib-tool (func_usage): Document the --without-*-tests options.
16826         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16827         excl_unportable_tests): New variables.
16828         Fail if they are specified with --import or --update.
16829         (func_acceptable): Respect the excl_*_tests variables.
16830         (func_import): Set the excl_*_tests variables to empty.
16831
16832 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16833             Bruno Haible  <bruno@clisp.org>
16834
16835         Work around a MacOS X 10.4 bug with openpty.
16836         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16837         * tests/test-openpty.c (main): Close the master side explicitly.
16838
16839 2010-04-25  Bruno Haible  <bruno@clisp.org>
16840
16841         strnlen: Fix a C++ test error on MacOS X and Solaris.
16842         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16843         the function is not declared.
16844         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16845         Simon Josefsson.
16846
16847 2010-04-24  Bruno Haible  <bruno@clisp.org>
16848
16849         Avoid a gcc warning.
16850         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16851         of correct type for %08lx directive.
16852         Reported by Eric Blake.
16853
16854 2010-04-24  Bruno Haible  <bruno@clisp.org>
16855
16856         vasnprintf: Correct errno value in case of out-of-memory.
16857         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16858         or sprintf. Use the errno value from SNPRINTF or sprintf.
16859         Reported by Ian Beckwith <ianb@erislabs.net>.
16860
16861 2010-04-24  Bruno Haible  <bruno@clisp.org>
16862
16863         ansi-c++-opt: Find correct compiler when cross-compiling.
16864         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16865         AC_CHECK_PROGS.
16866         Reported by Simon Josefsson.
16867
16868 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16869
16870         vc-list-files: Add support for subversion
16871         * build-aux/vc-list-files: Use "svn list" to generate the list of
16872         files controlled by subversion.
16873
16874 2010-04-23  Jim Meyering  <meyering@redhat.com>
16875
16876         vc-list-files tests: convert to use init.sh
16877         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16878         path_prepend_.
16879         Use Exit, not exit.
16880         Use skip_ rather than open coding it.
16881         Remove trap set-up and compare definitions.
16882         * tests/test-vc-list-files-git.sh: Likewise.
16883         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16884
16885 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16886
16887         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16888         backup files.
16889
16890 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16891
16892         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16893
16894 2010-04-20  Eric Blake  <eblake@redhat.com>
16895
16896         tests: be robust to ignored SIGPIPE
16897         * tests/test-select-in.sh: Consume all output.
16898         * tests/test-lseek.sh: Check correct exit status, while avoiding
16899         EPIPE.
16900
16901 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16902             Bruno Haible  <bruno@clisp.org>
16903
16904         visibility: Don't use -fvisibility if it leads to a warning.
16905         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16906         yes, don't pretend that visibility works if it leads to a warning.
16907         Reported by Mike Gran <spk121@yahoo.com>.
16908
16909 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16910
16911         * build-aux/bootstrap: Use "git -h" for testing for supported options
16912         instead of "git --help".  The short-form option only shows a summary,
16913         and doesn't layout the full man page.  Grep for the full option name
16914         in the summary, too.
16915
16916 2010-04-19  Bruno Haible  <bruno@clisp.org>
16917
16918         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16919         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16920         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16921         mention of RELOCATABLE_STRIP.
16922         Reported by Sylvain Beucler <beuc@beuc.net>.
16923
16924 2010-04-19  Bruno Haible  <bruno@clisp.org>
16925
16926         * lib/diffseq.h: Fix typo in comment.
16927         Reported by Eric Blake.
16928
16929 2010-04-19  Bruno Haible  <bruno@clisp.org>
16930
16931         ioctl: Move autoconf macro to a .m4 file.
16932         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16933         * modules/ioctl (Files): Add it.
16934         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16935         Reported by Ian Beckwith <ianb@erislabs.net>.
16936
16937 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16938             Bruno Haible  <bruno@clisp.org>
16939
16940         diffseq: Accommodate use-case with abstract arrays.
16941         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16942         is not defined.
16943         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16944         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16945
16946 2010-04-18  Bruno Haible  <bruno@clisp.org>
16947
16948         * doc/posix-headers/stdbool.texi: More precise wording.
16949
16950 2010-04-17  Jim Meyering  <meyering@redhat.com>
16951
16952         maint.mk: use gnu-style indentation in an embedded perl script
16953         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16954         Rename variable: s/two/last_two_bytes/
16955
16956 2010-04-16  Eric Blake  <eblake@redhat.com>
16957
16958         test-stdbool: skip test that fails with Solaris CC
16959         * tests/test-stdbool.c (f): Skip test that causes compilation
16960         error under buggy C++ compiler.
16961         * lib/stdbool.in.h: Document the limitation.
16962         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16963
16964         setenv: allow compilation with C++
16965         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16966         register keyword.
16967
16968         stdint: allow test to pass with C++
16969         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16970
16971         getopt: allow compilation with C++
16972         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16973         struct.
16974         * lib/getopt.c (_getopt_internal_r): Use correct type.
16975         Reported by Dagobert Michelson, via Joel E. Denny.
16976
16977 2010-04-16  Bruno Haible  <bruno@clisp.org>
16978
16979         Override netdb.h always.
16980         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16981         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16982         Reported by Ludovic Courtès <ludo@gnu.org>.
16983
16984 2010-04-15  Bruno Haible  <bruno@clisp.org>
16985
16986         openpty: Fix mistake from 2010-03-21.
16987         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16988         Reported by Simon Josefsson.
16989
16990 2010-04-15  Eric Blake  <eblake@redhat.com>
16991
16992         test-forkpty: fix expected signature
16993         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16994         Reported by Simon Josefsson.
16995
16996 2010-04-15  Jim Meyering  <meyering@redhat.com>
16997
16998         maint.mk: texinfo_suffix_re_: correct the default regexp
16999         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17000
17001         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17002         make it configurable via texinfo_suffix_re_.
17003
17004 2010-04-14  Eric Blake  <eblake@redhat.com>
17005
17006         strtok_r: relax license to LGPLv2+
17007         * modules/strtok_r (License): Relax license.
17008         Reported by Matthias Bolte.
17009
17010 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17011
17012         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17013         version 1.4.4 by default instead of requiring the libgcrypt
17014         version used during build.  This makes it possible to use the
17015         application with older but still binary compatible libgcrypt
17016         versions.
17017
17018 2010-04-13  Eric Blake  <eblake@redhat.com>
17019
17020         getopt-gnu: match recent glibc fixes and posix ruling
17021         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17022         '+' handling, when requesting extensions.
17023         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17024         'W;' handling.
17025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17026         * doc/posix-functions/getopt.texi (getopt): Document this.
17027         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17028         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17029         Likewise.
17030
17031         getopt: merge bug fixes from glibc
17032         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17033         diagnostics.  Honor '+:' correctly.  Reject ';'.
17034
17035         getopt-posix: detect MacOS bug
17036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17037         optind when missing a required argument.
17038         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17039         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17040         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17041         Likewise.
17042
17043         getopt-posix: avoid spurious failure on Solaris
17044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17045         an indicator that setting optind=1 is sufficient for reset.
17046
17047         getopt-posix: avoid spurious failure on FreeBSD
17048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17049         in POSIX mode, since the m4 test uses it.
17050
17051         gnulib-tool: silence warning on BSD sh
17052         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17053
17054 2010-04-13  Jim Meyering  <meyering@redhat.com>
17055
17056         doc: users.txt: GNU patch now uses gnulib
17057         * users.txt: Add patch.
17058
17059 2010-04-12  Jim Meyering  <meyering@redhat.com>
17060
17061         maint.mk: generate more concise timing data for syntax-check rules
17062         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17063         " done" from each line that reports a syntax-check test duration.
17064
17065 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17066
17067         git-version-gen: use "git update-index..." rather than "git status"
17068         * build-aux/git-version-gen: Use git update-index --refresh, not
17069         "git status".  With some versions of git, "git status" would fail
17070         to update the index and result in an unwarranted "-dirty" suffix.
17071
17072 2010-04-11  Jim Meyering  <meyering@redhat.com>
17073
17074         openat: correct formatting (no semantic change)
17075         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17076         Suggested by Bruno Haible.
17077
17078 2010-04-11  Bruno Haible  <bruno@clisp.org>
17079
17080         Stricter declaration checking in testdirs.
17081         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17082         If for_tests is true, augment AM_CPPFLAGS to define
17083         GNULIB_STRICT_CHECKING.
17084         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17085         GNULIB_STRICT_CHECKING is defined, verify that the function is
17086         declared.
17087
17088 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17089             Bruno Haible  <bruno@clisp.org>
17090
17091         libunistring: Improve configure output.
17092         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17093         Don't say "consider installing GNU libunistring" when checking again
17094         with libiconv.
17095
17096 2010-04-11  Bruno Haible  <bruno@clisp.org>
17097
17098         libunistring: Correct value of $LTLIBUNISTRING.
17099         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17100         correct the value of $LTLIBUNISTRING.
17101
17102 2010-04-11  Bruno Haible  <bruno@clisp.org>
17103
17104         havelib: Add static libraries to LIBS in the right order.
17105         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17106         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17107
17108 2010-04-11  Bruno Haible  <bruno@clisp.org>
17109
17110         libunistring: Detect libunistring also when it depends on libiconv.
17111         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17112         the second AC_LIB_HAVE_LINKFLAGS invocation.
17113
17114 2010-04-11  James Youngman  <jay@gnu.org>
17115
17116         close-stream: declare local scalars to be "const"
17117         * lib/close-stream.c (close_stream): Make boolean variables const
17118         to document the fact that we set but do not change them.
17119
17120 2010-04-11  Bruno Haible  <bruno@clisp.org>
17121
17122         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17123
17124 2010-04-11  Jim Meyering  <meyering@redhat.com>
17125
17126         maint.mk: don't include dist-check.mk
17127         * top/maint.mk: Remove bogus include directive.
17128
17129         maint.mk: improve empty-line-at-EOF check
17130         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17131         solution, rather than tail+Perl-based one.  The latter would read
17132         a few kilobytes from the end of each file, and did not handle empty
17133         files properly.
17134
17135         maint.mk: print the elapsed time for each syntax-check rule
17136         * top/maint.mk (sc_m_rules_): Save start time in a file.
17137         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17138         (local-check): Interpose the .z rules
17139
17140 2010-04-11  Jim Meyering  <meyering@redhat.com>
17141
17142         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17143         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17144         empty file with one that ends in an empty line.
17145
17146 2010-04-10  Bruno Haible  <bruno@clisp.org>
17147
17148         mkdir: Make it work on mingw64.
17149         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17150         * lib/mkdir.c: Update comment.
17151         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17152
17153 2010-04-10  Bruno Haible  <bruno@clisp.org>
17154
17155         Don't override improved macro from newer autoconf.
17156         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17157         autoconf >= 2.62.
17158         Reported by Joel E. Denny <jdenny@clemson.edu>.
17159
17160 2010-04-10  Jim Meyering  <meyering@redhat.com>
17161
17162         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17163         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17164
17165         maint.mk: correct a diagnostic
17166         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17167         in diagnostic; now use $prohibit.
17168
17169 2010-04-10  Bruno Haible  <address@hidden>
17170
17171         fchownat: Fix a C++ test error on Solaris 8.
17172         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17173         the function does not exist.
17174
17175 2010-04-10  Bruno Haible  <bruno@clisp.org>
17176
17177         vasnprintf: Add more tests.
17178         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17179         (test_function): Test converting an invalid wide string.
17180
17181         vasnprintf: Correct handling of unconvertible wide string arguments.
17182         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17183         VASNPRINTF.
17184         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17185         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17186         smaller than the expected maximum need for the directive. Set errno to
17187         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17188         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17190         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17191         * modules/vasnprintf (Files): Add m4/printf.m4.
17192         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17193
17194 2010-04-10  Bruno Haible  <bruno@clisp.org>
17195
17196         vasnprintf: Fix crash in %ls directive.
17197         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17198         string is passed as argument to %ls, with no precision and no width.
17199         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17200
17201 2010-04-10  Bruno Haible  <bruno@clisp.org>
17202
17203         vasnprintf: Fix multiple test failures on mingw.
17204         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17205         _snprintf, or snwprintf, not _snwprintf.
17206
17207 2010-04-10  Bruno Haible  <bruno@clisp.org>
17208
17209         write: Fix a C++ test error on mingw.
17210         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17211
17212 2010-04-10  Bruno Haible  <bruno@clisp.org>
17213
17214         vasnprintf test: Reduce code duplication.
17215         * tests/test-vasnprintf.c (test_function): New function, extracted from
17216         test_vasnprintf.
17217         (test_vasnprintf, test_asnprintf): Invoke it.
17218
17219 2010-04-10  Bruno Haible  <bruno@clisp.org>
17220
17221         strnlen: Fix warning in C++ mode on MacOS X.
17222         * lib/string.in.h (strnlen): Use the modern idiom.
17223         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17224         defining strnlen as a macro already in <config.h>.
17225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17226         REPLACE_STRNLEN.
17227         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17228         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17229
17230 2010-04-08  James Youngman  <jay@gnu.org>
17231
17232         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17233         the example.
17234
17235 2010-04-09  Jim Meyering  <meyering@redhat.com>
17236
17237         maint.mk: print better diagnostic when there is no $(_hv_file)
17238         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17239         announce that when $(_hv_file) (aka help-version) does not exist.
17240
17241         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17242         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17243         not try to interpret its random input bytes.  Jarno Rajahalme reported
17244         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17245         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17246         (mktempd_): Likewise, just in case.
17247
17248         ftruncate: add two years to projected module removal date: 2012
17249         * m4/ftruncate.m4: Adjust comments.
17250
17251         ftruncate: mark module as obsolete; even MinGW provides it, now
17252         * modules/ftruncate (Status): Obsolete.
17253         (Notice): Say that.
17254         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17255         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17256
17257 2010-04-08  Bruno Haible  <bruno@clisp.org>
17258
17259         Fix side effects from tests-related modules.
17260         * modules/dprintf-posix (Comment): New section.
17261         * modules/fprintf-posix (Comment): Likewise.
17262         * modules/obstack-printf-posix (Comment): Likewise.
17263         * modules/printf-posix (Comment): Likewise.
17264         * modules/snprintf-posix (Comment): Likewise.
17265         * modules/sprintf-posix (Comment): Likewise.
17266         * modules/vasnprintf-posix (Comment): Likewise.
17267         * modules/vasprintf-posix (Comment): Likewise.
17268         * modules/vdprintf-posix (Comment): Likewise.
17269         * modules/vfprintf-posix (Comment): Likewise.
17270         * modules/vprintf-posix (Comment): Likewise.
17271         * modules/vsnprintf-posix (Comment): Likewise.
17272         * modules/vsprintf-posix (Comment): Likewise.
17273         * modules/xprintf-posix (Comment): Likewise.
17274         * modules/xvasprintf-posix (Comment): Likewise.
17275         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17276         * modules/floorf-tests (Depends-on): Likewise.
17277         * modules/round-tests (Depends-on): Likewise.
17278         * modules/roundf-tests (Depends-on): Likewise.
17279         * modules/trunc-tests (Depends-on): Likewise.
17280         * modules/truncf-tests (Depends-on): Likewise.
17281         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17282         'fprintf-posix' module is not present.
17283         * tests/test-floorf2.c (check): Likewise.
17284         * tests/test-trunc2.c (check): Likewise.
17285         * tests/test-truncf2.c (check): Likewise.
17286         * tests/test-round2.c (equal): Likewise.
17287         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17288
17289 2010-04-07  Karl Berry  <karl@gnu.org>
17290
17291         * config/srclist.txt,
17292         * config/srclistvars.sh,
17293         * config/srclist-update: doc fixes.
17294
17295 2010-04-07  Jim Meyering  <meyering@redhat.com>
17296
17297         maint.mk: add a PATH crosschecking syntax-check rule
17298         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17299         Useful if you use a test like the one in help-version (coreutils,
17300         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17301         printed by prog --version.
17302
17303 2010-04-06  Bruno Haible  <bruno@clisp.org>
17304
17305         Fix link error on mingw.
17306         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17307         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17308
17309 2010-04-06  Bruno Haible  <bruno@clisp.org>
17310
17311         Assume rmdir exists.
17312         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17313
17314 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17315
17316         doc: update users.txt
17317         * users.txt: Add gcal.
17318
17319 2010-04-06  Jim Meyering  <meyering@redhat.com>
17320
17321         init.sh: simply unset TMPDIR rather than risking env -i
17322         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17323         although it probably works fine on all Unix-based systems, some
17324         systems (Cygwin?) cannot tolerate a totally cleared environment.
17325         Suggestion from Eric Blake.
17326
17327 2010-04-06  Jim Meyering  <meyering@redhat.com>
17328
17329         init.sh: portability fix: use env's POSIX-specified -i option not -u
17330         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17331         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17332
17333 2010-04-05  Bruno Haible  <bruno@clisp.org>
17334
17335         btowc: Work around Cygwin 1.7.2 bug.
17336         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17337         does not map NUL to 0.
17338         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17339
17340 2010-04-05  Bruno Haible  <bruno@clisp.org>
17341
17342         Make the multithread modules work on Cygwin 1.7.2.
17343         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17344         imported symbols can be declared weak, so that it returns "no" on
17345         Cygwin 1.7.2.
17346
17347 2010-04-05  Bruno Haible  <bruno@clisp.org>
17348
17349         Use the module 'strncat'.
17350         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17351
17352         Tests for module 'strncat'.
17353         * modules/strncat-tests: New file.
17354         * tests/test-strncat.c: New file.
17355
17356         New module 'strncat'.
17357         * lib/string.in.h (strncat): New declaration.
17358         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17359         * m4/strncat.m4: New file, based on m4/memchr.m4.
17360         * modules/strncat: New file.
17361         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17362         is declared.
17363         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17364         REPLACE_STRNCAT.
17365         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17366         REPLACE_STRNCAT.
17367         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17368         module.
17369         * tests/test-string-c++.cc: Check signature of strncat.
17370
17371 2010-04-05  Jim Meyering  <meyering@redhat.com>
17372
17373         xstrtoumax-tests: convert to use init.sh
17374         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17375         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17376         Use Exit, not exit.
17377         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17378
17379         xstrtoimax-tests: convert to use init.sh
17380         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17381         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17382         Use Exit, not exit.
17383         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17384
17385 2010-04-05  Bruno Haible  <bruno@clisp.org>
17386
17387         sys_socket: Avoid #define replacements in C++ mode.
17388         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17389         warning to the function if possible, rather than #defining the symbol
17390         to a dysfunctional alias.
17391
17392 2010-04-05  Bruno Haible  <bruno@clisp.org>
17393
17394         fseeko: Fix C++ test error on mingw.
17395         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17396         gl_FUNC_FSEEKO.
17397         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17398         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17399         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17400         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17401
17402 2010-04-05  Bruno Haible  <bruno@clisp.org>
17403
17404         duplocale: Improve test output.
17405         * tests/test-duplocale.c (main): Print reason for skipped test.
17406
17407 2010-04-05  Bruno Haible  <bruno@clisp.org>
17408
17409         Assume rmdir exists.
17410         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17411         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17412
17413 2010-04-05  Bruno Haible  <bruno@clisp.org>
17414
17415         Fix link error on Solaris 8 with cc.
17416         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17417
17418 2010-04-05  Bruno Haible  <bruno@clisp.org>
17419
17420         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17421         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17422
17423 2010-04-05  Bruno Haible  <bruno@clisp.org>
17424
17425         vasprintf: Update documentation.
17426         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17427
17428 2010-04-05  Bruno Haible  <bruno@clisp.org>
17429
17430         ptsname: Improve test.
17431         * tests/test-ptsname.c (main): Also try the various master names of BSD
17432         systems.
17433
17434 2010-04-05  Bruno Haible  <bruno@clisp.org>
17435
17436         memchr: Avoid a possible C++ test error.
17437         * lib/string.in.h (memchr): Provide declaration if function is missing.
17438         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17439         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17441         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17442
17443 2010-04-05  Bruno Haible  <bruno@clisp.org>
17444
17445         strtok_r: Improve idiom.
17446         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17447         AC_LIBOBJ is used.
17448
17449 2010-04-05  Bruno Haible  <bruno@clisp.org>
17450
17451         strdup: Improve idiom.
17452         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17453         AC_LIBOBJ is used.
17454         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17455         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17456         when AC_LIBOBJ is used.
17457
17458 2010-04-05  Bruno Haible  <bruno@clisp.org>
17459
17460         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17461         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17462         don't set REPLACE_MBSINIT to 1.
17463         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17464         don't set REPLACE_MBRTOWC to 1.
17465         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17466         exist, don't set REPLACE_MBSRTOWCS to 1.
17467         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17468         exist, don't set REPLACE_MBSNRTOWCS to 1.
17469         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17470         don't set REPLACE_WCRTOMB to 1.
17471         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17472         exist, don't set REPLACE_WCSRTOMBS to 1.
17473         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17474         exist, don't set REPLACE_WCSNRTOMBS to 1.
17475
17476 2010-04-05  Bruno Haible  <bruno@clisp.org>
17477
17478         ldexpl: Improve idiom.
17479         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17480         make sure to set HAVE_DECL_LDEXPL to 0.
17481
17482 2010-04-05  Jim Meyering  <meyering@redhat.com>
17483
17484         xstrtol-tests: convert to use init.sh
17485         * modules/xstrtol-tests (Files): Add tests/init.sh.
17486         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17487         Use Exit, not exit.
17488         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17489
17490         atexit-tests: convert to use init.sh
17491         * modules/atexit-tests (Files): Add tests/init.sh.
17492         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17493         Use Exit, not exit.
17494         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17495
17496         init.sh: fix typo
17497         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17498
17499         init.sh: make it easier for a test script to write to the tty, ...
17500         when using automake's parallel-tests mode.
17501         * tests/init.sh (stderr_fileno_): Define overridable variable.
17502         (warn_): New function, to use it.
17503         (fail_, skip_, framework_failure_): Use warn_.
17504
17505 2010-04-04  Bruno Haible  <bruno@clisp.org>
17506
17507         btowc: Avoid warning.
17508         * lib/btowc.c: Include <stdlib.h>.
17509         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17510
17511 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17512             Bruno Haible  <bruno@clisp.org>
17513
17514         wchar: Port to NetBSD 1.5.
17515         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17516         * lib/wctype.in.h (WEOF): Likewise.
17517
17518 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17519             Bruno Haible  <bruno@clisp.org>
17520
17521         Port extended stdio to NetBSD 1.5.
17522         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17523         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17524         older.
17525
17526 2010-04-04  Bruno Haible  <bruno@clisp.org>
17527
17528         string: Remove unused substitution.
17529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17530         HAVE_DECL_STRERROR.
17531         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17532
17533 2010-04-04  Bruno Haible  <bruno@clisp.org>
17534
17535         strtod: Avoid a possible C++ test error.
17536         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17537         set REPLACE_STRTOD.
17538
17539 2010-04-04  Bruno Haible  <bruno@clisp.org>
17540
17541         strerror: Update documentation.
17542         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17543
17544 2010-04-04  Bruno Haible  <bruno@clisp.org>
17545
17546         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17547         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17548         _GL_CXXALIAS_SYS_CAST.
17549
17550 2010-04-04  Bruno Haible  <bruno@clisp.org>
17551
17552         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17553         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17554         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17555         REPLACE_FREXPL to 1.
17556         * doc/posix-functions/frexpl.texi: Update documentation.
17557
17558 2010-04-04  Bruno Haible  <bruno@clisp.org>
17559
17560         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17561         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17562
17563 2010-04-04  Bruno Haible  <bruno@clisp.org>
17564
17565         Implement nanosleep for native Windows.
17566         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17567
17568 2010-04-04  Bruno Haible  <bruno@clisp.org>
17569
17570         math: Fix some C++ test errors on Solaris 8.
17571         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17572
17573 2010-04-04  Bruno Haible  <bruno@clisp.org>
17574
17575         math: Fix some C++ test errors on Cygwin.
17576         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17577         truncl): Provide declaration if the system does not have it.
17578         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17579         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17580         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17581         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17582         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17583         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17584         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17585         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17586         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17587         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17588         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17589         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17590         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17591         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17592         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17593         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17595         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17596         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17597         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17598         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17599         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17600
17601 2010-04-04  Bruno Haible  <bruno@clisp.org>
17602
17603         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17604         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17605         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17606         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17607         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17608         * m4/isinf.m4 (gl_ISINF): Likewise.
17609         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17610
17611 2010-04-04  Bruno Haible  <bruno@clisp.org>
17612
17613         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17614         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17615
17616 2010-04-04  Bruno Haible  <bruno@clisp.org>
17617
17618         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17619         * modules/tmpfile (configure.ac): Update.
17620
17621         tmpfile: Fix C++ test error on mingw.
17622         * lib/stdio.in.h (tmpfile): New declaration.
17623         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17624         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17625         * modules/tmpfile (Depends-on): Add stdio.
17626         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17627         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17628         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17629         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17630         REPLACE_TMPFILE.
17631         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17632
17633 2010-04-04  Bruno Haible  <bruno@clisp.org>
17634
17635         ioctl: Fix C++ test error on mingw.
17636         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17637         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17638         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17639
17640 2010-04-03  Bruno Haible  <bruno@clisp.org>
17641
17642         wcwidth: Fix C++ test error on mingw.
17643         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17645         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17646
17647 2010-04-03  Bruno Haible  <bruno@clisp.org>
17648
17649         nanosleep: Fix C++ test error on mingw.
17650         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17651         * lib/time.in.h (nanosleep): Use modern idiom.
17652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17653         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17654         REPLACE_NANOSLEEP to 1.
17655         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17656         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17657
17658 2010-04-03  Bruno Haible  <bruno@clisp.org>
17659
17660         strptime: Fix C++ test error on mingw.
17661         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17662         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17663         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17664         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17665         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17666         not REPLACE_STRPTIME.
17667         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17668         REPLACE_STRPTIME.
17669
17670 2010-04-03  Bruno Haible  <bruno@clisp.org>
17671
17672         timegm: Fix C++ test error on mingw.
17673         * lib/time.in.h (timegm): Use modern idiom.
17674         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17675         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17676         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17677         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17678
17679 2010-04-03  Bruno Haible  <bruno@clisp.org>
17680
17681         timegm: Assume declaration if function exists.
17682         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17683         if it exists. Don't clobber ac_cv_func_timegm.
17684
17685 2010-04-03  Bruno Haible  <bruno@clisp.org>
17686
17687         time_r: Fix C++ test error on mingw.
17688         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17689         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17690         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17691         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17692         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17693
17694 2010-04-03  Bruno Haible  <bruno@clisp.org>
17695
17696         time_r: Minor updates.
17697         * modules/time_r (Description): Mention the provided functions.
17698         * lib/time_r.c: Don't include <string.h>.
17699         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17700         * doc/posix-functions/localtime_r.texi: Likewise.
17701
17702 2010-04-03  Bruno Haible  <bruno@clisp.org>
17703
17704         time: Fix regression introduced on 2010-03-08.
17705         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17706         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17707
17708 2010-04-03  Jim Meyering  <meyering@redhat.com>
17709
17710         maint.mk: don't silently disable project-specific syntax-check rules
17711         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17712         that they need to convert their project-specific syntax-check rules
17713         to use the new _sc_search_regexp.
17714
17715 2010-04-03  Bruno Haible  <bruno@clisp.org>
17716
17717         fchdir: Fix regression introduced on 2010-03-08.
17718         * lib/unistd.in.h (fchdir): Fix declaration.
17719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17721         REPLACE_FCHDIR.
17722         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17723         REPLACE_FCHDIR.
17724
17725 2010-04-03  Bruno Haible  <bruno@clisp.org>
17726
17727         getpagesize: Fix C++ test error on mingw.
17728         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17729         system does not declare the function.
17730         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17731         declared.
17732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17733         HAVE_DECL_GETPAGESIZE.
17734         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17735
17736 2010-04-03  Bruno Haible  <bruno@clisp.org>
17737
17738         stdio: Make C++ tests work on mingw.
17739         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17740         does not declare the function.
17741
17742 2010-04-03  Bruno Haible  <bruno@clisp.org>
17743
17744         ftello: Fix C++ test error on mingw.
17745         * lib/stdio.in.h (ftello): Use modern idiom.
17746         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17747         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17748         is missing and that it needs to be replaced.
17749         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17751         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17752
17753 2010-04-03  Bruno Haible  <bruno@clisp.org>
17754
17755         fseeko: Fix C++ test error on mingw.
17756         * lib/stdio.in.h (fseeko): Use modern idiom.
17757         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17759         is missing and that it needs to be replaced.
17760         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17762         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17763
17764 2010-04-03  Bruno Haible  <bruno@clisp.org>
17765
17766         mkstemp: Fix C++ test error on mingw.
17767         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17768         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17769         function is missing and that it needs to be replaced.
17770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17771         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17772
17773 2010-04-03  Bruno Haible  <bruno@clisp.org>
17774
17775         stpncpy: Fix C++ test error on mingw.
17776         * lib/string.in.h (stpncpy): Use modern idiom.
17777         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17778         function is missing and that it needs to be replaced.
17779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17780         REPLACE_STPNCPY.
17781         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17782
17783 2010-04-03  Bruno Haible  <bruno@clisp.org>
17784
17785         sys_stat: Fix C++ test error on mingw.
17786         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17787         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17788
17789 2010-04-03  Bruno Haible  <bruno@clisp.org>
17790
17791         pty: Update doc.
17792         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17793
17794 2010-04-03  Bruno Haible  <bruno@clisp.org>
17795
17796         unistd: Fix C++ test error on mingw.
17797         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17798
17799 2010-04-03  Bruno Haible  <bruno@clisp.org>
17800
17801         Update doc regarding mingw.
17802         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17803         * doc/glibc-functions/login_tty.texi: Likewise.
17804         * doc/glibc-functions/forkpty.texi: Likewise.
17805
17806 2010-04-03  Bruno Haible  <bruno@clisp.org>
17807
17808         stdlib: Avoid compilation failure of c-strtold on mingw.
17809         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17810
17811 2010-04-03  Bruno Haible  <bruno@clisp.org>
17812
17813         locale: Make C++ tests work on Cygwin and mingw.
17814         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17815         cannot provide the function.
17816         Reported by Simon Josefsson.
17817
17818 2010-04-03  Bruno Haible  <bruno@clisp.org>
17819
17820         localename: Port to MacOS X 10.6.
17821         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17822         memory layout of the locales in MacOS X 10.6 as well.
17823         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17824
17825 2010-04-02  Bruno Haible  <bruno@clisp.org>
17826
17827         gnulib-tool: Ensure that long-running tests are executed last.
17828         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17829         running tests after the one for the other tests.
17830
17831 2010-04-02  Bruno Haible  <bruno@clisp.org>
17832
17833         gnulib-tool: Ensure the tests in the main directory are executed first.
17834         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17835         start with the current directory.
17836
17837 2010-04-02  Bruno Haible  <bruno@clisp.org>
17838
17839         Tests for module 'havelib', moved here from GNU gettext.
17840         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17841         modifications.
17842         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17843         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17844         with modifications.
17845         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17846         modifications.
17847         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17848         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17849         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17850         with modifications.
17851         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17852         with modifications.
17853         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17854         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17855         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17856         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17857         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17858         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17859         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17860         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17861         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17862         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17863         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17864         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17865         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17866         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17867         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17868         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17869         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17870         with modifications.
17871         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17872         with modifications.
17873         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17874         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17875         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17876         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17877         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17878         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17879         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17880         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17881         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17882         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17883         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17884         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17885         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17886         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17887         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17888         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17889         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17890         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17891         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17892         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17893         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17894         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17895         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17896         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17897         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17898         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17899         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17900         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17901         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17902         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17903         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17904         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17905         * tests/havelib/rpathx/rpathx.c: New file, from
17906         gettext/autoconf-lib-link.
17907         * tests/havelib/rpathx/Makefile.am: New file, from
17908         gettext/autoconf-lib-link.
17909         * tests/havelib/rpathx/configure.ac: New file, from
17910         gettext/autoconf-lib-link with modifications.
17911         * tests/havelib/rpathy/rpathy.c: New file, from
17912         gettext/autoconf-lib-link.
17913         * tests/havelib/rpathy/Makefile.am: New file, from
17914         gettext/autoconf-lib-link.
17915         * tests/havelib/rpathy/configure.ac: New file, from
17916         gettext/autoconf-lib-link with modifications.
17917         * tests/havelib/rpathz/rpathz.c: New file, from
17918         gettext/autoconf-lib-link.
17919         * tests/havelib/rpathz/Makefile.am: New file, from
17920         gettext/autoconf-lib-link.
17921         * tests/havelib/rpathz/configure.ac: New file, from
17922         gettext/autoconf-lib-link with modifications.
17923         * tests/havelib/rpathlx/usex.c: New file, from
17924         gettext/autoconf-lib-link.
17925         * tests/havelib/rpathlx/Makefile.am: New file, from
17926         gettext/autoconf-lib-link.
17927         * tests/havelib/rpathlx/configure.ac: New file, from
17928         gettext/autoconf-lib-link with modifications.
17929         * tests/havelib/rpathly/usey.c: New file, from
17930         gettext/autoconf-lib-link.
17931         * tests/havelib/rpathly/Makefile.am: New file, from
17932         gettext/autoconf-lib-link.
17933         * tests/havelib/rpathly/configure.ac: New file, from
17934         gettext/autoconf-lib-link with modifications.
17935         * tests/havelib/rpathlz/usez.c: New file, from
17936         gettext/autoconf-lib-link.
17937         * tests/havelib/rpathlz/Makefile.am: New file, from
17938         gettext/autoconf-lib-link.
17939         * tests/havelib/rpathlz/configure.ac: New file, from
17940         gettext/autoconf-lib-link with modifications.
17941         * tests/havelib/rpathlyx/usey.c: New file, from
17942         gettext/autoconf-lib-link.
17943         * tests/havelib/rpathlyx/Makefile.am: New file, from
17944         gettext/autoconf-lib-link.
17945         * tests/havelib/rpathlyx/configure.ac: New file, from
17946         gettext/autoconf-lib-link with modifications.
17947         * tests/havelib/rpathlzyx/usez.c: New file, from
17948         gettext/autoconf-lib-link.
17949         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17950         gettext/autoconf-lib-link.
17951         * tests/havelib/rpathlzyx/configure.ac: New file, from
17952         gettext/autoconf-lib-link with modifications.
17953         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17954         with modifications.
17955
17956 2010-04-02  Bruno Haible  <bruno@clisp.org>
17957
17958         gnulib-tool: Create distributed built sources also for the tests.
17959         * gnulib-tool (func_create_testdir): Also generate distributed built
17960         sources in the tests directory.
17961
17962 2010-04-02  Bruno Haible  <bruno@clisp.org>
17963
17964         gnulib-tool: Obey user's environment variables.
17965         * gnulib-tool (func_create_testdir): When creating built sources,
17966         respect the environment variables for autoconf, automake, etc. given by
17967         the user.
17968
17969 2010-04-02  Bruno Haible  <bruno@clisp.org>
17970
17971         gnulib-tool: Provide the value of --m4-base to modules.
17972         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17973         of gl_m4_base.
17974
17975 2010-04-02  Eric Blake  <eblake@redhat.com>
17976
17977         maint.mk: fix some fallout
17978         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17979         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17980
17981 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17982
17983         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17984         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17985         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17986         (sc_cast_of_x_alloc_return_value): Likewise.
17987         (sc_cast_of_alloca_return_value): Likewise.
17988         (sc_space_tab): Likewise.
17989         (sc_prohibit_atoi_atof): Likewise.
17990         (sc_prohibit_magic_number_exit): Likewise.
17991         (sc_error_exit_success): Likewise.
17992         (sc_file_system): Likewise.
17993         (sc_prohibit_have_config_h): Likewise.
17994         (sc_require_config_h): Likewise.
17995         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17996         (sc_obsolete_symbols): Likewise.
17997         (sc_changelog): Likewise.
17998         (sc_program_name): Likewise.
17999         (sc_the_the): Likewise.
18000         (sc_trailing_blank): Likewise.
18001         (sc_two_space_separator_in_usage): Likewise.
18002         (sc_useless_cpp_parens): Likewise.
18003         (sc_GPL_version): Likewise.
18004         (sc_GFDL_version): Likewise.
18005         (sc_texinfo_acronym): Likewise.
18006         (sc_prohibit_cvs_keyword): Likewise.
18007         (sc_prohibit_stat_st_blocks): Likewise.
18008         (sc_prohibit_S_IS_definition): Likewise.
18009         (sc_redundant_const): Likewise.
18010         (sc_makefile_TAB_only_indentation): Likewise.
18011         (sc_m4_quote_check): Likewise.
18012         (sc_makefile_path_separator_check): Likewise.
18013         (sc_copyright_check): Likewise.
18014         (sc_Wundef_boolean): Likewise.
18015         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18016
18017         maint.mk: match 0 or more whitespace-before-function-call '('
18018         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18019         that have zero or two-and-more spaces between the function name
18020         and the open parenthesis.
18021         (sc_error_message_warn_fatal): Likewise.
18022         (sc_error_message_uppercase): Likewise.
18023         (sc_error_message_period): Likewise.
18024
18025 2010-03-31  Eric Blake  <eblake@redhat.com>
18026
18027         maint.mk: check for [ as well as test
18028         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18029         Based on a libvirt report by Matthias Bolte.
18030
18031         gnumakefile: don't squelch _version output
18032         * top/GNUmakefile (_version): Create one-shot dependency rather
18033         than using $(shell) when version must be regenerated.
18034         (_autoreconf): Run verbosely, by default.
18035
18036         sys_time: avoid compiler warnings
18037         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18038         unconditional, fixing regression from 2010-03-29.
18039         Reported by Simon Josefsson.
18040
18041 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18042
18043         maint.mk: s/_header_without_use/_sc_header_without_use/
18044         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18045         (sc_prohibit_assert_without_use): Use the new name.
18046         (sc_prohibit_close_stream_without_use): Likewise.
18047         (sc_prohibit_getopt_without_use): Likewise.
18048         (sc_prohibit_quotearg_without_use): Likewise.
18049         (sc_prohibit_quote_without_use): Likewise.
18050         (sc_prohibit_long_options_without_use): Likewise.
18051         (sc_prohibit_inttostr_without_use): Likewise.
18052         (sc_prohibit_ignore_value_without_use): Likewise.
18053         (sc_prohibit_error_without_use): Likewise.
18054         (sc_prohibit_xalloc_without_use): Likewise.
18055         (sc_prohibit_hash_without_use): Likewise.
18056         (sc_prohibit_hash_pjw_without_use): Likewise.
18057         (sc_prohibit_safe_read_without_use): Likewise.
18058         (sc_prohibit_argmatch_without_use): Likewise.
18059         (sc_prohibit_canonicalize_without_use): Likewise.
18060         (sc_prohibit_root_dev_ino_without_use): Likewise.
18061         (sc_prohibit_openat_without_use): Likewise.
18062         (sc_prohibit_c_ctype_without_use): Likewise.
18063         (sc_prohibit_signal_without_use): Likewise.
18064         (sc_prohibit_intprops_without_use): Likewise.
18065
18066 2010-03-30  Eric Blake  <eblake@redhat.com>
18067
18068         maint: improve module indicators
18069         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18070         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18071         columns, and avoid extra macro expansion.
18072
18073         fdopendir: work around FreeBSD bug
18074         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18075         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18076         * modules/dirent (Makefile.am): Substitute it.
18077         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18078         declaration.
18079         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18080         fix.
18081         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18082
18083 2010-03-29  Bruno Haible  <bruno@clisp.org>
18084
18085         Emit #pragma system_header after the inclusion guard, not before.
18086         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18087         guard that spans the entire file, not before. This enables an
18088         optimization in GCC's preprocessor.
18089         * lib/ctype.in.h: Likewise.
18090         * lib/dirent.in.h: Likewise.
18091         * lib/errno.in.h: Likewise.
18092         * lib/float.in.h: Likewise.
18093         * lib/getopt.in.h: Likewise.
18094         * lib/iconv.in.h: Likewise.
18095         * lib/langinfo.in.h: Likewise.
18096         * lib/locale.in.h: Likewise.
18097         * lib/math.in.h: Likewise.
18098         * lib/netdb.in.h: Likewise.
18099         * lib/netinet_in.in.h: Likewise.
18100         * lib/pty.in.h: Likewise.
18101         * lib/sched.in.h: Likewise.
18102         * lib/se-selinux.in.h: Likewise.
18103         * lib/search.in.h: Likewise.
18104         * lib/spawn.in.h: Likewise.
18105         * lib/stdarg.in.h: Likewise.
18106         * lib/stdint.in.h: Likewise.
18107         * lib/string.in.h: Likewise.
18108         * lib/strings.in.h: Likewise.
18109         * lib/sys_file.in.h: Likewise.
18110         * lib/sys_ioctl.in.h: Likewise.
18111         * lib/sys_time.in.h: Likewise.
18112         * lib/sys_times.in.h: Likewise.
18113         * lib/sys_utsname.in.h: Likewise.
18114         * lib/sys_wait.in.h: Likewise.
18115         * lib/sysexits.in.h: Likewise.
18116         * lib/wctype.in.h: Likewise.
18117
18118 2010-03-28  James Youngman  <jay@gnu.org>
18119
18120         save-cwd: don't leak a file descriptor when the caller execs.
18121         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18122         saved file descriptor.
18123         * modules/save-cwd (Depends-on): Depend on cloexec.
18124
18125 2010-03-29  Bruno Haible  <bruno@clisp.org>
18126
18127         Remove vestiges of fts-lgpl module.
18128         * lib/fts_.h: Assume GNULIB_FTS is 1.
18129         * lib/fts.c: Likewise.
18130         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18131
18132 2010-03-28  Bruno Haible  <bruno@clisp.org>
18133
18134         Fix definition of tests witness macro.
18135         * gnulib-tool (func_import): Fix definition of witness macro.
18136
18137 2010-03-28  Bruno Haible  <bruno@clisp.org>
18138
18139         Fix ioctl's protoype on glibc systems.
18140         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18141         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18142         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18143         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18144         signature. If not, arrange to replace the ioctl function.
18145         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18146         REPLACE_IOCTL.
18147         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18148         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18149         Reported by Ludovic Courtès <ludo@gnu.org>.
18150
18151 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18152
18153         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18154         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18155         made it so grep -r --include=GLOB* ... did not work.
18156
18157 2010-03-26  Jim Meyering  <meyering@redhat.com>
18158             Eric Blake  <eblake@redhat.com>
18159
18160         maint.mk: prohibit use of test's -o and -a operators
18161         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18162
18163 2010-03-28  Bruno Haible  <bruno@clisp.org>
18164
18165         Remove unused GNULIB_XYZ macro definitions.
18166         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18167         invocation.
18168
18169 2010-03-28  Bruno Haible  <bruno@clisp.org>
18170
18171         Mark privileged tests modules.
18172         * modules/idpriv-drop-tests (Status): New section.
18173         * modules/idpriv-droptemp-tests (Status): New section.
18174
18175 2010-03-28  Bruno Haible  <bruno@clisp.org>
18176
18177         Split C++ tests into separate tests modules.
18178         * modules/dirent-c++-tests: New file, extracted from
18179         modules/dirent-tests.
18180         * modules/dirent-tests: Depend on it.
18181         * modules/fcntl-h-c++-tests: New file, extracted from
18182         modules/fcntl-h-tests.
18183         * modules/fcntl-h-tests: Depend on it.
18184         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18185         * modules/glob-tests: Depend on it.
18186         * modules/iconv-h-c++-tests: New file, extracted from
18187         modules/iconv-h-tests.
18188         * modules/iconv-h-tests: Depend on it.
18189         * modules/langinfo-c++-tests: New file, extracted from
18190         modules/langinfo-tests.
18191         * modules/langinfo-tests: Depend on it.
18192         * modules/locale-c++-tests: New file, extracted from
18193         modules/locale-tests.
18194         * modules/locale-tests: Depend on it.
18195         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18196         * modules/math-tests: Depend on it.
18197         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18198         * modules/pty-tests: Depend on it.
18199         * modules/search-c++-tests: New file, extracted from
18200         modules/search-tests.
18201         * modules/search-tests: Depend on it.
18202         * modules/signal-c++-tests: New file, extracted from
18203         modules/signal-tests.
18204         * modules/signal-tests: Depend on it.
18205         * modules/spawn-c++-tests: New file, extracted from
18206         modules/spawn-tests.
18207         * modules/spawn-tests: Depend on it.
18208         * modules/stdio-c++-tests: New file, extracted from
18209         modules/stdio-tests.
18210         * modules/stdio-tests: Depend on it.
18211         * modules/stdlib-c++-tests: New file, extracted from
18212         modules/stdlib-tests.
18213         * modules/stdlib-tests: Depend on it.
18214         * modules/string-c++-tests: New file, extracted from
18215         modules/string-tests.
18216         * modules/string-tests: Depend on it.
18217         * modules/sys_ioctl-c++-tests: New file, extracted from
18218         modules/sys_ioctl-tests.
18219         * modules/sys_ioctl-tests: Depend on it.
18220         * modules/sys_select-c++-tests: New file, extracted from
18221         modules/sys_select-tests.
18222         * modules/sys_select-tests: Depend on it.
18223         * modules/sys_socket-c++-tests: New file, extracted from
18224         modules/sys_socket-tests.
18225         * modules/sys_socket-tests: Depend on it.
18226         * modules/sys_stat-c++-tests: New file, extracted from
18227         modules/sys_stat-tests.
18228         * modules/sys_stat-tests: Depend on it.
18229         * modules/sys_time-c++-tests: New file, extracted from
18230         modules/sys_time-tests.
18231         * modules/sys_time-tests: Depend on it.
18232         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18233         * modules/time-tests: Depend on it.
18234         * modules/unistd-c++-tests: New file, extracted from
18235         modules/unistd-tests.
18236         * modules/unistd-tests: Depend on it.
18237         * modules/wchar-c++-tests: New file, extracted from
18238         modules/wchar-tests.
18239         * modules/wchar-tests: Depend on it.
18240         * modules/wctype-c++-tests: New file, extracted from
18241         modules/wctype-tests.
18242         * modules/wctype-tests: Depend on it.
18243         Reported by Simon Josefsson.
18244
18245 2010-03-28  Bruno Haible  <bruno@clisp.org>
18246
18247         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18248         * gnulib-tool (func_exists_module): New function, extracted from
18249         func_verify_module.
18250         (func_verify_module): Use it.
18251         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18252         'foo' only if 'foo' exists.
18253         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18254         module.
18255
18256 2010-03-28  Bruno Haible  <bruno@clisp.org>
18257
18258         gnulib-tool: Add support for special categories of tests.
18259         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18260         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18261         (func_usage): Document them.
18262         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18263         inc_unportable_tests, inc_all_tests): New variables.
18264         (func_acceptable): Consider these variables.
18265         (func_modules_transitive_closure): Make it work when the 'Status' field
18266         consists of multiple words.
18267         (func_import): Store and restore the values of inc_cxx_tests,
18268         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18269         inc_all_tests in gnulib-comp.m4.
18270         (func_create_testdir): Set inc_all_tests to true.
18271         * doc/gnulib.texi (Extra tests modules): New section.
18272         Suggested by Jim Meyering.
18273
18274 2010-03-28  Bruno Haible  <bruno@clisp.org>
18275
18276         ansi-c++-opt: Allow turning off the C++ build by default.
18277         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18278         gl_CXX_CHOICE_DEFAULT_NO is defined.
18279         Requested by Eric Blake.
18280
18281 2010-03-28  Bruno Haible  <bruno@clisp.org>
18282
18283         unistd: Avoid #define replacements in C++ mode.
18284         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18285         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18286         setsockopt, shutdown, select): In C++, attach a warning to the function
18287         if possible, rather than #defining the symbol to a dysfunctional alias.
18288         Reported by John W. Eaton <jwe@gnu.org>.
18289
18290 2010-03-28  Bruno Haible  <bruno@clisp.org>
18291
18292         Fix link errors on mingw.
18293         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18294         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18295         $(LIBSOCKET).
18296         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18297         $(LIBSOCKET).
18298
18299 2010-03-28  Bruno Haible  <bruno@clisp.org>
18300             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18301
18302         lib-ignore: Determine different options for different compilers.
18303         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18304         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18305         Add comments.
18306         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18307         * NEWS: Mention the change.
18308
18309 2010-03-27  Bruno Haible  <bruno@clisp.org>
18310
18311         Remove unused GNULIB_XYZ macro definitions.
18312         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18313         * modules/fseek (configure.ac): Likewise.
18314         * modules/ioctl (configure.ac): Likewise.
18315         * modules/open (configure.ac): Likewise.
18316         * modules/stdlib-safer (configure.ac): Likewise.
18317
18318 2010-03-27  Bruno Haible  <bruno@clisp.org>
18319
18320         Add a remark about certain modules.
18321         * modules/malloc (Comment): New section.
18322         * modules/realloc (Comment): Likewise.
18323         * modules/sigpipe (Comment): Likewise.
18324
18325 2010-03-27  Bruno Haible  <bruno@clisp.org>
18326
18327         Resolve conflict between the two kinds of module indicators.
18328         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18329         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18330         * modules/canonicalize (configure.ac): Invoke
18331         gl_MODULE_INDICATOR_FOR_TESTS.
18332         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18333         GNULIB_XYZ.
18334         * tests/test-dirent-c++.cc: Likewise.
18335         * tests/test-dirent-safer.c: Likewise.
18336         * tests/test-dup2.c: Likewise.
18337         * tests/test-fchdir.c: Likewise.
18338         * tests/test-fcntl-h-c++.cc: Likewise.
18339         * tests/test-getopt.c: Likewise.
18340         * tests/test-getopt.h: Likewise.
18341         * tests/test-langinfo-c++.cc: Likewise.
18342         * tests/test-locale-c++.cc: Likewise.
18343         * tests/test-math-c++.cc: Likewise.
18344         * tests/test-pty-c++.cc: Likewise.
18345         * tests/test-search-c++.cc: Likewise.
18346         * tests/test-signal-c++.cc: Likewise.
18347         * tests/test-spawn-c++.cc: Likewise.
18348         * tests/test-stdio-c++.cc: Likewise.
18349         * tests/test-stdlib-c++.cc: Likewise.
18350         * tests/test-string-c++.cc: Likewise.
18351         * tests/test-sys_ioctl-c++.cc: Likewise.
18352         * tests/test-sys_select-c++.cc: Likewise.
18353         * tests/test-sys_socket-c++.cc: Likewise.
18354         * tests/test-sys_stat-c++.cc: Likewise.
18355         * tests/test-sys_time-c++.cc: Likewise.
18356         * tests/test-time-c++.cc: Likewise.
18357         * tests/test-unistd-c++.cc: Likewise.
18358         * tests/test-wchar-c++.cc: Likewise.
18359         * tests/uninorm/test-u8-nfc.c: Likewise.
18360         * tests/uninorm/test-u8-nfd.c: Likewise.
18361         * tests/uninorm/test-u8-nfkc.c: Likewise.
18362         * tests/uninorm/test-u8-nfkd.c: Likewise.
18363         * tests/uninorm/test-u16-nfc.c: Likewise.
18364         * tests/uninorm/test-u16-nfd.c: Likewise.
18365         * tests/uninorm/test-u16-nfkc.c: Likewise.
18366         * tests/uninorm/test-u16-nfkd.c: Likewise.
18367         * tests/uninorm/test-u32-nfc.c: Likewise.
18368         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18369         * tests/uninorm/test-u32-nfd.c: Likewise.
18370         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18371         * tests/uninorm/test-u32-nfkc.c: Likewise.
18372         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18373         * tests/uninorm/test-u32-nfkd.c: Likewise.
18374         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18375         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18376
18377 2010-03-27  Bruno Haible  <bruno@clisp.org>
18378
18379         Distinguish two kinds of module indicators.
18380         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18381         gl_MODULE_INDICATOR.
18382         (gl_MODULE_INDICATOR): New macro.
18383         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18384         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18385         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18386         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18387         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18388         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18389         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18390         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18391         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18392         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18393         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18394         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18397         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18398         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18399         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18400         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18401         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18402         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18403         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18404         * modules/cloexec (configure.ac): Likewise.
18405         * modules/getopt-gnu (configure.ac): Likewise.
18406         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18407         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18408         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18409         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18410
18411 2010-03-27  Bruno Haible  <bruno@clisp.org>
18412
18413         New module description field 'Comment'.
18414         * gnulib-tool: New option --extract-comment.
18415         (func_usage): Document it.
18416         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18417         (func_get_comment): New function.
18418         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18419
18420 2010-03-27  Bruno Haible  <bruno@clisp.org>
18421
18422         Addendum to 2010-02-07 commit.
18423         * gnulib-tool (func_usage): Document --extract-applicability option.
18424
18425 2010-03-27  Bruno Haible  <bruno@clisp.org>
18426
18427         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18428         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18429         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18430         rather than link errors.
18431
18432 2010-03-27  Bruno Haible  <bruno@clisp.org>
18433
18434         Avoid side effects from tests-related modules on the compilation of lib.
18435         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18436         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18437         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18438         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18439         macro.
18440         (func_import): Define a witness macro. Assign it a value that depends
18441         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18442         tests-related modules.
18443         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18444         Reported by Jim Meyering.
18445
18446 2010-03-27  Bruno Haible  <bruno@clisp.org>
18447
18448         Factorize common .m4 code.
18449         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18450         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18451         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18452         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18453         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18454         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18455         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18456         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18457         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18458         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18459         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18460         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18461         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18462         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18463         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18464         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18465         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18466         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18468         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18469         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18470         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18471         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18472         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18473         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18474         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18475         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18476         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18477         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18478         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18479         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18480         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18481
18482 2010-03-27  Bruno Haible  <bruno@clisp.org>
18483
18484         Fix a compilation error on Cygwin with g++ >= 4.3.
18485         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18486         if it is undefined or if we alias it to chmod.
18487         (lstat): Don't warn about the use of this function if it is undefined
18488         or if we alias it to stat.
18489         Reported by Simon Josefsson.
18490
18491 2010-03-27  Bruno Haible  <bruno@clisp.org>
18492
18493         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18494         * modules/getlogin (configure.ac): Update.
18495
18496         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18497         * modules/getlogin_r (configure.ac): Update.
18498
18499         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18501         * modules/inet_ntop (configure.ac): Update.
18502
18503         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18504         * modules/inet_pton (configure.ac): Update.
18505
18506         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18507         * modules/mbslen (configure.ac): Update.
18508
18509         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18510         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18511         * modules/forkpty (configure.ac): Update.
18512         * modules/openpty (configure.ac): Update.
18513
18514 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18515
18516         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18517         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18518
18519 2010-03-25  Eric Blake  <eblake@redhat.com>
18520
18521         maint: use pragma consistently across replacement headers
18522         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18523         * lib/dirent.in.h (system_header): Likewise.
18524         * lib/errno.in.h (system_header): Likewise.
18525         * lib/float.in.h (system_header): Likewise.
18526         * lib/getopt.in.h (system_header): Likewise.
18527         * lib/iconv.in.h (system_header): Likewise.
18528         * lib/inttypes.in.h (system_header): Likewise.
18529         * lib/langinfo.in.h (system_header): Likewise.
18530         * lib/locale.in.h (system_header): Likewise.
18531         * lib/math.in.h (system_header): Likewise.
18532         * lib/netdb.in.h (system_header): Likewise.
18533         * lib/netinet_in.in.h (system_header): Likewise.
18534         * lib/pty.in.h (system_header): Likewise.
18535         * lib/sched.in.h (system_header): Likewise.
18536         * lib/se-selinux.in.h (system_header): Likewise.
18537         * lib/search.in.h (system_header): Likewise.
18538         * lib/spawn.in.h (system_header): Likewise.
18539         * lib/stdarg.in.h (system_header): Likewise.
18540         * lib/stdint.in.h (system_header): Likewise.
18541         * lib/string.in.h (system_header): Likewise.
18542         * lib/strings.in.h (system_header): Likewise.
18543         * lib/sys_file.in.h (system_header): Likewise.
18544         * lib/sys_ioctl.in.h (system_header): Likewise.
18545         * lib/sys_socket.in.h (system_header): Likewise.
18546         * lib/sys_times.in.h (system_header): Likewise.
18547         * lib/sys_utsname.in.h (system_header): Likewise.
18548         * lib/sys_wait.in.h (system_header): Likewise.
18549         * lib/sysexits.in.h (system_header): Likewise.
18550         * lib/unistd.in.h (system_header): Likewise.
18551         * lib/wctype.in.h (system_header): Likewise.
18552
18553         arpa/inet: fix mingw compilation warning
18554         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18555         Reported by Matthew Bolte.
18556
18557 2010-03-25  Bruno Haible  <bruno@clisp.org>
18558
18559         Avoid collision between gnulib wrapper and libintl wrapper.
18560         * lib/printf.c (printf): Don't define if a printf wrapper is already
18561         defined in intl/printf.c.
18562         Reported by Michel Boaventura <michel@michelboaventura.com>.
18563
18564 2010-03-25  Bruno Haible  <bruno@clisp.org>
18565
18566         Use ANSI C.
18567         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18568
18569 2010-03-25  Bruno Haible  <bruno@clisp.org>
18570
18571         Minor formatting changes.
18572         * lib/acosl.c: Insert space before function argument list.
18573         * lib/argz.c: Likewise.
18574         * lib/asinl.c: Likewise.
18575         * lib/expl.c: Likewise.
18576         * lib/gen-uni-tables.c: Likewise.
18577         * lib/gettext.h: Likewise.
18578         * lib/glthread/lock.h: Likewise.
18579         * lib/tanl.c: Likewise.
18580         * lib/uniname/uniname.c: Likewise.
18581         * tests/test-idpriv-drop.c: Likewise.
18582         * tests/test-idpriv-droptemp.c: Likewise.
18583         * tests/test-lock.c: Likewise.
18584         * tests/test-tls.c: Likewise.
18585         * lib/argp-help.c: Insert space before function-like macro argument
18586         list.
18587         * lib/memcmp.c: Likewise.
18588         * tests/test-base64.c: Likewise.
18589         * lib/localename.c: Insert space before sizeof's argument list.
18590         * lib/safe-alloc.h: Likewise.
18591         * lib/file-set.h: Insert space before macro argument list.
18592         * tests/test-argp.c: Likewise.
18593         * lib/argp-namefrob.h: Insert space before function parameter list.
18594         * lib/getaddrinfo.c: Likewise.
18595         * lib/netdb.in.h: Likewise.
18596         * lib/parse-duration.h: Likewise.
18597         * lib/parse-duration.c: Likewise.
18598         * lib/poll.c: Likewise.
18599         * lib/select.c: Likewise.
18600         * lib/trim.h: Likewise.
18601         * tests/test-usleep.c: Likewise.
18602         * lib/ldexpl.c: Insert space before function parameter list and before
18603         function argument list.
18604         * lib/logl.c: Likewise.
18605         * lib/sqrtl.c: Likewise.
18606         * lib/trim.c: Likewise.
18607         * lib/cosl.c: Use GNU style indentation. Insert space before function
18608         argument list.
18609         * lib/sinl.c: Likewise.
18610         * lib/tsearch.c: Insert space after 'for'.
18611         Reported by Jim Meyering.
18612
18613 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18614
18615         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18616         config header before grepping, as it's not present before
18617         autoreconf/configure are run.  Reported by Simon Josefsson.
18618
18619 2010-03-23  Bruno Haible  <bruno@clisp.org>
18620
18621         pt_chown: Make it work with automake < 1.11.
18622         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18623         Reported by Simon Josefsson.
18624
18625 2010-03-23  Bruno Haible  <bruno@clisp.org>
18626
18627         pt_chown: Don't depend on GPLed modules.
18628         * lib/pt_chown.c: Don't include idpriv.h.
18629         (main): Don't drop privileges.
18630         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18631         Reported by Simon Josefsson.
18632
18633 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18634
18635         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18636         suggestions from karl@freefriends.org (Karl Berry).
18637
18638 2010-03-22  Eric Blake  <eblake@redhat.com>
18639
18640         gethostname: further tweaks
18641         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18642         are overriding gethostname.
18643         Suggested by Bruno Haible.
18644
18645 2010-03-21  Bruno Haible  <bruno@clisp.org>
18646
18647         Fix comments.
18648         * lib/forkpty.c (rpl_forkpty): Fix comment.
18649         * lib/openpty.c (rpl_openpty): Likewise.
18650         Reported by Eric Blake.
18651
18652 2010-03-22  Eric Blake  <eblake@redhat.com>
18653
18654         gethostname: fix build on mingw
18655         * lib/unistd.in.h (includes): Work around fact that mingw
18656         <winsock2.h> re-includes <unistd.h>, by avoiding any
18657         redeclarations if we are being included by <winsock2.h>.
18658         Reported by Matthias Bolte.
18659
18660 2010-03-21  Bruno Haible  <bruno@clisp.org>
18661
18662         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18663         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18664         modifications.
18665         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18666         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18667         provide the replacement.
18668         * modules/forkpty (Depends-on): Add openpty, login_tty.
18669         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18670         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18671         * doc/glibc-functions/forkpty.texi: More supported platforms.
18672         * config/srclist.txt: Add forkpty.c (commented).
18673
18674 2010-03-21  Bruno Haible  <bruno@clisp.org>
18675
18676         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18677         (Makefile.am): Verify that PTY_LIB is defined.
18678
18679         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18680
18681 2010-03-21  Bruno Haible  <bruno@clisp.org>
18682
18683         Tests for module 'login_tty'.
18684         * modules/login_tty-tests: New file.
18685         * tests/test-login_tty.c: New file.
18686
18687         New module 'login_tty'.
18688         * lib/login_tty.c: New file.
18689         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18690         * modules/login_tty: New file.
18691         * doc/glibc-functions/login_tty.texi: Mention the new module.
18692
18693 2010-03-21  Bruno Haible  <bruno@clisp.org>
18694
18695         login_tty: Documentation.
18696         * doc/glibc-functions/login_tty.texi: New file.
18697         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18698
18699 2010-03-21  Bruno Haible  <bruno@clisp.org>
18700
18701         pty: Consistent macro naming.
18702         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18703         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18704         * modules/pty (configure.ac): Update.
18705
18706 2010-03-21  Bruno Haible  <bruno@clisp.org>
18707
18708         Tests for openpty: Make stricter.
18709         * tests/test-openpty.c (main): Add test of canonical processing and
18710         erase.
18711         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18712
18713         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18714         * lib/openpty.c (openpty): New replacement function.
18715         * lib/pty.in.h: Include <termios.h>.
18716         (openpty): Update declaration. Add comments.
18717         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18718         is not declared, arrange to provide the replacement. Check for _getpty
18719         and posix_openpt.
18720         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18721         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18722         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18723         * modules/pty-tests (test_pty_c___LDADD): New variable.
18724         * doc/glibc-functions/openpty.texi: More supported platforms.
18725
18726 2010-03-21  Bruno Haible  <bruno@clisp.org>
18727
18728         setenv: Tweaks.
18729         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18730         the test program.
18731         * doc/posix-functions/setenv.texi: Update platforms list.
18732
18733 2010-03-21  Bruno Haible  <bruno@clisp.org>
18734
18735         New module 'unlockpt'.
18736         * lib/unlockpt.c: New file, from glibc with modifications.
18737         * m4/unlockpt.m4: New file.
18738         * modules/unlockpt: New file.
18739         * lib/stdlib.in.h (unlockpt): New declaration.
18740         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18741         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18742         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18743         HAVE_UNLOCKPT.
18744         * doc/posix-functions/unlockpt.texi: Mention the new module.
18745         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18746         * config/srclist.txt: Add unlockpt.c (commented).
18747
18748 2010-03-21  Jim Meyering  <meyering@redhat.com>
18749
18750         maint.mk: prohibit inclusion of "intprops.h" without use
18751         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18752
18753 2010-03-21  Bruno Haible  <bruno@clisp.org>
18754
18755         New module 'grantpt'.
18756         * lib/grantpt.c: New file, from glibc with modifications.
18757         * m4/grantpt.m4: New file.
18758         * modules/grantpt: New file.
18759         * lib/stdlib.in.h (grantpt): New declaration.
18760         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18761         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18762         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18763         HAVE_GRANTPT.
18764         * doc/posix-functions/grantpt.texi: Mention the new module.
18765         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18766         * config/srclist.txt: Add grantpt.c (commented).
18767
18768 2010-03-21  Bruno Haible  <bruno@clisp.org>
18769
18770         New module 'pt_chown'.
18771         * lib/pt_chown.c: New file, from glibc with modifications.
18772         * lib/pty-private.h: New file, from glibc with modifications.
18773         * modules/pt_chown: New file.
18774         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18775
18776 2010-03-21  Bruno Haible  <bruno@clisp.org>
18777
18778         Tests for module 'ptsname'.
18779         * modules/ptsname-tests: New file.
18780         * tests/test-ptsname.c: New file.
18781
18782         New module 'ptsname'.
18783         * lib/ptsname.c: New file, from glibc with modifications.
18784         * m4/ptsname.m4: New file.
18785         * modules/ptsname: New file.
18786         * lib/stdlib.in.h (ptsname): New declaration.
18787         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18788         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18789         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18790         HAVE_PTSNAME.
18791         * doc/posix-functions/ptsname.texi: Mention the new module.
18792         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18793         * config/srclist.txt: Add ptsname.c (commented).
18794
18795 2010-03-21  Bruno Haible  <bruno@clisp.org>
18796
18797         Tests for module 'ttyname_r'.
18798         * modules/ttyname_r-tests: New file.
18799         * tests/test-ttyname_r.c: New file.
18800
18801         New module 'ttyname_r'.
18802         * lib/ttyname_r.c: New file.
18803         * m4/ttyname_r.m4: New file.
18804         * modules/ttyname_r: New file.
18805         * lib/unistd.in.h (ttyname_r): New declaration.
18806         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18807         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18808         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18809         HAVE_TTYNAME_R.
18810         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18811         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18812
18813 2010-03-20  Bruno Haible  <bruno@clisp.org>
18814
18815         signal: Undefine macro definitions in C++ mode.
18816         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18817         sigfillset): Undefine macro definitions from the system header in C++
18818         mode.
18819         Reported by John W. Eaton <jwe@gnu.org>.
18820
18821 2010-03-20  Bruno Haible  <bruno@clisp.org>
18822
18823         Ensure no #include statements inside extern "C" { ... }.
18824         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18825         contain #include statements.
18826         * lib/time.in.h: Likewise.
18827
18828 2010-03-20  Bruno Haible  <bruno@clisp.org>
18829
18830         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18831         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18832         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18833         Reported by John W. Eaton <jwe@gnu.org>.
18834
18835 2010-03-20  Bruno Haible  <bruno@clisp.org>
18836
18837         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18838         Reported by Jim Meyering.
18839
18840 2010-03-20  Bruno Haible  <bruno@clisp.org>
18841
18842         pipe: Set errno upon failure.
18843         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18844         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18845         errno value in error message.
18846
18847 2010-03-20  Bruno Haible  <bruno@clisp.org>
18848             Jim Meyering  <meyering@redhat.com>
18849
18850         lchown: Avoid "unused variable" warning.
18851         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18852
18853 2010-03-20  Bruno Haible  <bruno@clisp.org>
18854
18855         Work around unlink() bug on MacOS X 10.5.6.
18856         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18857         attempting to unlink a parent directory.
18858         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18859         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18860         activate for the replacement function.
18861         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18862
18863 2010-03-20  Bruno Haible  <bruno@clisp.org>
18864
18865         Fix link errors on Solaris 8.
18866         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18867         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18868
18869 2010-03-19  Jim Meyering  <meyering@redhat.com>
18870
18871         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18872         The _LIBC implementation of build_range_exp correctly honors the
18873         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18874         However, the non-_LIBC implementation would ignore that syntax-bit
18875         flag and return REG_ERANGE unconditionally.
18876         This change makes it honor that flag.
18877         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18878         Make two pointer parameters "const".
18879         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18880         (parse_bracket_exp): Update caller.
18881
18882         regex.m4: correct the reversed range endpoint ([b-a]) test
18883         * m4/regex.m4: When requiring that [b-a] evoke failure,
18884         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18885         test pass once again for x86-based systems.
18886
18887 2010-03-19  Bruno Haible  <bruno@clisp.org>
18888
18889         scandir: Fix link error on Solaris 8.
18890         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18891         macros.
18892
18893 2010-03-19  Bruno Haible  <bruno@clisp.org>
18894
18895         getusershell: Fix documentation.
18896         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18897         module.
18898         * doc/glibc-functions/setusershell.texi: Likewise.
18899
18900         getusershell: Provide declaration, missing on Solaris 9.
18901         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18902         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18903         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18904         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18906         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18907         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18908         HAVE_GETUSERSHELL.
18909         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18910
18911 2010-03-19  Bruno Haible  <bruno@clisp.org>
18912
18913         wctype: Provide iswblank function.
18914         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18915         exists and is fine.
18916         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18917         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18918         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18919         * doc/posix-functions/iswblank.texi: Update.
18920
18921 2010-03-19  Bruno Haible  <bruno@clisp.org>
18922
18923         Tests of module 'pty' in C++ mode.
18924         * modules/pty-tests: New file.
18925         * tests/test-pty-c++.cc: New file.
18926         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18927
18928 2010-03-19  Eric Blake  <eblake@redhat.com>
18929
18930         logb: fix documentation
18931         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18932         1.5 declaration bug.
18933
18934         forkpty, openpty: prefer glibc's const-safe prototype
18935         * lib/forkpty.c (rpl_forkpty): New file.
18936         * lib/openpty.c (rpl_openpty): Likewise.
18937         * modules/forkpty (Files): Distribute it.
18938         * modules/openpty (Files): Likewise.
18939         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18940         check...
18941         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18942         replacement for for non-const BSD signature.
18943         * modules/pty (Makefile.am): Substitute witnesses.
18944         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18945         * tests/test-forkpty.c: Update signature check.
18946         * tests/test-openpty.c: Likewise.
18947         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18948         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18949
18950         forkpty, openpty: split functions into new modules
18951         * modules/pty (Makefile.am): Substitute new witnesses.
18952         (Libraries): Move library detection...
18953         * modules/forkpty: ...into new module.
18954         * modules/openpty: Another new module.
18955         * modules/pty-tests: Rename and split...
18956         * modules/forkpty-tests: ...to this...
18957         * modules/openpty-tests: ...and this.
18958         * tests/test-pty.c: Rename and split...
18959         * tests/test-forkpty.c: ...to this...
18960         * tests/test-openpty.c: ...and this.
18961         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18962         (gl_PTY): Split library searching...
18963         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18964         (gl_FORKPTY, gl_OPENPTY): New macros.
18965         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18966         * NEWS: Mention the split.
18967         * MODULES.html.sh (Misc): Document the modules.
18968         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18969         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18970
18971         pty: improve replacement header
18972         * lib/pty.in.h: New file.
18973         * modules/pty (Files): Ship it.
18974         (Makefile.am): Always build replacement.
18975         * m4/pty.m4: Rename...
18976         * m4/pty_h.m4: ...to this.
18977         (gl_PTY): Modernize setting of witness macros; update check of
18978         forkpty to take proper advantage of cache.
18979         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18980
18981         getopt: avoid compiler warning
18982         * lib/getopt.c (attribute_hidden): Remove unused macro.
18983
18984 2010-03-18  Bruno Haible  <bruno@clisp.org>
18985
18986         Fix link errors on Solaris 8.
18987         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18988         * modules/search-tests (test_search_c___LDADD): Likewise.
18989         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18990         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18991         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18992         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18993         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18994         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18995         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18996
18997 2010-03-18  Bruno Haible  <bruno@clisp.org>
18998
18999         Fix bug introduced on 2010-03-14.
19000         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19001         (gl_SPAWN_H): Require it.
19002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19003         Reported by Simon Josefsson.
19004
19005 2010-03-18  Bruno Haible  <bruno@clisp.org>
19006
19007         Fix typo introduced on 2009-12-31.
19008         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19009         posix_spawn_file_actions_adddup2.
19010
19011 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19012         and Eric Blake  <eblake@redhat.com>
19013
19014         test-vc-list-files-git: make more robust
19015         * tests/test-vc-list-files-git.sh: Unset problematic environment
19016         variables.  Chain commands together.
19017
19018 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19019
19020         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19021         `AC_CHECK_DECL' invocation.
19022
19023 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19024
19025         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19026         appears before executable statements. Suggested by Petr Sumbera
19027         <Petr.Sumbera@Sun.COM>.
19028
19029 2010-03-14  Bruno Haible  <bruno@clisp.org>
19030
19031         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19032         portability problems. Instead use a simpler test.
19033         (main): Check that invalid arguments are rejected only on Linux.
19034
19035 2010-03-14  Bruno Haible  <bruno@clisp.org>
19036
19037         Fix bug introduced on 2009-12-31.
19038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19039         gl_PREREQ_SYS_H_WINSOCK2 always.
19040         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19041         SYS_SOCKET_H variable.
19042         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19043         Update comments.
19044         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19045         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19046         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19047         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19048         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19049
19050 2010-03-14  Bruno Haible  <bruno@clisp.org>
19051
19052         Fix values returned by sinl, cosl.
19053         * lib/trigl.h: Add specification comments.
19054         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19055         that combines the values from the precomputed table with the values of
19056         the Chebyshev polynomials.
19057
19058 2010-03-14  Bruno Haible  <bruno@clisp.org>
19059
19060         Fix compilation error when modules 'posix_spawn[p]' are not used.
19061         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19062         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19063
19064 2010-03-14  Bruno Haible  <bruno@clisp.org>
19065
19066         Fix compilation error on mingw when module 'time_r' is not used.
19067         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19068         is 1.
19069         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19070         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19071         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19072         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19073
19074 2010-03-14  Bruno Haible  <bruno@clisp.org>
19075
19076         Fix compilation error with Sun C.
19077         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19078         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19079         instead of GCC specific ULONG_LONG_MAX.
19080         * lib/xstrtoll.c: Likewise.
19081         * lib/xstrtoull.c: Likewise.
19082
19083 2010-03-13  Bruno Haible  <bruno@clisp.org>
19084
19085         Allow the user to disable C++ code and tests.
19086         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19087         (gl_PROG_ANSI_CXX): Require it.
19088
19089 2010-03-13  Bruno Haible  <bruno@clisp.org>
19090
19091         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19092         cases.
19093
19094 2010-03-13  Bruno Haible  <bruno@clisp.org>
19095
19096         Test that gnulib does not break the standard C++ headers.
19097         * tests/test-locale-c++2.cc: New file.
19098         * modules/locale-tests (Files): Add it.
19099         (Makefile.am): Compile it for test-locale-c++.
19100         * tests/test-math-c++2.cc: New file.
19101         * modules/math-tests (Files): Add it.
19102         (Makefile.am): Compile it for test-math-c++.
19103         * tests/test-signal-c++2.cc: New file.
19104         * modules/signal-tests (Files): Add it.
19105         (Makefile.am): Compile it for test-signal-c++.
19106         * tests/test-stdio-c++2.cc: New file.
19107         * modules/stdio-tests (Files): Add it.
19108         (Makefile.am): Compile it for test-stdio-c++.
19109         * tests/test-stdlib-c++2.cc: New file.
19110         * modules/stdlib-tests (Files): Add it.
19111         (Makefile.am): Compile it for test-stdlib-c++.
19112         * tests/test-string-c++2.cc: New file.
19113         * modules/string-tests (Files): Add it.
19114         (Makefile.am): Compile it for test-string-c++.
19115         * tests/test-time-c++2.cc: New file.
19116         * modules/time-tests (Files): Add it.
19117         (Makefile.am): Compile it for test-time-c++.
19118         Reported by John W. Eaton <jwe@gnu.org>.
19119
19120 2010-03-13  Bruno Haible  <bruno@clisp.org>
19121
19122         * gnulib-tool (func_usage): Clarify which options are available for
19123         --create-testdir and --create-megatestdir.
19124
19125 2010-03-13  Bruno Haible  <bruno@clisp.org>
19126
19127         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19128         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19129         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19130         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19131         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19132         when appropriate.
19133         Reported by Jim Meyering.
19134
19135 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19136
19137         * gnulib-tool (func_import): Explain origin of code.
19138
19139 2010-03-12  Bruno Haible  <bruno@clisp.org>
19140
19141         Fix problem with automake's definition of CXXLINK.
19142         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19143         Reported by Simon Josefsson and Ludovic Courtès.
19144
19145 2010-03-12  Bruno Haible  <bruno@clisp.org>
19146
19147         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19148         stable releases.
19149
19150 2010-03-11  Bruno Haible  <bruno@clisp.org>
19151
19152         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19153         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19154         whether the system provides one variant or multiple variants of the
19155         function.
19156         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19157         C++ compilers.
19158         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19159         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19160         Reported by Jim Meyering.
19161
19162 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19163
19164         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19165
19166 2010-03-08  Bruno Haible  <bruno@clisp.org>
19167
19168         gnulib-tool: Add support for --libtool in --create-testdir.
19169         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19170         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19171
19172 2010-03-08  Eric Blake  <eblake@redhat.com>
19173
19174         gnulib-tool.texi: mention possibility of git submodule
19175         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19176         submodules.
19177         * doc/.gitignore: Ignore another generated file.
19178
19179 2010-03-08  Karl Berry  <karl@gnu.org>
19180
19181         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19182         of committing gnulib files while skipping others.
19183
19184 2010-03-07  Bruno Haible  <bruno@clisp.org>
19185
19186         Tests of module 'wctype' in C++ mode.
19187         * tests/test-wctype-c++.cc: New file.
19188         * modules/wctype-tests (Files): Add it and tests/signature.h.
19189         (Depends-on): Add ansi-c++-opt.
19190         (Makefile.am): Arrange to compile and run test-wctype-c++.
19191
19192         Tests of module 'wchar' in C++ mode.
19193         * tests/test-wchar-c++.cc: New file.
19194         * modules/wchar-tests (Files): Add it and tests/signature.h.
19195         (Depends-on): Add ansi-c++-opt.
19196         (Makefile.am): Arrange to compile and run test-wchar-c++.
19197         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19198         gl_MODULE_INDICATOR.
19199
19200         Tests of module 'unistd' in C++ mode.
19201         * tests/test-unistd-c++.cc: New file.
19202         * modules/unistd-tests (Files): Add it and tests/signature.h.
19203         (Depends-on): Add ansi-c++-opt.
19204         (Makefile.am): Arrange to compile and run test-unistd-c++.
19205         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19206         gl_MODULE_INDICATOR.
19207
19208         Tests of module 'time' in C++ mode.
19209         * tests/test-time-c++.cc: New file.
19210         * modules/time-tests (Files): Add it and tests/signature.h.
19211         (Depends-on): Add ansi-c++-opt.
19212         (Makefile.am): Arrange to compile and run test-time-c++.
19213         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19214
19215         Tests of module 'sys_time' in C++ mode.
19216         * tests/test-sys_time-c++.cc: New file.
19217         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19218         (Depends-on): Add ansi-c++-opt.
19219         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19220         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19221         gl_MODULE_INDICATOR.
19222
19223         Tests of module 'sys_stat' in C++ mode.
19224         * tests/test-sys_stat-c++.cc: New file.
19225         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19226         (Depends-on): Add ansi-c++-opt.
19227         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19228         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19229         gl_MODULE_INDICATOR.
19230
19231         Tests of module 'sys_socket' in C++ mode.
19232         * tests/test-sys_socket-c++.cc: New file.
19233         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19234         (Depends-on): Add ansi-c++-opt.
19235         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19236         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19237         gl_MODULE_INDICATOR.
19238
19239         Tests of module 'sys_select' in C++ mode.
19240         * tests/test-sys_select-c++.cc: New file.
19241         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19242         (Depends-on): Add ansi-c++-opt.
19243         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19244         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19245         gl_MODULE_INDICATOR.
19246
19247         Tests of module 'sys_ioctl' in C++ mode.
19248         * tests/test-sys_ioctl-c++.cc: New file.
19249         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19250         (Depends-on): Add ansi-c++-opt.
19251         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19252         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19253         gl_MODULE_INDICATOR.
19254
19255         Tests of module 'string' in C++ mode.
19256         * tests/test-string-c++.cc: New file.
19257         * modules/string-tests (Files): Add it and tests/signature.h.
19258         (Depends-on): Add ansi-c++-opt.
19259         (Makefile.am): Arrange to compile and run test-string-c++.
19260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19261         gl_MODULE_INDICATOR.
19262
19263         Tests of module 'stdlib' in C++ mode.
19264         * tests/test-stdlib-c++.cc: New file.
19265         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19266         (Depends-on): Add ansi-c++-opt.
19267         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19268         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19269         gl_MODULE_INDICATOR.
19270
19271         Tests of module 'stdio' in C++ mode.
19272         * tests/test-stdio-c++.cc: New file.
19273         * modules/stdio-tests (Files): Add it and tests/signature.h.
19274         (Depends-on): Add ansi-c++-opt.
19275         (Makefile.am): Arrange to compile and run test-stdio-c++.
19276         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19277         gl_MODULE_INDICATOR.
19278
19279         Tests of module 'spawn' in C++ mode.
19280         * tests/test-spawn-c++.cc: New file.
19281         * modules/spawn-tests (Files): Add it and tests/signature.h.
19282         (Depends-on): Add ansi-c++-opt.
19283         (Makefile.am): Arrange to compile and run test-spawn-c++.
19284         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19285         gl_MODULE_INDICATOR.
19286
19287         Tests of module 'signal' in C++ mode.
19288         * tests/test-signal-c++.cc: New file.
19289         * modules/signal-tests (Files): Add it and tests/signature.h.
19290         (Depends-on): Add ansi-c++-opt.
19291         (Makefile.am): Arrange to compile and run test-signal-c++.
19292         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19293         gl_MODULE_INDICATOR.
19294
19295         Tests of module 'search' in C++ mode.
19296         * tests/test-search-c++.cc: New file.
19297         * modules/search-tests (Files): Add it and tests/signature.h.
19298         (Depends-on): Add ansi-c++-opt.
19299         (Makefile.am): Arrange to compile and run test-search-c++.
19300         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19301         gl_MODULE_INDICATOR.
19302
19303         Tests of module 'math' in C++ mode.
19304         * tests/test-math-c++.cc: New file.
19305         * modules/math-tests (Files): Add it and tests/signature.h.
19306         (Depends-on): Add ansi-c++-opt.
19307         (Makefile.am): Arrange to compile and run test-math-c++.
19308         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19309
19310         Tests of module 'locale' in C++ mode.
19311         * tests/test-locale-c++.cc: New file.
19312         * modules/locale-tests (Files): Add it and tests/signature.h.
19313         (Depends-on): Add ansi-c++-opt.
19314         (Makefile.am): Arrange to compile and run test-locale-c++.
19315         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19316         gl_MODULE_INDICATOR.
19317
19318         Tests of module 'langinfo' in C++ mode.
19319         * tests/test-langinfo-c++.cc: New file.
19320         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19321         (Depends-on): Add ansi-c++-opt.
19322         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19323         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19324         gl_MODULE_INDICATOR.
19325
19326         Tests of module 'iconv-h' in C++ mode.
19327         * tests/test-iconv-h-c++.cc: New file.
19328         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19329         (Depends-on): Add ansi-c++-opt.
19330         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19331
19332         Tests of module 'glob' in C++ mode.
19333         * tests/test-glob-c++.cc: New file.
19334         * modules/glob-tests (Files): Add it.
19335         (Depends-on): Add ansi-c++-opt.
19336         (Makefile.am): Arrange to compile and run test-glob-c++.
19337
19338         Tests of module 'fcntl-h' in C++ mode.
19339         * tests/test-fcntl-h-c++.cc: New file.
19340         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19341         (Depends-on): Add ansi-c++-opt.
19342         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19343         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19344         gl_MODULE_INDICATOR.
19345
19346         Tests of module 'dirent' in C++ mode.
19347         * tests/test-dirent-c++.cc: New file.
19348         * modules/dirent-tests (Files): Add it and tests/signature.h.
19349         (Depends-on): Add ansi-c++-opt.
19350         (Makefile.am): Arrange to compile and run test-dirent-c++.
19351         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19352         gl_MODULE_INDICATOR.
19353
19354         New module 'ansi-c++-opt'.
19355         * modules/ansi-c++-opt: New file.
19356         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19357
19358         Document C++ namespace mode.
19359         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19360
19361         wctype: Avoid #define replacements in C++ mode.
19362         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19363         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19364         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19365         In C++, define a namespaced alias symbol.
19366         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19367         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19368         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19369         rule.
19370
19371         wchar: Avoid #define replacements in C++ mode.
19372         * lib/wchar.in.h: Include c++defs.h.
19373         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19374         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19375         symbol.
19376         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19377         * modules/wchar (Depends-on): Add c++defs.
19378         (Makefile.am): Update wchar.h rule.
19379
19380         unistd: Avoid #define replacements in C++ mode.
19381         * lib/unistd.in.h: Include c++defs.h.
19382         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19383         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19384         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19385         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19386         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19387         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19388         symbol.
19389         (environ): Update.
19390         * modules/unistd (Depends-on): Add c++defs.
19391         (Makefile.am): Update unistd.h rule.
19392
19393         time: Avoid #define replacements in C++ mode.
19394         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19395         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19396         define a namespaced alias symbol.
19397         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19398         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19399         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19400         * modules/time (Depends-on): Add c++defs, warn-on-use.
19401         (Makefile.am): Update time.h rule.
19402         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19403         * modules/nanosleep (configure.ac): Likewise.
19404         * modules/strptime (configure.ac): Likewise.
19405         * modules/timegm (configure.ac): Likewise.
19406
19407         sys_time: Avoid #define replacements in C++ mode.
19408         * lib/sys_time.in.h: Include c++defs.h.
19409         (gettimeofday): In C++, define a namespaced alias symbol.
19410         * modules/sys_time (Depends-on): Add c++defs.
19411         (Makefile.am): Update sys/time.h rule.
19412
19413         sys_stat: Avoid #define replacements in C++ mode.
19414         * lib/sys_stat.in.h: Include c++defs.h.
19415         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19416         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19417         namespaced alias symbol.
19418         In C++, define a namespaced alias symbol.
19419         * modules/sys_stat (Depends-on): Add c++defs.
19420         (Makefile.am): Update sys/stat.h rule.
19421
19422         sys_socket: Avoid #define replacements in C++ mode.
19423         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19424         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19425         definitions also when the system has a <sys/socket.h>.
19426         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19427         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19428         In C++, define a namespaced alias symbol.
19429         * modules/sys_socket (Depends-on): Add c++defs.
19430         (Makefile.am): Update sys/socket.h rule.
19431
19432         sys_select: Avoid #define replacements in C++ mode.
19433         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19434         definitions also when the system has a <sys/select.h>.
19435         (select): In C++, define a namespaced alias symbol.
19436         * modules/sys_select (Depends-on): Add c++defs.
19437         (Makefile.am): Update sys/select.h rule.
19438
19439         sys_ioctl: Avoid #define replacements in C++ mode.
19440         * lib/sys_ioctl.in.h: Include c++defs.h.
19441         (ioctl): In C++, define a namespaced alias symbol.
19442         * modules/sys_ioctl (Depends-on): Add c++defs.
19443         (Makefile.am): Update sys/ioctl.h rule.
19444
19445         string: Avoid #define replacements in C++ mode.
19446         * lib/string.in.h: Include c++defs.h.
19447         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19448         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19449         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19450         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19451         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19452         * modules/string (Depends-on): Add c++defs.
19453         (Makefile.am): Update string.h rule.
19454
19455         stdlib: Avoid #define replacements in C++ mode.
19456         * lib/stdlib.in.h: Include c++defs.h.
19457         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19458         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19459         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19460         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19461         symbol.
19462         * modules/stdlib (Depends-on): Add c++defs.
19463         (Makefile.am): Update stdlib.h rule.
19464
19465         stdio: Avoid #define replacements in C++ mode.
19466         * lib/stdio.in.h: Include c++defs.h.
19467         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19468         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19469         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19470         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19471         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19472         namespaced alias symbol.
19473         * modules/stdio (Depends-on): Add c++defs.
19474         (Makefile.am): Update stdio.h rule.
19475
19476         spawn: Avoid #define replacements in C++ mode.
19477         * lib/spawn.in.h: Include c++defs.h.
19478         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19479         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19480         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19481         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19482         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19483         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19484         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19485         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19486         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19487         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19488         In C++, define a namespaced alias symbol.
19489         * modules/spawn (Depends-on): Add c++defs.
19490         (Makefile.am): Update spawn.h rule.
19491
19492         signal: Avoid #define replacements in C++ mode.
19493         * lib/signal.in.h: Include c++defs.h.
19494         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19495         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19496         namespaced alias symbol.
19497         * modules/signal (Depends-on): Add c++defs.
19498         (Makefile.am): Update signal.h rule.
19499
19500         search: Avoid #define replacements in C++ mode.
19501         * lib/search.in.h: Include c++defs.h.
19502         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19503         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19504         symbol.
19505         * modules/search (Depends-on): Add c++defs.
19506         (Makefile.am): Update search.h rule.
19507
19508         math: Avoid #define replacements in C++ mode.
19509         * lib/math.in.h: Include c++defs.h.
19510         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19511         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19512         trunc, truncl): In C++, define a namespaced alias symbol.
19513         * modules/math (Depends-on): Add c++defs.
19514         (Makefile.am): Update math.h rule.
19515
19516         locale: Avoid #define replacements in C++ mode.
19517         * lib/locale.in.h: Include c++defs.h.
19518         (duplocale): In C++, define a namespaced alias symbol.
19519         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19520         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19521         * modules/locale (Depends-on): Add c++defs.
19522         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19523
19524         langinfo: Avoid #define replacements in C++ mode.
19525         * lib/langinfo.in.h: Include c++defs.h.
19526         (nl_langinfo): In C++, define a namespaced alias symbol.
19527         * modules/langinfo (Depends-on): Add c++defs.
19528         (Makefile.am): Update langinfo.h rule.
19529
19530         iconv-h: Avoid #define replacements in C++ mode.
19531         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19532         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19533         symbol.
19534         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19535         whenever iconv is present.
19536         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19537         (Makefile.am): Update iconv.h rule.
19538
19539         glob: Avoid #define replacements in C++ mode.
19540         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19541         (_gl_glob_errfunc_fn): New type.
19542         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19543         symbol.
19544         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19545         (Makefile.am): Update glob.h rule.
19546
19547         fcntl-h: Avoid #define replacements in C++ mode.
19548         * lib/fcntl.in.h: Include c++defs.h.
19549         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19550         * modules/fcntl-h (Depends-on): Add c++defs.
19551         (Makefile.am): Update fcntl.h rule.
19552
19553         dirent: Avoid #define replacements in C++ mode.
19554         * lib/dirent.in.h: Include c++defs.h.
19555         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19556         namespaced alias symbol.
19557         (dirfd): Update declaration.
19558         * modules/dirent (Depends-on): Add c++defs.
19559         (Makefile.am): Update dirent.h rule.
19560
19561         ctype: Make it usable in C++ code.
19562         * lib/ctype.in.h: Include c++defs.h.
19563         (isblank): Declare as extern "C".
19564         * modules/ctype (Depends-on): Add c++defs.
19565         (Makefile.am): Update ctype.h rule.
19566
19567         New module 'c++defs'.
19568         * modules/c++defs: New file.
19569         * build-aux/c++defs.h: New file.
19570         Reported by John W. Eaton <jwe@gnu.org>.
19571
19572 2010-03-07  Bruno Haible  <bruno@clisp.org>
19573
19574         logb: Provide missing declaration for Cygwin.
19575         * lib/math.in.h (logb): New declaration.
19576         * m4/logb.m4: New file.
19577         * modules/logb (Files): Add m4/logb.m4.
19578         (Depends-on): Add math.
19579         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19580         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19582         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19583         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19584
19585 2010-03-07  Bruno Haible  <bruno@clisp.org>
19586
19587         Fix test-cond link error.
19588         * tests/test-cond.c: Include <stdio.h>.
19589
19590 2010-03-07  Bruno Haible  <bruno@clisp.org>
19591
19592         Fix test-dirent-safer link error.
19593         * modules/dirent-safer-tests (Makefile.am): Define
19594         test_dirent_safer_LDADD.
19595
19596 2010-03-07  Bruno Haible  <bruno@clisp.org>
19597
19598         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19599         among default module list.
19600
19601 2010-03-07  Bruno Haible  <bruno@clisp.org>
19602
19603         Fix link error on platforms with GNU libiconv.
19604         * modules/unistr/u8-strcoll-tests (Makefile): Define
19605         test_u8_strcoll_LDADD.
19606         * modules/unistr/u16-strcoll-tests (Makefile): Define
19607         test_u16_strcoll_LDADD.
19608         * modules/unistr/u32-strcoll-tests (Makefile): Define
19609         test_u32_strcoll_LDADD.
19610
19611 2010-03-07  Bruno Haible  <bruno@clisp.org>
19612
19613         Use POSIX declarations for socket functions.
19614         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19615         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19616         rpl_sendto): Change declaration to match POSIX.
19617         * lib/connect.c (rpl_connect): Likewise.
19618         * lib/accept.c (rpl_accept): Likewise.
19619         * lib/bind.c (rpl_bind): Likewise.
19620         * lib/getpeername.c (rpl_getpeername): Likewise.
19621         * lib/getsockname.c (rpl_getsockname): Likewise.
19622         * lib/recv.c (rpl_recv): Likewise.
19623         * lib/send.c (rpl_send): Likewise.
19624         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19625         * lib/sendto.c (rpl_sendto): Likewise.
19626
19627 2010-03-06  Bruno Haible  <bruno@clisp.org>
19628
19629         Clarify access, euidaccess, faccessat.
19630         * doc/posix-functions/faccessat.texi: Mention security problem under
19631         "Other problems", not "Portability problems".
19632         * doc/posix-functions/access.texi: Likewise. Mention a related security
19633         problem.
19634         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19635         * lib/euidaccess.c: Add comments about platforms.
19636         * lib/unistd.in.h (access, euidaccess): Add warnings.
19637
19638 2010-03-07  Bruno Haible  <bruno@clisp.org>
19639
19640         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19641         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19642         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19643         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19644         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19645         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19646         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19647         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19648         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19649         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19650         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19651         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19652         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19653         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19654         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19655         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19656         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19657         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19658         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19659         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19660         Likewise.
19661         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19662         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19663         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19664         Likewise.
19665         * tests/test-spawn.c (main): Make it work when
19666         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19667
19668 2010-03-07  Bruno Haible  <bruno@clisp.org>
19669
19670         Fix incorrect Makefile.am generation in German locale.
19671         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19672         Execute sed command with character range in C locale.
19673
19674 2010-03-06  Bruno Haible  <bruno@clisp.org>
19675
19676         Tests for module 'iconv-h'.
19677         * modules/iconv-h-tests: New file.
19678         * tests/test-iconv-h.c: New file.
19679
19680         New module 'iconv-h'.
19681         * modules/iconv-h: New file.
19682         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19683         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19684         (configure.ac): Remove gl_ICONV_H.
19685         (Makefile.am): Remove rule for iconv.h.
19686
19687 2010-03-06  Bruno Haible  <bruno@clisp.org>
19688
19689         More consistent naming of *.m4 files.
19690         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19691         * modules/wctype (Files): Update.
19692
19693         More consistent naming of *.m4 files.
19694         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19695         * modules/wchar (Files): Update.
19696
19697 2010-03-06  Jim Meyering  <meyering@redhat.com>
19698
19699         euidaccess: relax license to LGPLv2+
19700         * modules/euidaccess (License): Relax to LGPLv2+.
19701
19702 2010-03-06  Bruno Haible  <bruno@clisp.org>
19703
19704         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19705         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19706         (Makefile.am): Augment lib_SOURCES instead.
19707
19708 2010-03-04  Jim Meyering  <meyering@redhat.com>
19709
19710         utime: remove obsolete module
19711         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19712         unnecessary for years, and has been marked as obsolete for 10 months.
19713         * modules/utime: Remove file.
19714         * lib/utime.c: Remove file.
19715         * m4/utime.m4: Remove file.
19716         * m4/utimes-null.m4: Remove file.
19717         * doc/posix-functions/utime.texi (utime): Remove reference to
19718         the module.  Move the sole "fixed by gnulib" item into the
19719         "problems not fixed by Gnulib" list.
19720         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19721
19722 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19723
19724         * modules/exit (License): Relax license to LGPLv2+.
19725         (Status): Mark as obsolete.
19726         * NEWS: Mention deprecated 'exit' module.
19727         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19728         of now obsolete 'exit'.
19729
19730 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19731
19732         fts-lgpl: remove unused module
19733         * modules/fts-lgpl: Remove.
19734         * MODULES.html.sh (func_all_modules): Adjust.
19735         * check-module (find_included_lib_files): Adjust.
19736         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19737
19738 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19739
19740         copy-acl: enhance Solaris ACL error handling
19741         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19742         * lib/set-mode-acl.c (qset_acl): Likewise.
19743
19744 2010-03-02  Bruno Haible  <bruno@clisp.org>
19745
19746         spawn: Don't override the system defined values on FreeBSD 8.
19747         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19748         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19749         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19750         if HAVE_POSIX_SPAWN is 1.
19751         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19752
19753 2010-03-01  Bruno Haible  <bruno@clisp.org>
19754
19755         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19756         regarding Automake.
19757
19758 2010-02-25  Bruno Haible  <bruno@clisp.org>
19759
19760         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19761         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19762         setting, not afterwards.
19763         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19764
19765 2010-02-24  Eric Blake  <eblake@redhat.com>
19766
19767         bootstrap, git-version-gen: use timestamp
19768         * build-aux/git-version-gen (scriptversion): Force UTC.
19769         * build-aux/bootstrap (scriptversion): New variable.
19770
19771         bootstrap: allow older git
19772         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19773         older than 1.6.4.  Requested by the libvirt project.
19774
19775 2010-02-23  Eric Blake  <eblake@redhat.com>
19776
19777         warn-on-use: work with old autoconf
19778         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19779         AS_VAR semantics of autoconf 2.60.
19780         Reported by Bruno Haible.
19781
19782         bootstrap: improve some comments
19783         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19784         clarification comments.
19785
19786         gettimeofday: provide correct function
19787         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19788         when replacement is declared, otherwise provide gettimeofday.
19789         Reported by Michael Goffioul.
19790
19791 2010-02-23  Jim Meyering  <meyering@redhat.com>
19792
19793         lib-ignore: relax license to "unlimited", not LGPLv2+
19794         * modules/lib-ignore (License): Relax to "unlimited".
19795
19796 2010-02-23  Jim Meyering  <meyering@redhat.com>
19797
19798         lib-ignore: relax license to LGPLv2+
19799         * modules/lib-ignore (License): Relax to LGPLv2+.
19800
19801 2010-02-22  Eric Blake  <eblake@redhat.com>
19802
19803         lseek: avoid bash 3.2 broken pipe bug
19804         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19805         warning from bash 3.2.
19806         Reported by Ben Pfaff, with analysis from Bruno Haible.
19807
19808         bootstrap: support non-FSF copyright holder
19809         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19810         bootstrap.conf override of COPYRIGHT_HOLDER.
19811         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19812
19813         bootstrap: interoperate with gettext 0.14.1
19814         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19815
19816         bootstrap: allow for alternate submodule location
19817         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19818         hardcoding submodule location.
19819         (gnulib_mk): Allow direct use of Makefile.am.
19820
19821         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19822         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19823         rather than reconfiguring where the submodule points.
19824
19825         gettimeofday: restore support for platforms that lack function
19826         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19827         replacement if function is missing.
19828         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19829         * modules/sys_time (Makefile.am): Substitute it.
19830         * lib/sys_time.in.h (gettimeofday): Check it.
19831         Reported by Michael Goffioul.
19832
19833 2010-02-21  Bruno Haible  <bruno@clisp.org>
19834
19835         * lib/stdio.in.h (obstack_printf): Fix typo.
19836
19837 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19838
19839         vc-list-files: use bzr ls's -R option
19840         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19841         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19842
19843 2010-02-21  Jim Meyering  <meyering@redhat.com>
19844
19845         init.sh: fix EXEEXT shims to work also for names like test-prog
19846         * tests/init.sh: Re-exec a better shell, when needed.
19847         If the current shell lacks support for posix $(...), an init.sh-using
19848         test will now try to find a shell that supports that.  If EXEEXT is
19849         nonempty, we also require support for hyphen-in-alias-name and shell
19850         substitutions like ${var#glob}.  Failure to find such a shell results
19851         in a skipped test.
19852
19853 2010-02-21  Bruno Haible  <bruno@clisp.org>
19854
19855         Really work around around "broken pipe" error message from bash 3.2.
19856         * gnulib-tool (func_reset_sigpipe): Remove function.
19857         (echo): In bash 3.2, define to a function that uses printf.
19858         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19859
19860 2010-02-20  Bruno Haible  <bruno@clisp.org>
19861
19862         Restore support for automake 1.9.6 with autoconf 2.61.
19863         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19864         Reported by James Youngman <jay@gnu.org>.
19865
19866 2010-02-20  Bruno Haible  <bruno@clisp.org>
19867
19868         Improve *printf warning condition.
19869         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19870         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19871         and the function is overridden due to SIGPIPE emulation.
19872
19873 2010-02-20  Bruno Haible  <bruno@clisp.org>
19874
19875         * lib/stdio.in.h: Tweak comments.
19876
19877 2010-02-19  Bruno Haible  <bruno@clisp.org>
19878
19879         Make it easier to find modules. New gnulib-tool option '--find'.
19880         * gnulib-tool: New option --find.
19881         (func_usage): Document it.
19882         (func_sanitize_modulelist): New function, extracted from
19883         func_all_modules.
19884         (func_all_modules): Invoke it.
19885         * doc/gnulib-tool.texi (Which modules?): New node.
19886
19887 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19888
19889         * lib/sys_select.in.h: Provide select replacement even if
19890         sys/select.h exists on a system, for Interix.
19891
19892 2010-02-18  Jim Meyering  <meyering@redhat.com>
19893
19894         init.sh: don't use $(...) just yet
19895         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19896         to accommodate e.g., Solaris' /bin/sh.
19897
19898 2010-02-17  Bruno Haible  <bruno@clisp.org>
19899
19900         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19901         Reported by Ludovic Courtès <ludo@gnu.org>.
19902
19903 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19904
19905         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19906         linking with -lintl.
19907
19908 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19909
19910         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19911         if not provided by the system's netdb.h.  Reported by
19912         ludo@gnu.org (Ludovic Courtès).
19913
19914 2010-02-15  Jim Meyering  <meyering@redhat.com>
19915
19916         init.sh: improve portability and efficiency
19917         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19918         "dummy" in a for loop.
19919         Use '!', not '^' to select the complement of a character set used
19920         in a "case" statement.
19921         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19922         Suggestions from Eric Blake.
19923
19924         init.sh: automatically accommodate programs with the .exe suffix
19925         Automatically arrange for an invocation of "prog" to execute the
19926         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19927         may use the simpler "prog", yet still work when built on a system
19928         that requires specifying the added suffix.
19929         Do this by constructing a function named "prog" that invokes
19930         "prog.exe" for each .exe file in selected directories.
19931         * tests/init.sh (find_exe_basenames_): New function.
19932         (create_exe_shim_functions_): New function.
19933         (path_prepend_): Use it.
19934
19935         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19936         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19937         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19938
19939 2010-02-14  Jim Meyering  <meyering@redhat.com>
19940
19941         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19942         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19943         (sc_prohibit_hash_pjw_without_use): New rule.
19944
19945         maint.mk: allow the default upload destination dir to be overridden
19946         * top/maint.mk (upload_dest_dir_): Define with a default that
19947         preserves the status quo.
19948         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19949         Reported by Peter Simons.
19950
19951         maint.mk: prohibit inclusion of "hash.h" without_use
19952         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19953
19954 2010-02-10  Jim Meyering  <meyering@redhat.com>
19955
19956         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19957         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19958
19959 2010-02-09  Eric Blake  <ebb9@byu.net>
19960         and Bruno Haible  <bruno@clisp.org>
19961
19962         obstack-printf-posix: ensure declaration
19963         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19964         extracted from gl_FUNC_OBSTACK_PRINTF.
19965         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19966         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19967         Likewise.
19968         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19969         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19970         0.
19971
19972 2010-02-08  Bruno Haible  <bruno@clisp.org>
19973
19974         gnulib-tool: Fix typo in 2010-02-07 commit.
19975         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19976         Reported by Eric Blake.
19977
19978 2010-02-07  Bruno Haible  <bruno@clisp.org>
19979
19980         gnulib-tool: Fix up caching patches.
19981         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19982         option --no-cache. Use associative arrays when supported by the shell.
19983         (sed_comments): New variable.
19984         (modcache): Renamed from do_cache.
19985         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19986         abbreviate unnecessarily.
19987         (have_associative): New variable.
19988         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19989         way also for ksh and zsh.
19990         (func_init_sed_convert_to_cache_statements): New function, extracted
19991         from func_cache_lookup_module. Add support for associative arrays.
19992         Don't set the c_MODULE_cached variable here. Ignore all lines before
19993         the first field header. Remove only the final newline, not all trailing
19994         newlines. Support empty fields correctly. Limit the use of 'eval' to
19995         assignments.
19996         (func_get_description, func_get_status, func_get_notice,
19997         func_get_applicability, func_get_filelist, func_get_dependencies,
19998         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19999         func_get_automake_snippet, func_get_include_directive,
20000         func_get_link_directive, func_get_license, func_get_maintainer):
20001         Update documentation. List the unoptimized code first. Add support for
20002         associative arrays. Limit the use of 'eval' to assignments.
20003         (func_get_applicability): Undo stylistic pessimisations.
20004         (func_get_automake_snippet, func_get_include_directive): Reduce code
20005         duplication.
20006         (func_modules_transitive_closure, func_modules_add_dummy,
20007         func_modules_notice, func_modules_to_filelist, func_add_file,
20008         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20009         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20010         func_create_testdir, func_create_megatestdir): Update documentation.
20011
20012 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20013
20014         * gnulib-tool (func_cache_lookup_module): Store the module name
20015         belonging to the cache variable; error out if two different
20016         module names map to the same cache variable name.
20017
20018 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20019
20020         gnulib-tool: Make caching optional.
20021         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20022         Update matching short versions of --no-changelog.
20023         (func_usage): Update.
20024         (sed_extract_cache_prog): Renamed from ...
20025         (sed_extract_prog): ... this; revert to old extraction script.
20026         (func_get_description, func_get_status)
20027         (func_get_notice, func_get_applicability, func_get_filelist)
20028         (func_get_dependencies, func_get_autoconf_early_snippet)
20029         (func_get_autoconf_snippet, func_get_automake_snippet)
20030         (func_get_include_directive, func_get_link_directive)
20031         (func_get_license, func_get_maintainer): If $do_cache is false,
20032         use old, non-caching extraction scripts.
20033         Suggestion by Bruno Haible.
20034
20035 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20036
20037         gnulib-tool: cache module metainformation.
20038         * gnulib-tool (sed_extract_prog): Match newline before each
20039         header, and rewrite header to a shell variable suffix.
20040         (func_cache_var, func_cache_lookup_module): New functions,
20041         to turn a module name into a cache variable prefix, and to
20042         look up and cache module metainformation.
20043         (func_get_description, func_get_status)
20044         (func_get_notice, func_get_applicability, func_get_filelist)
20045         (func_get_dependencies, func_get_autoconf_early_snippet)
20046         (func_get_autoconf_snippet, func_get_automake_snippet)
20047         (func_get_include_directive, func_get_link_directive)
20048         (func_get_license, func_get_maintainer): Use
20049         func_cache_lookup_module.
20050
20051 2010-02-07  Bruno Haible  <bruno@clisp.org>
20052
20053         fnctl: Fix missing dependency.
20054         * modules/fcntl (Depends-on): Add getdtablesize.
20055         Reported by John W. Eaton <jwe@gnu.org>.
20056
20057 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20058
20059         Argp: fix recognition of short alias options.
20060
20061         * lib/argp-parse.c (convert_options): Fix improper use of
20062         `|' between character values.
20063         * tests/test-argp.c (group1_option): New alias option
20064         --read (-r).
20065         (group1_parser): Special handling for 'r'.
20066         (test15): New test case.
20067         (test_fun): Add test15.
20068         * tests/test-argp-2.sh: Update expected --help and --usage
20069         outputs.
20070
20071 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20072
20073         * tests/test-argp.c: Fix indentation.
20074
20075 2010-02-04  Eric Blake  <ebb9@byu.net>
20076
20077         gettimeofday: expose type of second argument
20078         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20079         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20080         * tests/test-gettimeofday.c: Use it to silence warning.
20081         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20082         the issue.
20083
20084 2010-02-03  Jim Meyering  <meyering@redhat.com>
20085
20086         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20087         * lib/regcomp.c (TYPE_SIGNED): Define.
20088         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20089
20090         regcomp.c: avoid a new -Wshadow warning
20091         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20092
20093 2010-02-01  Jim Meyering  <meyering@redhat.com>
20094
20095         removing useless parentheses in cpp #define directives
20096         For motivation, see commit c0221df4, "define STREQ(a,b)
20097         consistently, removing useless parentheses"
20098         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20099         * lib/mountlist.c (MNT_IGNORE): Likewise.
20100         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20101
20102 2010-02-01  Eric Blake  <ebb9@byu.net>
20103
20104         sys_time: use link-warning
20105         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20106         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20107         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20108         * modules/sys_time (Depends-on): Add warn-on-use.
20109         (Makefile.am): Always build replacement.
20110         (configure.ac): Update substitutions.
20111         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20112         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20113         bother with SYS_TIME_H.
20114         * modules/gettimeofday (configure.ac): Declare indicator.
20115         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20116         in use.
20117
20118         closein-tests: silence compiler warning
20119         * tests/test-closein.c (main): Ignore fread result.
20120         * modules/closein-tests (Depends-on): Add ignore-value.
20121
20122         tests: silence warning about system return
20123         * tests/test-areadlink-with-size.c (main): Ignore system result.
20124         * tests/test-areadlink.c (main): Likewise.
20125         * tests/test-areadlinkat-with-size.c (main): Likewise.
20126         * tests/test-areadlinkat.c (main): Likewise.
20127         * tests/test-canonicalize-lgpl.c (main): Likewise.
20128         * tests/test-canonicalize.c (main): Likewise.
20129         * tests/test-chown.c (main): Likewise.
20130         * tests/test-fchownat.c (main): Likewise.
20131         * tests/test-fdutimensat.c (main): Likewise.
20132         * tests/test-fstatat.c (main): Likewise.
20133         * tests/test-futimens.c (main): Likewise.
20134         * tests/test-lchown.c (main): Likewise.
20135         * tests/test-link.c (main): Likewise.
20136         * tests/test-linkat.c (main): Likewise.
20137         * tests/test-lstat.c (main): Likewise.
20138         * tests/test-mkdir.c (main): Likewise.
20139         * tests/test-mkdirat.c (main): Likewise.
20140         * tests/test-mkfifo.c (main): Likewise.
20141         * tests/test-mkfifoat.c (main): Likewise.
20142         * tests/test-mknod.c (main): Likewise.
20143         * tests/test-readlink.c (main): Likewise.
20144         * tests/test-remove.c (main): Likewise.
20145         * tests/test-rename.c (main): Likewise.
20146         * tests/test-renameat.c (main): Likewise.
20147         * tests/test-rmdir.c (main): Likewise.
20148         * tests/test-symlink.c (main): Likewise.
20149         * tests/test-symlinkat.c (main): Likewise.
20150         * tests/test-unlink.c (main): Likewise.
20151         * tests/test-unlinkat.c (main): Likewise.
20152         * tests/test-utimens.c (main): Likewise.
20153         * tests/test-utimensat.c (main): Likewise.
20154         * modules/areadlink-tests (Depends-on): Add ignore-value.
20155         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20156         * modules/areadlinkat-tests (Depends-on): Likewise.
20157         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20158         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20159         * modules/canonicalize-tests (Depends-on): Likewise.
20160         * modules/chown-tests (Depends-on): Likewise.
20161         * modules/fdutimensat-tests (Depends-on): Likewise.
20162         * modules/futimens-tests (Depends-on): Likewise.
20163         * modules/lchown-tests (Depends-on): Likewise.
20164         * modules/link-tests (Depends-on): Likewise.
20165         * modules/linkat-tests (Depends-on): Likewise.
20166         * modules/lstat-tests (Depends-on): Likewise.
20167         * modules/mkdir-tests (Depends-on): Likewise.
20168         * modules/mkfifo-tests (Depends-on): Likewise.
20169         * modules/mkfifoat-tests (Depends-on): Likewise.
20170         * modules/mknod-tests (Depends-on): Likewise.
20171         * modules/openat-tests (Depends-on): Likewise.
20172         * modules/readlink-tests (Depends-on): Likewise.
20173         * modules/remove-tests (Depends-on): Likewise.
20174         * modules/rename-tests (Depends-on): Likewise.
20175         * modules/renameat-tests (Depends-on): Likewise.
20176         * modules/rmdir-tests (Depends-on): Likewise.
20177         * modules/symlink-tests (Depends-on): Likewise.
20178         * modules/symlinkat-tests (Depends-on): Likewise.
20179         * modules/unlink-tests (Depends-on): Likewise.
20180         * modules/utimens-tests (Depends-on): Likewise.
20181         * modules/utimensat-tests (Depends-on): Likewise.
20182
20183 2010-01-31  Bruno Haible  <bruno@clisp.org>
20184
20185         Perform the same test for many <math.h> functions.
20186         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20187         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20188         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20189         of gl_MATHFUNC.
20190         * modules/acos (configure.ac): Likewise.
20191         * modules/asin (configure.ac): Likewise.
20192         * modules/atan (configure.ac): Likewise.
20193         * modules/atan2 (configure.ac): Likewise.
20194         * modules/cbrt (configure.ac): Likewise.
20195         * modules/copysign (configure.ac): Likewise.
20196         * modules/cos (configure.ac): Likewise.
20197         * modules/cosh (configure.ac): Likewise.
20198         * modules/erf (configure.ac): Likewise.
20199         * modules/erfc (configure.ac): Likewise.
20200         * modules/exp (configure.ac): Likewise.
20201         * modules/fmod (configure.ac): Likewise.
20202         * modules/hypot (configure.ac): Likewise.
20203         * modules/j0 (configure.ac): Likewise.
20204         * modules/j1 (configure.ac): Likewise.
20205         * modules/jn (configure.ac): Likewise.
20206         * modules/lgamma (configure.ac): Likewise.
20207         * modules/log (configure.ac): Likewise.
20208         * modules/log10 (configure.ac): Likewise.
20209         * modules/log1p (configure.ac): Likewise.
20210         * modules/pow (configure.ac): Likewise.
20211         * modules/remainder (configure.ac): Likewise.
20212         * modules/sin (configure.ac): Likewise.
20213         * modules/sinh (configure.ac): Likewise.
20214         * modules/tan (configure.ac): Likewise.
20215         * modules/tanh (configure.ac): Likewise.
20216         * modules/y0 (configure.ac): Likewise.
20217         * modules/y1 (configure.ac): Likewise.
20218         * modules/yn (configure.ac): Likewise.
20219         Suggested by Paolo Bonzini.
20220
20221 2010-01-31  Bruno Haible  <bruno@clisp.org>
20222
20223         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20224
20225 2010-01-31  Bruno Haible  <bruno@clisp.org>
20226
20227         Work around getdelim() bug on FreeBSD 8.0.
20228         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20229         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20230         not work.
20231         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20232         is 1.
20233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20234         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20235         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20236         a non-zero size.
20237         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20238
20239 2010-01-31  Bruno Haible  <bruno@clisp.org>
20240
20241         Work around getline() bug on FreeBSD 8.0.
20242         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20243         and a non-zero size.
20244         * tests/test-getline.c (main): Likewise.
20245         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20246         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20247
20248 2010-01-28  Eric Blake  <ebb9@byu.net>
20249
20250         regex: fix build failure
20251         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20252         platforms.
20253
20254 2010-01-28  Jim Meyering  <meyering@redhat.com>
20255
20256         regex: do not ignore memory allocation failure
20257         * lib/regex_internal.c (create_cd_newstate): Detect
20258         re_node_set_init_copy failure.   Extracted from glibc commit
20259         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20260
20261         regex: sync more white-space changes from libc
20262         * lib/regex_internal.c: White-space only changes.
20263         * lib/regexec.c: Likewise.
20264
20265         regex: add many uses of __attribute_warn_unused_result__
20266         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20267         * lib/regexec.c: Likewise.
20268         Extracted from a messy glibc commit.
20269
20270         regcomp.c: spelling and merge-artifact from glibc
20271         * lib/regcomp.c: Merge remainder of glibc's
20272         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20273
20274         regcomp.c: sync white-space changes from glibc
20275         * lib/regcomp.c: Merge to accommodate white space
20276         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20277
20278         regcomp.c: do not ignore internal return values
20279         * lib/regcomp.c: Do not ignore internal return values.
20280         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20281         but without its white-space changes and spelling fixes.
20282
20283         regex_internal.h: define __attribute_warn_unused_result__
20284         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20285
20286         maint: add a syntax-check rule to check for vulnerable Makefile.in
20287         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20288
20289 2010-01-27  Jim Meyering  <meyering@redhat.com>
20290
20291         ncftpput-ftp: clean up spaces
20292         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20293         Remove trailing blanks.
20294
20295 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20296
20297         * build-aux/git-version-gen: Fix copyright statement.
20298         * build-aux/gnupload: Likewise.
20299         * tests/test-arcfour.c: Likewise.
20300         * tests/test-arctwo.c: Likewise.
20301         * tests/test-count-one-bits.c: Likewise.
20302         * tests/test-crc.c: Likewise.
20303         * tests/test-des.c: Likewise.
20304         * tests/test-gc-arcfour.c: Likewise.
20305         * tests/test-gc-arctwo.c: Likewise.
20306         * tests/test-gc-des.c: Likewise.
20307         * tests/test-gc-hmac-md5.c: Likewise.
20308         * tests/test-gc-hmac-sha1.c: Likewise.
20309         * tests/test-gc-md2.c: Likewise.
20310         * tests/test-gc-md4.c: Likewise.
20311         * tests/test-gc-md5.c: Likewise.
20312         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20313         * tests/test-gc-rijndael.c: Likewise.
20314         * tests/test-gc-sha1.c: Likewise.
20315         * tests/test-gc.c: Likewise.
20316         * tests/test-gethostname.c: Likewise.
20317         * tests/test-gettimeofday.c: Likewise.
20318         * tests/test-hash.c: Likewise.
20319         * tests/test-hmac-md5.c: Likewise.
20320         * tests/test-hmac-sha1.c: Likewise.
20321         * tests/test-md2.c: Likewise.
20322         * tests/test-md4.c: Likewise.
20323         * tests/test-md5.c: Likewise.
20324         * tests/test-memchr.c: Likewise.
20325         * tests/test-memchr2.c: Likewise.
20326         * tests/test-memcmp.c: Likewise.
20327         * tests/test-memmem.c: Likewise.
20328         * tests/test-memrchr.c: Likewise.
20329         * tests/test-rawmemchr.c: Likewise.
20330         * tests/test-read-file.c: Likewise.
20331         * tests/test-rijndael.c: Likewise.
20332         * tests/test-sockets.c: Likewise.
20333         * tests/test-strchrnul.c: Likewise.
20334         * tests/test-strstr.c: Likewise.
20335         * tests/test-strtod.c: Likewise.
20336         * build-aux/ncftpput-ftp: Likewise.
20337
20338 2010-01-26  Eric Blake  <ebb9@byu.net>
20339
20340         ignore-value: update recommended header name
20341         * modules/ignore-value (Include): Only use <> for headers that
20342         exist in glibc.
20343
20344 2010-01-26  Jim Meyering  <meyering@redhat.com>
20345
20346         test-userspec.c: avoid compiler warnings
20347         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20348         and "initialization discards qualifiers..." warnings.
20349         Put the first "uid" in its own scope, and make char* members "const".
20350
20351 2010-01-25  Bruno Haible  <bruno@clisp.org>
20352
20353         gnulib-tool: Make warning diagnostics consistent.
20354         * gnulib-tool (func_warning): New function.
20355         Use it everywhere where gnulib-tool produces output to stderr and it is
20356         not a fatal error.
20357
20358 2010-01-25  Bruno Haible  <bruno@clisp.org>
20359
20360         Fix test dependencies.
20361         * modules/xstrtol-tests (Depends-on): Add inttypes.
20362         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20363
20364 2010-01-25 Pádraig Brady <P@draigBrady.com>
20365
20366         syntax-check: detect incorrect boolean macro values in config.h
20367         * modules/maintainer-makefile (configure.ac): Parameterize the location
20368         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20369         The logic is from Eric Blake and the location indicated by Jim Meyering.
20370         Note the more natural CONFIG_HEADER name is prohibited by automake
20371         for backwards compatibility reasons.
20372         * top/maint.mk (sc_Wundef_boolean): New rule.
20373
20374 2010-01-25  Jim Meyering  <meyering@redhat.com>
20375
20376         bootstrap: detect MacOS 10.6's shasum, too
20377         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20378         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20379
20380 2010-01-23  Jim Meyering  <meyering@redhat.com>
20381
20382         xstrtoll: new module
20383         * modules/xstrtoll: New file.
20384         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20385         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20386         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20387         ./configure fails if you use this module and lack "long long".
20388         * modules/xstrtoll-tests: New module.
20389         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20390         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20391         new init.sh-based test framework.
20392
20393 2010-01-24  Bruno Haible  <bruno@clisp.org>
20394
20395         Tests for module 'yn'.
20396         * modules/yn-tests: New file.
20397         * tests/test-yn.c: New file.
20398
20399         Tests for module 'y1'.
20400         * modules/y1-tests: New file.
20401         * tests/test-y1.c: New file.
20402
20403         Tests for module 'y0'.
20404         * modules/y0-tests: New file.
20405         * tests/test-y0.c: New file.
20406
20407         Tests for module 'tanh'.
20408         * modules/tanh-tests: New file.
20409         * tests/test-tanh.c: New file.
20410
20411         Tests for module 'tan'.
20412         * modules/tan-tests: New file.
20413         * tests/test-tan.c: New file.
20414
20415         Tests for module 'sqrt'.
20416         * modules/sqrt-tests: New file.
20417         * tests/test-sqrt.c: New file.
20418
20419         Tests for module 'sinh'.
20420         * modules/sinh-tests: New file.
20421         * tests/test-sinh.c: New file.
20422
20423         Tests for module 'sin'.
20424         * modules/sin-tests: New file.
20425         * tests/test-sin.c: New file.
20426
20427         Tests for module 'rint'.
20428         * modules/rint-tests: New file.
20429         * tests/test-rint.c: New file.
20430
20431         Tests for module 'remainder'.
20432         * modules/remainder-tests: New file.
20433         * tests/test-remainder.c: New file.
20434
20435         Tests for module 'pow'.
20436         * modules/pow-tests: New file.
20437         * tests/test-pow.c: New file.
20438
20439         Tests for module 'nextafter'.
20440         * modules/nextafter-tests: New file.
20441         * tests/test-nextafter.c: New file.
20442
20443         Tests for module 'modf'.
20444         * modules/modf-tests: New file.
20445         * tests/test-modf.c: New file.
20446
20447         Tests for module 'logb'.
20448         * modules/logb-tests: New file.
20449         * tests/test-logb.c: New file.
20450
20451         Tests for module 'log1p'.
20452         * modules/log1p-tests: New file.
20453         * tests/test-log1p.c: New file.
20454
20455         Tests for module 'log10'.
20456         * modules/log10-tests: New file.
20457         * tests/test-log10.c: New file.
20458
20459         Tests for module 'log'.
20460         * modules/log-tests: New file.
20461         * tests/test-log.c: New file.
20462
20463         Tests for module 'lgamma'.
20464         * modules/lgamma-tests: New file.
20465         * tests/test-lgamma.c: New file.
20466
20467         Tests for module 'ldexp'.
20468         * modules/ldexp-tests: New file.
20469         * tests/test-ldexp.c: New file.
20470
20471         Tests for module 'jn'.
20472         * modules/jn-tests: New file.
20473         * tests/test-jn.c: New file.
20474
20475         Tests for module 'j1'.
20476         * modules/j1-tests: New file.
20477         * tests/test-j1.c: New file.
20478
20479         Tests for module 'j0'.
20480         * modules/j0-tests: New file.
20481         * tests/test-j0.c: New file.
20482
20483         Tests for module 'hypot'.
20484         * modules/hypot-tests: New file.
20485         * tests/test-hypot.c: New file.
20486
20487         Tests for module 'fmod'.
20488         * modules/fmod-tests: New file.
20489         * tests/test-fmod.c: New file.
20490
20491         Tests for module 'fabs'.
20492         * modules/fabs-tests: New file.
20493         * tests/test-fabs.c: New file.
20494
20495         Tests for module 'exp'.
20496         * modules/exp-tests: New file.
20497         * tests/test-exp.c: New file.
20498
20499         Tests for module 'erfc'.
20500         * modules/erfc-tests: New file.
20501         * tests/test-erfc.c: New file.
20502
20503         Tests for module 'erf'.
20504         * modules/erf-tests: New file.
20505         * tests/test-erf.c: New file.
20506
20507         Tests for module 'cosh'.
20508         * modules/cosh-tests: New file.
20509         * tests/test-cosh.c: New file.
20510
20511         Tests for module 'cos'.
20512         * modules/cos-tests: New file.
20513         * tests/test-cos.c: New file.
20514
20515         Tests for module 'copysign'.
20516         * modules/copysign-tests: New file.
20517         * tests/test-copysign.c: New file.
20518
20519         Tests for module 'cbrt'.
20520         * modules/cbrt-tests: New file.
20521         * tests/test-cbrt.c: New file.
20522
20523         Tests for module 'atan2'.
20524         * modules/atan2-tests: New file.
20525         * tests/test-atan2.c: New file.
20526
20527         Tests for module 'atan'.
20528         * modules/atan-tests: New file.
20529         * tests/test-atan.c: New file.
20530
20531         Tests for module 'asin'.
20532         * modules/asin-tests: New file.
20533         * tests/test-asin.c: New file.
20534
20535         Tests for module 'acos'.
20536         * modules/acos-tests: New file.
20537         * tests/test-acos.c: New file.
20538
20539 2010-01-24  Bruno Haible  <bruno@clisp.org>
20540
20541         Fix tests for common <math.h> functions.
20542         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20543         code snippet that references the function pointer, rather than merely
20544         calling the function. Substitute the FUNC_LIBM variable.
20545         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20546         * modules/acos (configure.ac): Likewise.
20547         * modules/asin (configure.ac): Likewise.
20548         * modules/atan (configure.ac): Likewise.
20549         * modules/atan2 (configure.ac): Likewise.
20550         * modules/cbrt (configure.ac): Likewise.
20551         * modules/copysign (configure.ac): Likewise.
20552         * modules/cos (configure.ac): Likewise.
20553         * modules/cosh (configure.ac): Likewise.
20554         * modules/erf (configure.ac): Likewise.
20555         * modules/erfc (configure.ac): Likewise.
20556         * modules/exp (configure.ac): Likewise.
20557         * modules/fabs (configure.ac): Likewise.
20558         * modules/fmod (configure.ac): Likewise.
20559         * modules/hypot (configure.ac): Likewise.
20560         * modules/j0 (configure.ac): Likewise.
20561         * modules/j1 (configure.ac): Likewise.
20562         * modules/jn (configure.ac): Likewise.
20563         * modules/ldexp (configure.ac): Likewise.
20564         * modules/lgamma (configure.ac): Likewise.
20565         * modules/log (configure.ac): Likewise.
20566         * modules/log10 (configure.ac): Likewise.
20567         * modules/log1p (configure.ac): Likewise.
20568         * modules/logb (configure.ac): Likewise.
20569         * modules/modf (configure.ac): Likewise.
20570         * modules/nextafter (configure.ac): Likewise.
20571         * modules/pow (configure.ac): Likewise.
20572         * modules/remainder (configure.ac): Likewise.
20573         * modules/rint (configure.ac): Likewise.
20574         * modules/sin (configure.ac): Likewise.
20575         * modules/sinh (configure.ac): Likewise.
20576         * modules/tan (configure.ac): Likewise.
20577         * modules/tanh (configure.ac): Likewise.
20578         * modules/y0 (configure.ac): Likewise.
20579         * modules/y1 (configure.ac): Likewise.
20580         * modules/yn (configure.ac): Likewise.
20581
20582 2010-01-24  Bruno Haible  <bruno@clisp.org>
20583
20584         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20585         * tests/test-acosl.c (x): New variable.
20586         (main): Store argument in x and fetch it from x.
20587         * tests/test-asinl.c (x): New variable.
20588         (main): Store argument in x and fetch it from x.
20589         * tests/test-atanl.c (x): New variable.
20590         (main): Store argument in x and fetch it from x.
20591         * tests/test-cosl.c (x): New variable.
20592         (main): Store argument in x and fetch it from x.
20593         * tests/test-expl.c (x): New variable.
20594         (main): Store argument in x and fetch it from x.
20595         * tests/test-logl.c (x): New variable.
20596         (main): Store argument in x and fetch it from x.
20597         * tests/test-sinl.c (x): New variable.
20598         (main): Store argument in x and fetch it from x.
20599         * tests/test-sqrtl.c (x): New variable.
20600         (main): Store argument in x and fetch it from x.
20601         * tests/test-tanl.c (x): New variable.
20602         (main): Store argument in x and fetch it from x.
20603
20604 2010-01-24  Bruno Haible  <bruno@clisp.org>
20605
20606         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20607         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20608         assignments to the initial TESTS_ENVIRONMENT.
20609         * doc/gnulib.texi (Unit test modules): Document it.
20610         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20611         TESTS_ENVIRONMENT.
20612         * modules/btowc-tests (Makefile.am): Likewise.
20613         * modules/c-stack-tests (Makefile.am): Likewise.
20614         * modules/c-strcase-tests (Makefile.am): Likewise.
20615         * modules/copy-file-tests (Makefile.am): Likewise.
20616         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20617         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20618         * modules/mbrtowc-tests (Makefile.am): Likewise.
20619         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20620         * modules/mbscasestr-tests (Makefile.am): Likewise.
20621         * modules/mbschr-tests (Makefile.am): Likewise.
20622         * modules/mbscspn-tests (Makefile.am): Likewise.
20623         * modules/mbsinit-tests (Makefile.am): Likewise.
20624         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20625         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20626         * modules/mbspbrk-tests (Makefile.am): Likewise.
20627         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20628         * modules/mbsrchr-tests (Makefile.am): Likewise.
20629         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20630         * modules/mbsspn-tests (Makefile.am): Likewise.
20631         * modules/mbsstr-tests (Makefile.am): Likewise.
20632         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20633         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20634         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20635         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20636         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20637         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20638         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20639         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20640         * modules/wcrtomb-tests (Makefile.am): Likewise.
20641         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20642         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20643         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20644         assignments from TESTS_ENVIRONMENT.
20645         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20646         augmentation.
20647         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20648         * modules/atexit-tests (Makefile.am): Likewise.
20649         * modules/binary-io-tests (Makefile.am): Likewise.
20650         * modules/closein-tests (Makefile.am): Likewise.
20651         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20652         * modules/exclude-tests (Makefile.am): Likewise.
20653         * modules/fflush-tests (Makefile.am): Likewise.
20654         * modules/fpending-tests (Makefile.am): Likewise.
20655         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20656         * modules/freadahead-tests (Makefile.am): Likewise.
20657         * modules/freadptr-tests (Makefile.am): Likewise.
20658         * modules/freadseek-tests (Makefile.am): Likewise.
20659         * modules/fseek-tests (Makefile.am): Likewise.
20660         * modules/fseeko-tests (Makefile.am): Likewise.
20661         * modules/ftell-tests (Makefile.am): Likewise.
20662         * modules/ftello-tests (Makefile.am): Likewise.
20663         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20664         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20665         * modules/lseek-tests (Makefile.am): Likewise.
20666         * modules/parse-duration-tests (Makefile.am): Likewise.
20667         * modules/perror-tests (Makefile.am): Likewise.
20668         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20669         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20670         * modules/pipe-tests (Makefile.am): Likewise.
20671         * modules/pread-tests (Makefile.am): Likewise.
20672         * modules/printf-posix-tests (Makefile.am): Likewise.
20673         * modules/select-tests (Makefile.am): Likewise.
20674         * modules/sigpipe-tests (Makefile.am): Likewise.
20675         * modules/tsearch-tests (Makefile.am): Likewise.
20676         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20677         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20678         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20679         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20680         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20681         * modules/version-etc-tests (Makefile.am): Likewise.
20682         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20683         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20684         * modules/xalloc-die-tests (Makefile.am): Likewise.
20685         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20686         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20687         * modules/xstrtol-tests (Makefile.am): Likewise.
20688         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20689         * modules/yesno-tests (Makefile.am): Likewise.
20690         Suggested by Jim Meyering.
20691
20692 2010-01-24  Bruno Haible  <bruno@clisp.org>
20693
20694         More documentation.
20695         * doc/gnulib.texi (Writing modules): New chapter.
20696         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20697         the new chapter.
20698
20699 2010-01-24  Jim Meyering  <meyering@redhat.com>
20700
20701         maint.mk: do not prepend "./" after filtering
20702         * top/maint.mk (_prepend_srcdir_prefix): New variable
20703         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20704         "./" when $(srcdir) is ".".
20705
20706         define STREQ(a,b) consistently, removing useless parentheses
20707         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20708         since the only risk is that "a" or "b" contains an unparenthesized
20709         comma, but if either did that, STREQ would have 3 or more arguments.
20710         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20711         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20712         * lib/hash-triple.c (STREQ): Likewise.
20713         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20714         * lib/getugroups.c (STREQ): Likewise.
20715
20716 2010-01-23  Jim Meyering  <meyering@redhat.com>
20717
20718         maint.mk: fix syntax-check in a non-srcdir build directory
20719         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20720         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20721
20722 2010-01-22  Jim Meyering  <meyering@redhat.com>
20723
20724         userspec: add unit tests
20725         * tests/test-userspec.c: New file.
20726         * modules/userspec-tests: Likewise.
20727
20728 2010-01-21  Jim Meyering  <meyering@redhat.com>
20729
20730         maint.mk: handle source file names containing "." robustly
20731         * top/maint.mk (_dot_escaped_srcdir): Define.
20732         (VC_LIST): Use it in LHS of sed substitution.
20733
20734 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20735
20736         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20737         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20738         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20739         from a non-srcdir build.
20740
20741 2010-01-20  Eric Blake  <ebb9@byu.net>
20742
20743         warn-on-use: use instead of link-warning
20744         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20745         * modules/unistd (Depends-on, Makefile.am): Likewise.
20746         * modules/arpa_inet (Depends-on): Replace link-warning with
20747         warn-on-use.
20748         (Makefile.am): Update rules accordingly.
20749         * modules/ctype (Depends-on, Makefile.am): Likewise.
20750         * modules/dirent (Depends-on, Makefile.am): Likewise.
20751         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20752         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20753         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20754         * modules/locale (Depends-on, Makefile.am): Likewise.
20755         * modules/math (Depends-on, Makefile.am): Likewise.
20756         * modules/search (Depends-on, Makefile.am): Likewise.
20757         * modules/signal (Depends-on, Makefile.am): Likewise.
20758         * modules/spawn (Depends-on, Makefile.am): Likewise.
20759         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20760         * modules/string (Depends-on, Makefile.am): Likewise.
20761         * modules/strings (Depends-on, Makefile.am): Likewise.
20762         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20763         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20764         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20765         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20766         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20767         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20768         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20769         * modules/wchar (Depends-on, Makefile.am): Likewise.
20770         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20771         should be poisoned.
20772         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20773         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20774         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20775         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20776         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20777         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20778         * m4/math_h.m4 (gl_MATH_H): Likewise.
20779         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20780         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20781         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20782         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20783         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20784         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20785         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20786         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20787         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20788         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20789         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20790         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20791         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20792         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20793         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20794         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20795         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20796         GL_LINK_WARNING.
20797         * lib/ctype.in.h: Likewise.
20798         * lib/dirent.in.h: Likewise.
20799         * lib/fcntl.in.h: Likewise.
20800         * lib/inttypes.in.h: Likewise.
20801         * lib/langinfo.in.h: Likewise.
20802         * lib/locale.in.h: Likewise.
20803         * lib/math.in.h: Likewise.
20804         * lib/search.in.h: Likewise.
20805         * lib/signal.in.h: Likewise.
20806         * lib/spawn.in.h: Likewise.
20807         * lib/stdio.in.h: Likewise.
20808         * lib/stdlib.in.h: Likewise.
20809         * lib/string.in.h: Likewise.
20810         * lib/strings.in.h: Likewise.
20811         * lib/sys_file.in.h: Likewise.
20812         * lib/sys_ioctl.in.h: Likewise.
20813         * lib/sys_select.in.h: Likewise.
20814         * lib/sys_socket.in.h: Likewise.
20815         * lib/sys_stat.in.h: Likewise.
20816         * lib/sys_times.in.h: Likewise.
20817         * lib/sys_utsname.in.h: Likewise.
20818         * lib/unistd.in.h: Likewise.
20819         * lib/wchar.in.h: Likewise.
20820
20821 2010-01-20  Bruno Haible  <bruno@clisp.org>
20822
20823         Avoid duplicate -lm.
20824         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20825         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20826         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20827         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20828         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20829         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20830         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20831         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20832         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20833         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20834         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20835         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20836         Reported by Paolo Bonzini.
20837
20838 2010-01-19  Bruno Haible  <bruno@clisp.org>
20839
20840         langinfo, nl_langinfo: Relicense under LGPLv2+.
20841         * modules/langinfo (License): Change to LGPLv2+.
20842         * modules/nl_langinfo (License): Likewise.
20843         Patch by David Lutterkort <lutter@redhat.com>.
20844
20845 2010-01-19  Bruno Haible  <bruno@clisp.org>
20846
20847         Avoid compilation error with cc on OSF/1 5.1.
20848         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20849         statement, not before.
20850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20851
20852 2010-01-18  Bruno Haible  <bruno@clisp.org>
20853
20854         Avoid a link error due to the __printf__ symbol.
20855         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20856         and 2.6.x.
20857         (__format__, __printf__): Remove definitions.
20858         * lib/argp-fmtstream.h: Likewise.
20859         * lib/argp.h: Likewise.
20860         * lib/error.h: Likewise.
20861         * lib/vasnprintf.h: Likewise.
20862         * lib/xprintf.h: Likewise.
20863         * lib/xvasprintf.h: Likewise.
20864         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20865
20866 2010-01-18  Bruno Haible  <bruno@clisp.org>
20867
20868         Tests for module 'tanl'.
20869         * modules/tanl-tests: New file.
20870         * tests/test-tanl.c: New file.
20871
20872         Tests for module 'sqrtl'.
20873         * modules/sqrtl-tests: New file.
20874         * tests/test-sqrtl.c: New file.
20875
20876         Tests for module 'sinl'.
20877         * modules/sinl-tests: New file.
20878         * tests/test-sinl.c: New file.
20879
20880         Tests for module 'logl'.
20881         * modules/logl-tests: New file.
20882         * tests/test-logl.c: New file.
20883
20884         Tests for module 'expl'.
20885         * modules/expl-tests: New file.
20886         * tests/test-expl.c: New file.
20887
20888         Tests for module 'cosl'.
20889         * modules/cosl-tests: New file.
20890         * tests/test-cosl.c: New file.
20891
20892         Tests for module 'atanl'.
20893         * modules/atanl-tests: New file.
20894         * tests/test-atanl.c: New file.
20895
20896         Tests for module 'asinl'.
20897         * modules/asinl-tests: New file.
20898         * tests/test-asinl.c: New file.
20899
20900         Tests for module 'acosl'.
20901         * modules/acosl-tests: New file.
20902         * tests/test-acosl.c: New file.
20903
20904         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20905         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20906         tanl): Use the standard gnulib idiom.
20907         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20908         * lib/sinl.c: Likewise.
20909         * lib/tanl.c: Don't include trigl.c.
20910         (kernel_tanl): Make static.
20911         * lib/sincosl.c: Include trigl.h first.
20912         * lib/trigl.c: Likewise.
20913         * m4/acosl.m4: New file.
20914         * m4/asinl.m4: New file.
20915         * m4/atanl.m4: New file.
20916         * m4/cosl.m4: New file.
20917         * m4/expl.m4: New file.
20918         * m4/logl.m4: New file.
20919         * m4/sinl.m4: New file.
20920         * m4/sqrtl.m4: New file.
20921         * m4/tanl.m4: New file.
20922         * m4/mathl.m4: Remove file.
20923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20924         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20925         Don't initialize GNULIB_MATHL.
20926         * modules/acosl: New file.
20927         * modules/asinl: New file.
20928         * modules/atanl: New file.
20929         * modules/cosl: New file.
20930         * modules/expl: New file.
20931         * modules/logl: New file.
20932         * modules/sinl: New file.
20933         * modules/sqrtl: New file.
20934         * modules/tanl: New file.
20935         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20936         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20937         substitute GNULIB_MATHL.
20938         * modules/mathl: Rewritten.
20939         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20940         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20941         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20942         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20943         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20944         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20945         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20946         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20947         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20948
20949 2010-01-18  Bruno Haible  <bruno@clisp.org>
20950
20951         sqrt: Make gl_FUNC_SQRT requirable.
20952         * m4/sqrt.m4: New file.
20953         * modules/sqrt (Files): Add it.
20954         (configure.ac): Invoke gl_FUNC_SQRT.
20955
20956 2010-01-18  Bruno Haible  <bruno@clisp.org>
20957
20958         New modules for common <math.h> functions.
20959         * m4/mathfunc.m4: New file.
20960         * modules/acos: New file.
20961         * modules/asin: New file.
20962         * modules/atan: New file.
20963         * modules/atan2: New file.
20964         * modules/cbrt: New file.
20965         * modules/copysign: New file.
20966         * modules/cos: New file.
20967         * modules/cosh: New file.
20968         * modules/erf: New file.
20969         * modules/erfc: New file.
20970         * modules/exp: New file.
20971         * modules/fabs: New file.
20972         * modules/fmod: New file.
20973         * modules/hypot: New file.
20974         * modules/j0: New file.
20975         * modules/j1: New file.
20976         * modules/jn: New file.
20977         * modules/ldexp: New file.
20978         * modules/lgamma: New file.
20979         * modules/log: New file.
20980         * modules/log10: New file.
20981         * modules/log1p: New file.
20982         * modules/logb: New file.
20983         * modules/modf: New file.
20984         * modules/nextafter: New file.
20985         * modules/pow: New file.
20986         * modules/remainder: New file.
20987         * modules/rint: New file.
20988         * modules/sin: New file.
20989         * modules/sinh: New file.
20990         * modules/sqrt: New file.
20991         * modules/tan: New file.
20992         * modules/tanh: New file.
20993         * modules/y0: New file.
20994         * modules/y1: New file.
20995         * modules/yn: New file.
20996         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20997         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20998         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20999         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21000         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21001         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21002         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21003         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21004         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21005         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21006         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21007         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21008         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21009         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21010         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21011         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21012         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21013         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21014         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21015         * doc/posix-functions/log.texi: Mention the 'log' module.
21016         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21017         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21018         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21019         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21020         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21021         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21022         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21023         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21024         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21025         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21026         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21027         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21028         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21029         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21030         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21031         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21032
21033 2010-01-18  Jim Meyering  <meyering@redhat.com>
21034
21035         ignore-value: relax license to LGPLv2+
21036         * modules/ignore-value (License): Relax to LGPLv2+.
21037
21038         getdate: don't leak when TZ contains two or more '"'s
21039         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21040         double quote in TZ after the first one.
21041
21042         readtokens: do not leak internal token_lengths buffer
21043         * lib/readtokens.c (readtokens): Free the local, lengths,
21044         when the supplied "token_lengths" parameter is NULL.
21045
21046 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21047
21048         Fix a couple of missing LIBTHREAD link failures on AIX.
21049         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21050         $(LIBTHREAD).
21051         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21052
21053         Link test-poll against INET_PTON_LIB.
21054         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21055         for inet_pton on Solaris 10.
21056
21057 2010-01-17  Bruno Haible  <bruno@clisp.org>
21058
21059         unistdio/*-sprintf: Fix typo in module description.
21060         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21061         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21062         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21063         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21064         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21065         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21066         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21068
21069 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21070
21071         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21072         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21073         variables in shell case patterns, for AIX and HP-UX ksh.
21074
21075         Split large sed scripts, for HP-UX sed.
21076         * modules/stdio: Split sed scripts around 50 sed commands,
21077         to avoid HP-UX limit of 99 commands, in the near future.
21078         * modules/string: Likewise.
21079         * modules/unistd: Likewise.
21080
21081         gnulib-tool: avoid writing in the current directory.
21082         * gnulib-tool (func_emit_lib_Makefile_am)
21083         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21084         not in the current directory, so concurrent gnulib-tool
21085         instances do not interfere.
21086
21087 2010-01-16  Jim Meyering  <meyering@redhat.com>
21088
21089         doc: update users.txt
21090         * users.txt: Add grep.
21091         (diffutils, gzip): Update URLs.
21092
21093 2010-01-12  Bruno Haible  <bruno@clisp.org>
21094
21095         posix_spawn: Avoid test failure on Cygwin.
21096         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21097         characters.
21098         Reported by Simon Josefsson.
21099
21100 2010-01-12  Bruno Haible  <bruno@clisp.org>
21101
21102         * tests/test-cond.c (main): When skipping the test, show the reason.
21103
21104 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21105
21106         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21107
21108 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21109
21110         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21111         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21112
21113 2010-01-12  Eric Blake  <ebb9@byu.net>
21114
21115         build: guarantee AS_VAR_IF
21116         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21117         (gl_AS_VAR_IF): Move...
21118         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21119         Reported by Simon Josefsson.
21120
21121 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21122
21123         * lib/stdio.in.h: Fix typo.
21124
21125 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21126
21127         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21128         libgpg-error.
21129
21130 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21131
21132         * tests/test-xalloc-die.sh: Use $EXEEXT.
21133
21134 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21135             Bruno Haible  <bruno@clisp.org>
21136
21137         getlogin, getlogin_r: Avoid test failure.
21138         * tests/test-getlogin.c: Include <stdio.h>.
21139         (main): Skip the test when the function fails because stdin is not a
21140         tty.
21141         * tests/test-getlogin_r.c: Include <stdio.h>.
21142         (main): Skip the test when the function fails because stdin is not a
21143         tty.
21144
21145 2010-01-11  Eric Blake  <ebb9@byu.net>
21146
21147         tests: avoid more large file warnings
21148         * tests/test-fflush.c: Avoid warning about ftell use.
21149         * tests/test-fseek.c: Avoid warning about fseek use.
21150
21151 2010-01-10  Bruno Haible  <bruno@clisp.org>
21152
21153         nproc: Work better on Linux when /proc and /sys are not mounted.
21154         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21155         as lower bound when, on glibc/Linux systems,
21156         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21157         Suggested by Pádraig Brady <P@draigbrady.com>.
21158         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21159
21160         nproc: Refactor.
21161         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21162         extracted from num_processors.
21163         (num_processors): Call it.
21164
21165 2010-01-11  Jim Meyering  <meyering@redhat.com>
21166
21167         utimecmp: avoid new warning from upcoming gcc-4.5.0
21168         * lib/utimecmp.c (BILLION): Define using #define rather than an
21169         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21170
21171 2010-01-11  Eric Blake  <ebb9@byu.net>
21172
21173         math: add portability warnings for classification macros
21174         * modules/math (Depends-on): Add warn-on-use.
21175         (Makefile.am): Provide new substitutions.
21176         * m4/math_h.m4 (gl_MATH_H): Require inline.
21177         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21178         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21179         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21180         implement warnings.
21181
21182         unistd: warn on use of environ without module
21183         * modules/unistd (Depends-on): Add warn-on-use.
21184         (Makefile.am): Provide new substitutions.
21185         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21186         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21187
21188         stdio: warn on suspicious uses
21189         * modules/stdio (Depends-on): Add warn-on-use.
21190         (Makefile.am): Provide new substitutions.
21191         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21192         fseeko.
21193         * lib/stdio.in.h (gets): Always warn on use.
21194         (fseek, ftell): Adjust when warnings are issued, and honor
21195         _GL_NO_LARGE_FILES as a way to silence the warning.
21196         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21197         any warning about large file offsets.
21198         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21199         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21200         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21201         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21202         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21203         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21204         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21205         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21206
21207         warn-on-use: new module
21208         * modules/warn-on-use: New file.
21209         * build-aux/warn-on-use.h: Likewise.
21210         * m4/warn-on-use.m4: Likewise.
21211         * MODULES.html.sh (Support for building): Mention it.
21212
21213 2010-01-10  Bruno Haible  <bruno@clisp.org>
21214
21215         Tests for module 'unistr/u32-strdup'.
21216         * modules/unistr/u32-strdup-tests: New file.
21217         * tests/unistr/test-u32-strdup.c: New file.
21218
21219         Tests for module 'unistr/u16-strdup'.
21220         * modules/unistr/u16-strdup-tests: New file.
21221         * tests/unistr/test-u16-strdup.c: New file.
21222
21223         Tests for module 'unistr/u8-strdup'.
21224         * modules/unistr/u8-strdup-tests: New file.
21225         * tests/unistr/test-u8-strdup.c: New file.
21226         * tests/unistr/test-strdup.h: New file.
21227
21228         Tests for module 'unistr/u32-strncmp'.
21229         * modules/unistr/u32-strncmp-tests: New file.
21230         * tests/unistr/test-u32-strncmp.c: New file.
21231
21232         Tests for module 'unistr/u16-strncmp'.
21233         * modules/unistr/u16-strncmp-tests: New file.
21234         * tests/unistr/test-u16-strncmp.c: New file.
21235
21236         Tests for module 'unistr/u8-strncmp'.
21237         * modules/unistr/u8-strncmp-tests: New file.
21238         * tests/unistr/test-u8-strncmp.c: New file.
21239         * tests/unistr/test-strncmp.h: New file.
21240
21241         Tests for module 'unistr/u32-strcoll'.
21242         * modules/unistr/u32-strcoll-tests: New file.
21243         * tests/unistr/test-u32-strcoll.c: New file.
21244
21245         Tests for module 'unistr/u16-strcoll'.
21246         * modules/unistr/u16-strcoll-tests: New file.
21247         * tests/unistr/test-u16-strcoll.c: New file.
21248
21249         Tests for module 'unistr/u8-strcoll'.
21250         * modules/unistr/u8-strcoll-tests: New file.
21251         * tests/unistr/test-u8-strcoll.c: New file.
21252
21253         Tests for module 'unistr/u32-strcmp'.
21254         * modules/unistr/u32-strcmp-tests: New file.
21255         * tests/unistr/test-u32-strcmp.c: New file.
21256         * tests/unistr/test-u32-strcmp.h: New file.
21257
21258         Tests for module 'unistr/u16-strcmp'.
21259         * modules/unistr/u16-strcmp-tests: New file.
21260         * tests/unistr/test-u16-strcmp.c: New file.
21261         * tests/unistr/test-u16-strcmp.h: New file.
21262
21263         Tests for module 'unistr/u8-strcmp'.
21264         * modules/unistr/u8-strcmp-tests: New file.
21265         * tests/unistr/test-u8-strcmp.c: New file.
21266         * tests/unistr/test-u8-strcmp.h: New file.
21267         * tests/unistr/test-strcmp.h: New file.
21268
21269         Tests for module 'unistr/u32-strncat'.
21270         * modules/unistr/u32-strncat-tests: New file.
21271         * tests/unistr/test-u32-strncat.c: New file.
21272
21273         Tests for module 'unistr/u16-strncat'.
21274         * modules/unistr/u16-strncat-tests: New file.
21275         * tests/unistr/test-u16-strncat.c: New file.
21276
21277         Tests for module 'unistr/u8-strncat'.
21278         * modules/unistr/u8-strncat-tests: New file.
21279         * tests/unistr/test-u8-strncat.c: New file.
21280         * tests/unistr/test-strncat.h: New file.
21281
21282         Tests for module 'unistr/u32-strcat'.
21283         * modules/unistr/u32-strcat-tests: New file.
21284         * tests/unistr/test-u32-strcat.c: New file.
21285
21286         Tests for module 'unistr/u16-strcat'.
21287         * modules/unistr/u16-strcat-tests: New file.
21288         * tests/unistr/test-u16-strcat.c: New file.
21289
21290         Tests for module 'unistr/u8-strcat'.
21291         * modules/unistr/u8-strcat-tests: New file.
21292         * tests/unistr/test-u8-strcat.c: New file.
21293         * tests/unistr/test-strcat.h: New file.
21294
21295         Tests for module 'unistr/u32-stpncpy'.
21296         * modules/unistr/u32-stpncpy-tests: New file.
21297         * tests/unistr/test-u32-stpncpy.c: New file.
21298
21299         Tests for module 'unistr/u16-stpncpy'.
21300         * modules/unistr/u16-stpncpy-tests: New file.
21301         * tests/unistr/test-u16-stpncpy.c: New file.
21302
21303         Tests for module 'unistr/u8-stpncpy'.
21304         * modules/unistr/u8-stpncpy-tests: New file.
21305         * tests/unistr/test-u8-stpncpy.c: New file.
21306         * tests/unistr/test-stpncpy.h: New file.
21307
21308         Tests for module 'unistr/u32-strncpy'.
21309         * modules/unistr/u32-strncpy-tests: New file.
21310         * tests/unistr/test-u32-strncpy.c: New file.
21311
21312         Tests for module 'unistr/u16-strncpy'.
21313         * modules/unistr/u16-strncpy-tests: New file.
21314         * tests/unistr/test-u16-strncpy.c: New file.
21315
21316         Tests for module 'unistr/u8-strncpy'.
21317         * modules/unistr/u8-strncpy-tests: New file.
21318         * tests/unistr/test-u8-strncpy.c: New file.
21319         * tests/unistr/test-strncpy.h: New file.
21320
21321         Tests for module 'unistr/u32-stpcpy'.
21322         * modules/unistr/u32-stpcpy-tests: New file.
21323         * tests/unistr/test-u32-stpcpy.c: New file.
21324
21325         Tests for module 'unistr/u16-stpcpy'.
21326         * modules/unistr/u16-stpcpy-tests: New file.
21327         * tests/unistr/test-u16-stpcpy.c: New file.
21328
21329         Tests for module 'unistr/u8-stpcpy'.
21330         * modules/unistr/u8-stpcpy-tests: New file.
21331         * tests/unistr/test-u8-stpcpy.c: New file.
21332         * tests/unistr/test-stpcpy.h: New file.
21333
21334         Tests for module 'unistr/u32-strcpy'.
21335         * modules/unistr/u32-strcpy-tests: New file.
21336         * tests/unistr/test-u32-strcpy.c: New file.
21337
21338         Tests for module 'unistr/u16-strcpy'.
21339         * modules/unistr/u16-strcpy-tests: New file.
21340         * tests/unistr/test-u16-strcpy.c: New file.
21341
21342         Tests for module 'unistr/u8-strcpy'.
21343         * modules/unistr/u8-strcpy-tests: New file.
21344         * tests/unistr/test-u8-strcpy.c: New file.
21345         * tests/unistr/test-strcpy.h: New file.
21346
21347         Tests for module 'unistr/u32-strnlen'.
21348         * modules/unistr/u32-strnlen-tests: New file.
21349         * tests/unistr/test-u32-strnlen.c: New file.
21350
21351         Tests for module 'unistr/u16-strnlen'.
21352         * modules/unistr/u16-strnlen-tests: New file.
21353         * tests/unistr/test-u16-strnlen.c: New file.
21354
21355         Tests for module 'unistr/u8-strnlen'.
21356         * modules/unistr/u8-strnlen-tests: New file.
21357         * tests/unistr/test-u8-strnlen.c: New file.
21358         * tests/unistr/test-strnlen.h: New file.
21359
21360         Tests for module 'unistr/u32-strlen'.
21361         * modules/unistr/u32-strlen-tests: New file.
21362         * tests/unistr/test-u32-strlen.c: New file.
21363
21364         Tests for module 'unistr/u16-strlen'.
21365         * modules/unistr/u16-strlen-tests: New file.
21366         * tests/unistr/test-u16-strlen.c: New file.
21367
21368         Tests for module 'unistr/u8-strlen'.
21369         * modules/unistr/u8-strlen-tests: New file.
21370         * tests/unistr/test-u8-strlen.c: New file.
21371
21372         Tests for module 'unistr/u32-prev'.
21373         * modules/unistr/u32-prev-tests: New file.
21374         * tests/unistr/test-u32-prev.c: New file.
21375
21376         Tests for module 'unistr/u16-prev'.
21377         * modules/unistr/u16-prev-tests: New file.
21378         * tests/unistr/test-u16-prev.c: New file.
21379
21380         Tests for module 'unistr/u8-prev'.
21381         * modules/unistr/u8-prev-tests: New file.
21382         * tests/unistr/test-u8-prev.c: New file.
21383
21384         Tests for module 'unistr/u32-next'.
21385         * modules/unistr/u32-next-tests: New file.
21386         * tests/unistr/test-u32-next.c: New file.
21387
21388         Tests for module 'unistr/u16-next'.
21389         * modules/unistr/u16-next-tests: New file.
21390         * tests/unistr/test-u16-next.c: New file.
21391
21392         Tests for module 'unistr/u8-next'.
21393         * modules/unistr/u8-next-tests: New file.
21394         * tests/unistr/test-u8-next.c: New file.
21395
21396         Tests for module 'unistr/u32-strmbtouc'.
21397         * modules/unistr/u32-strmbtouc-tests: New file.
21398         * tests/unistr/test-u32-strmbtouc.c: New file.
21399
21400         Tests for module 'unistr/u16-strmbtouc'.
21401         * modules/unistr/u16-strmbtouc-tests: New file.
21402         * tests/unistr/test-u16-strmbtouc.c: New file.
21403
21404         Tests for module 'unistr/u8-strmbtouc'.
21405         * modules/unistr/u8-strmbtouc-tests: New file.
21406         * tests/unistr/test-u8-strmbtouc.c: New file.
21407
21408         Tests for module 'unistr/u32-strmblen'.
21409         * modules/unistr/u32-strmblen-tests: New file.
21410         * tests/unistr/test-u32-strmblen.c: New file.
21411
21412         Tests for module 'unistr/u16-strmblen'.
21413         * modules/unistr/u16-strmblen-tests: New file.
21414         * tests/unistr/test-u16-strmblen.c: New file.
21415
21416         Tests for module 'unistr/u8-strmblen'.
21417         * modules/unistr/u8-strmblen-tests: New file.
21418         * tests/unistr/test-u8-strmblen.c: New file.
21419
21420         Tests for module 'unistr/u32-cpy-alloc'.
21421         * modules/unistr/u32-cpy-alloc-tests: New file.
21422         * tests/unistr/test-u32-cpy-alloc.c: New file.
21423
21424         Tests for module 'unistr/u16-cpy-alloc'.
21425         * modules/unistr/u16-cpy-alloc-tests: New file.
21426         * tests/unistr/test-u16-cpy-alloc.c: New file.
21427
21428         Tests for module 'unistr/u8-cpy-alloc'.
21429         * modules/unistr/u8-cpy-alloc-tests: New file.
21430         * tests/unistr/test-u8-cpy-alloc.c: New file.
21431         * tests/unistr/test-cpy-alloc.h: New file.
21432
21433         Tests for module 'unistr/u32-mbsnlen'.
21434         * modules/unistr/u32-mbsnlen-tests: New file.
21435         * tests/unistr/test-u32-mbsnlen.c: New file.
21436
21437         Tests for module 'unistr/u16-mbsnlen'.
21438         * modules/unistr/u16-mbsnlen-tests: New file.
21439         * tests/unistr/test-u16-mbsnlen.c: New file.
21440
21441         Tests for module 'unistr/u8-mbsnlen'.
21442         * modules/unistr/u8-mbsnlen-tests: New file.
21443         * tests/unistr/test-u8-mbsnlen.c: New file.
21444
21445         Tests for module 'unistr/u32-chr'.
21446         * modules/unistr/u32-chr-tests: New file.
21447         * tests/unistr/test-u32-chr.c: New file.
21448
21449         Tests for module 'unistr/u16-chr'.
21450         * modules/unistr/u16-chr-tests: New file.
21451         * tests/unistr/test-u16-chr.c: New file.
21452
21453         Tests for module 'unistr/u8-chr'.
21454         * modules/unistr/u8-chr-tests: New file.
21455         * tests/unistr/test-u8-chr.c: New file.
21456         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21457
21458         Tests for module 'unistr/u32-cmp2'.
21459         * modules/unistr/u32-cmp2-tests: New file.
21460         * tests/unistr/test-u32-cmp2.c: New file.
21461
21462         Tests for module 'unistr/u16-cmp2'.
21463         * modules/unistr/u16-cmp2-tests: New file.
21464         * tests/unistr/test-u16-cmp2.c: New file.
21465
21466         Tests for module 'unistr/u8-cmp2'.
21467         * modules/unistr/u8-cmp2-tests: New file.
21468         * tests/unistr/test-u8-cmp2.c: New file.
21469         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21470
21471         Tests for module 'unistr/u32-cmp'.
21472         * modules/unistr/u32-cmp-tests: New file.
21473         * tests/unistr/test-u32-cmp.c: New file.
21474
21475         Tests for module 'unistr/u16-cmp'.
21476         * modules/unistr/u16-cmp-tests: New file.
21477         * tests/unistr/test-u16-cmp.c: New file.
21478
21479         Tests for module 'unistr/u8-cmp'.
21480         * modules/unistr/u8-cmp-tests: New file.
21481         * tests/unistr/test-u8-cmp.c: New file.
21482         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21483
21484         Tests for module 'unistr/u32-set'.
21485         * modules/unistr/u32-set-tests: New file.
21486         * tests/unistr/test-u32-set.c: New file.
21487
21488         Tests for module 'unistr/u16-set'.
21489         * modules/unistr/u16-set-tests: New file.
21490         * tests/unistr/test-u16-set.c: New file.
21491
21492         Tests for module 'unistr/u8-set'.
21493         * modules/unistr/u8-set-tests: New file.
21494         * tests/unistr/test-u8-set.c: New file.
21495         * tests/unistr/test-set.h: New file.
21496
21497         Tests for module 'unistr/u32-move'.
21498         * modules/unistr/u32-move-tests: New file.
21499         * tests/unistr/test-u32-move.c: New file.
21500
21501         Tests for module 'unistr/u16-move'.
21502         * modules/unistr/u16-move-tests: New file.
21503         * tests/unistr/test-u16-move.c: New file.
21504
21505         Tests for module 'unistr/u8-move'.
21506         * modules/unistr/u8-move-tests: New file.
21507         * tests/unistr/test-u8-move.c: New file.
21508         * tests/unistr/test-move.h: New file.
21509
21510         Tests for module 'unistr/u32-cpy'.
21511         * modules/unistr/u32-cpy-tests: New file.
21512         * tests/unistr/test-u32-cpy.c: New file.
21513
21514         Tests for module 'unistr/u16-cpy'.
21515         * modules/unistr/u16-cpy-tests: New file.
21516         * tests/unistr/test-u16-cpy.c: New file.
21517
21518         Tests for module 'unistr/u8-cpy'.
21519         * modules/unistr/u8-cpy-tests: New file.
21520         * tests/unistr/test-u8-cpy.c: New file.
21521         * tests/unistr/test-cpy.h: New file.
21522
21523 2010-01-09  Bruno Haible  <bruno@clisp.org>
21524
21525         Tests for module 'unistr/u32-uctomb'.
21526         * modules/unistr/u32-uctomb-tests: New file.
21527         * tests/unistr/test-u32-uctomb.c: New file.
21528
21529         Tests for module 'unistr/u16-uctomb'.
21530         * modules/unistr/u16-uctomb-tests: New file.
21531         * tests/unistr/test-u16-uctomb.c: New file.
21532
21533         Tests for module 'unistr/u8-uctomb'.
21534         * modules/unistr/u8-uctomb-tests: New file.
21535         * tests/unistr/test-u8-uctomb.c: New file.
21536
21537         Tests for module 'unistr/u32-mbtoucr'.
21538         * modules/unistr/u32-mbtoucr-tests: New file.
21539         * tests/unistr/test-u32-mbtoucr.c: New file.
21540
21541         Tests for module 'unistr/u16-mbtoucr'.
21542         * modules/unistr/u16-mbtoucr-tests: New file.
21543         * tests/unistr/test-u16-mbtoucr.c: New file.
21544
21545         Tests for module 'unistr/u8-mbtoucr'.
21546         * modules/unistr/u8-mbtoucr-tests: New file.
21547         * tests/unistr/test-u8-mbtoucr.c: New file.
21548
21549         Tests for module 'unistr/u32-mbtouc'.
21550         * modules/unistr/u32-mbtouc-tests: New file.
21551         * tests/unistr/test-u32-mbtouc.c: New file.
21552
21553         Tests for module 'unistr/u16-mbtouc'.
21554         * modules/unistr/u16-mbtouc-tests: New file.
21555         * tests/unistr/test-u16-mbtouc.c: New file.
21556
21557         Tests for module 'unistr/u8-mbtouc'.
21558         * modules/unistr/u8-mbtouc-tests: New file.
21559         * tests/unistr/test-u8-mbtouc.c: New file.
21560
21561         Tests for module 'unistr/u32-mbtouc-unsafe'.
21562         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21563         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21564         * tests/unistr/test-u32-mbtouc.h: New file.
21565
21566         Tests for module 'unistr/u16-mbtouc-unsafe'.
21567         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21568         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21569         * tests/unistr/test-u16-mbtouc.h: New file.
21570
21571         Tests for module 'unistr/u8-mbtouc-unsafe'.
21572         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21573         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21574         * tests/unistr/test-u8-mbtouc.h: New file.
21575
21576         Tests for module 'unistr/u32-mblen'.
21577         * modules/unistr/u32-mblen-tests: New file.
21578         * tests/unistr/test-u32-mblen.c: New file.
21579
21580         Tests for module 'unistr/u16-mblen'.
21581         * modules/unistr/u16-mblen-tests: New file.
21582         * tests/unistr/test-u16-mblen.c: New file.
21583
21584         Tests for module 'unistr/u8-mblen'.
21585         * modules/unistr/u8-mblen-tests: New file.
21586         * tests/unistr/test-u8-mblen.c: New file.
21587
21588         Tests for module 'unistr/u32-to-u16'.
21589         * modules/unistr/u32-to-u16-tests: New file.
21590         * tests/unistr/test-u32-to-u16.c: New file.
21591
21592         Tests for module 'unistr/u32-to-u8'.
21593         * modules/unistr/u32-to-u8-tests: New file.
21594         * tests/unistr/test-u32-to-u8.c: New file.
21595
21596         Tests for module 'unistr/u16-to-u32'.
21597         * modules/unistr/u16-to-u32-tests: New file.
21598         * tests/unistr/test-u16-to-u32.c: New file.
21599
21600         Tests for module 'unistr/u16-to-u8'.
21601         * modules/unistr/u16-to-u8-tests: New file.
21602         * tests/unistr/test-u16-to-u8.c: New file.
21603
21604         Tests for module 'unistr/u8-to-u32'.
21605         * modules/unistr/u8-to-u32-tests: New file.
21606         * tests/unistr/test-u8-to-u32.c: New file.
21607
21608         Tests for module 'unistr/u8-to-u16'.
21609         * modules/unistr/u8-to-u16-tests: New file.
21610         * tests/unistr/test-u8-to-u16.c: New file.
21611
21612         Tests for module 'unistr/u32-check'.
21613         * modules/unistr/u32-check-tests: New file.
21614         * tests/unistr/test-u32-check.c: New file.
21615
21616         Tests for module 'unistr/u16-check'.
21617         * modules/unistr/u16-check-tests: New file.
21618         * tests/unistr/test-u16-check.c: New file.
21619
21620         Tests for module 'unistr/u8-check'.
21621         * modules/unistr/u8-check-tests: New file.
21622         * tests/unistr/test-u8-check.c: New file.
21623
21624         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21625         (category_equals): New function.
21626         (main): Add more tests.
21627         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21628
21629         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21630
21631 2010-01-10  Bruno Haible  <bruno@clisp.org>
21632
21633         unistr/u*-strcoll: Try harder to distinguish different strings.
21634         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21635         compare s1 and s2 to see if they are different.
21636
21637 2010-01-10  Bruno Haible  <bruno@clisp.org>
21638
21639         unistr/u*-stpncpy: Fix the return value.
21640         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21641         description of the return value consistent with stpncpy in glibc.
21642         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21643         written non-NUL unit.
21644
21645 2010-01-10  Bruno Haible  <bruno@clisp.org>
21646
21647         unistr/u*-next: Add missing dependencies.
21648         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21649         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21650         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21651
21652 2010-01-10  Bruno Haible  <bruno@clisp.org>
21653
21654         unistr/u8-mbsnlen: Fix return value for incomplete character.
21655         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21656         u8_mblen.
21657         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21658         Remove unistr/u8-mblen.
21659         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21660         u16_mblen.
21661         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21662         Remove unistr/u16-mblen.
21663
21664 2010-01-10  Bruno Haible  <bruno@clisp.org>
21665
21666         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21667         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21668         Reported by Brian Gough <bjg@gnu.org> and
21669         Chris Clayton <chris2553@googlemail.com> via
21670         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21671
21672 2010-01-09  Bruno Haible  <bruno@clisp.org>
21673
21674         unistr/u16-to-u32: Reject invalid input.
21675         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21676         u16_mbtouc.
21677         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21678         Remove unistr/u16-mbtouc.
21679
21680         unistr/u16-to-u8: Reject invalid input.
21681         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21682         u16_mbtouc.
21683         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21684         Remove unistr/u16-mbtouc.
21685
21686         unistr/u8-to-u32: Reject invalid input.
21687         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21688         u8_mbtouc.
21689         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21690         Remove unistr/u8-mbtouc.
21691
21692         unistr/u8-to-u16: Reject invalid input.
21693         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21694         u8_mbtouc.
21695         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21696         Remove unistr/u8-mbtouc.
21697
21698 2010-01-09  Bruno Haible  <bruno@clisp.org>
21699
21700         Tests for module 'getlogin'.
21701         * modules/getlogin-tests: New file.
21702         * tests/test-getlogin.c: New file.
21703
21704         New module 'getlogin'.
21705         * lib/unistd.in.h (getlogin): New declaration.
21706         * lib/getlogin.c: New file.
21707         * m4/getlogin.m4: New file.
21708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21709         HAVE_GETLOGIN.
21710         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21711         HAVE_GETLOGIN.
21712         * modules/getlogin: New file.
21713         * doc/posix-functions/getlogin.texi: Mention the new module.
21714         Reported by John W. Eaton <jwe@gnu.org>.
21715
21716 2010-01-09  Bruno Haible  <bruno@clisp.org>
21717
21718         getlogin_r: Support for native Windows.
21719         * lib/getlogin_r.c: Include <windows.h>
21720         (getlogin_r): Implement for native Windows.
21721         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21722         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21723         via John W. Eaton <jwe@gnu.org>.
21724
21725 2010-01-09  Bruno Haible  <bruno@clisp.org>
21726
21727         getlogin_r: Small fixes.
21728         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21729         succeeds.
21730         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21731         before testing whether getlogin_r is declared. No need to set
21732         HAVE_DECL_GETLOGIN_R to 1.
21733         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21734
21735 2010-01-09  Bruno Haible  <bruno@clisp.org>
21736
21737         * lib/unistd.in.h (getlogin_r): Add comment.
21738
21739 2010-01-09  Bruno Haible  <bruno@clisp.org>
21740
21741         Tests for module 'getlogin_r'.
21742         * modules/getlogin_r-tests: New file.
21743         * tests/test-getlogin_r.c: New file.
21744
21745 2010-01-09  Jim Meyering  <meyering@redhat.com>
21746
21747         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21748         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21749         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21750
21751 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21752
21753         * lib/dup2.c (rpl_dup2): Improve comment.
21754
21755 2010-01-08  Eric Blake  <ebb9@byu.net>
21756
21757         maint.mk: allow packages to add makefile @@ exceptions
21758         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21759         (sc_makefile_check): Rename...
21760         (sc_makefile_at_at_check): ...to this, and use hook.
21761
21762         dup2: work around mingw bug
21763         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21764         Reported by Simon Josefsson.
21765
21766 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21767
21768         glob: Fix C++ compilation.
21769         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21770         C++.
21771
21772 2010-01-07  Bruno Haible  <bruno@clisp.org>
21773
21774         Fix indentation of wctype.in.h, broken since 2007-01-06.
21775         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21776
21777 2010-01-07  Bruno Haible  <bruno@clisp.org>
21778
21779         mbslen: Avoid collision with system function.
21780         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21781         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21782         * m4/mbslen.m4: New file.
21783         * modules/mbslen (Files): Add it.
21784         (configure.ac): Invoke gl_MBSLEN.
21785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21786         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21787         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21788         via Ian Beckwith <ianb@erislabs.net>.
21789
21790 2010-01-07  Bruno Haible  <bruno@clisp.org>
21791
21792         dirent: Document the last fix.
21793         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21794
21795 2010-01-07  Bruno Haible  <bruno@clisp.org>
21796
21797         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21798         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21799         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21800         va_list are defined.
21801         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21802         Reported by Eric Blake.
21803
21804 2010-01-07  Bruno Haible  <bruno@clisp.org>
21805
21806         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21807         * modules/xlist (Depends-on): Add 'list',
21808         * modules/xoset (Depends-on): Add 'oset'.
21809         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21810
21811 2010-01-07  Bruno Haible  <bruno@clisp.org>
21812
21813         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21814         * doc/posix-functions/strncasecmp.texi: Likewise.
21815
21816 2010-01-07  Bruno Haible  <bruno@clisp.org>
21817
21818         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21819
21820 2010-01-07  John W. Eaton  <jwe@octave.org>
21821
21822         wctype: allow C++ use
21823         * lib/wctype.in.h: Add extern "C" block for C++.
21824
21825 2010-01-06  Eric Blake  <ebb9@byu.net>
21826
21827         maint.mk: detect incorrect GFDL usage
21828         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21829
21830 2010-01-06  Jim Meyering  <meyering@redhat.com>
21831         and Eric Blake  <ebb9@byu.net>
21832
21833         maint.mk: ignore multi-line copyright in NEWS
21834         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21835
21836 2010-01-06  Eric Blake  <ebb9@byu.net>
21837
21838         select: add missing dependency
21839         * modules/select-tests (Depends-on): Move sockets dependency...
21840         * modules/select (Depends-on): ...here.
21841         Reported by Ian Beckwith.
21842
21843         doc: regenerate INSTALL
21844         * doc/INSTALL: Reflect recent autoconf update.
21845         * doc/INSTALL.ISO: Likewise.
21846         * doc/INSTALL.UTF-8: Likewise.
21847
21848         pread: fix compilation on glibc
21849         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21850         Reported by Ralf Wildenhues.
21851
21852         dirent: fix test failure
21853         * lib/dirent.in.h (includes): Guarantee ino_t.
21854         Reported by Ralf Wildenhues.
21855
21856 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21857
21858         linkat, renameat: avoid bad free
21859         * lib/at-func2.c (at_func2): Fix typo.
21860         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21861
21862 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21863
21864         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21865         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21866         to avoid failure of symlink test later.
21867
21868 2010-01-06  Eric Blake  <ebb9@byu.net>
21869
21870         stdio, unistd: guarantee ssize_t
21871         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21872         2008 are exposed when needed.
21873         * lib/stdio.in.h (includes): Likewise.
21874         Reported by Ralf Wildenhues.
21875
21876 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21877
21878         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21879         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21880         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21881
21882 2010-01-06  Jim Meyering  <meyering@redhat.com>
21883
21884         readtokens: this module *does* require xalloc.h
21885         It uses only functions that were omitted by the old syntax-check rule.
21886         * lib/readtokens.c: Include "xalloc.h" once again.
21887         * modules/readtokens (Depends-on): Add xalloc.
21888         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21889
21890 2010-01-05  Eric Blake  <ebb9@byu.net>
21891
21892         maint: support 'make announcement' from a VPATH build
21893         * top/maint.mk (announcement): Look for correct NEWS file.
21894
21895 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21896
21897         utimens (fdutimens): ignore a negative FD, per contract
21898         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21899         when we have a valid file descriptor.  Otherwise, using a brand
21900         new glibc (with just-patched futimens that now fails with EBADF)
21901         would cause this function to fail with ENOSYS.
21902         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21903         See also http://bugzilla.redhat.com/552320.
21904
21905 2010-01-05  Eric Blake  <ebb9@byu.net>
21906
21907         strcase: document what it provides
21908         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21909         gnulib module.
21910         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21911         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21912
21913 2010-01-05  Jim Meyering  <meyering@redhat.com>
21914
21915         maint: remove useless inclusions of "xalloc.h"
21916         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21917         * lib/readtokens.c: Likewise.
21918         * lib/same.c: Likewise.
21919         * modules/getloadavg (Depends-on): Remove xalloc.
21920         * modules/readtokens: Likewise.
21921         * modules/same: Likewise.
21922
21923         maint.mk: include 4 more function names in alloca.h-checking regexp
21924         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21925         regexp.  Before, we would give a false-positive (saying alloca.h
21926         is included unnecessarily) when the only uses involved omitted symbols.
21927
21928         xalloc.h: use consistent formatting
21929         * lib/xalloc.h: Move declarations to start in the first column.
21930
21931 2010-01-05  Eric Blake  <ebb9@byu.net>
21932
21933         mkdir: avoid xalloc
21934         * lib/mkdir.c (includes): Drop unused header.
21935         Reported by John W. Eaton.
21936
21937 2010-01-04  Jim Meyering  <meyering@redhat.com>
21938
21939         nl_langinfo: avoid configure-time syntax error
21940         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21941         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21942         the empty string.  Don't let that provoke a shell syntax error.
21943
21944         regcomp, regexec, fnmatch: avoid array bounds read error
21945         * lib/regcomp.c (build_equiv_class): From glibc:
21946         Use only the low 24 bits of a findidx return value as an index
21947         into the weights array.  Patch by Ulrich Drepper:
21948         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21949         * lib/regexec.c (check_node_accept_bytes): Likewise.
21950         * lib/fnmatch_loop.c (FCT): Likewise.
21951
21952         regcomp: skip collseq lookup when there are no rules
21953         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21954         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21955
21956         regcomp: recognize ill-formed { } expressions
21957         * lib/regcomp.c (parse_dup_op): From glibc:
21958         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21959
21960         regcomp: fix typo in comment
21961         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21962         s/satisfy/satisfies/.
21963
21964         regcomp: sync from glibc: remove dead store
21965         * lib/regcomp.c (duplicate_node_closure): Remove useless
21966         search_duplicated_node call and dead store.
21967
21968         regcomp: sync from glibc; always use nl_langinfo
21969         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21970         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21971         * modules/regex (Depends-on): Add nl_langinfo.
21972
21973 2010-01-04  Eric Blake  <ebb9@byu.net>
21974
21975         fdopendir: fix configure test
21976         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21977
21978 2010-01-01  Bruno Haible  <bruno@clisp.org>
21979
21980         wchar: Remove unused configure check.
21981         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21982
21983 2010-01-01  Eric Blake  <ebb9@byu.net>
21984
21985         headers: make check of system header explicit
21986         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21987         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21988         ourselves.
21989         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21990         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21991         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21992         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21993         internals.
21994         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21995         missing.
21996         Suggested by Bruno Haible.
21997
21998 2010-01-01  Jim Meyering  <meyering@redhat.com>
21999
22000         ChangeLog: tweak to eliminate unnecessary copyright line
22001         * ChangeLog: Remove a copyright line that was mistakenly updated
22002         by today's update-copyright run.  Reported by Eric Blake.
22003
22004         test-update-copyright: don't let envvar setting cause test failure
22005         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22006
22007 2010-01-01  Bruno Haible  <bruno@clisp.org>
22008
22009         localename: Avoid gcc warning.
22010         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22011         function if it is not used.
22012
22013 2010-01-01  Jim Meyering  <meyering@redhat.com>
22014
22015         update nearly all FSF copyright year lists to include 2010
22016         Use the same procedure as for 2009, outlined in
22017         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22018
22019         version-etc: set COPYRIGHT_YEAR to 2010
22020         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22021
22022 2009-12-31  Eric Blake  <ebb9@byu.net>
22023
22024         doc: correct availability of cygwin 1.5.x getopt
22025         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22026         variables.
22027         * doc/posix-functions/opterr.texi (opterr): Likewise.
22028         * doc/posix-functions/optind.texi (optind): Likewise.
22029         * doc/posix-functions/optopt.texi (optopt): Likewise.
22030         * doc/posix-functions/tzname.texi (tzname): Likewise.
22031
22032         openat: update maintainer
22033         * modules/openat (Maintainer): Add myself.
22034
22035         utimens: avoid shadowing warning
22036         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22037         buffers into one, to avoid shadowing, as well as avoiding a
22038         redundant stat.
22039         Reported by Jim Meyering.
22040
22041         test-dup2: avoid compiler warning
22042         * tests/test-dup2.c (is_inheritable): Only define if used.
22043
22044 2010-01-01  Bruno Haible  <bruno@clisp.org>
22045
22046         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22047         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22048         defined, use wctomb instead of wcrtomb.
22049
22050 2010-01-01  Bruno Haible  <bruno@clisp.org>
22051
22052         iconv: Reject native Solaris iconv.
22053         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22054         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22055
22056 2009-12-31  Bruno Haible  <bruno@clisp.org>
22057
22058         * tests/test-signal.c (main): Remove test of 'SIG'.
22059
22060 2009-12-31  Bruno Haible  <bruno@clisp.org>
22061
22062         spawn: Fix incomplete fix.
22063         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22064         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22065         warnings for GNULIB_POSIXCHECK again.
22066         Reported by Eric Blake.
22067
22068 2009-12-31  Bruno Haible  <bruno@clisp.org>
22069
22070         Avoid namespace pollution on glibc systems.
22071         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22072         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22073         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22074         glibc systems.
22075
22076 2009-12-31  Bruno Haible  <bruno@clisp.org>
22077
22078         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22079         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22080         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22081         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22082         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22083         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22084         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22085
22086 2009-12-31  Bruno Haible  <bruno@clisp.org>
22087
22088         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22089         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22090         afterwards.
22091
22092 2009-12-31  Bruno Haible  <bruno@clisp.org>
22093
22094         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22095         SYS_UTSNAME_H.
22096
22097 2009-12-31  Bruno Haible  <bruno@clisp.org>
22098
22099         spawn: Fix misapplied patch.
22100         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22101         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22102         warnings for GNULIB_POSIXCHECK.
22103
22104 2009-12-31  Bruno Haible  <bruno@clisp.org>
22105
22106         times: Update after sys_times changed.
22107         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22108         * modules/times (Files): Add it.
22109         (configure.ac): Invoke gl_FUNC_TIMES.
22110
22111 2009-12-31  Bruno Haible  <bruno@clisp.org>
22112
22113         Use AC_C_INLINE where necessary.
22114         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22115         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22116         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22117         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22118         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22119         * m4/mbiter.m4 (gl_MBITER): Likewise.
22120         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22121         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22122         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22123         * modules/u64 (configure.ac): Likewise.
22124
22125 2009-12-31  Bruno Haible  <bruno@clisp.org>
22126
22127         Use AC_C_INLINE instead of module 'inline' where possible.
22128         * modules/inline (Description): Clarify purpose.
22129         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22130         * modules/count-one-bits (Depends-on): Remove inline.
22131         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22132         * modules/openat (Depends-on): Remove inline.
22133         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22134         instead of depending on module 'inline'.
22135         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22136         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22137         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22138         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22139         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22140         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22141         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22142         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22143         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22144         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22145         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22146         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22147         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22148         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22149         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22150         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22151         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22152         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22153         Likewise.
22154         * modules/unictype/property-ascii-hex-digit (Depends-on,
22155         configure.ac): Likewise.
22156         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22157         configure.ac): Likewise.
22158         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22159         configure.ac): Likewise.
22160         * modules/unictype/property-bidi-block-separator (Depends-on,
22161         configure.ac): Likewise.
22162         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22163         configure.ac): Likewise.
22164         * modules/unictype/property-bidi-common-separator (Depends-on,
22165         configure.ac): Likewise.
22166         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22167         Likewise.
22168         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22169         configure.ac): Likewise.
22170         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22171         configure.ac): Likewise.
22172         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22173         configure.ac): Likewise.
22174         * modules/unictype/property-bidi-european-digit (Depends-on,
22175         configure.ac): Likewise.
22176         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22177         configure.ac): Likewise.
22178         * modules/unictype/property-bidi-left-to-right (Depends-on,
22179         configure.ac): Likewise.
22180         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22181         configure.ac): Likewise.
22182         * modules/unictype/property-bidi-other-neutral (Depends-on,
22183         configure.ac): Likewise.
22184         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22185         Likewise.
22186         * modules/unictype/property-bidi-segment-separator (Depends-on,
22187         configure.ac): Likewise.
22188         * modules/unictype/property-bidi-whitespace (Depends-on,
22189         configure.ac): Likewise.
22190         * modules/unictype/property-combining (Depends-on, configure.ac):
22191         Likewise.
22192         * modules/unictype/property-composite (Depends-on, configure.ac):
22193         Likewise.
22194         * modules/unictype/property-currency-symbol (Depends-on,
22195         configure.ac): Likewise.
22196         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22197         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22198         Likewise.
22199         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22200         configure.ac): Likewise.
22201         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22202         Likewise.
22203         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22204         Likewise.
22205         * modules/unictype/property-extender (Depends-on, configure.ac):
22206         Likewise.
22207         * modules/unictype/property-format-control (Depends-on, configure.ac):
22208         Likewise.
22209         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22210         Likewise.
22211         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22212         Likewise.
22213         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22214         Likewise.
22215         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22216         Likewise.
22217         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22218         Likewise.
22219         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22220         Likewise.
22221         * modules/unictype/property-id-start (Depends-on, configure.ac):
22222         Likewise.
22223         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22224         Likewise.
22225         * modules/unictype/property-ids-binary-operator (Depends-on,
22226         configure.ac): Likewise.
22227         * modules/unictype/property-ids-trinary-operator (Depends-on,
22228         configure.ac): Likewise.
22229         * modules/unictype/property-ignorable-control (Depends-on,
22230         configure.ac): Likewise.
22231         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22232         Likewise.
22233         * modules/unictype/property-join-control (Depends-on, configure.ac):
22234         Likewise.
22235         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22236         Likewise.
22237         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22238         Likewise.
22239         * modules/unictype/property-logical-order-exception (Depends-on,
22240         configure.ac): Likewise.
22241         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22242         Likewise.
22243         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22244         * modules/unictype/property-non-break (Depends-on, configure.ac):
22245         Likewise.
22246         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22247         Likewise.
22248         * modules/unictype/property-numeric (Depends-on, configure.ac):
22249         Likewise.
22250         * modules/unictype/property-other-alphabetic (Depends-on,
22251         configure.ac): Likewise.
22252         * modules/unictype/property-other-default-ignorable-code-point
22253         (Depends-on, configure.ac): Likewise.
22254         * modules/unictype/property-other-grapheme-extend (Depends-on,
22255         configure.ac): Likewise.
22256         * modules/unictype/property-other-id-continue (Depends-on,
22257         configure.ac): Likewise.
22258         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22259         Likewise.
22260         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22261         Likewise.
22262         * modules/unictype/property-other-math (Depends-on, configure.ac):
22263         Likewise.
22264         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22265         Likewise.
22266         * modules/unictype/property-paired-punctuation (Depends-on,
22267         configure.ac): Likewise.
22268         * modules/unictype/property-paragraph-separator (Depends-on,
22269         configure.ac): Likewise.
22270         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22271         Likewise.
22272         * modules/unictype/property-pattern-white-space (Depends-on,
22273         configure.ac): Likewise.
22274         * modules/unictype/property-private-use (Depends-on, configure.ac):
22275         Likewise.
22276         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22277         Likewise.
22278         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22279         Likewise.
22280         * modules/unictype/property-radical (Depends-on, configure.ac):
22281         Likewise.
22282         * modules/unictype/property-sentence-terminal (Depends-on,
22283         configure.ac): Likewise.
22284         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22285         Likewise.
22286         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22287         * modules/unictype/property-terminal-punctuation (Depends-on,
22288         configure.ac): Likewise.
22289         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22290         Likewise.
22291         * modules/unictype/property-unassigned-code-value (Depends-on,
22292         configure.ac): Likewise.
22293         * modules/unictype/property-unified-ideograph (Depends-on,
22294         configure.ac): Likewise.
22295         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22296         Likewise.
22297         * modules/unictype/property-variation-selector (Depends-on,
22298         configure.ac): Likewise.
22299         * modules/unictype/property-white-space (Depends-on, configure.ac):
22300         Likewise.
22301         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22302         Likewise.
22303         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22304         Likewise.
22305         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22306         Likewise.
22307         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22308         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22309         Likewise.
22310
22311 2009-12-31  Bruno Haible  <bruno@clisp.org>
22312
22313         Remove unnecessary AC_C_INLINE invocation.
22314         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22315         since 2009-08-21.
22316
22317 2009-12-31  Jim Meyering  <meyering@redhat.com>
22318
22319         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22320         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22321         With this change, we can all remove the gpg_key_ID = ... definition
22322         from our respective cfg.mk files.
22323
22324         maint.mk: create announcement template in ~/, not in /tmp
22325         * top/maint.mk (emit_upload_commands): Adjust.
22326         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22327         Remove temporary file, .ci-msg.
22328
22329 2009-12-31  Eric Blake  <ebb9@byu.net>
22330
22331         link-warning: always build headers with link warnings
22332         * modules/arpa_inet (Makefile.am): Always build replacement
22333         header.
22334         * modules/ctype (Makefile.am): Likewise.
22335         * modules/dirent (Makefile.am): Likewise.
22336         * modules/inttypes (Makefile.am): Likewise.
22337         * modules/langinfo (Makefile.am): Likewise.
22338         * modules/locale (Makefile.am): Likewise.
22339         * modules/spawn (Makefile.am): Likewise.
22340         * modules/sys_file (Makefile.am): Likewise.
22341         * modules/sys_ioctl (Makefile.am): Likewise.
22342         * modules/sys_select (Makefile.am): Likewise.
22343         * modules/sys_socket (Makefile.am): Likewise.
22344         * modules/sys_times (Makefile.am): Likewise.
22345         * modules/sys_utsname (Makefile.am): Likewise.
22346         * modules/sys_wait (Makefile.am): Likewise.
22347         * modules/wchar (Makefile.am): Likewise.
22348         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22349         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22350         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22351         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22352         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22353         Likewise.
22354         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22355         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22356         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22357         Likewise.
22358         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22359         Likewise.
22360         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22361         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22362         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22364         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22365         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22366         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22367         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22368         (gl_WCHAR_H_DEFAULTS): Likewise.
22369
22370 2009-12-31  Eric Blake  <ebb9@byu.net>
22371
22372         signal, spawn: use link warnings
22373         * lib/signal.in.h (sigset_t): Make unconditional.
22374         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22375         (sigpending, sigprocmask, sigaction): Add link warnings.
22376         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22377         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22378         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22379         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22380         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22381         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22382         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22383         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22384         (posix_spawn_file_actions_destroy)
22385         (posix_spawn_file_actions_addopen)
22386         (posix_spawn_file_actions_addclose)
22387         (posix_spawn_file_actions_adddup2): Likewise.
22388         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22389         * tests/test-signal.c (main): Enhance test.
22390
22391         spawn: improve wrapper support
22392         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22393         (gl_SPAWN_H_DEFAULTS): New defaults.
22394         * modules/spawn (Makefile.am): Substitute them.
22395         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22396         Only declare if missing or broken.
22397
22398         sys_times, sys_utsname: use include_next
22399         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22400         header.
22401         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22402         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22403         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22404         * modules/sys_times (Depends-on): Add include_next.
22405         (Makefile.am): Substitute additional values.
22406         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22407         * lib/sys_times.in.h (includes): Include native header, if
22408         available.
22409         * lib/sys_utsname.in.h (includes): Likewise.
22410         * tests/test-sys_times.c (main): Enhance test.
22411
22412         fdutimensat: revert prior patch
22413         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22414         utimens.h.
22415         Reported by Bruno Haible.
22416
22417 2009-12-30  Eric Blake  <ebb9@byu.net>
22418
22419         sys_wait: drop link-warning dependency
22420         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22421         link-warning efforts.
22422         * lib/sys_wait.in.h: Likewise.
22423
22424         fdutimensat: remove bogus dependency
22425         * modules/fdutimensat (Depends-on): Drop inline.
22426
22427         unistd: fix typo
22428         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22429
22430 2009-12-30  Bruno Haible  <bruno@clisp.org>
22431
22432         Fix compilation error with Solaris cc.
22433         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22434         * lib/unicase/u16-is-invariant.c: Likewise.
22435         * lib/unicase/u32-is-invariant.c: Likewise.
22436         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22437
22438 2009-12-30  Bruno Haible  <bruno@clisp.org>
22439
22440         Fix test crash.
22441         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22442         locales.
22443         Reported by Simon Josefsson <simon@josefsson.org>.
22444
22445 2009-12-30  Bruno Haible  <bruno@clisp.org>
22446
22447         Fix compilation error on most platforms.
22448         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22449         Reported by Simon Josefsson <simon@josefsson.org>
22450         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22451
22452 2009-12-30  Eric Blake  <ebb9@byu.net>
22453
22454         futimens, utimensat: work around ntfs-3g bug
22455         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22456         a ctime bug is present, and expand workaround to cover ntfs-3g.
22457         * lib/utimens.c (fdutimens, lutimens): Likewise.
22458         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22459         (validate_timespec): Adjust return value.
22460         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22461         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22462         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22463
22464 2009-12-29  Eric Blake  <ebb9@byu.net>
22465
22466         link-warning: make usage consistent
22467         * modules/ctype (Depends-on): Add link-warning.
22468         (Makefile.am): Update rules accordingly.
22469         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22470         * modules/locale (Depends-on, Makefile.am): Likewise.
22471         * modules/sys_file (Makefile.am): Likewise.
22472         * modules/getopt-posix (Makefile.am): Delete unused link warning
22473         efforts.
22474         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22475         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22476         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22477         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22478
22479         stdio: remove unused variables
22480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22481         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22482         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22483
22484         tests: test more substitute headers
22485         * modules/ctype-tests: New file.
22486         * modules/dirent-tests: Likewise.
22487         * modules/spawn-tests: Likewise.
22488         * modules/sys_file-tests: Likewise.
22489         * modules/sys_ioctl-tests: Likewise.
22490         * modules/sys_wait-tests: Likewise.
22491         * tests/test-ctype.c: Likewise.
22492         * tests/test-dirent.c: Likewise.
22493         * tests/test-spawn.c: Likewise.
22494         * tests/test-sys_file.c: Likewise.
22495         * tests/test-sys_ioctl.c: Likewise.
22496         * tests/test-sys_wait.c: Likewise.
22497         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22498         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22499         whether or not flock is in use.
22500
22501         tests: remove License section from module
22502         * modules/arpa_inet-tests: Remove unneeded section.
22503         * modules/byteswap-tests: Likewise.
22504         * modules/ceilf-tests: Likewise.
22505         * modules/ceill-tests: Likewise.
22506         * modules/crypto/des-tests: Likewise.
22507         * modules/crypto/gc-arcfour-tests: Likewise.
22508         * modules/crypto/gc-arctwo-tests: Likewise.
22509         * modules/crypto/gc-des-tests: Likewise.
22510         * modules/crypto/gc-hmac-md5-tests: Likewise.
22511         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22512         * modules/crypto/gc-md2-tests: Likewise.
22513         * modules/crypto/gc-md4-tests: Likewise.
22514         * modules/crypto/gc-md5-tests: Likewise.
22515         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22516         * modules/crypto/gc-rijndael-tests: Likewise.
22517         * modules/crypto/gc-sha1-tests: Likewise.
22518         * modules/crypto/gc-tests: Likewise.
22519         * modules/crypto/md2-tests: Likewise.
22520         * modules/crypto/md4-tests: Likewise.
22521         * modules/fcntl-h-tests: Likewise.
22522         * modules/floorf-tests: Likewise.
22523         * modules/floorl-tests: Likewise.
22524         * modules/frexp-nolibm-tests: Likewise.
22525         * modules/frexp-tests: Likewise.
22526         * modules/frexpl-nolibm-tests: Likewise.
22527         * modules/frexpl-tests: Likewise.
22528         * modules/getaddrinfo-tests: Likewise.
22529         * modules/inttypes-tests: Likewise.
22530         * modules/isfinite-tests: Likewise.
22531         * modules/isinf-tests: Likewise.
22532         * modules/ldexpl-tests: Likewise.
22533         * modules/locale-tests: Likewise.
22534         * modules/math-tests: Likewise.
22535         * modules/netdb-tests: Likewise.
22536         * modules/netinet_in-tests: Likewise.
22537         * modules/printf-frexp-tests: Likewise.
22538         * modules/printf-frexpl-tests: Likewise.
22539         * modules/priv-set-tests: Likewise.
22540         * modules/random_r-tests: Likewise.
22541         * modules/round-tests: Likewise.
22542         * modules/roundf-tests: Likewise.
22543         * modules/roundl-tests: Likewise.
22544         * modules/search-tests: Likewise.
22545         * modules/select-tests: Likewise.
22546         * modules/signal-tests: Likewise.
22547         * modules/stdbool-tests: Likewise.
22548         * modules/stddef-tests: Likewise.
22549         * modules/stdint-tests: Likewise.
22550         * modules/stdio-tests: Likewise.
22551         * modules/stdlib-tests: Likewise.
22552         * modules/string-tests: Likewise.
22553         * modules/strings-tests: Likewise.
22554         * modules/sys_select-tests: Likewise.
22555         * modules/sys_socket-tests: Likewise.
22556         * modules/sys_stat-tests: Likewise.
22557         * modules/sys_time-tests: Likewise.
22558         * modules/sys_utsname-tests: Likewise.
22559         * modules/sysexits-tests: Likewise.
22560         * modules/time-tests: Likewise.
22561         * modules/trunc-tests: Likewise.
22562         * modules/truncf-tests: Likewise.
22563         * modules/truncl-tests: Likewise.
22564         * modules/tsearch-tests: Likewise.
22565         * modules/unistd-tests: Likewise.
22566         * modules/wchar-tests: Likewise.
22567         * modules/wctype-tests: Likewise.
22568
22569         tests: fix license on several tests
22570         * tests/test-des.c: Update to GPLv3+.
22571         * tests/test-flock.c: Likewise.
22572         * tests/test-fsync.c: Likewise.
22573         * tests/test-futimens.h: Likewise.
22574         * tests/test-gc-arcfour.c: Likewise.
22575         * tests/test-gc-arctwo.c: Likewise.
22576         * tests/test-gc-des.c: Likewise.
22577         * tests/test-gc-hmac-md5.c: Likewise.
22578         * tests/test-gc-hmac-sha1.c: Likewise.
22579         * tests/test-gc-md2.c: Likewise.
22580         * tests/test-gc-md4.c: Likewise.
22581         * tests/test-gc-md5.c: Likewise.
22582         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22583         * tests/test-gc-rijndael.c: Likewise.
22584         * tests/test-gc-sha1.c: Likewise.
22585         * tests/test-gc.c: Likewise.
22586         * tests/test-getcwd.c: Likewise.
22587         * tests/test-link.c: Likewise.
22588         * tests/test-link.h: Likewise.
22589         * tests/test-lutimens.h: Likewise.
22590         * tests/test-md2.c: Likewise.
22591         * tests/test-md4.c: Likewise.
22592         * tests/test-mkdir.h: Likewise.
22593         * tests/test-rename.c: Likewise.
22594         * tests/test-rename.h: Likewise.
22595         * tests/test-safe-alloc.c: Likewise.
22596         * tests/test-utimens-common.h: Likewise.
22597         * tests/test-utimens.h: Likewise.
22598
22599         maint: sync license texts
22600         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22601         * doc/gpl-3.0.texi: Revert copyright year update.
22602         * doc/lgpl-3.0.texi: Likewise.
22603
22604 2009-12-29  Jim Meyering  <meyering@redhat.com>
22605
22606         update nearly all FSF copyright year lists to include 2009
22607         The files named by the following are exempted:
22608             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22609               test -f "$dst" && { echo "$dst"; continue; }
22610               test -d "$dst" || continue
22611               echo "$dst"/$(basename "$src")
22612             done > exempt
22613             git ls-files tests/unictype >> exempt
22614         In the remaining files, convert to all-interval notation if
22615         - there is already at least one year interval like 2000-2003
22616         - the file is maintained by me
22617         - the file is in lib/uni*/, where that style already prevails
22618         Otherwise, use update-copyright's default.
22619
22620 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22621         and Eric Blake  <ebb9@byu.net>
22622
22623         tests: don't require debug system() to pass
22624         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22625         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22626         * tests/test-unlink.h (test_unlink_func): Likewise.
22627         * tests/test-fstatat.c (main): ...into callers.
22628         * tests/test-lstat.c (main): Likewise.
22629         * tests/test-rmdir.c (main): Likewise.
22630         * tests/test-unlink.c (main): Likewise.
22631         * tests/test-unlinkat.c (main): Likewise.
22632         * tests/test-areadlink-with-size.c (main): Don't require a
22633         debug-only system call to pass, aiding cross-testing to mingw.
22634         * tests/test-areadlink.c (main): Likewise.
22635         * tests/test-areadlinkat-with-size.c (main): Likewise.
22636         * tests/test-areadlinkat.c (main): Likewise.
22637         * tests/test-canonicalize-lgpl.c (main): Likewise.
22638         * tests/test-canonicalize.c (main): Likewise.
22639         * tests/test-chown.c (main): Likewise.
22640         * tests/test-fchownat.c (main): Likewise.
22641         * tests/test-lchown.c (main): Likewise.
22642         * tests/test-fdutimensat.c (main): Likewise.
22643         * tests/test-futimens.c (main): Likewise.
22644         * tests/test-link.c (main): Likewise.
22645         * tests/test-linkat.c (main): Likewise.
22646         * tests/test-mkdir.c (main): Likewise.
22647         * tests/test-mkdirat.c (main): Likewise.
22648         * tests/test-mkfifo.c (main): Likewise.
22649         * tests/test-mkfifoat.c (main): Likewise.
22650         * tests/test-mknod.c (main): Likewise.
22651         * tests/test-readlink.c (main): Likewise.
22652         * tests/test-remove.c (main): Likewise.
22653         * tests/test-rename.c (main): Likewise.
22654         * tests/test-renameat.c (main): Likewise.
22655         * tests/test-symlink.c (main): Likewise.
22656         * tests/test-symlinkat.c (main): Likewise.
22657         * tests/test-utimens.c (main): Likewise.
22658         * tests/test-utimensat.c (main): Likewise.
22659
22660 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22661
22662         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22663         on $(UNUSED_PARAMETER_H) to avoid build failure.
22664
22665 2009-12-28  Jim Meyering  <meyering@redhat.com>
22666
22667         update-copyright: you may specify a max. line length other than 72
22668         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22669
22670         maint: use consistent FSF copyright line syntax
22671         * lib/posixtm.c: Add missing comma in FSF copyright line.
22672         * lib/posixtm.h: Likewise.
22673         * lib/getugroups.c: Add missing ", Inc.".
22674
22675         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22676         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22677         FSF copyright line.  Remove trailing blanks.
22678
22679 2009-12-28  Eric Blake  <ebb9@byu.net>
22680
22681         test-dup2: reduce dependencies
22682         * modules/cloexec (Configure.ac): Set witness.
22683         * modules/dup2-tests (Depends-on): Drop cloexec.
22684         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22685         not present.
22686         Suggested by Bruno Haible.
22687
22688 2009-12-26  Bruno Haible  <bruno@clisp.org>
22689
22690         Remove an unneeded dependency.
22691         * modules/fseterr (Depends-on): Remove dup2.
22692
22693 2009-12-26  Eric Blake  <ebb9@byu.net>
22694
22695         tests: use macros.h in more places
22696         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22697         (ASSERT_STREAM): Provide default of stderr.
22698         * tests/test-dirent-safer.c: Include macros.h, using alternate
22699         stream for assertions.
22700         * tests/test-dup-safer.c: Likewise.
22701         * tests/test-freopen-safer.c: Likewise.
22702         * tests/test-getopt.c: Likewise.
22703         * tests/test-openat-safer.c: Likewise.
22704         * tests/test-pipe.c: Likewise.
22705         * tests/test-popen-safer.c: Likewise.
22706         * modules/dirent-safer-tests (Files): Include macros.h.
22707         * modules/unistd-safer-tests (Files): Likewise.
22708         * modules/freopen-safer-tests (Files): Likewise.
22709         * modules/getopt-posix-tests (Files): Likewise.
22710         * modules/openat-safer-tests (Files): Likewise.
22711         * modules/pipe-tests (Files): Likewise.
22712
22713 2009-12-26  Bruno Haible  <bruno@clisp.org>
22714
22715         javacomp: Portability fix.
22716         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22717         that it also works on Solaris.
22718
22719 2009-12-26  Bruno Haible  <bruno@clisp.org>
22720
22721         localename: Fix storage allocation of gl_locale_name_thread's result.
22722         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22723         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22724         all platforms that have 'uselocale'.
22725         (gl_locale_name_thread_unsafe): New function, extracted from
22726         gl_locale_name_thread.
22727         (gl_locale_name_thread): Call struniq on all platforms that have
22728         'uselocale'.
22729         * tests/test-localename.c (test_locale_name_thread): Check that the
22730         resulting strings are permanently allocated.
22731         * modules/localename-tests (Depends-on): Add strdup.
22732
22733 2009-12-26  Bruno Haible  <bruno@clisp.org>
22734
22735         * tests/test-localename.c (categories): Fill in the strings.
22736
22737 2009-12-26  Jim Meyering  <meyering@redhat.com>
22738
22739         isdir: complete the removal of m4/isdir.m4
22740         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22741
22742         isdir: clean up, since at least grep still uses it
22743         * lib/isdir.c: Include "isdir.h".
22744         (S_ISDIR): Remove now-unneeded definition.
22745         * modules/isdir (Files): Add lib/isdir.h.
22746         * lib/isdir.h: New file, with declaration.
22747         * m4/isdir.m4: Remove file -- unneeded.
22748
22749 2009-12-25  Bruno Haible  <bruno@clisp.org>
22750
22751         selinux-h: Make generated .h files standalone.
22752         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22753         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22754         * lib/se-selinux.in.h: Likewise.
22755         * modules/selinux-h (Depends-on): Add unused-parameter.
22756         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22757         selinux/selinux.h and selinux/context.h.
22758         Suggested by Eric Blake.
22759
22760 2009-12-25  Bruno Haible  <bruno@clisp.org>
22761
22762         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22763         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22764         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22765         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22766         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22767
22768 2009-12-24  Bruno Haible  <bruno@clisp.org>
22769
22770         openat: Fix warning.
22771         * lib/openat-proc.c: Include <unistd.h>.
22772
22773 2009-12-24  Bruno Haible  <bruno@clisp.org>
22774
22775         New module 'unused-parameter'.
22776         * build-aux/unused-parameter.h: New file, extracted from earlier
22777         gnulib-common.m4.
22778         * modules/unused-parameter: New file.
22779         * lib/unistr.h: Include unused-parameter.h.
22780         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22781         _GL_UNUSED.
22782         * modules/unistr/base (Depends-on): Add unused-parameter.
22783
22784 2009-12-24  Bruno Haible  <bruno@clisp.org>
22785
22786         Add missing dependencies to 'extensions' module.
22787         * m4/extensions.m4: Add comment.
22788         * modules/accept4 (Depends-on): Add extensions.
22789         * modules/dup3 (Depends-on): Likewise.
22790         * modules/fcntl (Depends-on): Likewise.
22791         * modules/futimens (Depends-on): Likewise.
22792         * modules/mknod (Depends-on): Likewise.
22793         * modules/pipe2 (Depends-on): Likewise.
22794         * modules/stat-time (Depends-on): Likewise.
22795         * modules/strcasestr-simple (Depends-on): Likewise.
22796         * modules/strsignal (Depends-on): Likewise.
22797         * modules/utimensat (Depends-on): Likewise.
22798         * modules/localcharset (Depends-on): Likewise. Needed because of
22799         gl_FCNTL_O_FLAGS.
22800         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22801         AC_TYPE_MBSTATE_T.
22802         * modules/wcsnrtombs (Depends-on): Likewise.
22803         * modules/wcsrtombs (Depends-on): Likewise.
22804
22805 2009-12-24  Bruno Haible  <bruno@clisp.org>
22806
22807         binary-io: Avoid gcc warning due to SET_BINARY.
22808         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22809         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22810
22811 2009-12-24  Bruno Haible  <bruno@clisp.org>
22812
22813         Avoid future namespace pollution on glibc systems.
22814         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22815         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22816         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22817         glibc systems.
22818
22819 2009-12-24  Bruno Haible  <bruno@clisp.org>
22820
22821         Refactor common macros used in tests.
22822         * tests/macros.h: New file.
22823         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22824         and/or <stdlib.h>, if appropriate.
22825         (ASSERT, SIZEOF): Remove macros.
22826         * tests/test-areadlink-with-size.c: Likewise.
22827         * tests/test-areadlinkat.c: Likewise.
22828         * tests/test-areadlinkat-with-size.c: Likewise.
22829         * tests/test-argmatch.c: Likewise.
22830         * tests/test-argv-iter.c: Likewise.
22831         * tests/test-array-mergesort.c: Likewise.
22832         * tests/test-array_list.c: Likewise.
22833         * tests/test-array_oset.c: Likewise.
22834         * tests/test-avltree_list.c: Likewise.
22835         * tests/test-avltree_oset.c: Likewise.
22836         * tests/test-avltreehash_list.c: Likewise.
22837         * tests/test-base64.c: Likewise.
22838         * tests/test-binary-io.c: Likewise.
22839         * tests/test-bitrotate.c: Likewise.
22840         * tests/test-btowc.c: Likewise.
22841         * tests/test-byteswap.c: Likewise.
22842         * tests/test-c-ctype.c: Likewise.
22843         * tests/test-c-stack.c: Likewise.
22844         * tests/test-c-strcasecmp.c: Likewise.
22845         * tests/test-c-strcasestr.c: Likewise.
22846         * tests/test-c-strncasecmp.c: Likewise.
22847         * tests/test-c-strstr.c: Likewise.
22848         * tests/test-canonicalize-lgpl.c: Likewise.
22849         * tests/test-canonicalize.c: Likewise.
22850         * tests/test-carray_list.c: Likewise.
22851         * tests/test-ceilf1.c: Likewise.
22852         * tests/test-ceilf2.c: Likewise.
22853         * tests/test-ceill.c: Likewise.
22854         * tests/test-chown.c: Likewise.
22855         * tests/test-cloexec.c: Likewise.
22856         * tests/test-copy-acl.c: Likewise.
22857         * tests/test-copy-file.c: Likewise.
22858         * tests/test-count-one-bits.c: Likewise.
22859         * tests/test-dprintf-posix.c: Likewise.
22860         * tests/test-dup2.c: Likewise.
22861         * tests/test-dup3.c: Likewise.
22862         * tests/test-duplocale.c: Likewise.
22863         * tests/test-fbufmode.c: Likewise.
22864         * tests/test-fchdir.c: Likewise.
22865         * tests/test-fchownat.c: Likewise.
22866         * tests/test-fcntl-safer.c: Likewise.
22867         * tests/test-fcntl.c: Likewise.
22868         * tests/test-fdopendir.c: Likewise.
22869         * tests/test-fdutimensat.c: Likewise.
22870         * tests/test-fflush2.c: Likewise.
22871         * tests/test-file-has-acl.c: Likewise.
22872         * tests/test-filevercmp.c: Likewise.
22873         * tests/test-flock.c: Likewise.
22874         * tests/test-floorf1.c: Likewise.
22875         * tests/test-floorf2.c: Likewise.
22876         * tests/test-floorl.c: Likewise.
22877         * tests/test-fnmatch.c: Likewise.
22878         * tests/test-fopen.h: Likewise.
22879         * tests/test-fpending.c: Likewise.
22880         * tests/test-fprintf-posix.c: Likewise.
22881         * tests/test-fpurge.c: Likewise.
22882         * tests/test-freadable.c: Likewise.
22883         * tests/test-freadahead.c: Likewise.
22884         * tests/test-freading.c: Likewise.
22885         * tests/test-freadptr.c: Likewise.
22886         * tests/test-freadptr2.c: Likewise.
22887         * tests/test-freadseek.c: Likewise.
22888         * tests/test-freopen.c: Likewise.
22889         * tests/test-frexp.c: Likewise.
22890         * tests/test-frexpl.c: Likewise.
22891         * tests/test-fseek.c: Likewise.
22892         * tests/test-fseeko.c: Likewise.
22893         * tests/test-fstatat.c: Likewise.
22894         * tests/test-fstrcmp.c: Likewise.
22895         * tests/test-fsync.c: Likewise.
22896         * tests/test-ftell.c: Likewise.
22897         * tests/test-ftello.c: Likewise.
22898         * tests/test-func.c: Likewise.
22899         * tests/test-futimens.c: Likewise.
22900         * tests/test-fwritable.c: Likewise.
22901         * tests/test-fwriting.c: Likewise.
22902         * tests/test-getcwd.c: Likewise.
22903         * tests/test-getdate.c: Likewise.
22904         * tests/test-getdelim.c: Likewise.
22905         * tests/test-getdtablesize.c: Likewise.
22906         * tests/test-getgroups.c: Likewise.
22907         * tests/test-getline.c: Likewise.
22908         * tests/test-getndelim2.c: Likewise.
22909         * tests/test-glob.c: Likewise.
22910         * tests/test-hash.c: Likewise.
22911         * tests/test-i-ring.c: Likewise.
22912         * tests/test-iconv-utf.c: Likewise.
22913         * tests/test-iconv.c: Likewise.
22914         * tests/test-idpriv-drop.c: Likewise.
22915         * tests/test-idpriv-droptemp.c: Likewise.
22916         * tests/test-inet_ntop.c: Likewise.
22917         * tests/test-inet_pton.c: Likewise.
22918         * tests/test-isblank.c: Likewise.
22919         * tests/test-isfinite.c: Likewise.
22920         * tests/test-isinf.c: Likewise.
22921         * tests/test-isnan.c: Likewise.
22922         * tests/test-isnand.h: Likewise.
22923         * tests/test-isnanf.h: Likewise.
22924         * tests/test-isnanl.h: Likewise.
22925         * tests/test-lchown.c: Likewise.
22926         * tests/test-ldexpl.c: Likewise.
22927         * tests/test-link.c: Likewise.
22928         * tests/test-linkat.c: Likewise.
22929         * tests/test-linked_list.c: Likewise.
22930         * tests/test-linkedhash_list.c: Likewise.
22931         * tests/test-localename.c: Likewise.
22932         * tests/test-lseek.c: Likewise.
22933         * tests/test-lstat.c: Likewise.
22934         * tests/test-mbmemcasecmp.c: Likewise.
22935         * tests/test-mbmemcasecoll.c: Likewise.
22936         * tests/test-mbrtowc.c: Likewise.
22937         * tests/test-mbscasecmp.c: Likewise.
22938         * tests/test-mbscasestr1.c: Likewise.
22939         * tests/test-mbscasestr2.c: Likewise.
22940         * tests/test-mbscasestr3.c: Likewise.
22941         * tests/test-mbscasestr4.c: Likewise.
22942         * tests/test-mbschr.c: Likewise.
22943         * tests/test-mbscspn.c: Likewise.
22944         * tests/test-mbsinit.c: Likewise.
22945         * tests/test-mbsncasecmp.c: Likewise.
22946         * tests/test-mbsnrtowcs.c: Likewise.
22947         * tests/test-mbspbrk.c: Likewise.
22948         * tests/test-mbspcasecmp.c: Likewise.
22949         * tests/test-mbsrchr.c: Likewise.
22950         * tests/test-mbsrtowcs.c: Likewise.
22951         * tests/test-mbsspn.c: Likewise.
22952         * tests/test-mbsstr1.c: Likewise.
22953         * tests/test-mbsstr2.c: Likewise.
22954         * tests/test-mbsstr3.c: Likewise.
22955         * tests/test-memchr.c: Likewise.
22956         * tests/test-memchr2.c: Likewise.
22957         * tests/test-memcmp.c: Likewise.
22958         * tests/test-memmem.c: Likewise.
22959         * tests/test-memrchr.c: Likewise.
22960         * tests/test-mkdir.c: Likewise.
22961         * tests/test-mkdirat.c: Likewise.
22962         * tests/test-mkfifo.c: Likewise.
22963         * tests/test-mkfifoat.c: Likewise.
22964         * tests/test-mknod.c: Likewise.
22965         * tests/test-nanosleep.c: Likewise.
22966         * tests/test-nl_langinfo.c: Likewise.
22967         * tests/test-obstack-printf.c: Likewise.
22968         * tests/test-open.c: Likewise.
22969         * tests/test-openat.c: Likewise.
22970         * tests/test-pipe-filter-gi1.c: Likewise.
22971         * tests/test-pipe-filter-gi2-main.c: Likewise.
22972         * tests/test-pipe-filter-ii1.c: Likewise.
22973         * tests/test-pipe-filter-ii2-main.c: Likewise.
22974         * tests/test-pipe2.c: Likewise.
22975         * tests/test-popen.h: Likewise.
22976         * tests/test-posixtm.c: Likewise.
22977         * tests/test-pread.c: Likewise.
22978         * tests/test-printf-frexp.c: Likewise.
22979         * tests/test-printf-frexpl.c: Likewise.
22980         * tests/test-printf-posix.c: Likewise.
22981         * tests/test-priv-set.c: Likewise.
22982         * tests/test-quotearg.c: Likewise.
22983         * tests/test-random_r.c: Likewise.
22984         * tests/test-rawmemchr.c: Likewise.
22985         * tests/test-rbtree_list.c: Likewise.
22986         * tests/test-rbtree_oset.c: Likewise.
22987         * tests/test-rbtreehash_list.c: Likewise.
22988         * tests/test-readlink.c: Likewise.
22989         * tests/test-remove.c: Likewise.
22990         * tests/test-rename.c: Likewise.
22991         * tests/test-renameat.c: Likewise.
22992         * tests/test-rmdir.c: Likewise.
22993         * tests/test-round1.c: Likewise.
22994         * tests/test-roundf1.c: Likewise.
22995         * tests/test-roundl.c: Likewise.
22996         * tests/test-safe-alloc.c: Likewise.
22997         * tests/test-sameacls.c: Likewise.
22998         * tests/test-set-mode-acl.c: Likewise.
22999         * tests/test-setenv.c: Likewise.
23000         * tests/test-sigaction.c: Likewise.
23001         * tests/test-signbit.c: Likewise.
23002         * tests/test-sleep.c: Likewise.
23003         * tests/test-snprintf-posix.c: Likewise.
23004         * tests/test-snprintf.c: Likewise.
23005         * tests/test-sprintf-posix.c: Likewise.
23006         * tests/test-stat-time.c: Likewise.
23007         * tests/test-stat.c: Likewise.
23008         * tests/test-strcasestr.c: Likewise.
23009         * tests/test-strchrnul.c: Likewise.
23010         * tests/test-strerror.c: Likewise.
23011         * tests/test-striconv.c: Likewise.
23012         * tests/test-striconveh.c: Likewise.
23013         * tests/test-striconveha.c: Likewise.
23014         * tests/test-strsignal.c: Likewise.
23015         * tests/test-strstr.c: Likewise.
23016         * tests/test-strtod.c: Likewise.
23017         * tests/test-strverscmp.c: Likewise.
23018         * tests/test-symlink.c: Likewise.
23019         * tests/test-symlinkat.c: Likewise.
23020         * tests/test-trunc1.c: Likewise.
23021         * tests/test-trunc2.c: Likewise.
23022         * tests/test-truncf1.c: Likewise.
23023         * tests/test-truncf2.c: Likewise.
23024         * tests/test-truncl.c: Likewise.
23025         * tests/test-uname.c: Likewise.
23026         * tests/test-unlink.c: Likewise.
23027         * tests/test-unlinkat.c: Likewise.
23028         * tests/test-unsetenv.c: Likewise.
23029         * tests/test-usleep.c: Likewise.
23030         * tests/test-utimens.c: Likewise.
23031         * tests/test-utimensat.c: Likewise.
23032         * tests/test-vasnprintf-posix.c: Likewise.
23033         * tests/test-vasnprintf-posix2.c: Likewise.
23034         * tests/test-vasnprintf.c: Likewise.
23035         * tests/test-vasprintf-posix.c: Likewise.
23036         * tests/test-vasprintf.c: Likewise.
23037         * tests/test-vdprintf-posix.c: Likewise.
23038         * tests/test-vfprintf-posix.c: Likewise.
23039         * tests/test-vprintf-posix.c: Likewise.
23040         * tests/test-vsnprintf-posix.c: Likewise.
23041         * tests/test-vsnprintf.c: Likewise.
23042         * tests/test-vsprintf-posix.c: Likewise.
23043         * tests/test-wcrtomb.c: Likewise.
23044         * tests/test-wcsnrtombs.c: Likewise.
23045         * tests/test-wcsrtombs.c: Likewise.
23046         * tests/test-wctype.c: Likewise.
23047         * tests/test-wcwidth.c: Likewise.
23048         * tests/test-xfprintf-posix.c: Likewise.
23049         * tests/test-xmemdup0.c: Likewise.
23050         * tests/test-xprintf-posix.c: Likewise.
23051         * tests/test-xvasprintf.c: Likewise.
23052         * tests/unicase/test-locale-language.c: Likewise.
23053         * tests/unicase/test-mapping-part1.h: Likewise.
23054         * tests/unicase/test-predicate-part1.h: Likewise.
23055         * tests/unicase/test-u8-casecmp.c: Likewise.
23056         * tests/unicase/test-u8-casecoll.c: Likewise.
23057         * tests/unicase/test-u8-casefold.c: Likewise.
23058         * tests/unicase/test-u8-is-cased.c: Likewise.
23059         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23060         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23061         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23062         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23063         * tests/unicase/test-u8-tolower.c: Likewise.
23064         * tests/unicase/test-u8-totitle.c: Likewise.
23065         * tests/unicase/test-u8-toupper.c: Likewise.
23066         * tests/unicase/test-u16-casecmp.c: Likewise.
23067         * tests/unicase/test-u16-casecoll.c: Likewise.
23068         * tests/unicase/test-u16-casefold.c: Likewise.
23069         * tests/unicase/test-u16-is-cased.c: Likewise.
23070         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23071         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23072         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23073         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23074         * tests/unicase/test-u16-tolower.c: Likewise.
23075         * tests/unicase/test-u16-totitle.c: Likewise.
23076         * tests/unicase/test-u16-toupper.c: Likewise.
23077         * tests/unicase/test-u32-casecmp.c: Likewise.
23078         * tests/unicase/test-u32-casecoll.c: Likewise.
23079         * tests/unicase/test-u32-casefold.c: Likewise.
23080         * tests/unicase/test-u32-is-cased.c: Likewise.
23081         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23082         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23083         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23084         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23085         * tests/unicase/test-u32-tolower.c: Likewise.
23086         * tests/unicase/test-u32-totitle.c: Likewise.
23087         * tests/unicase/test-u32-toupper.c: Likewise.
23088         * tests/unicase/test-ulc-casecmp.c: Likewise.
23089         * tests/unicase/test-ulc-casecoll.c: Likewise.
23090         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23091         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23092         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23093         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23094         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23095         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23096         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23097         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23098         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23099         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23100         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23101         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23102         * tests/unictype/test-bidi_byname.c: Likewise.
23103         * tests/unictype/test-bidi_name.c: Likewise.
23104         * tests/unictype/test-bidi_of.c: Likewise.
23105         * tests/unictype/test-bidi_test.c: Likewise.
23106         * tests/unictype/test-block_list.c: Likewise.
23107         * tests/unictype/test-block_of.c: Likewise.
23108         * tests/unictype/test-block_test.c: Likewise.
23109         * tests/unictype/test-categ_and.c: Likewise.
23110         * tests/unictype/test-categ_and_not.c: Likewise.
23111         * tests/unictype/test-categ_byname.c: Likewise.
23112         * tests/unictype/test-categ_name.c: Likewise.
23113         * tests/unictype/test-categ_none.c: Likewise.
23114         * tests/unictype/test-categ_of.c: Likewise.
23115         * tests/unictype/test-categ_or.c: Likewise.
23116         * tests/unictype/test-categ_test_withtable.c: Likewise.
23117         * tests/unictype/test-combining.c: Likewise.
23118         * tests/unictype/test-decdigit.c: Likewise.
23119         * tests/unictype/test-digit.c: Likewise.
23120         * tests/unictype/test-mirror.c: Likewise.
23121         * tests/unictype/test-numeric.c: Likewise.
23122         * tests/unictype/test-pr_byname.c: Likewise.
23123         * tests/unictype/test-pr_test.c: Likewise.
23124         * tests/unictype/test-predicate-part1.h: Likewise.
23125         * tests/unictype/test-scripts.c: Likewise.
23126         * tests/unictype/test-sy_c_ident.c: Likewise.
23127         * tests/unictype/test-sy_java_ident.c: Likewise.
23128         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23129         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23130         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23131         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23132         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23133         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23134         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23135         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23136         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23137         * tests/uninorm/test-compat-decomposition.c: Likewise.
23138         * tests/uninorm/test-composition.c: Likewise.
23139         * tests/uninorm/test-decomposing-form.c: Likewise.
23140         * tests/uninorm/test-decomposition.c: Likewise.
23141         * tests/uninorm/test-u8-nfc.c: Likewise.
23142         * tests/uninorm/test-u8-nfd.c: Likewise.
23143         * tests/uninorm/test-u8-nfkc.c: Likewise.
23144         * tests/uninorm/test-u8-nfkd.c: Likewise.
23145         * tests/uninorm/test-u8-normcmp.c: Likewise.
23146         * tests/uninorm/test-u8-normcoll.c: Likewise.
23147         * tests/uninorm/test-u16-nfc.c: Likewise.
23148         * tests/uninorm/test-u16-nfd.c: Likewise.
23149         * tests/uninorm/test-u16-nfkc.c: Likewise.
23150         * tests/uninorm/test-u16-nfkd.c: Likewise.
23151         * tests/uninorm/test-u16-normcmp.c: Likewise.
23152         * tests/uninorm/test-u16-normcoll.c: Likewise.
23153         * tests/uninorm/test-u32-nfc.c: Likewise.
23154         * tests/uninorm/test-u32-nfd.c: Likewise.
23155         * tests/uninorm/test-u32-nfkc.c: Likewise.
23156         * tests/uninorm/test-u32-nfkd.c: Likewise.
23157         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23158         * tests/uninorm/test-u32-normcmp.c: Likewise.
23159         * tests/uninorm/test-u32-normcoll.c: Likewise.
23160         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23161         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23162         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23163         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23164         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23165         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23166         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23167         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23168         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23169         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23170         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23171         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23172         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23173         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23174         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23175         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23176         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23177         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23178         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23179         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23180         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23181         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23182         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23183         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23184         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23185         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23186         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23187         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23188         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23189         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23190         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23191         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23192         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23193         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23194         * tests/uniwidth/test-u8-width.c: Likewise.
23195         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23196         * tests/uniwidth/test-u16-width.c: Likewise.
23197         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23198         * tests/uniwidth/test-u32-width.c: Likewise.
23199         * tests/uniwidth/test-uc_width.c: Likewise.
23200         * tests/uniwidth/test-uc_width2.c: Likewise.
23201         * modules/acl-tests (Files): Add tests/macros.h.
23202         * modules/areadlink-tests (Files): Likewise.
23203         * modules/areadlink-with-size-tests (Files): Likewise.
23204         * modules/areadlinkat-tests (Files): Likewise.
23205         * modules/areadlinkat-with-size-tests (Files): Likewise.
23206         * modules/argmatch-tests (Files): Likewise.
23207         * modules/argv-iter-tests (Files): Likewise.
23208         * modules/array-list-tests (Files): Likewise.
23209         * modules/array-mergesort-tests (Files): Likewise.
23210         * modules/array-oset-tests (Files): Likewise.
23211         * modules/avltree-list-tests (Files): Likewise.
23212         * modules/avltree-oset-tests (Files): Likewise.
23213         * modules/avltreehash-list-tests (Files): Likewise.
23214         * modules/base64-tests (Files): Likewise.
23215         * modules/binary-io-tests (Files): Likewise.
23216         * modules/bitrotate-tests (Files): Likewise.
23217         * modules/btowc-tests (Files): Likewise.
23218         * modules/byteswap-tests (Files): Likewise.
23219         * modules/c-ctype-tests (Files): Likewise.
23220         * modules/c-stack-tests (Files): Likewise.
23221         * modules/c-strcase-tests (Files): Likewise.
23222         * modules/c-strcasestr-tests (Files): Likewise.
23223         * modules/c-strstr-tests (Files): Likewise.
23224         * modules/canonicalize-lgpl-tests (Files): Likewise.
23225         * modules/canonicalize-tests (Files): Likewise.
23226         * modules/carray-list-tests (Files): Likewise.
23227         * modules/ceilf-tests (Files): Likewise.
23228         * modules/ceill-tests (Files): Likewise.
23229         * modules/chown-tests (Files): Likewise.
23230         * modules/cloexec-tests (Files): Likewise.
23231         * modules/copy-file-tests (Files): Likewise.
23232         * modules/count-one-bits-tests (Files): Likewise.
23233         * modules/dprintf-posix-tests (Files): Likewise.
23234         * modules/dup2-tests (Files): Likewise.
23235         * modules/dup3-tests (Files): Likewise.
23236         * modules/duplocale-tests (Files): Likewise.
23237         * modules/fbufmode-tests (Files): Likewise.
23238         * modules/fchdir-tests (Files): Likewise.
23239         * modules/fcntl-safer-tests (Files): Likewise.
23240         * modules/fcntl-tests (Files): Likewise.
23241         * modules/fdopendir-tests (Files): Likewise.
23242         * modules/fdutimensat-tests (Files): Likewise.
23243         * modules/fflush-tests (Files): Likewise.
23244         * modules/filevercmp-tests (Files): Likewise.
23245         * modules/flock-tests (Files): Likewise.
23246         * modules/floorf-tests (Files): Likewise.
23247         * modules/floorl-tests (Files): Likewise.
23248         * modules/fnmatch-tests (Files): Likewise.
23249         * modules/fopen-safer-tests (Files): Likewise.
23250         * modules/fopen-tests (Files): Likewise.
23251         * modules/fpending-tests (Files): Likewise.
23252         * modules/fprintf-posix-tests (Files): Likewise.
23253         * modules/fpurge-tests (Files): Likewise.
23254         * modules/freadable-tests (Files): Likewise.
23255         * modules/freadahead-tests (Files): Likewise.
23256         * modules/freading-tests (Files): Likewise.
23257         * modules/freadptr-tests (Files): Likewise.
23258         * modules/freadseek-tests (Files): Likewise.
23259         * modules/freopen-tests (Files): Likewise.
23260         * modules/frexp-nolibm-tests (Files): Likewise.
23261         * modules/frexp-tests (Files): Likewise.
23262         * modules/frexpl-nolibm-tests (Files): Likewise.
23263         * modules/frexpl-tests (Files): Likewise.
23264         * modules/fseek-tests (Files): Likewise.
23265         * modules/fseeko-tests (Files): Likewise.
23266         * modules/fstrcmp-tests (Files): Likewise.
23267         * modules/fsync-tests (Files): Likewise.
23268         * modules/ftell-tests (Files): Likewise.
23269         * modules/ftello-tests (Files): Likewise.
23270         * modules/func-tests (Files): Likewise.
23271         * modules/futimens-tests (Files): Likewise.
23272         * modules/fwritable-tests (Files): Likewise.
23273         * modules/fwriting-tests (Files): Likewise.
23274         * modules/getcwd-tests (Files): Likewise.
23275         * modules/getdate-tests (Files): Likewise.
23276         * modules/getdelim-tests (Files): Likewise.
23277         * modules/getdtablesize-tests (Files): Likewise.
23278         * modules/getgroups-tests (Files): Likewise.
23279         * modules/getline-tests (Files): Likewise.
23280         * modules/getndelim2-tests (Files): Likewise.
23281         * modules/glob-tests (Files): Likewise.
23282         * modules/hash-tests (Files): Likewise.
23283         * modules/i-ring-tests (Files): Likewise.
23284         * modules/iconv-tests (Files): Likewise.
23285         * modules/iconv_open-utf-tests (Files): Likewise.
23286         * modules/idpriv-drop-tests (Files): Likewise.
23287         * modules/idpriv-droptemp-tests (Files): Likewise.
23288         * modules/inet_ntop-tests (Files): Likewise.
23289         * modules/inet_pton-tests (Files): Likewise.
23290         * modules/isblank-tests (Files): Likewise.
23291         * modules/isfinite-tests (Files): Likewise.
23292         * modules/isinf-tests (Files): Likewise.
23293         * modules/isnan-tests (Files): Likewise.
23294         * modules/isnand-nolibm-tests (Files): Likewise.
23295         * modules/isnand-tests (Files): Likewise.
23296         * modules/isnanf-nolibm-tests (Files): Likewise.
23297         * modules/isnanf-tests (Files): Likewise.
23298         * modules/isnanl-nolibm-tests (Files): Likewise.
23299         * modules/isnanl-tests (Files): Likewise.
23300         * modules/lchown-tests (Files): Likewise.
23301         * modules/ldexpl-tests (Files): Likewise.
23302         * modules/link-tests (Files): Likewise.
23303         * modules/linkat-tests (Files): Likewise.
23304         * modules/linked-list-tests (Files): Likewise.
23305         * modules/linkedhash-list-tests (Files): Likewise.
23306         * modules/localename-tests (Files): Likewise.
23307         * modules/lseek-tests (Files): Likewise.
23308         * modules/lstat-tests (Files): Likewise.
23309         * modules/mbmemcasecmp-tests (Files): Likewise.
23310         * modules/mbmemcasecoll-tests (Files): Likewise.
23311         * modules/mbrtowc-tests (Files): Likewise.
23312         * modules/mbscasecmp-tests (Files): Likewise.
23313         * modules/mbscasestr-tests (Files): Likewise.
23314         * modules/mbschr-tests (Files): Likewise.
23315         * modules/mbscspn-tests (Files): Likewise.
23316         * modules/mbsinit-tests (Files): Likewise.
23317         * modules/mbsncasecmp-tests (Files): Likewise.
23318         * modules/mbsnrtowcs-tests (Files): Likewise.
23319         * modules/mbspbrk-tests (Files): Likewise.
23320         * modules/mbspcasecmp-tests (Files): Likewise.
23321         * modules/mbsrchr-tests (Files): Likewise.
23322         * modules/mbsrtowcs-tests (Files): Likewise.
23323         * modules/mbsspn-tests (Files): Likewise.
23324         * modules/mbsstr-tests (Files): Likewise.
23325         * modules/memchr-tests (Files): Likewise.
23326         * modules/memchr2-tests (Files): Likewise.
23327         * modules/memcmp-tests (Files): Likewise.
23328         * modules/memmem-tests (Files): Likewise.
23329         * modules/memrchr-tests (Files): Likewise.
23330         * modules/mkdir-tests (Files): Likewise.
23331         * modules/mkfifo-tests (Files): Likewise.
23332         * modules/mkfifoat-tests (Files): Likewise.
23333         * modules/mknod-tests (Files): Likewise.
23334         * modules/nanosleep-tests (Files): Likewise.
23335         * modules/nl_langinfo-tests (Files): Likewise.
23336         * modules/obstack-printf-tests (Files): Likewise.
23337         * modules/open-tests (Files): Likewise.
23338         * modules/openat-tests (Files): Likewise.
23339         * modules/pipe-filter-gi-tests (Files): Likewise.
23340         * modules/pipe-filter-ii-tests (Files): Likewise.
23341         * modules/pipe2-tests (Files): Likewise.
23342         * modules/popen-safer-tests (Files): Likewise.
23343         * modules/popen-tests (Files): Likewise.
23344         * modules/posixtm-tests (Files): Likewise.
23345         * modules/pread-tests (Files): Likewise.
23346         * modules/printf-frexp-tests (Files): Likewise.
23347         * modules/printf-frexpl-tests (Files): Likewise.
23348         * modules/printf-posix-tests (Files): Likewise.
23349         * modules/priv-set-tests (Files): Likewise.
23350         * modules/quotearg-tests (Files): Likewise.
23351         * modules/random_r-tests (Files): Likewise.
23352         * modules/rawmemchr-tests (Files): Likewise.
23353         * modules/rbtree-list-tests (Files): Likewise.
23354         * modules/rbtree-oset-tests (Files): Likewise.
23355         * modules/rbtreehash-list-tests (Files): Likewise.
23356         * modules/readlink-tests (Files): Likewise.
23357         * modules/remove-tests (Files): Likewise.
23358         * modules/rename-tests (Files): Likewise.
23359         * modules/renameat-tests (Files): Likewise.
23360         * modules/rmdir-tests (Files): Likewise.
23361         * modules/round-tests (Files): Likewise.
23362         * modules/roundf-tests (Files): Likewise.
23363         * modules/roundl-tests (Files): Likewise.
23364         * modules/safe-alloc-tests (Files): Likewise.
23365         * modules/setenv-tests (Files): Likewise.
23366         * modules/sigaction-tests (Files): Likewise.
23367         * modules/signbit-tests (Files): Likewise.
23368         * modules/sleep-tests (Files): Likewise.
23369         * modules/snprintf-posix-tests (Files): Likewise.
23370         * modules/snprintf-tests (Files): Likewise.
23371         * modules/sprintf-posix-tests (Files): Likewise.
23372         * modules/stat-tests (Files): Likewise.
23373         * modules/stat-time-tests (Files): Likewise.
23374         * modules/strcasestr-tests (Files): Likewise.
23375         * modules/strchrnul-tests (Files): Likewise.
23376         * modules/strerror-tests (Files): Likewise.
23377         * modules/striconv-tests (Files): Likewise.
23378         * modules/striconveh-tests (Files): Likewise.
23379         * modules/striconveha-tests (Files): Likewise.
23380         * modules/strsignal-tests (Files): Likewise.
23381         * modules/strstr-tests (Files): Likewise.
23382         * modules/strtod-tests (Files): Likewise.
23383         * modules/strverscmp-tests (Files): Likewise.
23384         * modules/symlink-tests (Files): Likewise.
23385         * modules/symlinkat-tests (Files): Likewise.
23386         * modules/trunc-tests (Files): Likewise.
23387         * modules/truncf-tests (Files): Likewise.
23388         * modules/truncl-tests (Files): Likewise.
23389         * modules/uname-tests (Files): Likewise.
23390         * modules/unicase/cased-tests (Files): Likewise.
23391         * modules/unicase/ignorable-tests (Files): Likewise.
23392         * modules/unicase/locale-language-tests (Files): Likewise.
23393         * modules/unicase/tolower-tests (Files): Likewise.
23394         * modules/unicase/totitle-tests (Files): Likewise.
23395         * modules/unicase/toupper-tests (Files): Likewise.
23396         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23397         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23398         * modules/unicase/u8-casefold-tests (Files): Likewise.
23399         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23400         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23401         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23402         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23403         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23404         * modules/unicase/u8-tolower-tests (Files): Likewise.
23405         * modules/unicase/u8-totitle-tests (Files): Likewise.
23406         * modules/unicase/u8-toupper-tests (Files): Likewise.
23407         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23408         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23409         * modules/unicase/u16-casefold-tests (Files): Likewise.
23410         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23411         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23412         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23413         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23414         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23415         * modules/unicase/u16-tolower-tests (Files): Likewise.
23416         * modules/unicase/u16-totitle-tests (Files): Likewise.
23417         * modules/unicase/u16-toupper-tests (Files): Likewise.
23418         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23419         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23420         * modules/unicase/u32-casefold-tests (Files): Likewise.
23421         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23422         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23423         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23424         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23425         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23426         * modules/unicase/u32-tolower-tests (Files): Likewise.
23427         * modules/unicase/u32-totitle-tests (Files): Likewise.
23428         * modules/unicase/u32-toupper-tests (Files): Likewise.
23429         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23430         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23431         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23432         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23433         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23434         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23435         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23436         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23437         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23438         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23439         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23440         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23441         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23442         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23443         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23444         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23445         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23446         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23447         * modules/unictype/block-list-tests (Files): Likewise.
23448         * modules/unictype/block-of-tests (Files): Likewise.
23449         * modules/unictype/block-test-tests (Files): Likewise.
23450         * modules/unictype/category-C-tests (Files): Likewise.
23451         * modules/unictype/category-Cc-tests (Files): Likewise.
23452         * modules/unictype/category-Cf-tests (Files): Likewise.
23453         * modules/unictype/category-Cn-tests (Files): Likewise.
23454         * modules/unictype/category-Co-tests (Files): Likewise.
23455         * modules/unictype/category-Cs-tests (Files): Likewise.
23456         * modules/unictype/category-L-tests (Files): Likewise.
23457         * modules/unictype/category-Ll-tests (Files): Likewise.
23458         * modules/unictype/category-Lm-tests (Files): Likewise.
23459         * modules/unictype/category-Lo-tests (Files): Likewise.
23460         * modules/unictype/category-Lt-tests (Files): Likewise.
23461         * modules/unictype/category-Lu-tests (Files): Likewise.
23462         * modules/unictype/category-M-tests (Files): Likewise.
23463         * modules/unictype/category-Mc-tests (Files): Likewise.
23464         * modules/unictype/category-Me-tests (Files): Likewise.
23465         * modules/unictype/category-Mn-tests (Files): Likewise.
23466         * modules/unictype/category-N-tests (Files): Likewise.
23467         * modules/unictype/category-Nd-tests (Files): Likewise.
23468         * modules/unictype/category-Nl-tests (Files): Likewise.
23469         * modules/unictype/category-No-tests (Files): Likewise.
23470         * modules/unictype/category-P-tests (Files): Likewise.
23471         * modules/unictype/category-Pc-tests (Files): Likewise.
23472         * modules/unictype/category-Pd-tests (Files): Likewise.
23473         * modules/unictype/category-Pe-tests (Files): Likewise.
23474         * modules/unictype/category-Pf-tests (Files): Likewise.
23475         * modules/unictype/category-Pi-tests (Files): Likewise.
23476         * modules/unictype/category-Po-tests (Files): Likewise.
23477         * modules/unictype/category-Ps-tests (Files): Likewise.
23478         * modules/unictype/category-S-tests (Files): Likewise.
23479         * modules/unictype/category-Sc-tests (Files): Likewise.
23480         * modules/unictype/category-Sk-tests (Files): Likewise.
23481         * modules/unictype/category-Sm-tests (Files): Likewise.
23482         * modules/unictype/category-So-tests (Files): Likewise.
23483         * modules/unictype/category-Z-tests (Files): Likewise.
23484         * modules/unictype/category-Zl-tests (Files): Likewise.
23485         * modules/unictype/category-Zp-tests (Files): Likewise.
23486         * modules/unictype/category-Zs-tests (Files): Likewise.
23487         * modules/unictype/category-and-not-tests (Files): Likewise.
23488         * modules/unictype/category-and-tests (Files): Likewise.
23489         * modules/unictype/category-byname-tests (Files): Likewise.
23490         * modules/unictype/category-name-tests (Files): Likewise.
23491         * modules/unictype/category-none-tests (Files): Likewise.
23492         * modules/unictype/category-of-tests (Files): Likewise.
23493         * modules/unictype/category-or-tests (Files): Likewise.
23494         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23495         * modules/unictype/combining-class-tests (Files): Likewise.
23496         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23497         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23498         * modules/unictype/ctype-blank-tests (Files): Likewise.
23499         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23500         * modules/unictype/ctype-digit-tests (Files): Likewise.
23501         * modules/unictype/ctype-graph-tests (Files): Likewise.
23502         * modules/unictype/ctype-lower-tests (Files): Likewise.
23503         * modules/unictype/ctype-print-tests (Files): Likewise.
23504         * modules/unictype/ctype-punct-tests (Files): Likewise.
23505         * modules/unictype/ctype-space-tests (Files): Likewise.
23506         * modules/unictype/ctype-upper-tests (Files): Likewise.
23507         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23508         * modules/unictype/decimal-digit-tests (Files): Likewise.
23509         * modules/unictype/digit-tests (Files): Likewise.
23510         * modules/unictype/mirror-tests (Files): Likewise.
23511         * modules/unictype/numeric-tests (Files): Likewise.
23512         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23513         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23514         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23515         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23516         Likewise.
23517         * modules/unictype/property-bidi-block-separator-tests (Files):
23518         Likewise.
23519         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23520         Likewise.
23521         * modules/unictype/property-bidi-common-separator-tests (Files):
23522         Likewise.
23523         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23524         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23525         Likewise.
23526         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23527         Likewise.
23528         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23529         Likewise.
23530         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23531         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23532         Likewise.
23533         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23534         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23535         Likewise.
23536         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23537         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23538         * modules/unictype/property-bidi-segment-separator-tests (Files):
23539         Likewise.
23540         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23541         * modules/unictype/property-byname-tests (Files): Likewise.
23542         * modules/unictype/property-combining-tests (Files): Likewise.
23543         * modules/unictype/property-composite-tests (Files): Likewise.
23544         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23545         * modules/unictype/property-dash-tests (Files): Likewise.
23546         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23547         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23548         Likewise.
23549         * modules/unictype/property-deprecated-tests (Files): Likewise.
23550         * modules/unictype/property-diacritic-tests (Files): Likewise.
23551         * modules/unictype/property-extender-tests (Files): Likewise.
23552         * modules/unictype/property-format-control-tests (Files): Likewise.
23553         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23554         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23555         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23556         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23557         * modules/unictype/property-hyphen-tests (Files): Likewise.
23558         * modules/unictype/property-id-continue-tests (Files): Likewise.
23559         * modules/unictype/property-id-start-tests (Files): Likewise.
23560         * modules/unictype/property-ideographic-tests (Files): Likewise.
23561         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23562         * modules/unictype/property-ids-trinary-operator-tests (Files):
23563         Likewise.
23564         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23565         * modules/unictype/property-iso-control-tests (Files): Likewise.
23566         * modules/unictype/property-join-control-tests (Files): Likewise.
23567         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23568         * modules/unictype/property-line-separator-tests (Files): Likewise.
23569         * modules/unictype/property-logical-order-exception-tests (Files):
23570         Likewise.
23571         * modules/unictype/property-lowercase-tests (Files): Likewise.
23572         * modules/unictype/property-math-tests (Files): Likewise.
23573         * modules/unictype/property-non-break-tests (Files): Likewise.
23574         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23575         * modules/unictype/property-numeric-tests (Files): Likewise.
23576         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23577         * modules/unictype/property-other-default-ignorable-code-point-tests
23578         (Files): Likewise.
23579         * modules/unictype/property-other-grapheme-extend-tests (Files):
23580         Likewise.
23581         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23582         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23583         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23584         * modules/unictype/property-other-math-tests (Files): Likewise.
23585         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23586         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23587         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23588         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23589         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23590         * modules/unictype/property-private-use-tests (Files): Likewise.
23591         * modules/unictype/property-punctuation-tests (Files): Likewise.
23592         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23593         * modules/unictype/property-radical-tests (Files): Likewise.
23594         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23595         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23596         * modules/unictype/property-space-tests (Files): Likewise.
23597         * modules/unictype/property-terminal-punctuation-tests (Files):
23598         Likewise.
23599         * modules/unictype/property-test-tests (Files): Likewise.
23600         * modules/unictype/property-titlecase-tests (Files): Likewise.
23601         * modules/unictype/property-unassigned-code-value-tests (Files):
23602         Likewise.
23603         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23604         * modules/unictype/property-uppercase-tests (Files): Likewise.
23605         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23606         * modules/unictype/property-white-space-tests (Files): Likewise.
23607         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23608         * modules/unictype/property-xid-start-tests (Files): Likewise.
23609         * modules/unictype/property-zero-width-tests (Files): Likewise.
23610         * modules/unictype/scripts-tests (Files): Likewise.
23611         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23612         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23613         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23614         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23615         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23616         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23617         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23618         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23619         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23620         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23621         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23622         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23623         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23624         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23625         * modules/uninorm/composition-tests (Files): Likewise.
23626         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23627         * modules/uninorm/decomposition-tests (Files): Likewise.
23628         * modules/uninorm/filter-tests (Files): Likewise.
23629         * modules/uninorm/nfc-tests (Files): Likewise.
23630         * modules/uninorm/nfd-tests (Files): Likewise.
23631         * modules/uninorm/nfkc-tests (Files): Likewise.
23632         * modules/uninorm/nfkd-tests (Files): Likewise.
23633         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23634         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23635         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23636         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23637         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23638         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23639         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23640         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23641         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23642         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23643         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23644         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23645         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23646         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23647         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23648         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23649         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23650         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23651         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23652         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23653         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23654         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23655         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23656         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23657         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23658         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23659         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23660         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23661         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23662         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23663         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23664         * modules/uniwidth/u8-width-tests (Files): Likewise.
23665         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23666         * modules/uniwidth/u16-width-tests (Files): Likewise.
23667         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23668         * modules/uniwidth/u32-width-tests (Files): Likewise.
23669         * modules/uniwidth/width-tests (Files): Likewise.
23670         * modules/unlink-tests (Files): Likewise.
23671         * modules/unsetenv-tests (Files): Likewise.
23672         * modules/usleep-tests (Files): Likewise.
23673         * modules/utimens-tests (Files): Likewise.
23674         * modules/utimensat-tests (Files): Likewise.
23675         * modules/vasnprintf-posix-tests (Files): Likewise.
23676         * modules/vasnprintf-tests (Files): Likewise.
23677         * modules/vasprintf-posix-tests (Files): Likewise.
23678         * modules/vasprintf-tests (Files): Likewise.
23679         * modules/vdprintf-posix-tests (Files): Likewise.
23680         * modules/vfprintf-posix-tests (Files): Likewise.
23681         * modules/vprintf-posix-tests (Files): Likewise.
23682         * modules/vsnprintf-posix-tests (Files): Likewise.
23683         * modules/vsnprintf-tests (Files): Likewise.
23684         * modules/vsprintf-posix-tests (Files): Likewise.
23685         * modules/wcrtomb-tests (Files): Likewise.
23686         * modules/wcsnrtombs-tests (Files): Likewise.
23687         * modules/wcsrtombs-tests (Files): Likewise.
23688         * modules/wctype-tests (Files): Likewise.
23689         * modules/wcwidth-tests (Files): Likewise.
23690         * modules/xmemdup0-tests (Files): Likewise.
23691         * modules/xprintf-posix-tests (Files): Likewise.
23692         * modules/xvasprintf-tests (Files): Likewise.
23693
23694 2009-12-24  Eric Blake  <ebb9@byu.net>
23695
23696         test-nanosleep: fix typo
23697         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23698         patch.
23699         Reported by Bruno Haible.
23700
23701 2009-12-24  Bruno Haible  <bruno@clisp.org>
23702
23703         Reduce namespace pollution on glibc systems.
23704         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23705         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23706         systems.
23707         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23708         <getopt.h> on glibc systems.
23709         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23710         systems.
23711         * lib/fcntl.c: Include <unistd.h> here instead.
23712
23713 2009-12-24  Bruno Haible  <bruno@clisp.org>
23714
23715         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23716
23717 2009-12-24  Eric Blake  <ebb9@byu.net>
23718
23719         tests: add signature checks
23720         * tests/signature.h (SIGNATURE_CHECK): New file.
23721         * modules/atexit-tests (Files): Use it.
23722         * modules/btowc-tests (Files): Likewise.
23723         * modules/canonicalize-lgpl-tests (Files): Likewise.
23724         * modules/ceilf-tests (Files): Likewise.
23725         * modules/ceill-tests (Files): Likewise.
23726         * modules/chown-tests (Files): Likewise.
23727         * modules/dprintf-posix-tests (Files): Likewise.
23728         * modules/dup2-tests (Files): Likewise.
23729         * modules/dup3-tests (Files): Likewise.
23730         * modules/duplocale-tests (Files): Likewise.
23731         * modules/fchdir-tests (Files): Likewise.
23732         * modules/fcntl-tests (Files): Likewise.
23733         * modules/fdopendir-tests (Files): Likewise.
23734         * modules/fflush-tests (Files): Likewise.
23735         * modules/flock-tests (Files): Likewise.
23736         * modules/floorf-tests (Files): Likewise.
23737         * modules/floorl-tests (Files): Likewise.
23738         * modules/fnmatch-tests (Files): Likewise.
23739         * modules/fopen-tests (Files): Likewise.
23740         * modules/fprintf-posix-tests (Files): Likewise.
23741         * modules/freopen-tests (Files): Likewise.
23742         * modules/frexp-nolibm-tests (Files): Likewise.
23743         * modules/frexp-tests (Files): Likewise.
23744         * modules/frexpl-nolibm-tests (Files): Likewise.
23745         * modules/frexpl-tests (Files): Likewise.
23746         * modules/fseek-tests (Files): Likewise.
23747         * modules/fseeko-tests (Files): Likewise.
23748         * modules/fsync-tests (Files): Likewise.
23749         * modules/ftell-tests (Files): Likewise.
23750         * modules/ftello-tests (Files): Likewise.
23751         * modules/futimens-tests (Files): Likewise.
23752         * modules/getaddrinfo-tests (Files): Likewise.
23753         * modules/getcwd-tests (Files): Likewise.
23754         * modules/getdelim-tests (Files): Likewise.
23755         * modules/getdtablesize-tests (Files): Likewise.
23756         * modules/getgroups-tests (Files): Likewise.
23757         * modules/gethostname-tests (Files): Likewise.
23758         * modules/getline-tests (Files): Likewise.
23759         * modules/getopt-posix-tests (Files): Likewise.
23760         * modules/gettimeofday-tests (Files): Likewise.
23761         * modules/glob-tests (Files): Likewise.
23762         * modules/iconv-tests (Files): Likewise.
23763         * modules/inet_ntop-tests (Files): Likewise.
23764         * modules/inet_pton-tests (Files): Likewise.
23765         * modules/isblank-tests (Files): Likewise.
23766         * modules/lchown-tests (Files): Likewise.
23767         * modules/ldexpl-tests (Files): Likewise.
23768         * modules/link-tests (Files): Likewise.
23769         * modules/linkat-tests (Files): Likewise.
23770         * modules/lseek-tests (Files): Likewise.
23771         * modules/lstat-tests (Files): Likewise.
23772         * modules/mbrtowc-tests (Files): Likewise.
23773         * modules/mbsinit-tests (Files): Likewise.
23774         * modules/mbsnrtowcs-tests (Files): Likewise.
23775         * modules/mbsrtowcs-tests (Files): Likewise.
23776         * modules/memchr-tests (Files): Likewise.
23777         * modules/memcmp-tests (Files): Likewise.
23778         * modules/memmem-tests (Files): Likewise.
23779         * modules/memrchr-tests (Files): Likewise.
23780         * modules/mkdir-tests (Files): Likewise.
23781         * modules/mkfifo-tests (Files): Likewise.
23782         * modules/mkfifoat-tests (Files): Likewise.
23783         * modules/mknod-tests (Files): Likewise.
23784         * modules/nanosleep-tests (Files): Likewise.
23785         * modules/nl_langinfo-tests (Files): Likewise.
23786         * modules/obstack-printf-tests (Files): Likewise.
23787         * modules/open-tests (Files): Likewise.
23788         * modules/openat-tests (Files): Likewise.
23789         * modules/perror-tests (Files): Likewise.
23790         * modules/pipe2-tests (Files): Likewise.
23791         * modules/poll-tests (Files): Likewise.
23792         * modules/popen-tests (Files): Likewise.
23793         * modules/posix_spawn-tests (Files): Likewise.
23794         * modules/posix_spawnp-tests (Files): Likewise.
23795         * modules/pread-tests (Files): Likewise.
23796         * modules/printf-posix-tests (Files): Likewise.
23797         * modules/pty-tests (Files): Likewise.
23798         * modules/random_r-tests (Files): Likewise.
23799         * modules/rawmemchr-tests (Files): Likewise.
23800         * modules/readlink-tests (Files): Likewise.
23801         * modules/remove-tests (Files): Likewise.
23802         * modules/rename-tests (Files): Likewise.
23803         * modules/renameat-tests (Files): Likewise.
23804         * modules/rmdir-tests (Files): Likewise.
23805         * modules/round-tests (Files): Likewise.
23806         * modules/roundf-tests (Files): Likewise.
23807         * modules/roundl-tests (Files): Likewise.
23808         * modules/select-tests (Files): Likewise.
23809         * modules/setenv-tests (Files): Likewise.
23810         * modules/sigaction-tests (Files): Likewise.
23811         * modules/sleep-tests (Files): Likewise.
23812         * modules/snprintf-posix-tests (Files): Likewise.
23813         * modules/snprintf-tests (Files): Likewise.
23814         * modules/sprintf-posix-tests (Files): Likewise.
23815         * modules/stat-tests (Files): Likewise.
23816         * modules/strcasestr-tests (Files): Likewise.
23817         * modules/strchrnul-tests (Files): Likewise.
23818         * modules/strerror-tests (Files): Likewise.
23819         * modules/strsignal-tests (Files): Likewise.
23820         * modules/strstr-tests (Files): Likewise.
23821         * modules/strtod-tests (Files): Likewise.
23822         * modules/strverscmp-tests (Files): Likewise.
23823         * modules/symlink-tests (Files): Likewise.
23824         * modules/symlinkat-tests (Files): Likewise.
23825         * modules/times-tests (Files): Likewise.
23826         * modules/trunc-tests (Files): Likewise.
23827         * modules/truncf-tests (Files): Likewise.
23828         * modules/truncl-tests (Files): Likewise.
23829         * modules/tsearch-tests (Files): Likewise.
23830         * modules/uname-tests (Files): Likewise.
23831         * modules/unlink-tests (Files): Likewise.
23832         * modules/unsetenv-tests (Files): Likewise.
23833         * modules/usleep-tests (Files): Likewise.
23834         * modules/utimensat-tests (Files): Likewise.
23835         * modules/vasprintf-tests (Files): Likewise.
23836         * modules/vdprintf-posix-tests (Files): Likewise.
23837         * modules/vfprintf-posix-tests (Files): Likewise.
23838         * modules/vprintf-posix-tests (Files): Likewise.
23839         * modules/vsnprintf-posix-tests (Files): Likewise.
23840         * modules/vsnprintf-tests (Files): Likewise.
23841         * modules/vsprintf-posix-tests (Files): Likewise.
23842         * modules/wcrtomb-tests (Files): Likewise.
23843         * modules/wcsnrtombs-tests (Files): Likewise.
23844         * modules/wcsrtombs-tests (Files): Likewise.
23845         * modules/wcwidth-tests (Files): Likewise.
23846         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23847         * tests/test-isinf.c (isinf): Likewise.
23848         * tests/test-isnan.c (isnan): Likewise.
23849         * tests/test-signbit.c (signbit): Likewise.
23850         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23851         declaration, either as macro or with correct signature.
23852         (select): Ensure function under test is declared with correct
23853         signature in correct header.
23854         * tests/test-atexit.c (atexit): Likewise.
23855         * tests/test-btowc.c (btowc): Likewise.
23856         * tests/test-canonicalize-lgpl.c (realpath)
23857         (canonicalize_file_name): Likewise.
23858         * tests/test-ceilf1.c (ceilf): Likewise.
23859         * tests/test-ceill.c (ceill): Likewise.
23860         * tests/test-chown.c (chown): Likewise.
23861         * tests/test-dprintf-posix.c (dprintf): Likewise.
23862         * tests/test-dup2.c (dup2): Likewise.
23863         * tests/test-dup3.c (dup3): Likewise.
23864         * tests/test-duplocale.c (duplocale): Likewise.
23865         * tests/test-fchdir.c (fchdir): Likewise.
23866         * tests/test-fchownat.c (fchownat): Likewise.
23867         * tests/test-fcntl.c (fcntl): Likewise.
23868         * tests/test-fdopendir.c (fdopendir): Likewise.
23869         * tests/test-fflush.c (fflush): Likewise.
23870         * tests/test-flock.c (flock): Likewise.
23871         * tests/test-floorf1.c (floorf): Likewise.
23872         * tests/test-floorl.c (floorl): Likewise.
23873         * tests/test-fnmatch.c (fnmatch): Likewise.
23874         * tests/test-fopen.c (fopen): Likewise.
23875         * tests/test-fprintf-posix.c (fprintf): Likewise.
23876         * tests/test-freopen.c (freopen): Likewise.
23877         * tests/test-frexp.c (frexp): Likewise.
23878         * tests/test-frexpl.c (frexpl): Likewise.
23879         * tests/test-fseek.c (fseek): Likewise.
23880         * tests/test-fseeko.c (fseeko): Likewise.
23881         * tests/test-fstatat.c (fstatat): Likewise.
23882         * tests/test-fsync.c (fsync): Likewise.
23883         * tests/test-ftell.c (ftell): Likewise.
23884         * tests/test-ftello.c (ftello): Likewise.
23885         * tests/test-futimens.c (futimens): Likewise.
23886         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23887         (gai_strerror): Likewise.
23888         * tests/test-getcwd.c (getcwd): Likewise.
23889         * tests/test-getdelim.c (getdelim): Likewise.
23890         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23891         * tests/test-getgroups.c (getgroups): Likewise.
23892         * tests/test-gethostname.c (gethostname): Likewise.
23893         * tests/test-getline.c (getline): Likewise.
23894         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23895         Likewise.
23896         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23897         * tests/test-glob.c (glob, globfree): Likewise.
23898         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23899         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23900         * tests/test-inet_pton.c (inet_pton): Likewise.
23901         * tests/test-isblank.c (isblank): Likewise.
23902         * tests/test-lchown.c (lchown): Likewise.
23903         * tests/test-ldexpl.c (ldexpl): Likewise.
23904         * tests/test-link.c (link): Likewise.
23905         * tests/test-linkat.c (linkat): Likewise.
23906         * tests/test-lseek.c (lseek): Likewise.
23907         * tests/test-lstat.c (lstat): Likewise.
23908         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23909         * tests/test-mbsinit.c (mbsinit): Likewise.
23910         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23911         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23912         * tests/test-memchr.c (memchr): Likewise.
23913         * tests/test-memcmp.c (memcmp): Likewise.
23914         * tests/test-memmem.c (memmem): Likewise.
23915         * tests/test-memrchr.c (memrchr): Likewise.
23916         * tests/test-mkdir.c (mkdir): Likewise.
23917         * tests/test-mkdirat.c (mkdirat): Likewise.
23918         * tests/test-mkfifo.c (mkfifo): Likewise.
23919         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23920         * tests/test-mknod.c (mknod): Likewise.
23921         * tests/test-nanosleep.c (nanosleep): Likewise.
23922         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23923         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23924         Likewise.
23925         * tests/test-open.c (open): Likewise.
23926         * tests/test-openat.c (openat): Likewise.
23927         * tests/test-perror.c (perror): Likewise.
23928         * tests/test-pipe2.c (pipe2): Likewise.
23929         * tests/test-poll.c (poll): Likewise.
23930         * tests/test-popen.c (popen, pclose): Likewise.
23931         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23932         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23933         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23934         (posix_spawn_file_actions_destroy)
23935         (posix_spawn_file_actions_addclose)
23936         (posix_spawn_file_actions_addopen)
23937         (posix_spawn_file_actions_adddup2): Likewise.
23938         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23939         * tests/test-pread.c (pread): Likewise.
23940         * tests/test-printf-posix.c (printf): Likewise.
23941         * tests/test-pty.c (openpty, forkpty): Likewise.
23942         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23943         (random_r): Likewise.
23944         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23945         * tests/test-readlink.c (readlink): Likewise.
23946         * tests/test-remove.c (remove): Likewise.
23947         * tests/test-rename.c (rename): Likewise.
23948         * tests/test-renameat.c (renameat): Likewise.
23949         * tests/test-rmdir.c (rmdir): Likewise.
23950         * tests/test-round1.c (round): Likewise.
23951         * tests/test-roundf1.c (roundf): Likewise.
23952         * tests/test-roundl.c (roundl): Likewise.
23953         * tests/test-setenv.c (setenv): Likewise.
23954         * tests/test-sigaction.c (sigaction): Likewise.
23955         * tests/test-sleep.c (sleep): Likewise.
23956         * tests/test-snprintf.c (snprintf): Likewise.
23957         * tests/test-sprintf-posix.c (sprintf): Likewise.
23958         * tests/test-stat.c (stat): Likewise.
23959         * tests/test-stpncpy.c (stpncpy): Likewise.
23960         * tests/test-strcasestr.c (strcasestr): Likewise.
23961         * tests/test-strchrnul.c (strchrnul): Likewise.
23962         * tests/test-strerror.c (strerror): Likewise.
23963         * tests/test-strsignal.c (strsignal): Likewise.
23964         * tests/test-strstr.c (strstr): Likewise.
23965         * tests/test-strtod.c (strtod): Likewise.
23966         * tests/test-strverscmp.c (strverscmp): Likewise.
23967         * tests/test-symlink.c (symlink): Likewise.
23968         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23969         * tests/test-times.c (times): Likewise.
23970         * tests/test-trunc1.c (trunc): Likewise.
23971         * tests/test-truncf1.c (truncf): Likewise.
23972         * tests/test-truncl.c (truncl): Likewise.
23973         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23974         Likewise.
23975         * tests/test-uname.c (uname): Likewise.
23976         * tests/test-unlink.c (unlink): Likewise.
23977         * tests/test-unlinkat.c (unlinkat): Likewise.
23978         * tests/test-unsetenv.c (unsetenv): Likewise.
23979         * tests/test-usleep.c (usleep): Likewise.
23980         * tests/test-utimensat.c (utimensat): Likewise.
23981         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23982         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23983         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23984         * tests/test-vprintf-posix.c (vprintf): Likewise.
23985         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23986         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23987         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23988         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23989         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23990         * tests/test-wcwidth.c (wcwidth): Likewise.
23991
23992         build: pull in conditional headers during GNULIB_POSIXCHECK
23993         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23994         definitions from any conditionally-included headers.
23995         * lib/stdlib.in.h (includes): Likewise.
23996         * lib/unistd.in.h (includes): Likewise.
23997
23998 2009-12-24  Bruno Haible  <bruno@clisp.org>
23999
24000         * tests/test-argv-iter.c: Include header file being tested immediately
24001         after config.h.
24002         * tests/test-base64.c: Likewise.
24003         * tests/test-flock.c: Likewise.
24004         * tests/test-fsync.c: Likewise.
24005         * tests/test-getdate.c: Likewise.
24006         * tests/test-getndelim2.c: Likewise.
24007         * tests/test-isfinite.c: Likewise.
24008         * tests/test-isinf.c: Likewise.
24009         * tests/test-strerror.c: Likewise.
24010         * tests/test-strsignal.c: Likewise.
24011
24012 2009-12-23  Eric Blake  <ebb9@byu.net>
24013
24014         unistd: work around cygwin bug
24015         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24016         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24017         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24018
24019 2009-12-23  Bruno Haible  <bruno@clisp.org>
24020
24021         localename: More tests.
24022         * tests/test-localename.c (SIZEOF): New macro.
24023         (categories): New variable.
24024         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24025         test_locale_name_default): Add test w.r.t. thread locale.
24026         (test_locale_name_thread): New function.
24027         (main): Invoke it.
24028
24029         localename: Make aware of thread locale.
24030         * lib/localename.h (gl_locale_name_thread): New declaration.
24031         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24032         behaviour with respect to thread locale.
24033         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24034         <langinfo.h>, glthread/lock.h.
24035         (SIZE_BITS): New macro.
24036         (string_hash): New function.
24037         (struct hash_node): New type.
24038         (HASH_TABLE_SIZE): New macro.
24039         (struniq_hash_table, struniq_lock): New variables.
24040         (struniq): New function.
24041         (gl_locale_name_thread): New function.
24042         (gl_locale_name): Invoke it.
24043         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24044         * modules/localename (Depends-on): Add lock.
24045         Reported by Mike Gran <spk121@yahoo.com>.
24046
24047 2009-12-23  Eric Blake  <ebb9@byu.net>
24048
24049         va-args: new module
24050         * modules/va-args: New file.
24051         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24052         * MODULES.html.sh (Core language properties): Mention it.
24053
24054         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24055         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24056         named alias for __attribute__((__unused__)).
24057         * lib/chown.c: Update client.
24058         * lib/fchmodat.c: Likewise.
24059         * lib/fts.c: Likewise.
24060         * lib/getdate.y: Likewise.
24061         * lib/getgroups.c: Likewise.
24062         * lib/getopt.c: Likewise.
24063         * lib/getugroups.c: Likewise.
24064         * lib/mkdir.c: Likewise.
24065         * lib/mkfifo.c: Likewise.
24066         * lib/mkfifoat.c: Likewise.
24067         * lib/mknod.c: Likewise.
24068         * lib/mknodat.c: Likewise.
24069         * lib/readlink.c: Likewise.
24070         * lib/se-context.in.h: Likewise.
24071         * lib/se-selinux.in.h: Likewise.
24072         * lib/sockets.c: Likewise.
24073         * lib/symlink.c: Likewise.
24074         * lib/symlinkat.c: Likewise.
24075         * lib/unicodeio.c: Likewise.
24076         * lib/unistr.h: Likewise.
24077         * tests/test-areadlink.c: Likewise.
24078         * tests/test-areadlinkat.c: Likewise.
24079         * tests/test-filenamecat.c: Likewise.
24080         * tests/test-fseeko.c: Likewise.
24081         * tests/test-ftello.c: Likewise.
24082         * tests/test-getdate.c: Likewise.
24083         * tests/test-getgroups.c: Likewise.
24084         * tests/test-gethostname.c: Likewise.
24085         * tests/test-quotearg.c: Likewise.
24086         * tests/test-version-etc.c: Likewise.
24087         * tests/test-xalloc-die.c: Likewise.
24088         * tests/test-xfprintf-posix.c: Likewise.
24089         * tests/test-xprintf-posix.c: Likewise.
24090         * tests/test-xvasprintf.c: Likewise.
24091
24092         tests: avoid compiler warnings
24093         * tests/test-fcntl.c (main): Delete unused parameters.
24094         * tests/test-freopen-safer.c (main): Likewise.
24095         * tests/test-xalloc-die.c (main): Mark unused parameters.
24096         * tests/test-fseeko.c (main): Likewise.
24097         * tests/test-ftello.c (main): Likewise.
24098         * tests/test-nanosleep.c (main): Avoid declaration warning.
24099         * tests/test-sleep.c (main): Likewise.
24100         * tests/test-unsetenv.c (main): Silence warning about string
24101         literal.
24102         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24103
24104 2009-12-23  Bruno Haible  <bruno@clisp.org>
24105
24106         * tests/test-localename.c (test_locale_name): New function, extracted
24107         from main. Also test mixed situations.
24108         (test_locale_name_posix, test_locale_name_environ,
24109         test_locale_name_default): New functions.
24110         (main): Invoke them all.
24111         * modules/localename-tests (configure.ac): Test for newlocale.
24112
24113 2009-12-23  Bruno Haible  <bruno@clisp.org>
24114
24115         unistd: Ensure getcwd gets declared before being overridden.
24116         * lib/unistd.in.h: Conditionally include <io.h>.
24117
24118 2009-12-22  Bruno Haible  <bruno@clisp.org>
24119
24120         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24121         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24122         (gl_WCHAR_H): Invoke it.
24123         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24124         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24125         Reported by Karl Berry <karl@freefriends.org>.
24126
24127 2009-12-22  Eric Blake  <ebb9@byu.net>
24128
24129         math, unistd: avoid redundant includes
24130         * lib/math.in.h (isnan): No need to re-include <math.h>.
24131         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24132
24133         getsubopt: work around cygwin bug
24134         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24135         avoid conflicting with system getsubopt.
24136         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24137         bug.
24138
24139         getopt: synchronize from glibc
24140         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24141         parameter order.  Adjust all callers.
24142         (_getopt_internal_r, main): Adjust quoting in error messages.
24143         Drop considerations for outdated POSIX 1003.2 error message.
24144         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24145         callers.
24146         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24147
24148         test-getopt: test stderr behavior
24149         * modules/getopt-posix-tests (Depends-on): Add dup2.
24150         * tests/test-getopt.c (ASSERT): Avoid stderr.
24151         (main): Move stderr to a temporary file.
24152         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24153         Instead, add parameter to inform caller if output occurred.
24154         (test_getopt): Adjust all existing tests to expect silence, and
24155         add new tests of leading ":".
24156         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24157         glibc shortcomings with leading "-:" or "+:" in optstring.
24158         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24159         Likewise.
24160         * doc/posix-functions/getopt.texi (getopt): Likewise.
24161
24162         test-getopt: enhance test
24163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24164         supports optind=0.
24165         * tests/test-getopt.c (OPTIND_MIN): Move...
24166         * tests/test-getopt.h (OPTIND_MIN): ...here.
24167         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24168         Require that optind=0 works, since modern BSD supports it in
24169         addition to optreset, and since coreutils expects it.
24170         (test_getopt_long_only): New test.
24171         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24172         glibc shortcomings with 'W;', and enforcement of optind=0.
24173         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24174         Likewise.
24175
24176 2009-12-21  Bruno Haible  <bruno@clisp.org>
24177
24178         localename: Improvements for MacOS X and Cygwin.
24179         * lib/localename.h (gl_locale_name_environ): New declaration.
24180         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24181         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24182         (gl_locale_name_posix): Invoke it.
24183         (gl_locale_name_default): Add comments. Use Windows native API also on
24184         Cygwin.
24185
24186 2009-12-21  Bruno Haible  <bruno@clisp.org>
24187
24188         Update list of Win32 locale ids.
24189         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24190         (LANG_SAMI): Renamed from LANG_SAAMI.
24191         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24192         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24193         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24194         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24195         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24196         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24197         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24198         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24199         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24200         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24201         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24202         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24203         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24204         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24205         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24206         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24207         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24208         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24209         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24210         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24211         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24212         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24213         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24214         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24215         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24216         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24217         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24218         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24219         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24220         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24221         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24222         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24223         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24224         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24225         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24226         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24227         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24228         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24229         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24230         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24231         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24232         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24233         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24234         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24235         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24236         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24237         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24238         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24239         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24240         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24241         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24242         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24243         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24244         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24245         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24246         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24247         Add more languages and countries for Sami, Sorbian. Add more countries
24248         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24249         for Pashto. Change country for Syriac, Tswana.
24250
24251 2009-12-21  Eric Blake  <ebb9@byu.net>
24252
24253         test-utimens: avoid spurious failure
24254         * tests/test-chown.h (nap): Factor...
24255         * tests/nap.h: ...into new file.
24256         * tests/test-lchown.h (nap): Avoid duplication.
24257         * tests/test-utimens-common.h (nap): Use shared implementation,
24258         necessary on file systems with 1-second resolution.
24259         * modules/chown-tests (Files): Include new file.
24260         * modules/fdutimensat-tests (Files): Likewise.
24261         * modules/futimens-tests (Files): Likewise.
24262         * modules/lchown-tests (Files): Likewise.
24263         * modules/openat-tests (Files): Likewise.
24264         * modules/utimens-tests (Files): Likewise.
24265         * modules/utimensat-tests (Files): Likewise.
24266
24267 2009-12-19  Eric Blake  <ebb9@byu.net>
24268
24269         futimens, utimensat: work around Linux bug
24270         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24271         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24272         * lib/utimensat.c (rpl_utimensat): Work around it.
24273         * lib/futimens.c (rpl_futimens): Adjust comment.
24274
24275         utimens: work around Linux ctime bug
24276         * lib/utimens.c (detect_ctime_bug): New helper function.
24277         (update_timespec): Differentiate between workaround needed for
24278         this bug vs. what is needed for systems that lack utimensat.
24279         (fdutimens, lutimens): Work around bug.
24280
24281         utimens: check for ctime update
24282         * tests/test-utimens-common.h (check_ctime): Define.
24283         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24284         * tests/test-futimens.h (test_futimens): Likewise.
24285         * tests/test-lutimens.h (test_lutimens): Likewise.
24286         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24287         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24288
24289 2009-12-19  Bruno Haible  <bruno@clisp.org>
24290
24291         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24292         * tests/test-dprintf-posix2.sh: New file.
24293         * tests/test-dprintf-posix2.c: New file.
24294         * modules/dprintf-posix-tests (Files): Add them.
24295         (configure.ac): Check for getrlimit and setrlimit.
24296         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24297
24298 2009-12-19  Bruno Haible  <bruno@clisp.org>
24299
24300         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24301         * tests/test-fprintf-posix3.sh: New file.
24302         * tests/test-fprintf-posix3.c: New file.
24303         * modules/fprintf-posix-tests (Files): Add them.
24304         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24305
24306 2009-12-19  Eric Blake  <ebb9@byu.net>
24307
24308         dirfd: fix prototype
24309         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24310         * lib/dirfd.c (dirfd): Likewise.
24311
24312         canonicalize: reduce memory usage
24313         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24314         allocation to size.
24315         Reported by Solar Designer <solar@openwall.com>.
24316
24317 2009-12-19  Bruno Haible  <bruno@clisp.org>
24318
24319         New module attribute 'Applicability'.
24320         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24321         * gnulib-tool: New option --extract-applicability.
24322         (func_usage): Document it.
24323         (sed_extract_prog): Recognize it.
24324         (func_get_applicability): New function.
24325         (func_import): Generalize handling of 'link-warning' module.
24326         * modules/link-warning (Applicability): New section.
24327         * modules/arg-nonnull (Applicability): New section.
24328         Repoted by Simon Josefsson <simon@josefsson.org>.
24329
24330 2009-12-19  Bruno Haible  <bruno@clisp.org>
24331
24332         fflush: tweak
24333         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24334         * lib/fseeko.c (rpl_fseeko): Likewise.
24335
24336 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24337
24338         * lib/gl_list.h: Fix typo in comment.
24339
24340 2009-12-16  Eric Blake  <ebb9@byu.net>
24341
24342         fcntl: use to simplify other modules
24343         * modules/cloexec (Depends-on): Add fcntl.
24344         * modules/fchdir (Depends-on): Likewise.
24345         * modules/fd-safer-flag (Depends-on): Likewise.
24346         * modules/unistd-safer (Depends-on): Likewise.
24347         * modules/dup3 (configure.ac): Set module indicator.
24348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24349         missing.
24350         * lib/fchdir.c (_gl_register_dup): Fix comment.
24351         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24352         * lib/dup-safer.c (dup_safer): Likewise.
24353         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24354         * lib/dup3.c (dup3): Likewise.
24355         * tests/test-fchdir.c (main): Enhance test.
24356         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24357
24358         fcntl: port portions of fcntl to mingw
24359         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24360         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24361         replacement for mingw.
24362         * modules/fcntl (Description): Update.
24363         (Depends-on): Add dup2.
24364         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24365         * modules/fcntl-h (Makefile.am): Substitute it.
24366         * lib/fcntl.in.h (fcntl): Update declaration.
24367         (F_DUPFD, F_GETFD): New macros, when needed.
24368         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24369         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24370         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24371         we now guarantee.
24372
24373         fcntl: work around cygwin bug in F_DUPFD
24374         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24375         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24376         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24377         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24378         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24379
24380         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24381         * modules/fcntl (Files): List new files.
24382         (configure.ac): Run a test.
24383         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24384         * lib/fcntl.c (rpl_fcntl): Likewise.
24385         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24386         (gl_FCNTL_H): Always replace fcntl.h.
24387         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24388         * lib/fcntl.in.h (fcntl): Declare replacement.
24389         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24390         needed, plus a witness.
24391         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24392         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24393         * tests/test-fcntl.c: New file.
24394         * modules/fcntl-tests: Likewise.
24395
24396         binary-io: avoid potential compilation warning
24397         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24398         directives.
24399
24400         fflush: avoid compilation error on NetBSD
24401         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24402         between off_t and fpos_t, since the latter is sometimes a struct.
24403         * lib/fseeko.c (rpl_fseeko): Likewise.
24404         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24405
24406 2009-12-15  Eric Blake  <ebb9@byu.net>
24407
24408         fcntl-h, stdio, sys_ioctl: fix declarations
24409         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24410         function must not take arguments.
24411         * lib/sys_ioctl.in.h (ioctl): Likewise.
24412         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24413         (open): Add a link warning.
24414
24415 2009-12-15  Jim Meyering  <meyering@redhat.com>
24416
24417         areadlink, areadlink-with-size: relax license to LGPLv2+
24418         * modules/areadlink (License): Relax to LGPLv2+.
24419         * modules/areadlink-with-size (License): Likewise.
24420
24421 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24422             Bruno Haible  <bruno@clisp.org>
24423
24424         *printf: Fix memory leak.
24425         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24426         * lib/vfprintf.c (vfprintf): Likewise.
24427         * lib/dprintf.c (dprintf): Likewise.
24428         * lib/vdprintf.c (vdprintf): Likewise.
24429
24430 2009-12-14  Eric Blake  <ebb9@byu.net>
24431
24432         accept4: adjust module dependencies
24433         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24434
24435         utimens: one more try at avoiding compiler warning
24436         * lib/utimens.c (lutimens): Lower scope of result.
24437
24438 2009-12-13  Bruno Haible  <bruno@clisp.org>
24439
24440         Move the malloc checking from module 'list' to new module 'xlist'.
24441         * modules/xlist: New file.
24442         * lib/gl_xlist.h: New file.
24443         * lib/gl_xlist.c: New file.
24444         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24445         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24446         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24447         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24448         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24449         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24450         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24451         gl_sortedlist_nx_add): New declarations.
24452         (struct gl_list_implementation): Rename and change methods accordingly.
24453         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24454         (gl_list_nx_create): Renamed from gl_list_create.
24455         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24456         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24457         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24458         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24459         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24460         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24461         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24462         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24463         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24464         gl_list_create_empty.
24465         (gl_list_nx_create): Renamed from gl_list_create.
24466         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24467         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24468         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24469         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24470         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24471         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24472         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24473         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24474         * lib/gl_array_list.c: Don't include xalloc.h.
24475         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24476         NULL upon out-of-memory.
24477         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24478         out-of-memory.
24479         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24480         Change return type to 'int'.
24481         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24482         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24483         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24484         upon out-of-memory.
24485         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24486         upon out-of-memory.
24487         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24488         upon out-of-memory.
24489         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24490         upon out-of-memory.
24491         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24492         out-of-memory.
24493         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24494         Update.
24495         (gl_array_list_implementation): Update.
24496         * lib/gl_carray_list.c: Don't include xalloc.h.
24497         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24498         Return NULL upon out-of-memory.
24499         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24500         out-of-memory.
24501         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24502         Change return type to 'int'.
24503         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24504         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24505         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24506         upon out-of-memory.
24507         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24508         upon out-of-memory.
24509         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24510         out-of-memory.
24511         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24512         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24513         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24514         Update.
24515         (gl_carray_list_implementation): Update.
24516         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24517         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24518         gl_linked_create_empty. Return NULL upon out-of-memory.
24519         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24520         out-of-memory.
24521         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24522         Change return type to 'int'. Return -1 upon out-of-memory.
24523         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24524         out-of-memory.
24525         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24526         upon out-of-memory.
24527         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24528         upon out-of-memory.
24529         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24530         NULL upon out-of-memory.
24531         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24532         upon out-of-memory.
24533         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24534         out-of-memory.
24535         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24536         Update.
24537         * lib/gl_linked_list.c: Don't include xalloc.h.
24538         (gl_linked_list_implementation): Update.
24539         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24540         (add_to_bucket): Change return type to 'int'.
24541         (gl_linkedhash_list_implementation): Update.
24542         * lib/gl_anytree_list1.h (free_subtree): New function.
24543         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24544         gl_tree_create_empty. Return NULL upon out-of-memory.
24545         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24546         Change return type to 'int'. Return -1 upon out-of-memory.
24547         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24548         out-of-memory.
24549         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24550         (gl_tree_remove_node): New function, moved here from
24551         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24552         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24553         Update.
24554         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24555         malloc, not xmalloc. Return NULL upon out-of-memory.
24556         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24557         out-of-memory.
24558         (gl_tree_remove_node_from_tree): New function, extracted from
24559         gl_tree_remove_node.
24560         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24561         upon out-of-memory.
24562         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24563         out-of-memory.
24564         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24565         upon out-of-memory.
24566         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24567         upon out-of-memory.
24568         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24569         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24570         not xmalloc. Return NULL upon out-of-memory.
24571         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24572         out-of-memory.
24573         (gl_tree_remove_node_from_tree): New function, extracted from
24574         gl_tree_remove_node.
24575         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24576         upon out-of-memory.
24577         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24578         out-of-memory.
24579         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24580         upon out-of-memory.
24581         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24582         upon out-of-memory.
24583         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24584         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24585         gl_anytree_list1.h before gl_anyavltree_list2.h.
24586         (gl_avltree_list_implementation): Update.
24587         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24588         gl_anytree_list1.h before gl_anyavltree_list2.h.
24589         (gl_rbtree_list_implementation): Update.
24590         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24591         Change return type to 'int'. Return -1 upon out-of-memory. Use
24592         __builtin_expect.
24593         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24594         (gl_avltreehash_list_implementation): Update.
24595         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24596         (gl_rbtreehash_list_implementation): Update.
24597         * modules/array-list (Depends-on): Remove xalloc.
24598         * modules/carray-list (Depends-on): Likewise.
24599         * modules/linked-list (Depends-on): Likewise.
24600         * modules/linkedhash-list (Depends-on): Likewise.
24601         * modules/avltree-list (Depends-on): Likewise.
24602         * modules/rbtree-list (Depends-on): Likewise.
24603         * modules/avltreehash-list (Depends-on): Likewise.
24604         * modules/rbtreehash-list (Depends-on): Likewise.
24605
24606         * modules/xsublist: New file.
24607         * lib/gl_xsublist.h: New file.
24608         * lib/gl_xsublist.c: New file.
24609         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24610         (gl_sublist_nx_create): New declaration.
24611         * lib/gl_sublist.c: Don't include xalloc.h.
24612         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24613         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24614         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24615         Change return type to 'int'. Return -1 upon out-of-memory.
24616         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24617         upon out-of-memory.
24618         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24619         NULL upon out-of-memory.
24620         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24621         upon out-of-memory.
24622         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24623         NULL upon out-of-memory.
24624         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24625         NULL upon out-of-memory.
24626         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24627         upon out-of-memory.
24628         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24629         (gl_sublist_list_implementation): Update.
24630         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24631         upon out-of-memory.
24632         * modules/sublist (Depends-on): Remove xalloc.
24633
24634         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24635         * tests/test-carray_list.c: Likewise.
24636         * tests/test-linked_list.c: Likewise.
24637         * tests/test-linkedhash_list.c: Likewise.
24638         * tests/test-avltree_list.c: Likewise.
24639         * tests/test-rbtree_list.c: Likewise.
24640         * tests/test-avltreehash_list.c: Likewise.
24641         * tests/test-rbtreehash_list.c: Likewise.
24642         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24643         * modules/carray-list-tests (Makefile.am): Likewise.
24644         * modules/linked-list-tests (Makefile.am): Likewise.
24645         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24646         * modules/avltree-list-tests (Makefile.am): Likewise.
24647         * modules/rbtree-list-tests (Makefile.am): Likewise.
24648         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24649         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24650
24651         * NEWS: Mention the changes.
24652
24653         * lib/clean-temp.c: Include gl_xlist.h.
24654         * modules/clean-temp (Depends-on): Add xlist.
24655
24656         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24657         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24658
24659         * tests/test-array_oset.c: Include gl_xlist.h.
24660         * modules/array-oset-tests (Depends-on): Add xlist.
24661
24662         Reported by José E. Marchesi <jemarch@gnu.org>.
24663
24664 2009-12-13  Bruno Haible  <bruno@clisp.org>
24665
24666         Move the malloc checking from module 'oset' to new module 'xoset'.
24667         * modules/xoset: New file.
24668         * lib/gl_xoset.h: New file.
24669         * lib/gl_xoset.c: New file.
24670         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24671         declarations.
24672         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24673         (struct gl_oset_implementation): Rename and change methods accordingly.
24674         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24675         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24676         'int'. Mark as __warn_unused_result__.
24677         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24678         gl_oset_create_empty.
24679         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24680         'int'.
24681         * lib/gl_array_oset.c: Don't include xalloc.h.
24682         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24683         malloc, not xmalloc.
24684         (grow): Change return type to 'int'. Don't call xalloc_die.
24685         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24686         to 'int'.
24687         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24688         'int'.
24689         (gl_array_oset_implementation): Update.
24690         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24691         gl_tree_create_empty.
24692         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24693         'int'.
24694         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24695         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24696         xmalloc.
24697         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24698         not xmalloc.
24699         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24700         xmalloc.
24701         (gl_avltree_oset_implementation): Update.
24702         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24703         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24704         xmalloc.
24705         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24706         not xmalloc.
24707         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24708         xmalloc.
24709         (gl_rbtree_oset_implementation): Update.
24710         * modules/array-oset (Depends-on): Remove xalloc.
24711         * modules/avltree-oset (Depends-on): Likewise.
24712         * modules/rbtree-oset (Depends-on): Likewise.
24713         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24714         * tests/test-avltree_oset.c: Likewise.
24715         * tests/test-rbtree_oset.c: Likewise.
24716         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24717         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24718         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24719         * NEWS: Mention the change.
24720
24721 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24722
24723         maint.mk: allow a project to override release-prep commands
24724         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24725         commands into a new rule.
24726         (release-prep): New rule.
24727         (release-prep-hook): New overridable variable.
24728
24729 2009-12-13  Bruno Haible  <bruno@clisp.org>
24730
24731         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24732
24733 2009-12-13  Jim Meyering  <meyering@redhat.com>
24734
24735         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24736         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24737
24738 2009-12-12  Bruno Haible  <bruno@clisp.org>
24739
24740         duplocale: Tweak.
24741         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24742
24743 2009-12-12  Karl Berry  <karl@gnu.org>
24744
24745         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24746
24747 2009-12-12  Bruno Haible  <bruno@clisp.org>
24748
24749         * m4/po.m4: Undo incorrect untabification.
24750
24751 2009-12-12  Bruno Haible  <bruno@clisp.org>
24752
24753         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24754         * modules/c-strtod (Depends-on): Add locale.
24755         * modules/c-strtold (Depends-on): Likewise.
24756
24757 2009-12-12  Bruno Haible  <bruno@clisp.org>
24758
24759         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24760
24761 2009-12-11  Eric Blake  <ebb9@byu.net>
24762
24763         setenv: relax requirement in light of POSIX ruling
24764         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24765         not NULL.
24766         * tests/test-setenv.c (main): Relax test.
24767         * tests/test-unsetenv.c (main): Likewise.
24768         * doc/posix-functions/setenv.texi (setenv): Document this.
24769         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24770
24771 2009-12-11  Bruno Haible  <bruno@clisp.org>
24772
24773         New module 'fd-safer-flag'.
24774         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24775         * lib/dup-safer.c (dup_safer_flag): Remove function.
24776         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24777         * lib/fd-safer.c (fd_safer_flag): Remove function.
24778         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24779         * modules/cloexec (configure.ac): Drop indicator macro.
24780         * modules/fd-safer-flag: New file.
24781         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24782         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24783         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24784
24785 2009-12-11  Bruno Haible  <bruno@clisp.org>
24786
24787         Tests for module 'nl_langinfo'.
24788         * modules/nl_langinfo-tests: New file.
24789         * tests/test-nl_langinfo.sh: New file.
24790         * tests/test-nl_langinfo.c: New file.
24791
24792         New module 'nl_langinfo'.
24793         * lib/nl_langinfo.c: New file.
24794         * m4/nl_langinfo.m4: New file.
24795         * modules/nl_langinfo: New file.
24796         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24797
24798 2009-12-11  Bruno Haible  <bruno@clisp.org>
24799
24800         Tests for module 'langinfo'.
24801         * modules/langinfo-tests: New file.
24802         * tests/test-langinfo.c: New file.
24803
24804         New module 'langinfo'.
24805         * lib/langinfo.in.h: New file.
24806         * m4/langinfo_h.m4: New file.
24807         * modules/langinfo: New file.
24808         * doc/posix-headers/langinfo.texi: Mention the new module.
24809
24810 2009-12-11  Bruno Haible  <bruno@clisp.org>
24811
24812         * lib/config.charset: Untabify.
24813
24814 2009-12-11  Bruno Haible  <bruno@clisp.org>
24815
24816         * modules/unistd-safer (configure.ac): Drop indicator macro.
24817
24818 2009-12-11  Bruno Haible  <bruno@clisp.org>
24819
24820         Move pipe2-safer code to its own file.
24821         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24822         * lib/pipe-safer.c (pipe2_safer): Remove function.
24823         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24824         (Makefile.am): Add it to lib_SOURCES.
24825
24826 2009-12-10  Bruno Haible  <bruno@clisp.org>
24827
24828         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24829
24830 2009-12-10  Bruno Haible  <bruno@clisp.org>
24831
24832         Declare which arguments expect non-NULL values, for GCC and clang.
24833         * build-aux/arg-nonnull.h: New file.
24834         * modules/arg-nonnull: New file.
24835         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24836         (inet_ntop, inet_pton): Use it.
24837         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24838         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24839         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24840         (open, openat): Use it.
24841         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24842         (fnmatch): Use it.
24843         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24844         (getopt, getopt_long, getopt_long_only): Use it.
24845         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24846         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24847         Use it.
24848         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24849         (iconv_open): Use it.
24850         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24851         (strtoimax, strtoumax): Use it.
24852         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24853         (duplocale): Use it.
24854         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24855         (frexp, frexpl): Use it.
24856         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24857         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24858         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24859         (tsearch, tfind, tdelete, twalk): Use it.
24860         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24861         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24862         sigpending): Use it.
24863         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24864         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24865         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24866         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24867         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24868         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24869         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24870         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24871         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24872         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24873         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24874         Use it.
24875         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24876         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24877         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24878         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24879         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24880         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24881         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24882         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24883         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24884         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24885         strtoull, unsetenv): Use it.
24886         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24887         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24888         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24889         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24890         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24891         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24892         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24893         (strcasecmp, strncasecmp): Use it.
24894         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24895         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24896         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24897         rpl_setsockopt): Use it.
24898         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24899         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24900         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24901         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24902         (gettimeofday): Use it.
24903         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24904         (times): Use it.
24905         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24906         (uname): Use it.
24907         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24908         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24909         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24910         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24911         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24912         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24913         unlinkat, write): Use it.
24914         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24915         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24916         * lib/argv-iter.h: Include arg-nonnull.h.
24917         (_ATTRIBUTE_NONNULL_): Remove macro.
24918         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24919         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24920         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24921         optimization.
24922         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24923         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24924         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24925         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24926         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24927         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24928         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24929         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24930         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24931         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24932         * modules/dirent (Depends-on): Add arg-nonnull.
24933         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24934         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24935         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24936         * modules/fnmatch (Depends-on): Add arg-nonnull.
24937         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24938         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24939         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24940         * modules/glob (Depends-on): Add arg-nonnull.
24941         (Makefile.am): Insert arg-nonnull.h into glob.h.
24942         * modules/iconv_open (Depends-on): Add arg-nonnull.
24943         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24944         * modules/inttypes (Depends-on): Add arg-nonnull.
24945         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24946         * modules/locale (Depends-on): Add arg-nonnull.
24947         (Makefile.am): Insert arg-nonnull.h into locale.h.
24948         * modules/math (Depends-on): Add arg-nonnull.
24949         (Makefile.am): Insert arg-nonnull.h into math.h.
24950         * modules/netdb (Depends-on): Add arg-nonnull.
24951         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24952         * modules/search (Depends-on): Add arg-nonnull.
24953         (Makefile.am): Insert arg-nonnull.h into search.h.
24954         * modules/signal (Depends-on): Add arg-nonnull.
24955         (Makefile.am): Insert arg-nonnull.h into signal.h.
24956         * modules/spawn (Depends-on): Add arg-nonnull.
24957         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24958         * modules/stdio (Depends-on): Add arg-nonnull.
24959         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24960         * modules/stdlib (Depends-on): Add arg-nonnull.
24961         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24962         * modules/string (Depends-on): Add arg-nonnull.
24963         (Makefile.am): Insert arg-nonnull.h into string.h.
24964         * modules/strings (Depends-on): Add arg-nonnull.
24965         (Makefile.am): Insert arg-nonnull.h into strings.h.
24966         * modules/sys_socket (Depends-on): Add arg-nonnull.
24967         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24968         * modules/sys_stat (Depends-on): Add arg-nonnull.
24969         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24970         * modules/sys_time (Depends-on): Add arg-nonnull.
24971         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24972         * modules/sys_times (Depends-on): Add arg-nonnull.
24973         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24974         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24975         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24976         * modules/time (Depends-on): Add arg-nonnull.
24977         (Makefile.am): Insert arg-nonnull.h into time.h.
24978         * modules/unistd (Depends-on): Add arg-nonnull.
24979         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24980         * modules/wchar (Depends-on): Add arg-nonnull.
24981         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24982         * modules/argv-iter (Depends-on): Add arg-nonnull.
24983         * tests/test-canonicalize.c (null_ptr): New function.
24984         (main): Use it.
24985         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24986         (main): Use it.
24987         * tests/test-memmem.c (null_ptr): New function.
24988         (main): Use it.
24989         Reported by Jim Meyering.
24990
24991 2009-12-10  Bruno Haible  <bruno@clisp.org>
24992
24993         Use spaces for indentation, not tabs.
24994         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24995         * m4/*.m4: Untabify.
24996         * build-aux/*.h: Untabify.
24997         * tests/**/*.[hc]: Untabify.
24998         * README: New section "Indent with spaces, not TABs", based on
24999         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25000         * NEWS: Mention the change.
25001
25002 2009-12-10  Bruno Haible  <bruno@clisp.org>
25003
25004         pty test: Fix link error.
25005         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25006         test_pty_LDADD.
25007
25008 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25009
25010         * modules/pty: New file.
25011         * modules/pty-tests: New file.
25012         * m4/pty.m4: New file.
25013         * tests/test-pty.c: New file.
25014         * doc/glibc-headers/pty.texi: Modified.
25015         * doc/glibc-functions/forkpty.texi: Modified.
25016         * doc/glibc-functions/openpty.texi: Modified.
25017
25018 2009-12-10  Bruno Haible  <bruno@clisp.org>
25019
25020         Avoid syntax error in C++ mode.
25021         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25022
25023 2009-12-10  Bruno Haible  <bruno@clisp.org>
25024
25025         Use sed with option -e.
25026         * gnulib-tool (func_version, func_emit_copyright_notice,
25027         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25028         option -e to sed.
25029         * modules/link-warning (Makefile.am): Likewise.
25030
25031 2009-12-10  Jim Meyering  <meyering@redhat.com>
25032
25033         mgetgroups: do not write bytes beyond end of malloc'd buffer
25034         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25035         username, we call getgroups with a one-element-shorter buffer,
25036         but still told it the length was original, max_n_groups.
25037
25038 2009-12-09  Eric Blake  <ebb9@byu.net>
25039
25040         cloexec: relax license
25041         * modules/cloexec (Maintainer): Add myself.
25042         (License): Use LGPL, not GPL.
25043
25044         link-warning: optimize generation
25045         * modules/link-warning (Makefile.am): Reduce process usage.
25046
25047 2009-12-09  Bruno Haible  <bruno@clisp.org>
25048
25049         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25050         workaround was added on 2009-11-17.
25051
25052 2009-12-09  Jim Meyering  <meyering@redhat.com>
25053             Bruno Haible  <bruno@clisp.org>
25054
25055         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25056         * modules/link-warning (Makefile.am): Make the comment-removing sed
25057         command more robust in the face of bootstrap-prepended comment lines.
25058
25059 2009-12-09  Bruno Haible  <bruno@clisp.org>
25060
25061         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25062         most one group.
25063
25064 2009-12-09  Simon Josefsson <simon@josefsson.org>
25065             Bruno Haible  <bruno@clisp.org>
25066
25067         * build-aux/link-warning.h: Add copyright notice.
25068         * modules/link-warning (Makefile.am): Generate link-warning.h from
25069         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25070         * NEWS: Mention change in link-warning module.
25071         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25072         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25073         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25074         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25075         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25076         * modules/math (Makefile.am): Add dependency to math.h.
25077         * modules/search (Makefile.am): Add dependency to search.h.
25078         * modules/signal (Makefile.am): Add dependency to signal.h.
25079         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25080         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25081         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25082         * modules/string (Makefile.am): Add dependency to string.h.
25083         * modules/strings (Makefile.am): Add dependency to strings.h.
25084         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25085         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25086         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25087         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25088         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25089         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25090         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25091         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25092         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25093
25094 2009-12-09  Bruno Haible  <bruno@clisp.org>
25095
25096         fchdir: Optimize away rpl_fstat when possible.
25097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25098         REPLACE_OPEN_DIRECTORY.
25099         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25100
25101 2009-12-09  Bruno Haible  <bruno@clisp.org>
25102
25103         * lib/fchdir.c: Update comment.
25104
25105 2009-12-09  Bruno Haible  <bruno@clisp.org>
25106
25107         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25108
25109 2009-12-08  Eric Blake  <ebb9@byu.net>
25110
25111         fchdir: avoid memory leak on re-registration.
25112         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25113
25114 2009-12-08  Jim Meyering  <meyering@redhat.com>
25115
25116         init.sh: avoid Solaris 10 /bin/sh portability problem
25117         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25118         sourced script:
25119           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25120           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25121           bar
25122         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25123         and two tests used that idiom.
25124         * tests/init.sh: Update suggested usage comments.
25125         (path_prepend_): New function, to be used in place
25126         of the --src-path=DIR option.
25127         (setup_): Move PATH-prepending code into path_prepend_.
25128         * tests/test-pread.sh: Adapt to new usage.
25129         * tests/test-xalloc-die.sh: Likewise.
25130
25131 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25132
25133         * doc/gnulib.texi (Glibc pty.h): Add.
25134         * doc/glibc-functions/forkpty.texi: Add.
25135         * doc/glibc-functions/openpty.texi: Add.
25136         Suggested by Bruno Haible.
25137
25138 2009-12-08  Eric Blake  <ebb9@byu.net>
25139
25140         fchdir: fix logic bugs
25141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25142         * tests/test-fchdir.c (main): Enhance test.
25143         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25144         is in use.
25145
25146         dup2: fix logic bugs
25147         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25148         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25149         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25150         exists.
25151         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25152
25153 2009-12-07  Eric Blake  <ebb9@byu.net>
25154
25155         unlink: fix m4 detection
25156         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25157
25158         unistd-safer: add unit test
25159         * modules/unistd-safer-tests: New file.
25160         * tests/test-dup-safer.c: Likewise.
25161         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25162         * tests/test-dup2.c (setmode): Likewise.
25163         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25164
25165         cloexec: preserve text vs. binary across dup_cloexec
25166         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25167         mode.
25168         * modules/dup2-tests (Depends-on): Add binary-io.
25169         * modules/cloexec-tests (Depends-on): Likewise.
25170         * tests/test-dup2.c (setmode, is_mode): New helpers.
25171         (main): Add tests that translation mode is preserved.
25172         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25173         Reported by Bruno Haible.
25174
25175         mgetgroups: reduce duplicate listings
25176         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25177         resulting array.
25178         * tests/test-chown.h (test_chown): Simplify client.
25179         * tests/test-lchown.h (test_lchown): Likewise.
25180
25181 2009-12-06  Bruno Haible  <bruno@clisp.org>
25182
25183         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25184         value.
25185
25186 2009-12-06  Bruno Haible  <bruno@clisp.org>
25187
25188         * lib/progname.c: Include stdio.h, stdlib.h.
25189         (set_program_name): Reject a NULL argument.
25190
25191 2009-12-05  Eric Blake  <ebb9@byu.net>
25192
25193         pipe2-safer: new module
25194         * modules/pipe2-safer: New file.
25195         * lib/unistd-safer.h (pipe2_safer): New prototype.
25196         * lib/unistd--.h (pipe2): New wrapper.
25197         * lib/pipe-safer.c (pipe2_safer): New function.
25198         * modules/pipe (Depends-on): Add pipe2-safer.
25199         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25200
25201         stdlib-safer: preserve cloexec flag for mkostemp[s]
25202         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25203         fd_safer_flag.
25204
25205         unistd-safer: allow preservation of cloexec status via flag
25206         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25207         prototypes.
25208         * lib/dup-safer.c (dup_safer_flag): New function.
25209         * lib/fd-safer.c (fd_safer_flag): Likewise.
25210         * modules/cloexec (configure.ac): Set witness.
25211
25212         test-dup2: enhance test
25213         * modules/dup2-tests (Depends-on): Add cloexec.
25214         * tests/test-dup2.c (main): Enhance test.
25215
25216         cloexec: add dup_cloexec
25217         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25218         header and comments.
25219         * lib/cloexec.c (set_cloexec_flag): Add comments.
25220         (dup_cloexec): New function, with mingw implementation borrowed
25221         from...
25222         * lib/w32spawn.h (dup_noinherit): ...here.
25223         * modules/execute (Depends-on): Add cloexec.
25224         * modules/pipe (Depends-on): Likewise.
25225         * modules/cloexec (Depends-on): Add dup2.
25226         * modules/cloexec-tests (Files): New file.
25227         * tests/test-cloexec.c: Likewise.
25228
25229         test-xalloc-die: fix test for mingw
25230         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25231         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25232         directory and .exe suffix off argv[0] output.
25233
25234         test-fseeko: fix test for mingw
25235         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25236         than undefining fseek, so test will pass on mingw.
25237
25238 2009-12-05  Bruno Haible  <bruno@clisp.org>
25239
25240         * lib/progname.h (set_program_name): Clarify specification.
25241         * lib/progname.c (set_program_name): Likewise.
25242         Reported by Jim Meyering.
25243
25244 2009-12-05  Jim Meyering  <meyering@redhat.com>
25245
25246         maint.mk: backslash-escape parens in default regexp
25247         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25248         backslash-escape the literal parentheses.
25249
25250         maint.mk: news-date-check: use grep -E
25251         * top/maint.mk (today): Define a Make variable, not a...
25252         (news-date-check): ...shell variable.
25253         (news-date-regexp): Use the Make variable.
25254         Use grep's -E option.  Change the failing diagnostic to mention
25255         the variable, $(news-date-regexp).
25256
25257 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25258
25259         maintainer-makefile: allow customization of NEWS entry format
25260         * top/maint.mk (news-date-regexp): New overridable variable.
25261         (news-date-check): Use it.
25262
25263 2009-12-04  Eric Blake  <ebb9@byu.net>
25264
25265         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25266         * lib/mgetgroups.h (xgetgroups): New prototype.
25267         * lib/mgetgroups.c (xgetgroups): New wrapper.
25268         (mgetgroups): Handle ENOSYS.
25269         * modules/mgetgroups (Depends-on): Add realloc.
25270         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25271
25272         mgetgroups: avoid argument promotion issues with -1
25273         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25274         for invalid gid_t.
25275         * tests/test-chown.h (getegid, test_chown): Likewise.
25276         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25277
25278 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25279
25280         exclude: Fix header file problems.
25281         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25282
25283 2009-12-01  Jim Meyering  <meyering@redhat.com>
25284
25285         fts: fts_open: do not let an empty string cause immediate failure
25286         This is required in support of GNU rm, for which the command
25287         "rm A '' B" must process and remove both A and B, in spite of
25288         the empty string argument.
25289         * lib/fts.c (fts_open): Do not let the presence of an empty string
25290         cause fts_open to fail immediately.  Most fts-using tools must be
25291         able to process all arguments, in order, and can be expected to
25292         diagnose such arguments themselves.
25293
25294 2009-11-30  Eric Blake  <ebb9@byu.net>
25295
25296         utimens: fix compilation error
25297         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25298         Declare variable at right scope.
25299
25300 2009-11-29  Jim Meyering  <meyering@redhat.com>
25301
25302         bootstrap: handle perl-5.11's changed --version output
25303         * build-aux/bootstrap (get_version): Handle perl separately,
25304         since perl-5.11's --version output is different.
25305
25306 2009-11-28  Jim Meyering  <meyering@redhat.com>
25307
25308         userspec: depend on the inttostr module, too
25309         * modules/userspec (Depends-on): Add inttostr.
25310
25311         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25312         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25313         number of MAXUID when it evaluates to (uid_t) -1.
25314         Likewise for group ID.  Reported by Matt McCutchen in
25315         <http://savannah.gnu.org/bugs/?28113>
25316
25317         userspec: reformat to use spaces, not TABs
25318         * lib/userspec.c: Expand TABs to spaces.
25319         Add Emacs' "indent-tabs-mode: nil" hint.
25320
25321 2009-11-27  Eric Blake  <ebb9@byu.net>
25322
25323         getopt-gnu: flush out another BSD bug
25324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25325         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25326         flush out BSD bug.
25327         * tests/test-getopt.h (test_getopt): End lists with NULL.
25328         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25329         (test_getopt_long_posix): Enhance test.
25330         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25331         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25332         getopt-gnu.
25333         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25334         Likewise.
25335
25336 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25337
25338         * modules/idpriv-droptemp-tests (Notice): Fix text.
25339
25340 2009-11-27  Jim Meyering  <meyering@redhat.com>
25341
25342         test-xalloc-die: avoid spurious failure due to libtool argv difference
25343         In a libtool-enabled project, this test would fail due to a difference
25344         in the emitted program name, e.g.,
25345         -test-xalloc-die: memory exhausted
25346         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25347         Use program to avoid that.
25348         * modules/xalloc-die-tests (Depends-on): Add progname.
25349         * tests/test-xalloc-die.c: Include progname.h".
25350         (program_name): Remove decl.
25351         (main): Call set_program_name.
25352         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25353
25354 2009-11-26  Richard Jones  <rjones@redhat.com>
25355
25356         w32sock: leave win32 error in place.
25357         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25358
25359 2009-11-26  Eric Blake  <ebb9@byu.net>
25360
25361         init.sh: suggest to use skip_ and fail_ functions in comments
25362         * tests/init.sh: Add a sentence.
25363
25364 2009-11-25  Bruno Haible  <bruno@clisp.org>
25365
25366         init.sh: add documentation in comments
25367         * tests/init.sh: Add some developer and user documentation.
25368
25369 2009-11-26  Jim Meyering  <meyering@redhat.com>
25370
25371         init.sh: accommodate even those who specify bogus srcdir manually
25372         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25373         configure-time tests to be sanitized, so that there is no need to
25374         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25375         (with no double quotes) suffices.  However, since tests may be
25376         invoked manually, and since you may explicitly set srcdir to the
25377         name of a directory containing spaces, do quote its uses here.
25378         * tests/test-pread.sh: Likewise.
25379         Suggested by Bruno Haible.
25380
25381         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25382         * tests/test-pread.sh: Write no data into the pipe, because
25383         test-pread actually reads none.  This avoids a diagnostic,
25384         "bash: echo: write error: Broken pipe", that arises in the unusual
25385         event something is ignoring SIGPIPE, and might be interpreted
25386         as some sort of failure.  Reported by Bruno Haible.
25387
25388 2009-11-25  Jim Meyering  <meyering@redhat.com>
25389
25390         test-pread: cover failure with ESPIPE and EINVAL
25391         * tests/test-pread.c (main): Test for failure, too.
25392         * tests/test-pread.sh: Invoke with stdin on a pipe.
25393         Suggested by Eric Blake.
25394
25395         pread: improvement and fix
25396         * modules/pread (Depends-on): Depend on lseek, for portability to
25397         e.g., mingw.  Suggested by Eric Blake.
25398         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25399
25400         unistd.in.h: correct declaration of pread
25401         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25402         Reported by Richard W.M. Jones.
25403
25404         test-pread.sh: distribute the test script
25405         * modules/pread-tests (Files): Include test-pread.sh.
25406
25407         test-pread.sh: clean up
25408         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25409         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25410         That is unnecessary, since it's always ".".
25411         Suggestion from Eric Blake.
25412
25413         test-pread.sh: make executable
25414         * tests/test-pread.sh: Set executable bit.
25415         Reported by Eric Blake.
25416
25417         correct typo in test-pread.sh
25418         * tests/test-pread.sh: Add #! line.
25419
25420         test pread
25421         * tests/test-pread.c: New file.
25422         * tests/test-pread.sh: Likewise.
25423         * modules/pread-tests: Likewise.
25424
25425         pread: new module
25426         * modules/pread: New file.
25427         * lib/unistd.in.h (pread): Define/declare.
25428         * lib/pread.c (pread): New file.
25429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25430         * modules/unistd (Makefile.am): Substitute witnesses.
25431         * doc/posix-functions/pread.texi (pread): Update.
25432         * MODULES.html.sh: Add pread.
25433
25434 2009-11-25  Jim Meyering  <meyering@redhat.com>
25435
25436         tests/init.sh: new file to be used via most *.sh tests
25437         * tests/init.sh: New file.
25438
25439 2009-11-25  Eric Blake  <ebb9@byu.net>
25440
25441         utimens: work around older Linux failure with symlinks
25442         * lib/utimens.c (lutimensat_works_really): New variable.
25443         (fdutimens, lutimens): Use it to manage kernels that support
25444         nanosecond times on files, but not on symlinks.
25445         Reported by OndÅ™ej Vašík.
25446
25447         utimes: fix configure grammar
25448         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25449
25450 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25451
25452         regex: Fix fastmap for multibyte character ranges.
25453         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25454         characters when a multibyte character range is included.
25455
25456 2009-11-22  Andy Wingo  <wingo@pobox.com>
25457
25458         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25459         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25460
25461 2009-11-24  Bruno Haible  <bruno@clisp.org>
25462
25463         doc: Most *_l functions exist in MacOS X 10.5.
25464         * doc/posix-functions/duplocale.texi: Update platforms list.
25465         * doc/posix-functions/freelocale.texi: Likewise.
25466         * doc/posix-functions/newlocale.texi: Likewise.
25467         * doc/posix-functions/uselocale.texi: Likewise.
25468         * doc/posix-functions/isalnum_l.texi: Likewise.
25469         * doc/posix-functions/isalpha_l.texi: Likewise.
25470         * doc/posix-functions/isblank_l.texi: Likewise.
25471         * doc/posix-functions/iscntrl_l.texi: Likewise.
25472         * doc/posix-functions/isdigit_l.texi: Likewise.
25473         * doc/posix-functions/isgraph_l.texi: Likewise.
25474         * doc/posix-functions/islower_l.texi: Likewise.
25475         * doc/posix-functions/isprint_l.texi: Likewise.
25476         * doc/posix-functions/ispunct_l.texi: Likewise.
25477         * doc/posix-functions/isspace_l.texi: Likewise.
25478         * doc/posix-functions/isupper_l.texi: Likewise.
25479         * doc/posix-functions/iswalnum_l.texi: Likewise.
25480         * doc/posix-functions/iswalpha_l.texi: Likewise.
25481         * doc/posix-functions/iswblank_l.texi: Likewise.
25482         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25483         * doc/posix-functions/iswctype_l.texi: Likewise.
25484         * doc/posix-functions/iswdigit_l.texi: Likewise.
25485         * doc/posix-functions/iswgraph_l.texi: Likewise.
25486         * doc/posix-functions/iswlower_l.texi: Likewise.
25487         * doc/posix-functions/iswprint_l.texi: Likewise.
25488         * doc/posix-functions/iswpunct_l.texi: Likewise.
25489         * doc/posix-functions/iswspace_l.texi: Likewise.
25490         * doc/posix-functions/iswupper_l.texi: Likewise.
25491         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25492         * doc/posix-functions/isxdigit_l.texi: Likewise.
25493         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25494         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25495         * doc/posix-functions/strcoll_l.texi: Likewise.
25496         * doc/posix-functions/strfmon_l.texi: Likewise.
25497         * doc/posix-functions/strftime_l.texi: Likewise.
25498         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25499         * doc/posix-functions/strxfrm_l.texi: Likewise.
25500         * doc/posix-functions/tolower_l.texi: Likewise.
25501         * doc/posix-functions/toupper_l.texi: Likewise.
25502         * doc/posix-functions/towctrans_l.texi: Likewise.
25503         * doc/posix-functions/towlower_l.texi: Likewise.
25504         * doc/posix-functions/towupper_l.texi: Likewise.
25505         * doc/posix-functions/wcscoll_l.texi: Likewise.
25506         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25507         * doc/posix-functions/wctrans_l.texi: Likewise.
25508         * doc/posix-functions/wctype_l.texi: Likewise.
25509         * doc/glibc-functions/strptime_l.texi: Likewise.
25510         * doc/glibc-functions/strtod_l.texi: Likewise.
25511         * doc/glibc-functions/strtof_l.texi: Likewise.
25512         * doc/glibc-functions/strtol_l.texi: Likewise.
25513         * doc/glibc-functions/strtold_l.texi: Likewise.
25514         * doc/glibc-functions/strtoll_l.texi: Likewise.
25515         * doc/glibc-functions/strtoul_l.texi: Likewise.
25516         * doc/glibc-functions/strtoull_l.texi: Likewise.
25517         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25518         * doc/glibc-functions/wcstod_l.texi: Likewise.
25519         * doc/glibc-functions/wcstof_l.texi: Likewise.
25520         * doc/glibc-functions/wcstol_l.texi: Likewise.
25521         * doc/glibc-functions/wcstold_l.texi: Likewise.
25522         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25523         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25524         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25525
25526 2009-11-24  Bruno Haible  <bruno@clisp.org>
25527
25528         duplocale: Fix logic bug.
25529         * lib/duplocale.c: Don't include <langinfo.h>.
25530         (_NL_LOCALE_NAME): Remove macro.
25531         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25532         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25533
25534 2009-11-23  Jim Meyering  <meyering@redhat.com>
25535
25536         test-update-copyright: don't hard-code /usr/bin/perl
25537         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25538         perl to print the current year.  Gilles Espinasse reported that
25539         the replaced use of perl was hard-coded as /usr/bin/perl.
25540
25541 2009-11-23  Bruno Haible  <bruno@clisp.org>
25542
25543         duplocale: Add support for glibc 2.3.x.
25544         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25545
25546 2009-11-22  Bruno Haible  <bruno@clisp.org>
25547
25548         vasnprintf: Tiny optimization.
25549         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25550         MacOS X.
25551
25552 2009-11-22  Bruno Haible  <bruno@clisp.org>
25553
25554         Tests for module 'duplocale'.
25555         * modules/duplocale-tests: New file.
25556         * tests/test-duplocale.c: New file.
25557
25558         New module 'duplocale'.
25559         * m4/duplocale.m4: New file.
25560         * lib/locale.in.h (duplocale): New declaration.
25561         * lib/duplocale.c: New file.
25562         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25563         gl_LOCALE_H_DEFAULTS): New macros.
25564         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25565         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25566         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25567         REPLACE_DUPLOCALE.
25568         * modules/duplocale: New file.
25569         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25570
25571 2009-11-22  Bruno Haible  <bruno@clisp.org>
25572
25573         * modules/locale-tests (configure.ac): Test for newlocale function.
25574         * tests/test-locale.c: When the system has extended locale functions,
25575         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25576
25577         locale: Make locale_t available when possible.
25578         * lib/locale.in.h: Include <xlocale.h> when it exists.
25579         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25580         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25581         * modules/locale (Depends-on): Add extensions.
25582         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25583         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25584
25585 2009-11-22  Bruno Haible  <bruno@clisp.org>
25586
25587         Add comments.
25588         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25589         invocation.
25590         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25591         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25592         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25593
25594 2009-11-22  Bruno Haible  <bruno@clisp.org>
25595
25596         error: account for the possibility of freopen (stdout).
25597         * lib/error.c: Include <unistd.h>.
25598         (flush_stdout): New function, extracted from error and error_at_line.
25599         Determine stdout's fd dynamically.
25600         (error, error_at_line): Invoke flush_stdout.
25601         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25602         * modules/error (Depends-on): Add unistd.
25603
25604 2009-11-22  Bruno Haible  <bruno@clisp.org>
25605
25606         diffseq: Add comment.
25607         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25608
25609 2009-11-22  Jim Meyering  <meyering@redhat.com>
25610
25611         c-stack: avoid defining an unused static function
25612         * lib/c-stack.c (find_stack_direction): Do not define this function
25613         when it will not be used.
25614
25615         diffseq: avoid spurious gcc warnings
25616         * lib/diffseq.h (IF_LINT2): Define.
25617         (compareseq): Use it to initialize two members of "part".
25618         This avoids two used-uninitialized warnings.
25619
25620 2009-11-21  Jim Meyering  <meyering@redhat.com>
25621
25622         c-stack: avoid "ignoring return value of `write'" warning
25623         * lib/c-stack.c: Include "ignore-value.h".
25624         (die): Explicitly ignore each write return value.
25625         * modules/c-stack (Depends-on): Add ignore-value.
25626
25627 2009-11-21  Bruno Haible  <bruno@clisp.org>
25628
25629         diffseq: reduce scope of variable 'best'.
25630         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25631         variable, earlier used for two different purposes.
25632
25633 2009-11-21  Jim Meyering  <meyering@redhat.com>
25634
25635         diffseq: remove useless assignment to "best"
25636         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25637         assignment.  At that point "best" is already guaranteed to be zero.
25638
25639 2009-11-20  Eric Blake  <ebb9@byu.net>
25640
25641         build: mention ftp redirector in release announcements
25642         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25643         values that used to come from cfg.mk; mention FTP redirect URL.
25644         * build-aux/announce-gen: Mention the mirror list.
25645         Suggested by Karl Berry.
25646
25647         nanosleep: improve port to mingw
25648         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25650         LIB_NANOSLEEP, but only when needed.
25651         * modules/select (Link): Document LIBSOCKET.
25652         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25653         enough.
25654
25655         nanosleep: work around cygwin bug
25656         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25657         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25658         bug.
25659         (getnow): Delete, not needed.
25660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25661         LIB_CLOCK_GETTIME.
25662         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25663         clock-time, gettime.
25664         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25665         bug.
25666         * modules/nanosleep-tests: New test.
25667         * tests/test-nanosleep.c: New file.
25668
25669         sleep: work around cygwin bug
25670         * lib/sleep.c (rpl_sleep): Work around the bug.
25671         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25672         (gl_PREREQ_SLEEP): Delete unused macro.
25673         * modules/sleep (Depends-on): Add verify.
25674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25675         * modules/unistd (Makefile.am): Substitute witness.
25676         * lib/unistd.in.h (sleep): Update prototype.
25677         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25678         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25679         * modules/sleep-tests (Depends-on): Check for alarm.
25680
25681 2009-11-20  Jim Meyering  <meyering@redhat.com>
25682
25683         maint.mk: improve sc_prohibit_magic_number_exit
25684         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25685         so it does not match uses like System.exit(1).
25686         Add comments showing how to correct all offenders.
25687
25688 2009-11-19  Eric Blake  <ebb9@byu.net>
25689
25690         xalloc-die-tests: add missing library
25691         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25692
25693         test-xvasprintf: silence compiler warnings
25694         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25695         empty string from gcc.
25696
25697 2009-11-19  Jim Meyering  <meyering@redhat.com>
25698
25699         xfreopen: new module, from coreutils
25700         * modules/xfreopen: New module.
25701         * lib/xfreopen.c: New file.
25702         * lib/xfreopen.h: New file.
25703         * MODULES.html.sh (File stream based Input/Output"): Add it.
25704
25705 2009-11-19  Eric Blake  <ebb9@byu.net>
25706
25707         manywarnings: depend on warnings
25708         * modules/manywarnings (Depends-on): Add warnings.
25709
25710         build: avoid compiler warnings
25711         * lib/select.c (rpl_select): Delete unused variable.
25712         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25713
25714 2009-11-18  Eric Blake  <ebb9@byu.net>
25715
25716         tests: avoid false negative with --with-packager
25717         * tests/test-version-etc.sh: Discard packager information.
25718         * tests/test-argp-version-etc-1.sh: Likewise.
25719         Reported by Mike Frysinger.
25720
25721         utimens: fix regression on Solaris
25722         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25723         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25724         can only change fd timestamps via futimesat.  Instead, use an
25725         additional witness macro to avoid BSD bug.
25726         Reported by Jim Meyering.
25727
25728 2009-11-17  Eric Blake  <ebb9@byu.net>
25729
25730         usleep: use it to simplify tests
25731         * modules/stat-time-tests (Depends-on): Add usleep.
25732         (configure.ac): Drop usleep check.
25733         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25734         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25735         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25736         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25737         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25738         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25739         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25740         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25741         Likewise.
25742         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25743         * tests/test-lchown.h (nap): Likewise.
25744         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25745         * tests/test-stat-time.c (nap): Likewise.
25746         * tests/test-utimens-common.h (nap): Update comments.
25747
25748         usleep: new module
25749         * modules/usleep: New file.
25750         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25751         * lib/usleep.c (usleep): Likewise.
25752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25753         * modules/unistd (Makefile.am): Substitute witnesses.
25754         * lib/unistd.in.h (usleep): Add declaration.
25755         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25756         * MODULES.html.sh (Date and time): Likewise.
25757         * modules/usleep-tests (Depends-on): New test.
25758         * tests/test-usleep.c: New file.
25759
25760         chown: work around OpenBSD bug
25761         * lib/chown.c (rpl_chown): Work around the bug.
25762         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25763         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25764         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25765         * modules/chown (Depends-on): Add stdbool.
25766         * modules/lchown (Depends-on): Likewise.
25767         * doc/posix-functions/chown.texi (chown): Document the bug.
25768         * doc/posix-functions/lchown.texi (lchown): Likewise.
25769         * tests/test-lchown.h (test_chown): Relax test.
25770
25771         mkstemp: avoid conflict with C++ keyword template
25772         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25773         * lib/mkostemp.c (mkostemp): Likewise.
25774         * lib/mkostemps.c (mkostemps): Likewise.
25775         * lib/mkstemp.c (mkstemp): Likewise.
25776         * lib/mkstemps.c (mkstemps): Likewise.
25777
25778         xalloc-die-tests: optimize
25779         * tests/test-xalloc-die.sh: Reduce number of processes.
25780
25781 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25782
25783         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25784         patch from ludo@gnu.org (Ludovic Courtès).
25785
25786 2009-11-17  Jim Meyering  <meyering@redhat.com>
25787
25788         version-etc: use proper license string
25789         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25790         * modules/version-etc-fsf: Likewise.
25791
25792 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25793
25794         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25795         printed to stdout.  Deal with EOL differences.
25796
25797 2009-11-17  Eric Blake  <ebb9@byu.net>
25798
25799         unsetenv: work around Solaris bug
25800         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25801         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25802         Reported by Jim Meyering.
25803
25804         vasnprintf: avoid compiler warnings
25805         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25806         variables.
25807         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25808
25809 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25810
25811         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25812         settings since xalloc-die is no longer the self test,
25813         xalloc-die.sh is.
25814
25815 2009-11-17  Jim Meyering  <meyering@redhat.com>
25816
25817         test-xalloc-die.sh: make the code agree with the commit log
25818         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25819         at the end, just in case you happen to have a test-xalloc-die
25820         program in some other PATH directory.
25821
25822         test-xalloc-die.sh: fix a portability bug
25823         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25824         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25825         Otherwise, argv[0] (as often seen in diagnostics) would be too
25826         system-dependent, sometimes with, and sometimes without the leading "./".
25827
25828         version-etc-fsf: relax license to LGPLv3+
25829         * modules/version-etc-fsf (License): Relax license.
25830
25831 2009-11-16  Eric Blake  <ebb9@byu.net>
25832
25833         xalloc-die-tests: avoid printing null pointer
25834         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25835         shell script.
25836         * tests/test-xalloc-die.c (program_name): Declare.
25837         * tests/test-xalloc-die.sh (tmpfiles): New file.
25838
25839         setenv, unsetenv: work around various bugs
25840         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25841         (setenv) [HAVE_SETENV]: Work around bugs.
25842         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25843         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25844         for bugs.
25845         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25846         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25848         * modules/stdlib (Makefile.am): Update substitutions.
25849         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25850         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25851         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25852         * modules/setenv-tests: New test.
25853         * modules/unsetenv-tests: Likewise.
25854         * tests/test-setenv.c: New file.
25855         * tests/test-unsetenv.c: Likewise.
25856
25857 2009-11-16  Jim Meyering  <meyering@redhat.com>
25858
25859         version-etc: relax license to LGPLv3+
25860         * modules/version-etc (License): Relax license.
25861
25862         better AC_REQUIRE expanded-before-required-warning avoidance
25863         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25864         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25865         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25866         which is no longer needed.
25867
25868 2009-11-16  Eric Blake  <ebb9@byu.net>
25869
25870         test-freading: clean up temporary file
25871         * tests/test-freading.c (main): Remove file on success, and use
25872         ASSERT more liberally.
25873         Reported by Jim Meyering.
25874
25875 2009-11-16  Jim Meyering  <meyering@redhat.com>
25876
25877         avoid new AC_REQUIRE expanded-before-required warnings
25878         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25879         merely using it.
25880         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25881         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25882
25883 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25884
25885         * tests/test-xalloc-die.c: New file.
25886         * modules/xalloc-die-tests: New file.
25887         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25888         XFAIL_TESTS so it can be appended by modules.
25889
25890 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25891
25892         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25893         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25894
25895 2009-11-14  Eric Blake  <ebb9@byu.net>
25896
25897         fnmatch: avoid compiler warning
25898         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25899         to silence compiler warning about mismatch signedness in ?:.
25900         Reported by Robert Millan.
25901
25902         intprops: add double-inclusion guard
25903         * lib/intprops.h: Allow idempotent includes.
25904         Suggested by Bruce Korb.
25905
25906         openat: detect Solaris fchownat bug
25907         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25908         penalizing glibc chownat when only lchownat is broken.
25909         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25910         trailing slash bugs.
25911         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25912         * modules/openat-tests (Files): Include more files.
25913         (Depends-on): Add mgetgroups, sleep, stat-time.
25914         (configure.ac): Add additional checks.
25915         (Makefile.am): Build new test.
25916         * tests/test-fchownat.c: New file.
25917
25918         lchown: detect Solaris and FreeBSD bug
25919         * lib/lchown.c (rpl_lchown): Work around bug.
25920         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25922         * modules/unistd (Makefile.am): Populate it.
25923         * lib/unistd.in.h (lchown): Update declaration.
25924         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25925         * modules/lchown-tests: New file.
25926         * tests/test-lchown.h (test_lchown): Likewise.
25927         * tests/test-lchown.c (main): Likewise.
25928
25929         chown: detect Solaris and FreeBSD bug
25930         * lib/chown.c (rpl_chown): Work around bug.
25931         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25932         (gl_PREREQ_CHOWN): Delete.
25933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25934         * modules/unistd (Makefile.am): Populate it.
25935         * lib/unistd.in.h (chown): Update declaration.
25936         * lib/lchown.c (chown): Update client.
25937         * modules/lchown (Depends-on): Add lstat.
25938         * doc/posix-functions/chown.texi (chown): Document the bug.
25939         * doc/posix-functions/getgroups.texi (getgroups): Document
25940         getgroups pitfall.
25941         * modules/chown-tests: New file.
25942         * tests/test-chown.h (test_chown): Likewise.
25943         * tests/test-chown.c (main): Likewise.
25944
25945 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25946
25947         gnulib-tool: correctly detect absence of m4 directories
25948         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25949
25950 2009-11-14  Jim Meyering  <meyering@redhat.com>
25951
25952         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25953         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25954
25955 2009-11-14  John W. Eaton  <jwe@gnu.org>
25956
25957         strftime.h: wrap funtion declaration in extern "C" block
25958         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25959
25960 2009-11-13  Eric Blake  <ebb9@byu.net>
25961
25962         getgroups: avoid compiler warning
25963         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25964
25965         getgroups: work around FreeBSD bug
25966         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25967         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25968         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25969         * tests/test-getgroups.c (main): Fix buffer overrun.
25970
25971         getgroups: avoid compilation failure
25972         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25973         * modules/getgroups (Depends-on): Add stdint.
25974
25975 2009-11-13  Jim Meyering  <meyering@redhat.com>
25976
25977         test-getgroups: avoid compilation failure
25978         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25979
25980 2009-11-13  Eric Blake  <ebb9@byu.net>
25981
25982         mgetgroups: new module, taken from coreutils
25983         * modules/mgetgroups: New file.
25984         * lib/mgetgroups.h: Likewise.
25985         * lib/mgetgroups.c (mgetgroups): Likewise.
25986         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25987         * MODULES.html.sh (Users and groups): Mention it.
25988
25989         getgroups: don't expose GETGROUPS_T to user
25990         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25991         an element at a time if GETGROUPS_T is wrong size.
25992         * lib/getugroups.h (getugroups): Change signature.
25993         * lib/unistd.in.h (getgroups): Likewise.
25994         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25995         signature needs fixing.
25996         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25997         AC_TYPE_GETGROUPS.
25998         * modules/group-member (Depends-on): Add getgroups.
25999         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26000         (group_member): Rely on getgroups replacement.
26001         * lib/getugroups.c (getugroups): Use gid_t.
26002         * tests/test-getgroups.c (main): Likewise.
26003         * NEWS: Mention the signature change.
26004         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26005         problem with signature.
26006         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26007         GETGROUPS_T is still useful for setgroups.
26008
26009         getgroups, getugroups: provide stubs for mingw
26010         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26011         * lib/getugroups.c (getugroups): Likewise.
26012         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26013         function.  Modernize replacement scheme.
26014         (gl_PREREQ_GETGROUPS): Delete.
26015         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26016         * modules/getgroups (configure.ac): Declare witness.
26017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26018         * modules/unistd (Depends-on): Substitute witness.
26019         * lib/unistd.in.h (getgroups): Declare replacement.
26020
26021         getgroups: avoid calling exit
26022         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26023         drop xalloc.
26024         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26025         dependencies.
26026         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26027         exiting, in the rare case of malloc failure.
26028
26029         getgroups: fix logic error
26030         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26031         has more than 20 groups.
26032         * modules/getgroups-tests: New test.
26033         * tests/test-getgroups.c: New file.
26034
26035 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26036
26037         * tests/test-base64.c: Improve.
26038
26039 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26040
26041         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26042         Blake <ebb9@byu.net>.
26043
26044 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26045
26046         * tests/test-xvasprintf.c: Add %s%s related checks.
26047
26048 2009-11-12  Eric Blake  <ebb9@byu.net>
26049
26050         version-etc: match standards.texi style
26051         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26052         and use <> only for URLs.
26053
26054 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26055
26056         fts: do not fail on a submount during traversal
26057         * lib/fts.c (fts_build): Read the stat info again after opening
26058         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26059         Original report at http://bugzilla.redhat.com/501848.
26060
26061 2009-11-12  Jim Meyering  <meyering@redhat.com>
26062
26063         bootstrap: sync from coreutils
26064         * build-aux/bootstrap (bootstrap_epilogue): New function.
26065         Use git_modules_config in one more place.  This make bootstrap's
26066         --gnulib-srcdir option more useful for testing.
26067
26068         bootstrap: generalize autoheader check
26069         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26070         AC_CONFIG_HEADERS.
26071
26072 2009-11-11  Eric Blake  <ebb9@byu.net>
26073
26074         mkfifoat: use new modules for Solaris and BSD bugs
26075         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26076         * lib/mkfifoat.c (mknodat): Split...
26077         * lib/mknodat.c (mknodat): ...into new file.
26078         * modules/mkfifoat (Files): Ship new file.
26079         (Depends-on): Add mkfifo, mknod.
26080         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26081         (Depends-on): Add symlink.
26082         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26083         redundant with test_mkfifo.h.
26084         (do_mkfifoat, do_mknodat): New helpers.
26085
26086         mknod: new module
26087         * modules/mknod: New file.
26088         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26089         * lib/mknod.c (mknod): Likewise.
26090         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26091         defaults.
26092         * modules/sys_stat (Makefile.am): Substitute them.
26093         * lib/sys_stat.in.h (mknod): Declare replacement.
26094         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26095         Document it.
26096         * doc/posix-functions/mknod.texi (mknod): Likewise.
26097         * modules/mknod-tests: New test.
26098         * tests/test-mknod.c: Likewise.
26099
26100         mkfifo: new module
26101         * modules/mkfifo: New file.
26102         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26103         * lib/mkfifo.c (mkfifo): Likewise.
26104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26105         defaults.
26106         * modules/sys_stat (Makefile.am): Substitute them.
26107         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26108         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26109         Document it.
26110         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26111         * modules/mkfifo-tests: New test.
26112         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26113         from test-mkfifoat.c.
26114         * tests/test-mkfifo.c: New file.
26115
26116         readlink: detect FreeBSD bug
26117         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26118         slash on symlink.
26119         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26120         * tests/test-readlink.h (test_readlink): Enhance test.
26121
26122         symlink: detect FreeBSD bug
26123         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26124         slash on symlink.
26125         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26126         * tests/test-symlink.h (test_symlink): Enhance test.
26127
26128 2009-11-10  Eric Blake  <ebb9@byu.net>
26129
26130         link: detect FreeBSD bug
26131         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26132         symlink.
26133         * doc/posix-functions/link.texi (link): Document the bug.
26134         * tests/test-link.h (test_link): Enhance test.
26135         * tests/test-linkat.c (main): Update caller.
26136
26137         unlink, remove: detect FreeBSD bug
26138         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26139         slash on symlink.
26140         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26141         * doc/posix-functions/remove.texi (remove): Likewise.
26142         * tests/test-unlink.h (test_unlink): Enhance test.
26143         * tests/test-remove.c (main): Likewise.
26144
26145 2009-11-09  Eric Blake  <ebb9@byu.net>
26146
26147         rename: detect FreeBSD bug
26148         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26149         slash on symlink.
26150         * modules/renameat-tests (Depends-on): Add filenamecat.
26151         * tests/test-rename.h (test_rename): Allow one more errno.
26152         * tests/test-renameat.c (main): Likewise.
26153         * doc/posix-functions/rename.texi (rename): Document the bug.
26154
26155         open: detect FreeBSD bug
26156         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26157         symlink.
26158         * doc/posix-functions/open.texi (open): Document the bug.
26159         * doc/posix-functions/utimes.texi (utimes): Likewise.
26160         * tests/test-open.h (test_open): Add parameters, and test symlink
26161         handling.
26162         * tests/test-open.c (main): Adjust caller.
26163         * tests/test-fcntl-safer.c (main): Likewise.
26164         * modules/open-tests (Depends-on): Add stdbool, symlink.
26165         * modules/fcntl-safer-tests (Depends-on): Likewise.
26166         * tests/test-openat.c (main): Add test-open tests.
26167
26168         stat: detect FreeBSD bug
26169         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26170         symlink.
26171         * doc/posix-functions/stat.texi (stat): Document the bug.
26172         * tests/test-stat.h (test_stat_func): Add argument.
26173         * tests/test-stat.c (main): Adjust caller.
26174         * tests/test-fstatat.c (main): Likewise.
26175         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26176         Reported by Jim Meyering.
26177
26178 2009-11-09  James Youngman  <jay@gnu.org>
26179
26180         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26181         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26182
26183 2009-11-08  Jim Meyering  <meyering@redhat.com>
26184
26185         utimens: remove invalid futimesat call
26186         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26187         It used the file descriptor of the target file as the DIR_FD
26188         parameter and NULL as the file name.  That caused failure with
26189         errno == EFAULT on FreeBSD-8.0-rc2
26190
26191 2009-11-07  Eric Blake  <ebb9@byu.net>
26192
26193         fflush, freadseek: use fseeko, not fseek
26194         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26195         (clear_ungetc_buffer): Avoid potential problems on large files.
26196         * lib/freadseek.c (freadseek): Likewise.
26197         * modules/freadseek (Depends-on): Add fseeko.
26198         * modules/fseek (configure.ac): Set a witness.
26199         * tests/test-fflush.c (main): Use fseeko.
26200         * tests/test-fpurge.c (fseek): Disable link warning.
26201         * tests/test-freadable.c (fseek): Likewise.
26202         * tests/test-freading.c (fseek): Likewise.
26203         * tests/test-fseeko.c (fseek): Likewise.
26204         * tests/test-ftell.c (fseek): Likewise.
26205         * tests/test-ftello.c (fseek): Likewise.
26206         * tests/test-fwritable.c (fseek): Likewise.
26207         * tests/test-fwriting.c (fseek): Likewise.
26208
26209 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26210
26211         * modules/memchr (Depends-on): Drop getpagesize dependency.
26212
26213 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26214
26215         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26216         Reported by Ludovic Courtès.
26217         * build-aux/pmccabe2html: Improve example usage.
26218         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26219
26220 2009-11-06  Jim Meyering  <meyering@redhat.com>
26221
26222         do-release-commit-and-tag: New module.
26223         Automate the release-commit and tag process.
26224         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26225         * modules/do-release-commit-and-tag: New file.
26226         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26227
26228 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26229
26230         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26231         because test-select.c uses inet_pton.
26232
26233 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26234
26235         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26236         GETADDRINFO_LIB.  Bump serial number.
26237         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26238         Suggested by Eric Blake <ebb9@byu.net>.
26239
26240 2009-11-05  Eric Blake  <ebb9@byu.net>
26241
26242         strtod: detect darwin bug
26243         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26244         Reported by Leo Davis.
26245
26246         freopen-safer: new module
26247         * modules/freopen-safer: New module.
26248         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26249         * lib/freopen-safer.c (freopen_safer): New file.
26250         * lib/stdio-safer.h (freopen_safer): New declaration.
26251         * lib/stdio--.h (freopen): New override.
26252         * MODULES.html.sh (File stream based Input/Output): Mention it.
26253         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26254         freopen-safer module.
26255         * doc/posix-functions/stderr.texi (stderr): Likewise.
26256         * doc/posix-functions/stdin.texi (stdin): Likewise.
26257         * doc/posix-functions/stdout.texi (stdout): Likewise.
26258         * modules/freopen-safer-tests: New test.
26259         * tests/test-reopen-safer.c: New file.
26260
26261 2009-11-05  Jim Meyering  <meyering@redhat.com>
26262
26263         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26264         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26265
26266 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26267
26268         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26269
26270 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26271
26272         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26273
26274 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26275
26276         Fix link error.
26277         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26278         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26279
26280 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26281
26282         * tests/test-func.c: Also test value of __func__.
26283
26284 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26285
26286         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26287         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26288
26289 2009-11-05  Bruno Haible  <bruno@clisp.org>
26290
26291         Fix link error.
26292         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26293         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26294         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26295
26296 2009-11-05  Bruno Haible  <bruno@clisp.org>
26297
26298         Tests for module 'inet_pton'.
26299         * modules/inet_pton-tests: New file.
26300         * tests/test-inet_pton.c: New file.
26301
26302 2009-11-05  Bruno Haible  <bruno@clisp.org>
26303
26304         Tests for module 'inet_ntop'.
26305         * modules/inet_ntop-tests: New file.
26306         * tests/test-inet_ntop.c: New file.
26307
26308 2009-11-04  Eric Blake  <ebb9@byu.net>
26309
26310         stdlib-safer: wrap all mkstemp variants
26311         * modules/mkostemp (configure.ac): Set witness.
26312         * modules/mkostemps (configure.ac): Likewise.
26313         * modules/mkstemps (configure.ac): Likewise.
26314         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26315         (mkstemps_safer): Wrap more functions.
26316         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26317         wrapping.
26318         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26319         (mkstemps_safer): Implement the wrappers.
26320
26321         mkstemps, mkostemps: new modules
26322         * modules/mkostemps: New module.
26323         * modules/mkstemps: Likewise.
26324         * lib/mkostemps.c (mkostemps): New file.
26325         * lib/mkstemps.c (mkstemps): Likewise.
26326         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26327         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26329         * modules/stdlib (Makefile.am): Substitute them.
26330         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26331         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26332         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26333         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26334         * MODULES.html.sh (File system functions): Mention them.
26335
26336         tempname: resync from glibc
26337         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26338         same values for __GT_FILE as glibc.  Abort even when assertions
26339         are disabled.
26340         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26341         match its value otherwise.  Allow idempotent inclusion.
26342         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26343         * lib/mkostemp.c (mkostemp): Likewise.
26344         * lib/mkstemp.c (mkstemp): Likewise.
26345         * lib/tmpfile.c (tmpfile): Likewise.
26346         * NEWS: Document this.
26347
26348         utimens: fix use of futimens on older Linux
26349         * lib/utimens.c (fdutimens): Use updated, rather than original,
26350         timespec to avoid bug in older Linux kernel.
26351         Reported by Simon Josefsson.
26352
26353 2009-11-04  Bruno Haible  <bruno@clisp.org>
26354
26355         Make num_processors more flexible and consistent.
26356         * lib/nproc.h (enum nproc_query): New type.
26357         (num_processors): Add a 'query' argument.
26358         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26359         (num_processors): Add a 'query' argument. Test the value of the
26360         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26361         mingw, count the number of CPUs available for the current process.
26362         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26363         Check for sched_getaffinity and sched_getaffinity_np.
26364         * modules/nproc (Depends-on): Add c-ctype, extensions.
26365         * NEWS: Mention the change.
26366
26367 2009-11-03  Bruno Haible  <bruno@clisp.org>
26368
26369         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26370
26371 2009-11-03  Jim Meyering  <meyering@redhat.com>
26372
26373         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26374         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26375         if it is defined.
26376
26377 2009-11-02  Eric Blake  <ebb9@byu.net>
26378
26379         mktime, timegm: share common declaration
26380         * lib/mktime-internal.h: New file.
26381         * lib/mktime.c: Use it rather than open-coding a declaration.
26382         * lib/timegm.c: Likewise.
26383         * modules/mktime (Files): Ship it.
26384         * modules/timegm (Files): Likewise.
26385         Suggested by Bruno Haible.
26386
26387         test-update-copyright: update test to match script changes
26388         * tests/test-update-copyright.sh: Avoid hard-coding perl
26389         location.  Don't update *.bak created by earlier runs.
26390
26391 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26392             Simon Josefsson  <simon@josefsson.org>
26393             Bruno Haible  <bruno@clisp.org>
26394
26395         Fix link error on Solaris 8.
26396         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26397         also in libnsl. Define also INET_PTON_LIB.
26398         * modules/inet_pton (Link): New section.
26399
26400 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26401             Bruno Haible  <bruno@clisp.org>
26402
26403         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26404         * modules/inet_ntop (Link): New section.
26405         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26406
26407 2009-11-02  Eric Blake  <ebb9@byu.net>
26408
26409         maint: avoid compiler warnings in m4 macros
26410         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26411         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26412
26413 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26414
26415         * m4/pmccabe2html.m4: Remove file.
26416         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26417         function.  Change maintainer.
26418         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26419         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26420         Courtès).
26421
26422 2009-10-31  Eric Blake  <ebb9@byu.net>
26423
26424         fseeko: fix m4 regression
26425         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26426         regression from 2009-10-27.
26427         Reported by Ralf Wildenhues.
26428
26429 2009-10-31  Jim Meyering  <meyering@redhat.com>
26430
26431         inttostr: aesthetics and improved (compile-time) safety
26432         Define inttype_is_signed rather than inttype_is_unsigned,
26433         since the sole use is via "#if inttype_is_signed".
26434         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26435         inttype_is_unsigned.
26436         * lib/offtostr.c (inttype_is_signed): Likewise.
26437         * lib/uinttostr.c (inttype_is_signed): Likewise.
26438         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26439         * lib/inttostr.c (inttostr): Use verify to cross-check the
26440         inttype_is_signed value and the signedness of the actual type.
26441         * modules/inttostr (Depends-on): Add verify.
26442
26443 2009-10-30  Eric Blake  <ebb9@byu.net>
26444
26445         build: avoid compiler warnings
26446         * lib/fchmodat.c (lchmod): Mark unused variables.
26447         * lib/getopt.c (_getopt_initialize): Likewise.
26448         * lib/mktime.c (__mktime_internal): Provide prototype.
26449         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26450         older gcc that do not understand #pragma GCC diagnostic.
26451         * lib/uinttostr.c (inttype_is_unsigned): Define.
26452         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26453
26454 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26455
26456         stat: fix compilation on AIX
26457         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26458         only see struct stat64.
26459
26460 2009-10-30  Eric Blake  <ebb9@byu.net>
26461
26462         exclude: make more robust
26463         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26464         rather than masking a coding bug.
26465         Suggested by Bruno Haible.
26466
26467 2009-10-30  Jim Meyering  <meyering@redhat.com>
26468
26469         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26470         Rather than putting #!/usr/bin/perl on the first line,
26471         start with a variant of what's recommended by "man perlrun" that
26472         invokes the first "perl" program from your shell's search path.
26473         * build-aux/gitlog-to-changelog: Replace #!... as above.
26474         Add a "Local Variables" perl mode setting.
26475         Prompted by a patch from Ludovic Courtès.
26476         Improved by Eric Blake.
26477         * build-aux/useless-if-before-free: Likewise.
26478         * build-aux/announce-gen: Likewise.
26479         * build-aux/update-copyright: Likewise.
26480
26481 2009-10-29  Eric Blake  <ebb9@byu.net>
26482
26483         filenamecat-lgpl: adjust clients
26484         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26485         filenamecat.
26486         * modules/renameat (Depends-on): Likewise.
26487
26488         filenamecat: split into filenamecat-lgpl
26489         * modules/filenamecat-lgpl: New module.
26490         * modules/filenamecat (Files): Move library-safe files into
26491         filenamecat-lgpl.
26492         (Depends-on): Add filenamecat-lgpl.
26493         (configure.ac): Declare witness.
26494         * lib/filenamecat.h (file_name_concat): Only declare when using
26495         GPL module.
26496         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26497         Move...
26498         * lib/filenamecat-lgpl.c: ...into new file.
26499         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26500         (gl_FILE_NAME_CONCAT): Use it.
26501         * MODULES.html.sh (File system functions): Mention new module.
26502
26503         argp: avoid memory leak
26504         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26505         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26506         base_name, since the latter malloc()s and can call exit().
26507         Leak introduced 2006-07-03.
26508
26509         dirname-lgpl: adjust clients that don't need full dirname
26510         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26511         * modules/filenamecat (Depends-on): Likewise.
26512         * modules/linkat (Depends-on): Likewise.
26513         * modules/mkancesdirs (Depends-on): Likewise.
26514         * modules/mkdir (Depends-on): Likewise.
26515         * modules/openat (Depends-on): Likewise.
26516         * modules/savewd (Depends-on): Likewise.
26517         * modules/rename (Depends-on): Likewise.
26518         (License): Relax license.
26519         * modules/mkdir-tests (Depends-on): Drop progname.
26520         (Makefile.am): Delete unneeded LDADD.
26521         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26522
26523         dirname: split into dirname-lgpl
26524         * modules/dirname-lgpl: New module.
26525         * modules/dirname (Files): Move library-safe files into
26526         dirname-lgpl.
26527         (Depends-on): Add dirname-lgpl.
26528         (configure.ac): Declare witness.
26529         * modules/double-slash-root (License): Relax license.
26530         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26531         module.
26532         * lib/dirname.c (dir_len, mdir_name): Move...
26533         * lib/dirname-lgpl.c: ...into new file.
26534         * lib/basename.c (last_component, base_len): Move...
26535         * lib/basename-lgpl.c: ...into new file.
26536         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26537         (gl_DIRNAME): Use it.
26538         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26539         Mention new module.
26540         * modules/dirname-tests (Depends-on): Add progname.
26541         * tests/test-dirname.c (program_name): Delete.
26542
26543         mkdir: make safe for libraries
26544         * modules/mkdir (Depends-on): Drop xalloc.
26545         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26546         exit.
26547
26548         tests: avoid some compiler warnings
26549         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26550         literals.
26551         * tests/test-memchr.c (main): Avoid type mismatch.
26552         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26553         * tests/test-base64.c (main): Likewise.
26554         * tests/test-getdelim.c (main): Likewise.
26555         * tests/test-gethostname.c (main): Likewise.
26556         * tests/test-getline.c (main): Likewise.
26557         * tests/test-netinet_in.c (main): Likewise.
26558         * tests/test-select.c (open_server_socket, main): Likewise.
26559         * tests/test-select-stdin.c (main): Likewise.
26560         * tests/test-sockets.c (main): Likewise.
26561         * tests/test-strsignal.c (main): Likewise.
26562         * tests/test-sys_select.c (main): Likewise.
26563         * tests/test-sys_socket.c (main): Likewise.
26564         * tests/test-u64.c (main): Likewise.
26565         * tests/test-xfprintf-posix.c (main): Likewise.
26566         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26567
26568         sockets: avoid compiler warning
26569         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26570
26571         maint: detect usage(1) and other suspicious exits
26572         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26573
26574 2009-10-29  Jim Meyering  <meyering@redhat.com>
26575
26576         timespec: long-to-int truncation could make timespec_cmp malfunction
26577         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26578         a multiple of 2^32 nanoseconds as no difference.
26579
26580 2009-10-28  Jim Meyering  <meyering@redhat.com>
26581
26582         fprintftime: wrap macro code argument in "do {...} while(0)"
26583         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26584         cpy macro must be a statement that can be followed by a semicolon.
26585         Now that the else clause contains a comment and is hence longer
26586         than one line, I require curly braces.  That in turn requires
26587         that we wrap this code block in the standard do...while(0).
26588
26589         fprintftime: remove stray semicolon from previous change
26590         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26591
26592         fprintftime: avoid a warning about ignored fwrite return value
26593         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26594         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26595         that is unsafe.
26596         * modules/fprintftime (Depends-on): Add ignore-value.
26597
26598         exclude: avoid an unwarranted warning
26599         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26600
26601 2009-10-27  Eric Blake  <ebb9@byu.net>
26602
26603         fseek: avoid compilation failure when fflush is replaced
26604         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26605         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26606         module is in use.
26607         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26608         module is not in use; since REPLACE_FSEEK worked otherwise.
26609         (GNULIB_FTELLO): Likewise for ftell.
26610         Reported by Ian Beckwith and others.
26611
26612 2009-10-27  Bruno Haible  <bruno@clisp.org>
26613
26614         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26615         Reported by Jim Meyering.
26616
26617 2009-10-27  Jim Meyering  <jim@meyering.net>
26618             Bruno Haible  <bruno@clisp.org>
26619
26620         Avoid warning despite dropping the return value of fwrite.
26621         * lib/unicodeio.c: Include ignore-value.h.
26622         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26623         * modules/unicodeio (Depends-on): Add ignore-value.
26624
26625 2009-10-26  Eric Blake  <ebb9@byu.net>
26626
26627         areadlinkat: fix fallback path
26628         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26629         pointer and zero.
26630
26631 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26632
26633         Use a better IO block size for modern systems
26634         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26635         * lib/md2.c: Likewise.
26636         * lib/md4.c: Likewise.
26637         * lib/md5.c: Likewise.
26638         * lib/sha1.c: Likewise.
26639         * lib/sha256.c: Likewise.
26640         * lib/sha512.c: Likewise.
26641
26642 2009-10-22  Eric Blake  <ebb9@byu.net>
26643
26644         tests: avoid several compiler warnings
26645         * tests/test-getcwd.c (main): Avoid buffer underflow.
26646         * tests/test-getdate.c (main): String literals are not safe with
26647         putenv, so use setenv.  Declare unused argument.
26648         * modules/getdate-tests (Depends-on): Add setenv.
26649         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26650         problems with string literals in char *.
26651         * tests/test-hash.c (main): Avoid shadowing declaration.
26652         (insert_new): Treat string literals as char const *.
26653         * tests/test-getopt.h (test_getopt): Likewise.
26654         (getopt_loop): Alter types to minimize casting elsewhere.
26655         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26656         (test_getopt_long_posix): Likewise.
26657         (do_getopt_long): Add wrapper to minimize casting.
26658         * tests/test-atexit.c (clear_temp_file): Use void.
26659         * tests/test-areadlink-with-size.c (main): Declare unused
26660         arguments.
26661         * tests/test-areadlink.c (main): Likewise.
26662         * tests/test-areadlinkat-with-size.c (main): Likewise.
26663         * tests/test-areadlinkat.c (main): Likewise.
26664         * tests/test-canonicalize-lgpl.c (main): Likewise.
26665         * tests/test-canonicalize.c (main): Likewise.
26666         * tests/test-dirent-safer.c (main): Likewise.
26667         * tests/test-dirname.c (main): Likewise.
26668         * tests/test-dup2.c (main): Likewise.
26669         * tests/test-fchdir.c (main): Likewise.
26670         * tests/test-fcntl-h.c (main): Likewise.
26671         * tests/test-fcntl-safer.c (main): Likewise.
26672         * tests/test-fdopendir.c (main): Likewise.
26673         * tests/test-fdutimensat.c (main): Likewise.
26674         * tests/test-fflush.c (main): Likewise.
26675         * tests/test-filenamecat.c (main): Likewise.
26676         * tests/test-filevercmp.c (main): Likewise.
26677         * tests/test-fopen-safer.c (main): Likewise.
26678         * tests/test-fopen.c (main): Likewise.
26679         * tests/test-fpending.c (main): Likewise.
26680         * tests/test-fpurge.c (main): Likewise.
26681         * tests/test-freading.c (main): Likewise.
26682         * tests/test-fstatat.c (main): Likewise.
26683         * tests/test-fsync.c (main): Likewise.
26684         * tests/test-futimens.c (main): Likewise.
26685         * tests/test-getndelim2.c (main): Likewise.
26686         * tests/test-gettimeofday.c (main): Likewise.
26687         * tests/test-getopt.c (main): Likewise.
26688         * tests/test-i-ring.c (main): Likewise.
26689         * tests/test-inttypes.c (main): Likewise.
26690         * tests/test-link.c (main): Likewise.
26691         * tests/test-lstat.c (main): Likewise.
26692         * tests/test-math.c (main): Likewise.
26693         * tests/test-md5.c (main): Likewise.
26694         * tests/test-memchr2.c (main): Likewise.
26695         * tests/test-memrchr.c (main): Likewise.
26696         * tests/test-mkdir.c (main): Likewise.
26697         * tests/test-mkdirat.c (main): Likewise.
26698         * tests/test-mkfifoat.c (main): Likewise.
26699         * tests/test-open.c (main): Likewise.
26700         * tests/test-openat-safer.c (main): Likewise.
26701         * tests/test-openat.c (main): Likewise.
26702         * tests/test-quotearg.c (main): Likewise.
26703         * tests/test-rawmemchr.c (main): Likewise.
26704         * tests/test-readlink.c (main): Likewise.
26705         * tests/test-remove.c (main): Likewise.
26706         * tests/test-rename.c (main): Likewise.
26707         * tests/test-renameat.c (main): Likewise.
26708         * tests/test-rmdir.c (main): Likewise.
26709         * tests/test-sha1.c (main): Likewise.
26710         * tests/test-signal.c (main): Likewise.
26711         * tests/test-sigaction.c (main): Likewise.
26712         * tests/test-stat.c (main): Likewise.
26713         * tests/test-stat-time.c (main): Likewise.
26714         * tests/test-stddef.c (main): Likewise.
26715         * tests/test-stdint.c (main): Likewise.
26716         * tests/test-stdio.c (main): Likewise.
26717         * tests/test-stdlib.c (main): Likewise.
26718         * tests/test-strchrnul.c (main): Likewise.
26719         * tests/test-strerror.c (main): Likewise.
26720         * tests/test-string.c (main): Likewise.
26721         * tests/test-strtod.c (main): Likewise.
26722         * tests/test-strverscmp.c (main): Likewise.
26723         * tests/test-symlink.c (main): Likewise.
26724         * tests/test-symlinkat.c (main): Likewise.
26725         * tests/test-sys_stat.c (main): Likewise.
26726         * tests/test-sys_time.c (main): Likewise.
26727         * tests/test-time.c (main): Likewise.
26728         * tests/test-unistd.c (main): Likewise.
26729         * tests/test-unlink.c (main): Likewise.
26730         * tests/test-unlinkat.c (main): Likewise.
26731         * tests/test-utimens.c (main): Likewise.
26732         * tests/test-utimensat.c (main): Likewise.
26733         * tests/test-version-etc.c (main): Likewise.
26734         * tests/test-wchar.c (main): Likewise.
26735         * tests/test-wctype.c (main): Likewise.
26736         * tests/test-xprintf-posix.c (main): Likewise.
26737         * tests/test-posixtm.c (main): Likewise.
26738         (STREQ): Delete unused macro.
26739         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26740         shadowed variables.
26741         * tests/test-memchr.c (main): Likewise.
26742
26743 2009-10-21  Eric Blake  <ebb9@byu.net>
26744
26745         areadlinkat: avoid failure on older glibc
26746         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26747         rather than mis-comparing 0 against FUNC_RESULT of char*.
26748
26749 2009-10-21  Bruno Haible  <bruno@clisp.org>
26750
26751         * modules/stpncpy (License): Relicense under LGPLv2+.
26752         Reported by David Lutterkort <lutter@redhat.com>.
26753
26754 2009-10-20  Eric Blake  <ebb9@byu.net>
26755
26756         utimensat: work around Solaris 9 bug
26757         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26758         has trailing slash bugs.
26759         * tests/test-lutimens.h (test_lutimens): Enhance test.
26760         * tests/test-utimens.h (test_utimens): Likewise.
26761         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26762         * doc/posix-functions/utimes.texi (utimes): Likewise.
26763         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26764         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26765         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26766         * doc/posix-functions/futimens.texi (futimens): Likewise.
26767
26768         fdutimensat: new module
26769         * modules/fdutimensat: New file.
26770         * lib/fdutimensat.c (fdutimensat): Likewise.
26771         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26772         * MODULES.html.sh (File system functions): Mention module.
26773         * modules/fdutimensat-tests: New test.
26774         * tests/test-fdutimensat.c: Likewise.
26775
26776         doc: regenerate INSTALL
26777         * doc/INSTALL: Reflect recent autoconf update.
26778         * doc/INSTALL.ISO: Likewise.
26779         * doc/INSTALL.UTF-8: Likewise.
26780
26781 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26782
26783         acl: warn if ACL support is not detected
26784         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26785
26786 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26787
26788         * lib/nproc.h: Add extern "C" block for C++.
26789
26790 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26791             Bruno Haible  <bruno@clisp.org>
26792
26793         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26794         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26795         * doc/posix-functions/isalpha.texi: Likewise.
26796         * doc/posix-functions/isblank.texi: Likewise.
26797         * doc/posix-functions/iscntrl.texi: Likewise.
26798         * doc/posix-functions/isdigit.texi: Likewise.
26799         * doc/posix-functions/isgraph.texi: Likewise.
26800         * doc/posix-functions/islower.texi: Likewise.
26801         * doc/posix-functions/isprint.texi: Likewise.
26802         * doc/posix-functions/ispunct.texi: Likewise.
26803         * doc/posix-functions/isspace.texi: Likewise.
26804         * doc/posix-functions/isupper.texi: Likewise.
26805         * doc/posix-functions/isxdigit.texi: Likewise.
26806
26807 2009-10-18  Bruno Haible  <bruno@clisp.org>
26808
26809         Tests for module 'isblank'.
26810         * modules/isblank-tests: New file.
26811         * tests/test-isblank.c: New file.
26812
26813         New module 'isblank'.
26814         * lib/isblank.c: New file.
26815         * m4/isblank.m4: New file.
26816         * modules/isblank: New file.
26817         * doc/posix-functions/isblank.texi: Mention the new module.
26818
26819 2009-10-18  Bruno Haible  <bruno@clisp.org>
26820
26821         New module 'ctype'.
26822         * lib/ctype.in.h: New file.
26823         * m4/ctype.m4: New file.
26824         * modules/ctype: New file.
26825         * doc/posix-headers/ctype.texi: Mention the new module.
26826
26827 2009-10-18  Jim Meyering  <meyering@redhat.com>
26828
26829         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26830         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26831         right after its initialization, rather than farther down.
26832         Keeping these in close proximity makes it easier to ensure
26833         that each such variable is initialized.  E.g.,
26834
26835             LIB_CLOCK_GETTIME=
26836             AC_SUBST([LIB_CLOCK_GETTIME])
26837
26838         This change also increments these serial numbers.
26839         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26840         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26842
26843 2009-10-18  Bruno Haible  <bruno@clisp.org>
26844
26845         Don't let environment variables perturb build.
26846         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26847         (gl_PREREQ_GETHRXTIME): ... not here.
26848
26849 2009-10-18  Bruno Haible  <bruno@clisp.org>
26850
26851         Avoid symlink attack in localcharset module.
26852         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26853         (O_NOFOLLOW): Define fallback.
26854         (get_charset_aliases): Don't open the file if it is a symbolic link.
26855         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26856         gl_FCNTL_H.
26857         (gl_FCNTL_H): Require it.
26858         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26859         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26860         Reported by Fergal Glynn <fglynn@veracode.com>.
26861
26862 2009-10-18  Bruno Haible  <bruno@clisp.org>
26863
26864         Implement nproc for mingw.
26865         * lib/nproc.c: Include <windows.h>
26866         (num_processors): On native Windows platforms, try GetSystemInfo.
26867
26868 2009-10-18  Bruno Haible  <bruno@clisp.org>
26869
26870         Implement nproc for IRIX.
26871         * lib/nproc.c: Include <sys/sysmp.h>.
26872         (num_processors): On IRIX systems, try sysmp.
26873         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26874
26875 2009-10-18  Bruno Haible  <bruno@clisp.org>
26876
26877         Implement nproc for HP-UX.
26878         * lib/nproc.c: Include <sys/pstat.h>
26879         (num_processors): On HP-UX systems, try pstat_getdynamic.
26880         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26881         pstat_getdynamic.
26882
26883 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26884             Bruno Haible  <bruno@clisp.org>
26885
26886         Implement nproc for NetBSD, OpenBSD.
26887         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26888         (ARRAY_SIZE): New macro.
26889         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26890         * m4/nproc.m4: New file.
26891         * modules/nproc (Files): Add m4/nproc.m4.
26892         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26893         (Makefile.am): Instead, augment lib_SOURCES.
26894
26895 2009-10-18  Bruno Haible  <bruno@clisp.org>
26896
26897         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26898         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26899         sys/param.h.
26900
26901 2009-10-16  Eric Blake  <ebb9@byu.net>
26902
26903         utimensat: new module
26904         * modules/utimensat: New file.
26905         * lib/utimensat.c (utimensat): Likewise.
26906         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26907         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26908         so we can work around Linux bugs.
26909         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26910         * modules/sys_stat (Makefile.am): Substitute them.
26911         * lib/sys_stat.in.h (utimensat): Declare it.
26912         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26913         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26914         * modules/utimensat-tests: New test.
26915         * tests/test-utimensat.c: Likewise.
26916
26917         utimens: let lutimens work on non-symlinks
26918         * lib/utimens.c (lutimens): Fall back to utimens rather than
26919         failing with ENOSYS, when file is not a symlink.
26920         (utimens): Reduce redirection.
26921         * tests/test-lutimens.h (test_lutimens): Update test to cover
26922         non-symlinks.
26923         * tests/test-utimens.h (test_utimens): Update test to cover
26924         symlinks.
26925         * tests/test-utimens.c (main): Update caller.
26926
26927         utimens: cache whether utimensat syscall works
26928         * lib/utimens.c (utimensat_works_really): New cache variable.
26929         (fdutimens, lutimens): Use it to avoid failing syscall.
26930
26931         test-stat-time, test-utimens: improve portability
26932         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26933         ext4 on alpha, and for cygwin.
26934         * tests/test-utimens-common.h: New file.
26935         (nap): Factor delays into single function.
26936         * tests/test-lutimens.h (test_lutimens): Use new header.
26937         * tests/test-futimens.h (test_futimens): Likewise.
26938         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26939         timestamps to occur from same machine, as was done previously for
26940         test_utimens.
26941         * modules/utimens-tests (Files): Ship new file.
26942         * modules/futimens-tests (Files): Likewise.
26943         Reported in part by Jim Meyering.
26944
26945         sys_stat: sort replacement declarations
26946         * lib/sys_stat.in.h: Sort declarations.
26947         * lib/futimens.c (futimens): Fix typo.
26948
26949 2009-10-15  Jim Meyering  <meyering@redhat.com>
26950
26951         don't let environment settings perturb build
26952         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26953         could cause a configure-time and/or build-time malfunction.
26954         Typically, a configure-time function-in-library test is performed
26955         via code like this:
26956
26957           LIB_VAR=
26958           AC_SUBST([LIB_VAR])
26959           prefix_saved_LIBS=$LIBS
26960             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26961                        [test "$ac_cv_search_FUNC" = "none required" ||
26962                         LIB_VAR=$ac_cv_search_FUNC])
26963           LIBS=$prefix_saved_LIBS
26964
26965         However, in each of the files affected by this change, the LIB_VAR=
26966         initialization was omitted.  Thus, when set in the environment, its
26967         value would propagate into generated Makefiles when FUNC is not found
26968         in LIB_NAME.
26969         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26970         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26972
26973 2009-10-14  Eric Blake  <ebb9@byu.net>
26974
26975         fchdir: avoid infinite recursion in mingw
26976         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26977         recursing.
26978
26979         test-stat-time: port to mingw
26980         * tests/test-stat-time.c (force_unlink): Return a value.
26981         (test_ctime) [W32]: Fix compilation error.
26982         (nap): Don't call usleep with too large an argument.  Use
26983         force_unlink.
26984         * doc/pastposix-functions/usleep.texi (usleep): Document the
26985         portability issue.
26986
26987 2009-10-13  Jim Meyering  <meyering@redhat.com>
26988
26989         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26990         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26991         * modules/pipe-filter-ii: Likewise.
26992         * modules/sys_socket-tests: Likewise.
26993         * modules/tsearch-tests: Likewise.
26994         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26995         (check): Depend on it.
26996
26997 2009-10-12  Eric Blake  <ebb9@byu.net>
26998
26999         utimens-tests: port to NFS file systems
27000         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27001         comparisons to avoid spurious failures from timestamp drift
27002         between NFS machines.
27003
27004 2009-10-12  Eric Blake  <ebb9@byu.net>
27005
27006         stat-time-tests: minor cleanups
27007         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27008         * tests/test-stat-time.c (nap): Separate assignment from call.
27009         Suggested by Paolo Bonzini and Bruno Haible.
27010
27011         sys_stat: guarantee struct timespec
27012         * lib/sys_stat.in.h (includes): Always include <time.h>
27013         * modules/sys_stat (Depends-on): Add time.
27014         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27015         mode_t permission values.
27016         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27017         get at subsecond timestamps.
27018
27019 2009-10-10  Eric Blake  <ebb9@byu.net>
27020
27021         futimens: new module
27022         * modules/futimens: New file.
27023         * lib/futimens.c (futimens): Likewise.
27024         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27025         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27026         we can work around Linux bugs.
27027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27028         * modules/sys_stat (Makefile.am): Substitute them.
27029         * lib/sys_stat.in.h (futimens): Declare it.
27030         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27031         * doc/posix-functions/futimens.texi (futimens): Likewise.
27032         * modules/futimens-tests: New test.
27033         * tests/test-futimens.c: Likewise.
27034
27035         utimens: introduce fdutimens
27036         * lib/utimens.h (fdutimens): New prototype.
27037         * lib/utimens.c (gl_futimens): Move guts...
27038         (fdutimens): ...to new interface.
27039         * tests/test-utimens.c (do_fdutimens): Use it.
27040
27041         utimens: add UTIME_NOW and UTIME_OMIT support
27042         * lib/utimens.c (validate_timespec, update_timespec): New helper
27043         functions.
27044         (gl_futimens, lutimens): Use them.
27045         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27046         stdbool, sys_stat.
27047         (Link): Mention resulting library dependency.
27048         * modules/utimecmp (Link): Likewise.
27049         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27050         (Makefile.am): Pick up library dependency.
27051         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27052         definition.
27053         * tests/test-sys_stat.c: Test the definitions.
27054         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27055         * NEWS: Document library dependency.
27056
27057         utimecmp: support symlink timestamps
27058         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27059         hashing when possible.  Use pathconf when available.
27060         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27061         * modules/utimecmp (Depends-on): Add lstat.
27062
27063         utimens: add lutimens interface
27064         * lib/utimens.c (lutimens): New function.
27065         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27066         * lib/utimens.h (lutimens): Declare new interface.
27067         * tests/test-utimens.c (main): Enhance test.
27068         * tests/test-lutimens.h (test_lutimens): New file.
27069         * modules/utimens-tests (Files): Distribute it.
27070         (Depends-on): Add symlink.
27071         (configure.ac): Check for usleep.
27072
27073         utimens: validate futimens usage
27074         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27075         fewer syscalls on failure later on.  Avoid compiler warning on
27076         mingw.
27077         * modules/utimens (Depends-on): Add dup2.
27078
27079         utimens: add test
27080         * modules/utimens-tests: New test.
27081         * tests/test-utimens.h: New file.
27082         * tests/test-futimens.h: Likewise.
27083         * tests/test-utimens.c: Likewise.
27084
27085         doc: mention timestamp portability issues
27086         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27087         instead.
27088         * doc/posix-functions/utime.texi (utime): Likewise.
27089         * doc/posix-functions/utimes.texi (utimes): Likewise.
27090         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27091         instead.
27092         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27093         module.
27094         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27095         Mention weakness with symlink timestamps.
27096         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27097         to utimensat/futimens instead.
27098         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27099
27100         test-dup2: enhance test
27101         * tests/test-dup2.c (main): Also check AT_FDCWD.
27102
27103         test-stat-time: avoid more spurious failures
27104         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27105         xfs; and avoid race if the two timestamps cross quantization edge.
27106
27107         relocatable: prefer 'file system' over 'filesystem'
27108         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27109         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27110         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27111         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27112         * lib/relocatable.c (compute_curr_prefix): Likewise.
27113
27114 2009-10-10  Jim Meyering  <meyering@redhat.com>
27115
27116         stat-time-tests: check for the usleep function
27117         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27118
27119 2009-10-10  Bruno Haible  <bruno@clisp.org>
27120
27121         * modules/xnanosleep: Put the Link section after the Include section.
27122
27123 2009-10-09  Eric Blake  <ebb9@byu.net>
27124
27125         dup2: work around FreeBSD 6.1 bug
27126         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27127         * doc/posix-functions/dup2.texi (dup2): Document it.
27128         Reported by Nelson H. F. Beebe and Jim Meyering.
27129
27130         test-stat-time: port to buggy NFS clients
27131         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27132         (test_ctime): Also skip test if mtime and ctime are skewed.
27133
27134         maint: prefer 'file system' over 'filesystem'
27135         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27136         * doc/posix-functions/lstat.texi (lstat): Likewise.
27137         * lib/file-has-acl.c (file_has_acl): Likewise.
27138         * lib/fwriteerror.c [TEST]: Likewise.
27139         * tests/test-areadlink.h (test_areadlink): Likewise.
27140         * tests/test-areadlinkat-with-size.c (main): Likewise.
27141         * tests/test-areadlinkat.c (main): Likewise.
27142         * tests/test-canonicalize-lgpl.c (main): Likewise.
27143         * tests/test-canonicalize.c (main): Likewise.
27144         * tests/test-fstatat.c (main): Likewise.
27145         * tests/test-linkat.c (main): Likewise.
27146         * tests/test-lstat.h (test_lstat_func): Likewise.
27147         * tests/test-mkdir.h (test_mkdir): Likewise.
27148         * tests/test-readlink.h (test_readlink): Likewise.
27149         * tests/test-remove.c (main): Likewise.
27150         * tests/test-rename.h (test_rename): Likewise.
27151         * tests/test-renameat.c (main): Likewise.
27152         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27153         * tests/test-symlink.h (test_symlink): Likewise.
27154         * tests/test-symlinkat.c (main): Likewise.
27155         * tests/test-unlink.h (test_unlink_func): Likewise.
27156         * tests/test-unlinkat.c (main): Likewise.
27157
27158         maint: make realtime library usage explicit
27159         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27160         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27161         * modules/settime (Link): Likewise.
27162         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27163
27164         test-stat-time: speed up execution
27165         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27166         warning on mingw.
27167         (nap): New helper function.
27168         (prepare_test): Use it to reduce sleep time.
27169         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27170         execution.
27171         * modules/stat-time-tests (configure.ac): Check for usleep.
27172
27173 2009-10-09  Jim Meyering  <meyering@redhat.com>
27174
27175         selinux-h: always use getfilecon wrappers
27176         * lib/getfilecon.c: New file.
27177         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27178         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27179         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27180         (fgetfilecon): Provide a stub.
27181         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27182         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27183         file unconditionally.
27184         When <selinux/selinux.h> is found, arrange to use wrappers.
27185         * modules/selinux-h (Files): Add getfilecon.c.
27186         (Makefile.am): Substitute include-next-related bits
27187         into the now-always-generated selinux/selinux.h file.
27188         * doc/glibc-functions/lgetfilecon.texi: New file.
27189         * doc/glibc-functions/fgetfilecon.texi: New file.
27190         * doc/glibc-functions/getfilecon.texi: New file.
27191         * doc/glibc-functions/getfilecon-desc.texi: New file.
27192         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27193         which to pull in the new files.
27194         * MODULES.html.sh (Misc): Add selinux-h.
27195
27196 2009-10-08  Jim Meyering  <meyering@redhat.com>
27197
27198         unistd: fix comment typo
27199         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27200
27201 2009-10-08  Eric Blake  <ebb9@byu.net>
27202
27203         areadlink: use SIZE_MAX consistently
27204         * modules/areadlink (Depends-on): Add stdint.
27205         * modules/areadlink-with-size (Depends-on): Likewise.
27206         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27207         gives NULL; drop sys/types, since unistd gives size_t; and add
27208         stdint for SIZE_MAX.
27209         (SIZE_MAX): Rely on headers.
27210         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27211         and add stdint.
27212         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27213         (SIZE_MAX): Likewise.
27214         (INITIAL_BUF_SIZE): Turn into enum.
27215         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27216
27217 2009-10-08  Jim Meyering  <meyering@redhat.com>
27218
27219         areadlinkat: avoid compilation failure
27220         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27221         Fix typo in comment.
27222
27223 2009-10-07  Eric Blake  <ebb9@byu.net>
27224
27225         areadlinkat-with-size: new module
27226         * modules/areadlinkat-with-size: New module.
27227         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27228         * lib/areadlink.h (areadlinkat): Declare it.
27229         * MODULES.html.sh (File system functions): Mention it.
27230         * modules/areadlinkat-with-size-tests: New test.
27231         * tests/test-areadlinkat-with-size.c: New file.
27232
27233         xreadlinkat: new module
27234         * modules/xreadlinkat: New module.
27235         * lib/xreadlinkat.c (xreadlinkat): New file.
27236         * lib/xreadlink.h (xreadlinkat): Declare it.
27237         * MODULES.html.sh (File system functions): Mention it.
27238
27239         areadlinkat: new module
27240         * lib/at-func.c (FUNC_FAIL): New define.
27241         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27242         * modules/areadlinkat: New module.
27243         * lib/linkat.c (areadlinkat): Move...
27244         * lib/areadlinkat.c (areadlinkat): ...to new file.
27245         * lib/areadlink.h (areadlinkat): Declare it.
27246         * modules/linkat (Depends-on): Add areadlinkat.
27247         * MODULES.html.sh (File system functions): Mention it.
27248         * modules/areadlinkat-tests: New test.
27249         * tests/test-areadlinkat.c: New file.
27250
27251         areadlink, areadlink-with-size: add tests
27252         * modules/areadlink-tests: New test.
27253         * modules/areadlink-with-size-tests: Likewise.
27254         * tests/test-areadlink.h: New file.
27255         * tests/test-areadlink.c: Likewise.
27256         * tests/test-areadlink-with-size.c: Likewise.
27257
27258         maint: minor cleanups
27259         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27260         _UNUSED_PARAMETER_ instead.
27261         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27262         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27263         * modules/linkat-tests (Files): Distribute test-link.h.
27264
27265         openat, utimens: whitespace cleanup
27266         * lib/openat.c: Prefer space throughout, rather than mix of 8
27267         spaces vs. tabs.
27268         * lib/at-func.c: Likewise.
27269         * lib/utimens.c: Likewise.
27270
27271         openat: avoid using wrong fd
27272         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27273         working directory chooses same fd.
27274         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27275
27276         mkdir, mkdirat: fix cygwin 1.5.x bug
27277         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27278         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27279         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27280         bug.
27281         (gl_PREREQ_MKDIR): Delete unused macro.
27282         * modules/mkdir (Files): Track file rename.
27283         (configure.ac): Update macro name.
27284         * modules/openat (Depends-on): Add mkdir.
27285         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27286
27287         mkdir, mkdirat: add tests
27288         * modules/mkdir-tests: New test.
27289         * tests/test-mkdir.h: New file.
27290         * tests/test-mkdir.c: Likewise.
27291         * tests/test-mkdirat.c: Likewise.
27292         * modules/openat-tests (Files): Add new files.
27293         (Makefile.am): Run new test.
27294
27295 2009-10-06  Eric Blake  <ebb9@byu.net>
27296
27297         doc: tweak *at function documentation
27298         * doc/posix-functions/faccessat.texi (faccessat): Mention
27299         known issue with replacement.
27300         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27301         * doc/posix-functions/linkat.texi (linkat): Likewise.
27302         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27303         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27304         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27305         * doc/posix-functions/renameat.texi (renameat): Likewise.
27306         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27307
27308         openat: fix GNU/Hurd bug in unlinkat
27309         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27310         broken.
27311         * doc/posix-functions/unlink.texi (unlink): Document this.
27312         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27313
27314         fdopendir: fix GNU/Hurd bug
27315         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27316         allowing non-directory fds.
27317         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27318         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27319         * modules/dirent (Makefile.am): Substitute it.
27320         * lib/dirent.in.h (fdopendir): Declare replacement.
27321         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27322         * tests/test-fdopendir.c (main): Test something other than
27323         /dev/null, since on Hurd that behaves like a directory.
27324
27325         test-symlink: port to GNU/Hurd
27326         * tests/test-symlink.h (test_symlink): Relax expected errno.
27327
27328         doc: tweak more cygwin information
27329         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27330         now compatible with glibc.
27331         * doc/posix-functions/getopt.texi (getopt): Likewise.
27332
27333         getopt-gnu: add another test
27334         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27335         guarantee behavior relied on by m4.
27336         * tests/test-getopt.c (main): Use it.
27337         * modules/getopt-posix-tests (Depends-on): Add setenv.
27338         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27339
27340         getopt: fix compilation on darwin
27341         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27342         include.
27343         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27344         Reported by Ludovic Courtès.
27345
27346 2009-10-06  Bruno Haible  <bruno@clisp.org>
27347
27348         * modules/size_max (Description): Discourage its use.
27349         Reported by Simon Josefsson.
27350
27351 2009-10-06  Jim Meyering  <meyering@redhat.com>
27352
27353         linkat: avoid compilation failure
27354         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27355
27356 2009-10-05  Eric Blake  <ebb9@byu.net>
27357
27358         linkat: support Linux 2.6.17
27359         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27360         linkat on Linux, but allow cache variable override.
27361         * lib/linkat.c (rpl_linkat): Define override.
27362         * modules/linkat (Depends-on): Add symlinkat.
27363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27364         * modules/unistd (Makefile.am): Substitute it.
27365         * lib/unistd.in.h (linkat): Declare replacement.
27366         Reported by Pádraig Brady.
27367
27368         quotearg: port test to systems with C.UTF-8 locale
27369         * tests/test-quotearg.c (struct result_strings): Add another
27370         member, differentiating between C.ASCII and C.UTF-8 handling.
27371         (compare_strings): Add parameter.
27372         (main): Adjust all callers.
27373
27374         getopt: avoid clash with FreeBSD _getopt_internal
27375         * lib/getopt.in.h (_getopt_internal): Override the name.
27376         * lib/getopt_int.h (includes): Pick up any overrides.
27377         Reported by Reuben Thomas.
27378
27379         hash: allow C89 compilation
27380         * lib/hash.c (check_tuning): Move declaration before statement.
27381         Reported by Reuben Thomas.
27382
27383 2009-10-05  Karl Berry  <karl@gnu.org>
27384
27385         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27386
27387 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27388             Bruno Haible  <bruno@clisp.org>
27389
27390         * lib/uname.c (uname): Use a table-driven algorithm to compute
27391         Windows NT versions.
27392
27393 2009-10-04  Bruno Haible  <bruno@clisp.org>
27394
27395         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27396         program_invocation_short_name.
27397         * modules/progname (configure.ac): Test for presence of
27398         program_invocation_short_name.
27399         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27400
27401 2009-10-04  Bruno Haible  <bruno@clisp.org>
27402
27403         * lib/progname.c (set_program_name): Fix comment.
27404         Reported by Jim Meyering.
27405
27406 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27407             Bruno Haible  <bruno@clisp.org>
27408
27409         * lib/uname.c: Include <string.h>.
27410         (uname): Do only one call to GetVersionEx in the common case.
27411
27412 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27413             Bruno Haible  <bruno@clisp.org>
27414
27415         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27416         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27417         (uname): Add support for Windows CE and various non-x86 CPU types.
27418
27419 2009-10-03  Bruno Haible  <bruno@clisp.org>
27420
27421         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27422         invocation to tests/configure.ac.
27423         Reported by Ian Beckwith <ianb@erislabs.net>.
27424
27425 2009-10-02  Eric Blake  <ebb9@byu.net>
27426
27427         fchdir: avoid compiler warning
27428         * lib/fchdir.c (canonicalize_file_name)
27429         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27430
27431         test-open: support mingw errno values
27432         * tests/test-open.h (test_open): Relax test.
27433         * tests/test-fopen.h (test_fopen): Likewise.
27434         * tests/test-openat-safer.c (main): Likewise.
27435
27436         open: fix opening directory on mingw
27437         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27438
27439         test-open: on GNU/Hurd, /dev/null is a directory
27440         * tests/test-fopen.h (main): Rename...
27441         (test_fopen): ...to this.  Use a guaranteed non-directory when
27442         confirming open behavior on trailing slash.
27443         * tests/test-openat-safer.c (main): Likewise.
27444         * tests/test-open.h (main): Likewise....
27445         (test_open): ...to this.
27446         * tests/test-fopen.c (main): Adjust caller.
27447         * tests/test-fopen-safer.c (main): Likewise.
27448         * tests/test-open.c (main): Likewise.
27449         * tests/test-fcntl-safer.c (main): Likewise.
27450         Reported by Samuel Thibault.
27451
27452         rename, fchdir: don't ignore chdir failure
27453         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27454         * lib/rename.c (rpl_rename) [W32]: Likewise.
27455         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27456         an empty destination directory if source cannot be renamed,
27457         although there is still possibility for failure.
27458         * doc/posix-functions/rename.texi (rename): Document the race.
27459         Reported by Jim Meyering.
27460
27461         maint: cleanup whitespace in recent commits
27462         * lib/rename.c (rpl_rename): Remove tabs.
27463         * tests/test-link.h (test_link): Likewise.
27464         * lib/fchdir.c (get_name): Likewise.
27465         Reported by Jim Meyering.
27466
27467 2009-10-02  Ben Pfaff  <blp@gnu.org>
27468
27469         relocatable-prog-wrapper: Add missing dependency on
27470         double-slash-root.
27471         * modules/relocatable-prog-wrapper: Add dependency.
27472         Reported by Ian Beckwith <ianb@erislabs.net>.
27473
27474 2009-10-02  Eric Blake  <ebb9@byu.net>
27475
27476         renameat: fix Solaris bugs
27477         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27478         needed fixing.
27479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27480         * modules/stdio (Makefile.am): Substitute it.
27481         * lib/stdio.in.h (renameat): Declare replacement.
27482         * lib/renameat.c (rpl_renameat): Implement fix.
27483
27484         renameat: new module
27485         * modules/renameat: New file.
27486         * lib/renameat.c (renameat): Likewise.
27487         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27489         * modules/stdio (Makefile.am): Substitute them.
27490         * lib/stdio.in.h (renameat): Declare it.
27491         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27492         * doc/posix-functions/renameat.texi (renameat): Likewise.
27493         * modules/renameat-tests: New test.
27494         * tests/test-renameat.c: Likewise.
27495
27496         rename: fix mingw bugs
27497         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27498         directory overwrite bugs.
27499
27500         rename: fix another cygwin 1.5 bug
27501         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27502         checks.
27503         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27504         unnecessary cygwin workarounds.  Also work around bug with moving
27505         full directory onto an empty one.
27506         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27507
27508         rename-dest-slash: merge into rename module
27509         * modules/rename-dest-slash (Status): Mark obsolete.
27510         (Depends-on): Add rename.
27511         (Files): Let rename do it all.
27512         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27513         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27514         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27515         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27516         * lib/rename.c (rpl_rename): Update comments.
27517
27518         rename: fix cygwin 1.5.x bugs
27519         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27520         * lib/rename.c (rpl_rename): Work around them.
27521         * modules/rename (Depends-on): Add same-inode.
27522
27523         rename: fix Solaris 10 bug
27524         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27525         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27526         was the only bug.
27527
27528         rename: fix Solaris 9 bug
27529         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27530         on non-directory.  Avoid calling exit.
27531         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27532         strdup.
27533         * modules/rename-tests (Depends-on): Drop lstat.
27534         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27535         (gl_PREREQ_RENAME): Delete unused macro.
27536
27537         rename-dest-slash: fix NetBSD bug
27538         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27539         links.
27540         * modules/rename-dest-slash (Depends-on): Add same-inode.
27541
27542         rename-tests: new test, exposes several platform bugs
27543         * modules/rename-tests: New file.
27544         * tests/test-rename.h: Likewise.
27545         * tests/test-rename.c: Likewise.
27546         * doc/posix-functions/rename.texi (rename): Improve documentation,
27547         including bugs that will eventually be fixed in gnulib.
27548
27549 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27550
27551         * lib/uname.c: Include <stdlib.h>
27552         (uname): Assume version info is available.
27553
27554 2009-10-02  Jim Meyering  <meyering@redhat.com>
27555
27556         gnu-web-doc-update: correct --help output
27557         * build-aux/gnu-web-doc-update: Make --help output relevant.
27558
27559         gnu-web-doc-update: add standard options
27560         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27561
27562         gnu-web-doc-update: New module.
27563         Use this script to automatically update the on-line web documentation
27564         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27565         * modules/gnu-web-doc-update: New file, from coreutils.
27566         * build-aux/gnu-web-doc-update: New script.
27567
27568 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27569
27570         link: LoadLibrary is not needed.
27571         * lib/link.c: Use GetModuleHandle.
27572
27573 2009-10-01  Eric Blake  <ebb9@byu.net>
27574
27575         getopt: bump serial number
27576         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27577         change.
27578
27579         tests: tighten link, rmdir, and remove tests
27580         * tests/test-link.h (includes): No need to use <config.h> here.
27581         Clean up if directory hard link was created, otherwise test for
27582         trailing '.'.
27583         * tests/test-linkat.c (main): Simplify.
27584         * tests/test-remove.c (main): Enhance test for trailing '.'.
27585         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27586
27587 2009-10-01  Jim Meyering  <meyering@redhat.com>
27588
27589         maint.mk: requiring "make major" was annoying, for a "minor" release.
27590         What is intended is "stable", to contrast with alpha and beta,
27591         so require "make stable", not "make major".
27592         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27593         (get_tool_versions): Likewise.
27594         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27595
27596 2009-09-30  Ben Pfaff  <blp@gnu.org>
27597
27598         Fix broken build of replacement for Windows tmpfile().
27599         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27600         flags argument added along with the 'mkostemp' module.
27601
27602 2009-09-28  Bruno Haible  <bruno@clisp.org>
27603
27604         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27605         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27606         to 'remove_elt'.
27607         (gl_list_remove): Update.
27608         * lib/gl_list.c (gl_list_remove): Update.
27609         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27610         to 'remove_elt'.
27611         (gl_oset_remove): Update.
27612         * lib/gl_list.c (gl_oset_remove): Update.
27613         Reported by Eric Blake.
27614
27615 2009-09-28  Eric Blake  <ebb9@byu.net>
27616
27617         doc: mention yet more cygwin 1.7 status
27618         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27619         cygwin.
27620         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27621         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27622
27623         argp: fix test failure
27624         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27625         that are not upper-case.  Pass correct range to tolower.
27626
27627 2009-09-27  Jim Meyering  <meyering@redhat.com>
27628
27629         test-yesno: work around sparc-dash here-document infelicity
27630         Without this change, the literal \177 byte in a here document
27631         would make dash 0.5.5.1-3 access uninitialized memory.
27632         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27633         Instead, use a marker, "@", and filter through tr to create the desired
27634         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27635
27636 2009-09-27  Bruno Haible  <bruno@clisp.org>
27637
27638         Disable untested support for new flavours of ACLs on AIX.
27639         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27640         progress.
27641         * lib/set-mode-acl.c (qset_acl): Likewise.
27642
27643 2008-12-07  Bruno Haible  <bruno@clisp.org>
27644
27645         Add support for new flavours of ACLs on AIX. (Untested.)
27646         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27647         (file_has_acl): Add support for newer AIX.
27648         * lib/set-mode-acl.c (qset_acl): Likewise.
27649         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27650         Rainer Tammer <tammer@tammer.net>.
27651
27652 2009-09-26  Eric Blake  <ebb9@byu.net>
27653
27654         argp: fix compilation of getopt
27655         * lib/getopt.in.h (includes): Use different guard than glibc.
27656         Reported by Sergey Poznyakoff.
27657
27658         doc: mention more cygwin 1.7 status
27659         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27660         bug.
27661         * doc/posix-functions/execl.texi (execl): Likewise.
27662         * doc/posix-functions/execle.texi (execle): Likewise.
27663         * doc/posix-functions/execlp.texi (execlp): Likewise.
27664         * doc/posix-functions/execv.texi (execv): Likewise.
27665         * doc/posix-functions/execve.texi (execve): Likewise.
27666         * doc/posix-functions/execvp.texi (execvp): Likewise.
27667         * doc/glibc-functions/canonicalize_file_name.texi
27668         (canonicalize_file_name): Cygwin 1.7 now provides this.
27669         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27670         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27671         on AT_SYMLINK_NOFOLLOW.
27672
27673 2009-09-24  Eric Blake  <ebb9@byu.net>
27674
27675         test-linkat: make test more robust
27676         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27677
27678         getopt: fix inclusion guards for cygwin
27679         * modules/getopt-posix (Depends-on): Add include-next.
27680         (Makefile.am): Substitute more items in replacement header.
27681         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27682         <getopt.h>.
27683         * lib/getopt.in.h (includes): Use split inclusion guard, and
27684         prefer <getopt.h> over include <unistd.h> when one is present.
27685         (option): Also override name of 'struct option'.
27686
27687         same-inode: revert prior change; it is not yet ready
27688         * NEWS: Undo mention of this change.
27689         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27690         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27691         * lib/cycle-check.c (cycle_check): Likewise.
27692         * lib/same.c (same_name): Likewise.
27693         * lib/at-func2.c (at_func2): Likewise.
27694
27695 2009-09-23  Eric Blake  <ebb9@byu.net>
27696
27697         linkat: new module
27698         * modules/linkat: New file.
27699         * lib/at-func2.c (at_func2): Likewise.
27700         * lib/linkat.c (linkat): Likewise.
27701         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27702         * lib/openat-priv.h (at_func2): Add declaration.
27703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27704         * modules/unistd (Makefile.am): Substitute them.
27705         * lib/unistd.in.h (linkat): Declare it.
27706         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27707         * doc/posix-functions/linkat.texi (linkat): Likewise.
27708         * doc/posix-functions/link.texi (link): Tweak wording.
27709         * tests/test-link.c (main): Move guts...
27710         * tests/test-link.h (test_link): ...into new file.
27711         * modules/linkat-tests: New test.
27712         * tests/test-linkat.c: Likewise.
27713         * modules/link-tests (Files): Ship new file.
27714         (Depends-on): Add stdbool.
27715
27716         dirname: add library-safe mdir_name
27717         * lib/dirname.h (mdir_name): New prototype.
27718         * lib/dirname.c (dir_name): Move guts...
27719         (mdir_name): ...to new function that avoids xalloc_die.
27720
27721         fchdir: another mingw fix
27722         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27723         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27724         on mingw (where it has not yet been ported), and make it optional
27725         elsewhere.
27726         (_gl_register_fd): Use it.
27727
27728         same-inode: make SAME_INODE tri-state, to port to mingw
27729         * NEWS: Mention this change.
27730         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27731         st_ino always being 0.
27732         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27733         * lib/cycle-check.c (cycle_check): Likewise.
27734         * lib/same.c (same_name): Likewise.
27735
27736         lstat: avoid mingw compilation error
27737         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27738         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27739         lstat ourselves.
27740         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27741         was adequate.
27742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27743         the checks for lstat.
27744         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27745
27746         link: fix test failure on Solaris 9
27747         * lib/link.c (rpl_link): Don't assume link will catch bogus
27748         trailing slash on source.
27749
27750         test-symlinkat: enhance test
27751         * tests/test-readlink.c (main): Move guts...
27752         * tests/test-readlink.h (test_readlink): ...into new file.
27753         * tests/test-symlink.c (main): Move guts...
27754         * tests/test-symlink.h (test_symlink): ...into new file.
27755         * tests/test-symlinkat.c (main): Use new files for further
27756         coverage.
27757         (do_symlink, do_readlink): New helper functions.
27758         * modules/symlink-tests (Files): Ship new file.
27759         (Depends-on): Add stdbool.
27760         * modules/readlink-tests (Files): Ship new file.
27761         (Depends-on): Add stdbool.
27762         * modules/symlinkat-tests (Files): Use new files.
27763
27764 2009-09-23  Eric Blake  <ebb9@byu.net>
27765
27766         readlink: document portability issue with symlink length
27767         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27768         systems have bogus st_size on symlinks, and mention the
27769         areadlink-with-size module.
27770         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27771         * doc/posix-functions/readlink.texi (readlink): Mention the
27772         areadlink module, and ERANGE failure.
27773         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27774         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27775
27776         readlink: fix Solaris 9 bug with trailing slash
27777         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27778         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27779         * doc/posix-functions/readlink.texi (readlink): Document this.
27780         * modules/readlink-tests: New test.
27781         * tests/test-readlink.c: Likewise.
27782
27783         readlink: fix cygwin 1.5.x bug with return type
27784         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27785         * lib/unistd.in.h (readlink): Use ssize_t.
27786         * lib/readlink.c (readlink): Likewise.
27787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27788         * modules/unistd (Makefile.am): Substitute it.
27789         * lib/unistd.in.h (readlink): Declare replacement.
27790         * doc/posix-functions/readlink.texi (readlink): Document this.
27791
27792         symlink: use throughout gnulib
27793         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27794         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27795         symlink is not used.
27796         * modules/symlinkat (Depends-on): Add symlink.
27797         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27798         * modules/canonicalize-tests (Depends-on): Likewise.
27799         * modules/lstat-tests (Depends-on): Likewise.
27800         * modules/openat-tests (Depends-on): Likewise.
27801         * modules/remove-tests (Depends-on): Likewise.
27802         * modules/rmdir-tests (Depends-on): Likewise.
27803         * modules/unlink-tests (Depends-on): Likewise.
27804         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27805         * tests/test-canonicalize.c (symlink): Likewise.
27806         * tests/test-fstatat.c (symlink): Likewise.
27807         * tests/test-lstat.c (symlink): Likewise.
27808         * tests/test-remove.c (symlink): Likewise.
27809         * tests/test-rmdir.c (symlink): Likewise.
27810         * tests/test-unlink.c (symlink): Likewise.
27811         * tests/test-unlinkat.c (symlink): Likewise.
27812
27813         symlink: new module, for Solaris 9 bug
27814         * modules/symlink: New file.
27815         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27816         * lib/symlink.c: Likewise.
27817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27818         * modules/unistd (Makefile.am): Substitute them.
27819         * lib/unistd.in.h (symlink): Declare replacement.
27820         * MODULES.html.sh (File system functions): Mention it.
27821         * doc/posix-functions/symlink.texi (symlink): Likewise.
27822         * modules/symlink-tests: New test.
27823         * tests/test-symlink.c: Likewise.
27824
27825 2009-09-23  Bruno Haible  <bruno@clisp.org>
27826
27827         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27828         when needed.
27829         Test case: gnulib-tool --import --with-tests atexit inttypes.
27830         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27831
27832 2009-09-23  Bruno Haible  <bruno@clisp.org>
27833
27834         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27835         subcommand, not in a subshell.
27836
27837 2009-09-22  Eric Blake  <ebb9@byu.net>
27838
27839         unistd: sort replacement declarations
27840         * lib/unistd.in.h: Sort declarations.
27841
27842         open, openat: minor optimization
27843         * lib/open.c (open): If open succeeded, len is non-zero.
27844         * lib/openat.c (rpl_openat): Likewise.
27845
27846         link-follow: ensure correct result
27847         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27848         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27849         distinguish between possible failures.
27850
27851 2009-09-21  Eric Blake  <ebb9@byu.net>
27852
27853         fts: avoid compiler warning
27854         * lib/fts.c (dirent_inode_sort_may_be_useful)
27855         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27856
27857 2009-09-19  Bruno Haible  <bruno@clisp.org>
27858
27859         * lib/progreloc.c (canonicalize_file_name): New declaration.
27860
27861 2009-09-19  Eric Blake  <ebb9@byu.net>
27862
27863         link: fix quoting
27864         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27865
27866         openat: fix openat bugs on Solaris 9
27867         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27868         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27869         * modules/openat (Depends-on): Add open.
27870         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27871         * modules/fcntl-h (Makefile.am): Substitute it.
27872         * lib/fcntl.in.h (openat): Declare replacement.
27873         * doc/posix-functions/openat.texi (openat): Document this.
27874
27875         openat: move fstatat and unlinkat into correct files
27876         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27877         compiled.
27878         * lib/openat.c (fstatat, unlinkat): Move...
27879         * lib/fstatat.c (fstatat): ...into correct files.
27880         * lib/unlinkat.c (unlinkat): Likewise.
27881
27882         openat: fix unlinkat bugs on Solaris 9
27883         * lib/unlinkat.c (unlinkat): New file.
27884         * modules/openat (Depends-on): Add unlink.
27885         (Files): Distribute it.
27886         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27887         trailing slash behavior is broken.
27888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27889         * modules/unistd (Makefile.am): Substitute it.
27890         * lib/unistd.in.h (unlinkat): Declare replacement.
27891         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27892
27893         openat: fix fstatat bugs on Solaris 9
27894         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27895         stat.
27896         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27897
27898         test-unlinkat: enhance test, to expose Solaris 9 bug
27899         * tests/test-unlink.c (main): Factor guts...
27900         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27901         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27902         * tests/test-rmdir.c (main): Adjust caller.
27903         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27904         (unlinker): New helper function.
27905         (rmdirat): Enhance check.
27906         * modules/rmdir-tests (Depends-on): Add stdbool.
27907         * modules/unlink-tests (Depends-on): Likewise.
27908         (Files): Add test-unlink.h.
27909         * modules/openat-tests (Files): Likewise.
27910         (Depends-on): Add unlinkdir.
27911
27912         test-fstatat: new test, to expose Solaris 9 bugs
27913         * tests/test-stat.c (main): Factor guts...
27914         * tests/test-stat.h (test_stat_func): ...into new file.
27915         * tests/test-lstat.c (main): Factor guts...
27916         * tests/test-lstat.h (test_lstat_func): ...into new file.
27917         * tests/test-fstatat.c: New file.
27918         * modules/stat-tests (Files): Add test-stat.h.
27919         * modules/lstat-tests (Files): Add test-lstat.h.
27920         (Depends-on): Add stdbool.
27921         * modules/openat-tests (Depends-on): Add pathmax.
27922         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27923         (Makefile.am): Run new test.
27924
27925         remove: new module, for mingw and Solaris 9 bugs
27926         * modules/remove: New file.
27927         * lib/remove.c: Likewise.
27928         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27930         * modules/stdio (Makefile.am): Use them.
27931         * lib/stdio.in.h (remove): Declare replacement.
27932         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27933         * doc/posix-functions/remove.texi (remove): Likewise.
27934         * modules/remove-tests: New test.
27935         * tests/test-remove.c: Likewise.
27936
27937         unlink: new module, for Solaris 9 bug
27938         * modules/unlink: New file.
27939         * lib/unlink.c: Likewise.
27940         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27942         * modules/unistd (Makefile.am): Use them.
27943         * lib/unistd.in.h (stat): Declare replacement.
27944         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27945         * doc/posix-functions/unlink.texi (unlink): Likewise.
27946         * modules/unlink-tests: New test.
27947         * tests/test-unlink.c: Likewise.
27948
27949         lstat: fix Solaris 9 bug
27950         * lib/lstat.c (lstat): Also check for trailing slash on
27951         non-symlink, non-directories.  Use stat module to simplify logic.
27952         * doc/posix-functions/lstat.texi (lstat): Document it.
27953         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27954         (configure.ac): Check for symlink.
27955         * tests/test-lstat.c (main): Add more tests.
27956
27957         stat: add as dependency to other modules
27958         * modules/chown (Depends-on): Add stat.
27959         * modules/euidaccess (Depends-on): Likewise.
27960         * modules/fchdir (Depends-on): Likewise.
27961         * modules/isdir (Depends-on): Likewise.
27962         * modules/link (Depends-on): Likewise.
27963         * modules/lstat (Depends-on): Likewise.
27964         * modules/mkdir-p (Depends-on): Likewise.
27965         * modules/modechange (Depends-on): Likewise.
27966         * modules/open (Depends-on): Likewise.
27967         * modules/readlink (Depends-on): Likewise.
27968         * modules/same (Depends-on): Likewise.
27969
27970         stat: fix Solaris 9 bug
27971         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27972         slash.
27973         * lib/stat.c (rpl_stat): Work around it.
27974         * doc/posix-functions/stat.texi (stat): Update documentation.
27975
27976         stat: new module, for mingw bug
27977         * modules/stat: New file.
27978         * lib/stat.c: Likewise.
27979         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27980         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27981         * modules/sys_stat (Makefile.am): Use them.
27982         * lib/sys_stat.in.h (stat): Declare replacement.
27983         * lib/openat.c (fstatat): Deal with lstat and stat being function
27984         macros.
27985         * modules/openat (Depends-on): Add inline.
27986         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27987         * doc/posix-functions/stat.texi (stat): Likewise.
27988         * modules/stat-tests: New test.
27989         * tests/test-stat.c: Likewise.
27990
27991 2009-09-19  Jim Meyering  <meyering@redhat.com>
27992
27993         syntax-check: detect unnecessary inclusion of canonicalize.h
27994         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27995
27996 2009-09-19  Eric Blake  <ebb9@byu.net>
27997
27998         canonicalize-lgpl: adjust clients to use correct header
27999         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28000         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28001         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28002         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28003         * lib/progreloc.c (includes): Likewise.
28004
28005 2009-09-19  Jim Meyering  <meyering@redhat.com>
28006
28007         test-posixtm.c: correct a comment
28008         * tests/test-posixtm.c: Correct first-line comment.
28009         Spotted by Eric Blake.
28010
28011 2009-09-16  Jim Meyering  <meyering@redhat.com>
28012
28013         posixtm-tests: make T const-correct; add a test case
28014         * tests/test-posixtm.c (T): Declare const.
28015         Add a test for -(2^31+1).
28016         Remove useless can-succeed-only-in-2002 test.
28017
28018         posixtm-tests: adjust the sole failing test
28019         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28020         expected output matches what mktime now produces.  Cross-checked via
28021         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28022
28023         posixtm: move #ifdef'd tests into a new module
28024         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28025         * tests/test-posixtm.c: ... this new file.
28026         * modules/posixtm-tests: New module.
28027
28028 2009-09-19  Eric Blake  <ebb9@byu.net>
28029
28030         openat: simplify use of at-func.c
28031         * lib/at-func.c (includes): Include prerequisites here, to
28032         simplify requirements on client files.
28033         * lib/openat-priv.h: Add double-inclusion guard.
28034         * lib/faccessat.c (includes): Simplify.
28035         * lib/fchmodat.c (includes): Likewise.
28036         * lib/fchownat.c (includes): Likewise.
28037         * lib/mkdirat.c (includes): Likewise.
28038         * lib/mkfifoat.c (includes): Likewise.
28039         * lib/symlinkat.c (includes): Likewise.
28040
28041         openat: allow return of fd 0
28042         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28043         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28044         unistd-safer.
28045         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28046         <fcntl.h>; this module does not leak fds.
28047         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28048         must be allowed to return 0, leaving openat_safer to add the
28049         safety.
28050         (openat_permissive): Avoid writing to just-opened fd 2 if
28051         restoring the current directory fails.
28052         * lib/openat-die.c (openat_restore_fail): Add comment.
28053         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28054         (save_cwd): Guarantee safe fd, but without use of open_safer.
28055         * tests/test-openat.c: New test.
28056         * modules/openat-tests (Files, Makefile.am): Distribute and build
28057         new file.
28058
28059         relocatable-prog-wrapper: fix build
28060         * modules/relocatable-prog-wrapper (Files): Update name of
28061         canonicalize m4 file, broken on 2009-09-17.
28062         Reported by emad hajjar <aleppos@hotmail.com>.
28063
28064 2009-09-19  Bruno Haible  <bruno@clisp.org>
28065
28066         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28067         * lib/safe-alloc.c: Likewise.
28068         Reported by Ian Beckwith <ianb@erislabs.net>.
28069
28070 2009-09-18  Bruno Haible  <bruno@clisp.org>
28071
28072         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28073         Reported by <erobles@sensacd.com.mx>.
28074
28075 2009-09-17  Eric Blake  <ebb9@byu.net>
28076
28077         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28078         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28079         slashes when checking if last component is missing.
28080         * tests/test-canonicalize.c (main): Test this.
28081
28082         canonicalize, canonicalize-lgpl: honor // if distinct from /
28083         * modules/canonicalize (Files): Add double-slash-root.m4.
28084         * modules/canonicalize-lgpl (Files): Likewise.
28085         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28086         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28087         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28088         fallback definition.
28089         (canonicalize_filename_mode): Use it to protect //.
28090         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28091         (__realpath): Likewise.
28092         * tests/test-canonicalize.c (main): Test this.
28093         * tests/test-canonicalize-lgpl.c (main): Likewise.
28094         * modules/canonicalize-tests (Depends-on): Add same-inode.
28095         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28096
28097         canonicalize-lgpl: fix glibc bug with trailing slash
28098         * m4/canonicalize-lgpl.m4: Move contents...
28099         * m4/canonicalize.m4: ...here.
28100         (gl_CANONICALIZE_LGPL): Factor realpath check...
28101         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28102         glibc 2.3.5 bug, fixed 2005-04-27.
28103         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28104         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28105         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28106         * modules/canonicalize-lgpl (Files): Manage file rename.
28107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28108         * modules/stdlib (Makefile.am): Substitute witness.
28109         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28110         is needed.
28111         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28112         replacement is required.
28113         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28114         * doc/glibc-functions/canonicalize_file_name.texi
28115         (canonicalize_file_name): Document this.
28116         * doc/posix-functions/realpath.texi (realpath): Likewise.
28117
28118         canonicalize-lgpl: reject non-directory with trailing slash
28119         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28120         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28121         catches failures in glibc 2.3.5.
28122         * tests/test-canonicalize.c (main): Likewise.
28123
28124         canonicalize-lgpl: use native realpath if it works
28125         * lib/canonicalize-lgpl.c (realpath): Guard with
28126         FUNC_REALPATH_WORKS.
28127         * lib/stdlib.in.h (realpath): Make declaration optional based on
28128         HAVE_REALPATH.
28129         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28130         native realpath works.
28131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28132         * modules/stdlib (Makefile.am): Substitute witness.
28133
28134         canonicalize, canonicalize-lgpl: use <stdlib.h>
28135         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28136         (Include): Mention <stdlib.h>.
28137         (configure.ac): Mention functions we provide.
28138         * modules/canonicalize (configure.ac): Likewise.
28139         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28140         realpath if canonicalize_file_name is missing.
28141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28142         * modules/stdlib (Makefile.am): Substitute witnesses.
28143         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28144         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28145         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28146         * NEWS: Document this.
28147         * doc/glibc-functions/canonicalize_file_name.texi
28148         (canonicalize_file_name): Likewise.
28149         * doc/posix-functions/realpath.texi (realpath): Likewise.
28150         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28151
28152         test-canonicalize: consolidate into single C program
28153         * tests/test-canonicalize.sh: Delete; move setup into...
28154         * tests/test-canonicalize.c (main): ...the program, making it
28155         easier to run in debugger.  Add some tests.
28156         * modules/canonicalize-tests (Files): Remove unused file.
28157         (Depends-on): Add progname.
28158         (configure.ac, Makefile.am): Simplify.
28159
28160         test-canonicalize-lgpl: consolidate into single C program
28161         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28162         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28163         easier to run in debugger.  Add some tests.
28164         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28165         (configure.ac, Makefile.am): Simplify.
28166
28167         canonicalize: avoid resolvepath
28168         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28169         unnecessary checks.
28170         * lib/canonicalize.c (includes): Simplify.
28171         (canonicalize_file_name): Drop resolvepath implementation.
28172         * modules/canonicalize (Depends-on): Drop filenamecat.
28173
28174         canonicalize: don't lose errno
28175         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28176         over calls to free.
28177
28178         canonicalize: simplify errno handling
28179         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28180         assignment.
28181
28182         canonicalize, canonicalize-lgpl: update module dependencies
28183         * modules/canonicalize (Depends-on): Add extensions, lstat,
28184         pathmax, stdlib.
28185         (Files): Drop pathmax.h.
28186         (configure.ac): Adjust macro name.
28187         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28188         lstat, stdlib, sys_stat.
28189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28190         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28191         extensions.
28192         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28193         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28194         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28195         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28196         declaration, if available.
28197         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28198         we can rely on the readlink module.
28199         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28200         (includes): Use <unistd.h> unconditionally.
28201
28202 2009-09-17  Eric Blake  <ebb9@byu.net>
28203
28204         maint: make Include sections of modules consistent
28205         * modules/alloca: Use only header name; no need to list #include.
28206         * modules/alloca-opt: Likewise.
28207         * modules/arpa_inet: Likewise.
28208         * modules/canon-host: Likewise.
28209         * modules/configmake: Likewise.
28210         * modules/dirent: Likewise.
28211         * modules/eealloc: Likewise.
28212         * modules/environ: Likewise.
28213         * modules/fchdir: Likewise.
28214         * modules/fcntl: Likewise.
28215         * modules/fcntl-h: Likewise.
28216         * modules/gethrxtime: Likewise.
28217         * modules/gettime: Likewise.
28218         * modules/ignore-value: Likewise.
28219         * modules/inet_ntop: Likewise.
28220         * modules/inet_pton: Likewise.
28221         * modules/inttypes: Likewise.
28222         * modules/isnand-nolibm: Likewise.
28223         * modules/isnanf-nolibm: Likewise.
28224         * modules/mbchar: Likewise.
28225         * modules/mbfile: Likewise.
28226         * modules/mbiter: Likewise.
28227         * modules/mbuiter: Likewise.
28228         * modules/netdb: Likewise.
28229         * modules/netinet_in: Likewise.
28230         * modules/nproc: Likewise.
28231         * modules/pagealign_alloc: Likewise.
28232         * modules/poll: Likewise.
28233         * modules/printf-frexp: Likewise.
28234         * modules/pthread: Likewise.
28235         * modules/putenv: Likewise.
28236         * modules/random_r: Likewise.
28237         * modules/relocatable-prog: Likewise.
28238         * modules/search: Likewise.
28239         * modules/select: Likewise.
28240         * modules/selinux-h: Likewise.
28241         * modules/settime: Likewise.
28242         * modules/signal: Likewise.
28243         * modules/size_max: Likewise.
28244         * modules/socklen: Likewise.
28245         * modules/ssize_t: Likewise.
28246         * modules/stdarg: Likewise.
28247         * modules/stdbool: Likewise.
28248         * modules/stddef: Likewise.
28249         * modules/stdint: Likewise.
28250         * modules/stdio: Likewise.
28251         * modules/stdlib: Likewise.
28252         * modules/string: Likewise.
28253         * modules/strings: Likewise.
28254         * modules/sys_file: Likewise.
28255         * modules/sys_ioctl: Likewise.
28256         * modules/sys_select: Likewise.
28257         * modules/sys_socket: Likewise.
28258         * modules/sys_stat: Likewise.
28259         * modules/sys_time: Likewise.
28260         * modules/sys_times: Likewise.
28261         * modules/sys_utsname: Likewise.
28262         * modules/sys_wait: Likewise.
28263         * modules/sysexits: Likewise.
28264         * modules/time: Likewise.
28265         * modules/times: Likewise.
28266         * modules/tmpfile: Likewise.
28267         * modules/trim: Likewise.
28268         * modules/unistd: Likewise.
28269         * modules/wchar: Likewise.
28270         * modules/wctype: Likewise.
28271
28272 2009-09-17  Bruno Haible  <bruno@clisp.org>
28273
28274         Make getdate.y compile on QNX and NetBSD 5 / i386.
28275         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28276         TIME_T_FITS_IN_LONG_INT.
28277         * lib/getdate.y (long_time_t): New type.
28278         (relative_time): Change type of 'seconds' field to long_time_t.
28279         (get_date): Update types of local variables. Check against overflow
28280         during conversion from long_time_t to time_t.
28281         Reported by Matt Kraai <kraai@ftbfs.org>
28282         and Hasso Tepper <hasso@netbsd.org>.
28283
28284 2009-09-17  Bruno Haible  <bruno@clisp.org>
28285
28286         * modules/COPYING: Update copyright years.
28287         * modules/README: Likeiwse.
28288         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28289         Reported by Ian Beckwith <ianb@erislabs.net>.
28290
28291 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28292
28293         * users.txt: Update references for gnuit package.
28294
28295 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28296
28297         * m4/getdelim.m4: Fix typo in copyright line.
28298
28299 2009-09-17  Bruno Haible  <bruno@clisp.org>
28300
28301         * lib/atoll.c: Use the standard header with GPL copyright.
28302         * lib/argz.in.h: Likewise.
28303         * lib/glob.c: Likewise.
28304         * lib/glob-libc.h: Likewise.
28305         * lib/random_r.c: Likewise.
28306         * lib/siglist.h: Likewise.
28307         * lib/strsignal.c: Likewise.
28308         Reported by Ian Beckwith <ianb@erislabs.net>.
28309
28310 2009-09-17  Eric Blake  <ebb9@byu.net>
28311
28312         rmdir: ensure correct dependency order
28313         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28314
28315 2009-09-17  Bruno Haible  <bruno@clisp.org>
28316
28317         Disable assertion that fails on NetBSD 5 / i386.
28318         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28319         Reported by Sam Steingold <sds@gnu.org>
28320         and Hasso Tepper <hasso@netbsd.org>.
28321
28322 2009-09-16  Eric Blake  <ebb9@byu.net>
28323
28324         unlinkdir: port to mingw
28325         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28326         on which no one can unlink a directory.
28327
28328         stdlib: sort witness names
28329         * modules/stdlib (Makefile.am): Sort replacements.
28330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28331         * lib/stdlib.in.h: Likewise.
28332
28333         parse-duration-tests: avoid link failure
28334         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28335         LIBINTL.
28336         Reported by Tom G. Christensen.
28337
28338         openat-tests: ensure unlinkat behaves like rmdir
28339         * tests/test-rmdir.c (main): Factor guts...
28340         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28341         * modules/rmdir-tests (Files): Ship new file.
28342         * modules/openat-tests: New test.
28343         * tests/test-unlinkat.c: Likewise.
28344
28345         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28346         * modules/rmdir-errno (Status, Notice): Now obsolete.
28347
28348         rmdir: work around cygwin 1.5.x and mingw bugs
28349         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28350         * lib/rmdir.c (rmdir): Work around it.
28351         * modules/rmdir (Status, Notice): No longer obsolete.
28352         (Files): Add dos.m4.
28353         (Depends-on): Add unistd.
28354         (configure.ac): Set witnesses.
28355         (License): Relax to LGPLv2+.
28356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28357         * modules/unistd (Makefile.am): Substitute witnesses.
28358         * lib/unistd.in.h (rmdir): Declare replacement.
28359         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28360         * modules/rmdir-tests: New tests.
28361         * tests/test-rmdir.c: Likewise.
28362
28363 2009-09-15  Eric Blake  <ebb9@byu.net>
28364
28365         fchdir: improve use of replacement functions
28366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28368         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28369         REPLACE_CLOSEDIR.
28370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28371         * modules/sys_stat (Makefile.am): Substitute correct witness.
28372         * modules/dirent (Makefile.am): Likewise.
28373         * modules/unistd (Makefile.am): Likewise.
28374         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28375         * lib/unistd.in.h (dup): Likewise.
28376         * lib/sys_stat.in.h (fstat): Likewise.
28377
28378         maint: ignore gnulib-tool temp files
28379         * .gitignore: Ignore files created during gnulib-tool --test.
28380
28381 2009-09-13  Jim Meyering  <meyering@redhat.com>
28382
28383         posixtm: don't reject a time that specify "60" as the number of seconds
28384         * lib/posixtm.c (posixtime): The code to reject invalid dates
28385         would also reject a time specified with the .60 suffix.
28386         But POSIX allows that, in order to accommodate leap seconds.
28387         So don't reject it.
28388         (main): Adjust tests accordingly.
28389         * modules/posixtm (Depends-on): Add stpcpy.
28390
28391 2009-09-11  Jim Meyering  <meyering@redhat.com>
28392
28393         announce-gen: include [$release_type] in emitted Subject:
28394         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28395         e.g., [stable] in the emitted Subject: line.
28396
28397 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28398
28399         Remove obsolete macros from several modules.
28400         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28401         obsolete Autoconf macros with their modern counterparts.
28402         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28403         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28405         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28406         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28407         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28409         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28410         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28411         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28412         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28413         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28414         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28415         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28416         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28417         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28418         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28419         * m4/time_r.m4 (gl_TIME_R): Likewise.
28420         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28421         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28422         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28423
28424         Fix copyright header in build-aux scripts.
28425         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28426         recommendation.
28427         * build-aux/ncftpput-ftp: Likewise.
28428         * build-aux/update-copyright: Likewise.
28429
28430 2009-09-09  Eric Blake  <ebb9@byu.net>
28431
28432         test-link: allow Linux choice of errno
28433         * tests/test-link.c (main): Relax test for alternate error.
28434
28435         strndup: fix improper m4 caching
28436         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28437         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28438         (gl_PREREQ_STRNDUP): Delete.
28439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28440         * modules/string (Makefile.am): Substitute it.
28441         * lib/string.in.h (strndup): Modernize prototype.
28442
28443         getcwd: port to mingw
28444         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28445         different from the POSIX assumptions made throughout the getcwd
28446         module; fortunately, the mingw getcwd does not need replacement.
28447         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28448         * modules/getcwd-tests: New test.
28449         * tests/test-getcwd.c: Likewise.
28450
28451         link: fix platform bugs
28452         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28453         * lib/link.c (link): Work around them.  Fix related mingw bug.
28454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28455         * modules/unistd (Makefile.am): Substitute it.
28456         * lib/unistd.in.h (link): Declare replacement.
28457         * doc/posix-functions/link.texi (link): Document this.
28458         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28459
28460         test-link: consolidate into single C program, test more cases
28461         * tests/test-link.sh: Delete.
28462         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28463         at least Cygwin and Solaris.
28464         * modules/link-tests (Files): Remove unused file.
28465         (Depends-on): Add errno, sys_stat.
28466         (Makefile.am): Simplify.
28467
28468 2009-09-08  Bruno Haible  <bruno@clisp.org>
28469
28470         Work around towlower, towupper bug on mingw.
28471         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28472         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28473         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28474         * doc/posix-functions/towupper.texi: Likewise.
28475         Reported by Eric Blake.
28476
28477 2009-09-08  Jim Meyering  <meyering@redhat.com>
28478
28479         build: don't try to run autoheader if we don't use it
28480         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28481         is not used in configure.ac.
28482
28483 2009-09-08  Eric Blake  <ebb9@byu.net>
28484
28485         euidaccess: fix compilation error
28486         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28487
28488         rawmemchr: relax license
28489         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28490         okay.
28491         Reported by Jim Meyering.
28492
28493         mkfifoat: new module
28494         * modules/mkfifoat: New file.
28495         * lib/mkfifoat.c: Likewise.
28496         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28497         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28498         * modules/sys_stat (Makefile.am): Use them.
28499         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28500         * MODULES.html.sh (File system functions): Mention module.
28501         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28502         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28503         * modules/mkfifoat-tests: New test.
28504         * tests/test-mkfifoat.c: Likewise.
28505
28506         strchrnul: relax license
28507         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28508         okay.
28509         Reported by Jim Meyering.
28510
28511 2009-09-08  Eric Blake  <ebb9@byu.net>
28512
28513         fstatat: fix compilation on Solaris
28514         * lib/fstatat.c (includes): Add fcntl.h.
28515         Reported by Pádraig Brady.
28516
28517 2009-09-07  Eric Blake  <ebb9@byu.net>
28518
28519         rename: modernize replacement
28520         * modules/rename (Depends-on): Add stdio.
28521         (configure.ac): Declare witness.
28522         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28523         stdio take care of replacement.
28524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28525         * modules/stdio (Makefile.am): Substitute them.
28526         * lib/stdio.in.h (rename): Declare replacement.
28527         * lib/rename.c (includes): Allow cross-compilation to non-windows
28528         machines.
28529         * doc/posix-functions/rename.texi (rename): Improve
28530         documentation.
28531
28532         stdio: sort witness names
28533         * modules/stdio (Makefile.am): Sort replacements.
28534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28535         * lib/stdio.in.h: Likewise.
28536
28537         getcwd: minor cleanups
28538         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28539         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28540
28541         openat: provide more convenience names
28542         * modules/faccessat (configure.ac): Add C witness.
28543         * lib/unistd.in.h (readlinkat): Fix typo.
28544         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28545         convenience wrappers.
28546         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28547         wrappers in syntax checks.
28548
28549 2009-09-06  Eric Blake  <ebb9@byu.net>
28550
28551         doc: fix comments in recent patches
28552         * lib/faccessat.c: Mention correct function.
28553         * lib/fchmodat.c: Likewise.
28554         * lib/fchownat.c: Likewise.
28555         * lib/symlinkat.c: Likewise.
28556         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28557         constants.
28558
28559         faccessat, symlinkat: continue cleanup of previous patch
28560         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28561         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28562         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28564         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28565         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28566         set.
28567
28568 2009-09-06  Bruno Haible  <bruno@clisp.org>
28569
28570         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28571         (fstatat): Declare if GNULIB_FSTATAT is set.
28572         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28573         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28574         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28575         * modules/fcntl-h (Files): Remove m4/openat.m4.
28576         * modules/sys_stat (Files): Remove m4/openat.m4.
28577         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28578         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28579         * modules/unistd (Files): Remove m4/openat.m4.
28580         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28581         GNULIB_OPENAT.
28582         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28583         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28584         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28585         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28586         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28587         gl_OPENAT_DEFAULTS.
28588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28589         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28590         Don't require gl_OPENAT_DEFAULTS.
28591         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28592         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28593         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28594         (gl_OPENAT_DEFAULTS): Remove macro.
28595
28596 2009-09-06  Bruno Haible  <bruno@clisp.org>
28597
28598         * modules/openat (configure.ac): Remove unneeded witness.
28599
28600 2009-09-06  Bruno Haible  <bruno@clisp.org>
28601
28602         Set errno to ENOSYS when a function is entirely unsupported.
28603         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28604         EOPNOTSUPP.
28605         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28606         * modules/chown (Depends-on): Remove errno.
28607
28608 2009-09-06  Bruno Haible  <bruno@clisp.org>
28609
28610         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28611
28612 2009-09-06  Bruno Haible  <bruno@clisp.org>
28613
28614         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28615
28616 2009-09-06  Ben Pfaff  <blp@gnu.org>
28617             Bruno Haible  <bruno@clisp.org>
28618
28619         Work around a glibc bug in strtok_r.
28620         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28621         Undefine if UNDEFINE_STRTOK_R is set.
28622         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28624         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28625         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28626         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28627         UNDEFINE_STRTOK_R.
28628         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28629
28630 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28631
28632         exclude: minor fix
28633         * lib/exclude.c: Include wctype.h
28634
28635 2009-09-06  Akim Demaille  <demaille@gostai.com>
28636
28637         bootstrap: improve error message
28638         * build-aux/bootstrap (find_tool): Upon failure, report the list
28639         of candidates.
28640         Honor the initial value of the envvar.
28641
28642 2009-09-05  Eric Blake  <ebb9@byu.net>
28643
28644         symlinkat: new module
28645         * modules/symlinkat: New file.
28646         * lib/symlinkat.c: Likewise.
28647         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28649         * modules/unistd (Makefile.am): Use them.
28650         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28651         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28652         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28653         * MODULES.html.sh (File system functions): Mention module.
28654         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28655         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28656         * modules/symlinkat-tests: New test.
28657         * tests/test-symlinkat.c: Likewise.
28658
28659         test-openat-safer: add more checks
28660         * tests/test-openat-safer.c (main): Check more code paths.
28661
28662 2009-09-05  Jim Meyering  <meyering@redhat.com>
28663
28664         syntax-check: detect unnecessary inclusion of openat.h
28665         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28666
28667 2009-09-05  Bruno Haible  <bruno@clisp.org>
28668
28669         Support towlower, towupper.
28670         * doc/posix-functions/towlower.texi: Mention module wctype.
28671         * doc/posix-functions/towupper.texi: Likewise.
28672         * lib/wctype.in.h (towlower, towupper): New functions.
28673         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28674         (ASSERT): New macro.
28675         (e): New variable.
28676         (main): Test also towlower, towupper. Test WEOF argument.
28677         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28678
28679 2009-09-05  Bruno Haible  <bruno@clisp.org>
28680
28681         Fix conversion behaviour when the input is invalid.
28682         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28683         mark occurring in first pass of indirect conversion.
28684         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28685         input.
28686         Found by clang's static analyzer.
28687
28688 2009-09-05  Bruno Haible  <bruno@clisp.org>
28689
28690         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28691         where direct conversion is possible.
28692
28693 2009-09-04  Eric Blake  <ebb9@byu.net>
28694
28695         openat: fail with ENOENT on empty name
28696         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28697         buffer.
28698
28699         link-follow: fix logic bug in prior patch
28700         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28701         reversed sense of yes and no in prior patch.  Avoid confusing
28702         compilation failure with desired semantics.
28703
28704         link-follow: accomodate mingw and cross-compilation
28705         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28706         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28707         cross-compilation results to -1, to make linkat easier to
28708         implement when cross-compiling.  Trivially support mingw.
28709         * modules/link-follow (configure.ac): Call new name.
28710         * NEWS: Mention this.
28711
28712 2009-09-03  Eric Blake  <ebb9@byu.net>
28713
28714         faccessat: compile replacement
28715         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28716         needed.
28717
28718         fts: fix compilation error
28719         * lib/fts.c (includes): Re-add "openat.h", for
28720         openat_needs_fchdir.
28721
28722         faccessat: new module
28723         * modules/faccessat: New file.
28724         * lib/faccessat.c: Likewise.
28725         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28727         * modules/unistd (Makefile.am): Use it.
28728         * lib/unistd.in.h (faccessat): Declare it.
28729         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28730         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28731         * MODULES.html.sh (File system functions): Mention it.
28732         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28733         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28734
28735         euidaccess: prefer POSIX over non-standard implementation
28736         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28737         * lib/euidaccess.c (euidaccess): Use it if available.
28738
28739         openat: make template easier to use
28740         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28741         AT_FUNC_F2 to be undefined.
28742         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28743         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28744         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28745         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28746         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28747         Likewise.
28748         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28749         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28750         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28751         Likewise.
28752
28753         openat: declare in POSIX headers
28754         * NEWS: Mention this.
28755         * modules/openat (configure.ac): Declare witnesses.
28756         (Depends-on): Add fcntl-h, sys_stat, unistd.
28757         (Include): Mention correct headers.
28758         * modules/fcntl-h (Depends-on): Add link-warning.
28759         (Files): Add openat.m4.
28760         (Makefile.am): Substitute witnesses.
28761         * modules/sys_stat (Files, Makefile.am): Likewise.
28762         * modules/unistd (Files, Makefile.am): Likewise.
28763         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28764         (gl_OPENAT_DEFAULTS): New macro.
28765         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28767         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28768         (SYS_STAT_H): Remove unused variable.
28769         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28770         * lib/fcntl--.h (includes): Remove unneeded header.
28771         * lib/openat-safer.c (includes): Likewise.
28772         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28773         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28774         appropriate headers.
28775         (__OPENAT_PREFIX): Delete.
28776         * lib/fcntl.in.h (openat): Provide declaration.
28777         (AT_FDCWD): Fix Solaris bug.
28778         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28779         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28780         * lib/fchmodat.c (includes):  Adjust to find declaration.
28781         * lib/fchownat.c (includes): Likewise.
28782         * lib/mkdirat.c (includes): Likewise.
28783         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28784         still visible.
28785
28786 2009-09-02  Eric Blake  <ebb9@byu.net>
28787
28788         errno: use consistently
28789         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28790         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28791         * lib/canonicalize.c (ELOOP): Likewise.
28792         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28793         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28794         * lib/lchown.c (EOPNOTSUPP): Likewise.
28795         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28796         * lib/savewd.c (ESTALE): Likewise.
28797         * lib/settime.c (ENOSYS): Likewise.
28798         * lib/utimens.c (ENOSYS): Likewise.
28799         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28800         * lib/chdir-safer.c (ELOOP): Likewise.
28801         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28802         * modules/c-stack (Depends-on): Add errno.
28803         * modules/canonicalize (Depends-on): Likewise.
28804         * modules/chdir-safer (Depends-on): Likewise.
28805         * modules/fdopendir (Depends-on): Likewise.
28806         * modules/inet_ntop (Depends-on): Likewise.
28807         * modules/inet_pton (Depends-on): Likewise.
28808         * modules/lchown (Depends-on): Likewise.
28809         * modules/openat (Depends-on): Likewise.
28810         * modules/savewd (Depends-on): Likewise.
28811         * modules/settime (Depends-on): Likewise.
28812         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28813
28814         fts: avoid leaking fds
28815         * modules/fts (Depends-on): Add cloexec.
28816         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28817         flag.
28818
28819         fts: make directory fds more robust
28820         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28821         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28822
28823         backupfile, chdir-long, fts, savedir: make safer
28824         * lib/backupfile.c (includes): Use "dirent--.h", since
28825         numbered_backup can write to stderr during readdir.
28826         * lib/savedir.c (includes): Likewise.
28827         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28828         emulation can write to stderr on failure.
28829         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28830         * lib/getcwd.c: Document why opendir_safer is unused.
28831         * lib/glob.c: Likewise.
28832         * lib/scandir.c: Likewise.
28833         * lib/openat-proc.c: Likewise, for open_safer.
28834         * modules/backupfile (Depends-on): Add dirent-safer.
28835         * modules/savedir (Depends-on): Likewise.
28836         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28837         * modules/chdir-long (Depends-on): Add openat-safer.
28838
28839         openat-safer: new module
28840         * modules/openat-safer: New file.
28841         * lib/openat-safer.c: Likewise.
28842         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28843         * lib/fcntl-safer.h (openat_safer): Declare.
28844         * lib/fcntl--.h (openat): Override.
28845         * MODULES.html.sh (File descriptor based I/O): Mention it.
28846         * lib/openat.h: Add double-inclusion guards.
28847         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28848         "fcntl--.h", so we can implement openat.
28849         * modules/openat-safer-tests: New test.
28850         * tests/test-openat-safer.c: New file.
28851
28852         dirent-safer: new module
28853         * modules/dirent-safer: New file.
28854         * lib/dirent--.h: Likewise.
28855         * lib/dirent-safer.h: Likewise.
28856         * lib/opendir-safer.c: Likewise.
28857         * m4/dirent-safer.m4: Likewise.
28858         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28859         * modules/dirent-safer-tests: New test.
28860         * tests/test-dirent-safer.c: New file.
28861         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28862
28863         fdopendir: optimize on mingw
28864         * lib/unistd.in.h (_gl_directory_name): New prototype.
28865         * lib/fchdir.c (_gl_directory_name): Implement it.
28866         (fchdir): Use it to simplify implementation.
28867         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28868         fchdir, when available, to avoid calling [f]chdir().
28869
28870         fdopendir: split into its own module
28871         * lib/openat.c (fdopendir): Move...
28872         * lib/fdopendir.c: ...into new file.
28873         * modules/fdopendir: New module.
28874         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28875         * modules/openat (Depends-on): Add fdopendir.
28876         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28877         fdopendir here.
28878         * modules/savedir (Depends-on): Only need fdopendir, not full
28879         openat.
28880         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28881         * lib/openat.h (fdopendir): Drop prototype.
28882         * lib/dirent.in.h (fdopendir): Provide prototype.
28883         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28884         * modules/dirent (Makefile.am): Substitute them.
28885         * MODULES.html.sh (File system functions): Mention it.
28886         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28887         * modules/fdopendir-tests: New file.
28888         * tests/test-fdopendir.c: Likewise.
28889
28890         fchdir: use more consistent macro convention
28891         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28892         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28893         REPLACE_FCHDIR, rather than relying on config.h macros.
28894         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28895         inside a single make-time REPLACE_FCHDIR block, rather than using
28896         the config.h FCHDIR_REPLACEMENT.
28897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28898         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28899         Manage fstat replacement.
28900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28901         REPLACE_FCHDIR.
28902         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28903         (Makefile.am): Substitute REPLACE_FCHDIR.
28904         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28905         FCHDIR_REPLACEMENT.
28906         * lib/dup-safer.c (dup_safer): Likewise.
28907         * lib/dup2.c (rpl_dup2): Likewise.
28908         * lib/dup3.c (rpl_dup3): Likewise.
28909         * lib/open.c (rpl_open): Likewise.
28910
28911         fchdir: simplify error handling, and support dup3
28912         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28913         stdbool, malloc-posix, realloc-posix.
28914         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28915         (ensure_dirs_slot): Return false on allocation failure.
28916         (rpl_dup2): Delete.
28917         (_gl_register_dup): New function.
28918         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28919         (_gl_register_fd): Close fd on allocation failure.
28920         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28921         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28922         prototype.
28923         (rpl_dup2_fchdir): Delete prototype.
28924         * lib/open.c (open): Update caller.
28925         * lib/dup2.c (dup2): Track fchdir metadata.
28926         * lib/dup3.c (dup3): Likewise.
28927         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28929
28930 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28931
28932         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28933         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28934         don't pass arguments to AC_OUTPUT.
28935
28936 2009-09-02  Bruno Haible  <bruno@clisp.org>
28937
28938         * modules/mkdtemp (License): Relicense under LGPLv2+.
28939         Reported by Paolo Bonzini.
28940
28941 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28942
28943         Replace uses of obsolete autoconf macros in Jim's modules.
28944         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28945         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28946         can evoke a warning from autoconf when run with -Wobsolete
28947         enabled.  They were declared obsolete for good reasons (see
28948         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28949         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28950         should not continue using the deprecated macros.
28951         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28952         obsolete Autoconf macros with modern counterparts.
28953         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28954         * m4/dos.m4 (gl_AC_DOS): Likewise.
28955         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28956         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28957         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28958         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28959         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28960         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28961         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28962         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28963         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28964         Likewise.
28965         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28966         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28967         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28968         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28969         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28970         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28971
28972 2009-09-01  Eric Blake  <ebb9@byu.net>
28973
28974         fchdir: fix off-by-one bug in previous patch
28975         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28976         (_gl_unregister_fd): Delete useless if.
28977
28978 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28979
28980         maint.mk: sort the list of syntax-check rules
28981         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28982         easier to get a sense of progress when the rules are run sequentially
28983         and take a long time.
28984
28985 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28986
28987         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28988         * modules/netinet_in: Likewise.
28989         * modules/sys_file: Likewise.
28990         * modules/sys_ioctl: Likewise.
28991         * modules/sys_select: Likewise.
28992         * modules/sys_socket: Likewise.
28993         * modules/sys_stat: Likewise.
28994         * modules/sys_time: Likewise.
28995         * modules/sys_times: Likewise.
28996         * modules/sys_utsname: Likewise.
28997         * modules/sys_wait: Likewise.
28998
28999 2009-09-01  Jim Meyering  <meyering@redhat.com>
29000
29001         fts: help ensure that return values are not ignored
29002         * lib/fts_.h (__GNUC_PREREQ): Define.
29003         (__attribute_warn_unused_result__): Define.
29004         (fts_children, fts_close, fts_open, fts_read): Declare with
29005         __attribute_warn_unused_result__.
29006
29007         fts: fts_close now fails also when closing a dir file descriptor fails
29008         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29009         and propagate to caller, along with errno.
29010
29011         announce-gen: correct formatting in --help output
29012         * build-aux/announce-gen (usage): Move the one-line description in
29013         --help output "up", to where it belongs, just after Usage:.
29014
29015 2009-08-31  Eric Blake  <ebb9@byu.net>
29016
29017         fchdir: port to mingw
29018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29019         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29020         opened, then use a substitute.
29021         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29022         replacement.
29023         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29024         (_gl_register_fd): No need to check stat if open already filters
29025         all directories.
29026         (fchdir): Fix error condition to match POSIX.
29027         * modules/fchdir (Depends-on): Add sys_stat.
29028         * doc/posix-functions/open.texi (open): Document the limitation.
29029         * modules/fchdir-tests: New file.
29030         * tests/test-fchdir.c: Likewise.
29031
29032         canonicalize: allow cross-testing from cygwin to mingw
29033         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29034         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29035         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29036         Likewise.
29037         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29038         target does not support symlinks.
29039         * tests/test-canonicalize-lgpl.sh: Likewise.
29040
29041         chown: avoid compilation warning on mingw
29042         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29043         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29044         mingw.
29045         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29046         * modules/chown (Depends-on): Add errno.
29047
29048 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29049
29050         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29051         command.
29052
29053 2009-08-31  Jim Meyering  <meyering@redhat.com>
29054
29055         canonicalize: remove useless initialization
29056         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29057         initialization of local, "end".
29058
29059 2009-08-30  Bruno Haible  <bruno@clisp.org>
29060
29061         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29062         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29063         ENOSYS.
29064
29065 2009-08-30  Bruno Haible  <bruno@clisp.org>
29066
29067         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29068         /usr/xpg4/bin/tr when it exists.
29069         * tests/test-pipe-filter-gi1.sh: Likewise.
29070
29071 2009-08-30  Bruno Haible  <bruno@clisp.org>
29072
29073         Work around deficient /usr/bin/id program on Solaris.
29074         * tests/test-file-has-acl.sh (ID): New variable.
29075         * tests/test-set-mode-acl.sh (ID): Likewise.
29076         * tests/test-copy-acl.sh (ID): Likewise.
29077         * tests/test-copy-file.sh (ID): Likewise.
29078
29079 2009-08-30  Bruno Haible  <bruno@clisp.org>
29080
29081         New module 'xstriconveh'.
29082         * lib/xstriconveh.h: New file.
29083         * lib/xstriconveh.c: New file.
29084         * modules/xstriconveh: New file.
29085
29086 2009-08-30  Bruno Haible  <bruno@clisp.org>
29087
29088         Make it easier to use mem_cd_iconveh.
29089         * lib/striconveh.h (iconveh_t): New type.
29090         (iconveh_open, iconveh_close): New declarations.
29091         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29092         with a single 'const iconveh_t *' argument.
29093         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29094         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29095         with a single 'const iconveh_t *' argument.
29096         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29097         * tests/test-striconveh.c (main): Update.
29098         * NEWS: Mention the change.
29099
29100 2009-08-30  Bruno Haible  <bruno@clisp.org>
29101
29102         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29103         problem.
29104
29105 2009-08-30  Bruno Haible  <bruno@clisp.org>
29106
29107         Work around iconv_open problem on Solaris.
29108         * lib/iconv_open-solaris.gperf: New file.
29109         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29110         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29111         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29112         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29113         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29114         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29115
29116 2009-08-29  Jim Meyering  <meyering@redhat.com>
29117
29118         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29119         * top/maint.mk (cvs-check): Remove target; it was just an alias
29120         to the better-named vc-diff-check.
29121         (maintainer-distcheck): Remove rule.  It was used only from
29122         the (alpha/beta/major) target, and all of its commands but one
29123         were coreutils-specific.
29124         (vc-dist): Remove rule.
29125         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29126         Run vc-diff-check, not vc-dist.
29127         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29128
29129 2009-08-27  Bruno Haible  <bruno@clisp.org>
29130
29131         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29132         of 0.
29133
29134 2009-08-27  Bruno Haible  <bruno@clisp.org>
29135
29136         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29137         compilers.
29138         * doc/func.texi: Document the SunPRO C bug.
29139
29140 2009-08-27  Bruno Haible  <bruno@clisp.org>
29141
29142         Fix link error on Solaris.
29143         * tests/test-parse-duration.c (xstrdup): Remove function.
29144
29145 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29146
29147         ignore-value: handle pointer types, too
29148         * lib/ignore-value.h (__attribute__): Remove definition.
29149         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29150         of a more concise and more-often effective "(void) i" statement.
29151         (ignore_ptr): New function to suppress warnings from functions that
29152         return pointers, and to make it explicit that one function doesn't
29153         handle all cases.
29154
29155 2009-08-25  Bruno Haible  <bruno@clisp.org>
29156
29157         dup2: work around a Linux bug.
29158         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29159         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29160         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29161         Reported by Simon Josefsson.
29162
29163 2009-08-25  Jim Meyering  <meyering@redhat.com>
29164
29165         libguestfs uses gnulib
29166         * users.txt: Add libguestfs.
29167
29168 2009-08-24  Eric Blake  <ebb9@byu.net>
29169
29170         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29171         * lib/pipe2.c (includes): Add binary-io.h.
29172         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29173
29174 2009-08-24  Bruno Haible  <bruno@clisp.org>
29175
29176         Tolerate declared but missing accept4 syscall.
29177         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29178         available.
29179         * lib/sys_socket.in.h (accept4): If the function is already present,
29180         override it.
29181         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29182         * modules/accept4 (Makefile.am): Compile accept4.c always.
29183         Reported by Paolo Bonzini and Eric Blake.
29184
29185 2009-08-23  Bruno Haible  <bruno@clisp.org>
29186
29187         New module 'accept4'.
29188         * lib/sys_socket.in.h (accept4): New declaration.
29189         * lib/accept4.c: New file.
29190         * m4/accept4.m4: New file.
29191         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29192         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29193         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29194         HAVE_ACCEPT4.
29195         * modules/accept4: New file.
29196         * doc/glibc-functions/accept4.texi: Mention the new module.
29197
29198 2009-08-24  Jim Meyering  <meyering@redhat.com>
29199
29200         progname: also set global program_invocation_name, when possible
29201         Before this change, a libtool-enabled program that calls glibc's
29202         error function would report the program name as
29203         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29204         * modules/progname (configure.ac): Check for a declaration of
29205         program_invocation_name.
29206         * lib/progname.c:  Include <errno.h>.
29207         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29208         Set program_invocation_name.
29209
29210 2009-08-23  Bruno Haible  <bruno@clisp.org>
29211
29212         * lib/dup3.c: Include <string.h>.
29213
29214 2009-08-23  Bruno Haible  <bruno@clisp.org>
29215
29216         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29217         * lib/pipe2.c (pipe2): Likewise.
29218         Suggested by Eric Blake.
29219
29220 2009-08-23  Bruno Haible  <bruno@clisp.org>
29221
29222         Tolerate declared but missing dup3 syscall.
29223         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29224         * lib/unistd.in.h (dup3): If the function is already present,
29225         override it.
29226         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29227         * modules/dup3 (Makefile.am): Compile dup3.c always.
29228         Reported by Paolo Bonzini.
29229
29230 2009-08-23  Bruno Haible  <bruno@clisp.org>
29231
29232         Tolerate declared but missing pipe2 syscall.
29233         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29234         available.
29235         * lib/unistd.in.h (pipe2): If the function is already present,
29236         override it.
29237         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29238         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29239         Reported by Paolo Bonzini.
29240
29241 2009-08-23  Bruno Haible  <bruno@clisp.org>
29242
29243         * lib/pipe2.c (pipe2): Move #ifs inside function.
29244
29245 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29246
29247         quotearg: document limitations of quote_these_too
29248         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29249         those limitations are created.
29250         * lib/quotearg.h (set_char_quoting): Document that digits and
29251         letters that are special after backslash are not permitted.
29252         (quotearg_char): Cross-reference set_char_quoting documentation.
29253
29254 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29255
29256         quotearg: implement custom_quoting_style
29257         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29258         right_quote fields.
29259         (set_custom_quoting): New public function.
29260         (quotearg_buffer_restyled): Add left_quote and right_quote
29261         arguments, handle them very much like locale quoting, and update
29262         all uses.
29263         (quotearg_n_custom): New public function.
29264         (quotearg_n_custom_mem): New public function.
29265         (quotearg_custom): New public function.
29266         (quotearg_custom_mem): New public function.
29267         * lib/quotearg.h: Prototype and document new public functions.
29268         (enum quoting_style): For escape_quoting_style and
29269         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29270         ignored even though they're otherwise like c_quoting_style.
29271         Add custom_quoting_style member and document with comparison to
29272         clocale_quoting_style.
29273         * tests/test-quotearg.c (custom_quotes): New array.
29274         (custom_results): New array.
29275         (main): Extend to test custom quoting.
29276
29277 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29278
29279         quotearg: fix right quote escaping when it's in quote_these_too
29280         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29281         quote, be sure to prepend only one backslash.
29282         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29283         (main): Test it.
29284
29285 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29286
29287         quotearg-tests: test escaping of embedded locale quotes
29288         * tests/test-quotearg.c (struct result_strings): Add member for
29289         new input.
29290         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29291         (inputs): Add new input.
29292         (results_g): Add expected results.
29293         (flag_results): Likewise.
29294         (locale_results): Likewise.
29295         (compare_strings): Check those.
29296
29297 2009-08-23  Bruno Haible  <bruno@clisp.org>
29298
29299         Tests for module 'dup3'.
29300         * modules/dup3-tests: New file.
29301         * tests/test-dup3.c: New file.
29302
29303         New module 'dup3'.
29304         * lib/unistd.in.h (dup3): New declaration.
29305         * lib/dup3.c: New file.
29306         * m4/dup3.m4: New file.
29307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29308         HAVE_DUP3.
29309         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29310         * modules/dup3: New file.
29311         * doc/glibc-functions/dup3.texi: Mention the new module.
29312
29313 2009-08-23  Bruno Haible  <bruno@clisp.org>
29314
29315         Tweak the dup2 test.
29316         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29317         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29318         the test file is still empty. Fix argument order of lseek.
29319
29320 2009-08-23  Bruno Haible  <bruno@clisp.org>
29321
29322         Avoid test link errors when the modules getopt-gnu, gettext are used.
29323         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29325
29326 2009-08-23  Bruno Haible  <bruno@clisp.org>
29327
29328         Fix getdtablesize() on mingw.
29329         * lib/getdtablesize.c (getdtablesize): Implement differently.
29330         * lib/unistd.in.h (getdtablesize): Improve comment.
29331
29332 2009-08-23  Bruno Haible  <bruno@clisp.org>
29333
29334         New module 'mkostemp'.
29335         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29336         * lib/stdlib.in.h (mksotemp): New declaration.
29337         * lib/mkostemp.c: New file, from glibc with modifications.
29338         * lib/tempname.h (GT_FILE): Remove outdated comment.
29339         (gen_tempname): Add flags argument.
29340         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29341         (__GT_FILE): Map to 1.
29342         (small_open, large_open): Remove macros.
29343         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29344         * lib/mkstemp.c (mkstemp): Update.
29345         * lib/mkdtemp.c (mkdtemp): Likewise.
29346         * m4/mkostemp.m4: New file.
29347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29348         HAVE_MKOSTEMP.
29349         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29350         HAVE_MKOSTEMP.
29351         * modules/mkostemp: New file, based on modules/mkstemp.
29352         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29353         * NEWS: Mention the change.
29354
29355 2009-08-23  Bruno Haible  <bruno@clisp.org>
29356
29357         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29358         Reported by Eric Blake.
29359
29360 2009-08-23  Bruno Haible  <bruno@clisp.org>
29361
29362         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29363         Reported by Eric Blake.
29364
29365 2009-08-23  Bruno Haible  <bruno@clisp.org>
29366
29367         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29368         * modules/pipe2 (Depends-on): Likewise.
29369
29370 2009-08-23  Eric Blake  <ebb9@byu.net>
29371
29372         fcntl-h: add O_TTY_INIT support
29373         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29374         * tests/test-fcntl-h.c (o): Test it.
29375         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29376
29377         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29378         * modules/fcntl: Move <fcntl.h> header replacement...
29379         * modules/fcntl-h: ...to new name, so as not to collide with
29380         like-named function.
29381         * tests/test-fcntl.c: Rename...
29382         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29383         * modules/fcntl-tests: Rename...
29384         * modules/fcntl-h-tests: ...to this.  Update test file name.
29385         * modules/chdir-long (Depends-on): Update clients.
29386         * modules/chdir-safer (Depends-on): Likewise.
29387         * modules/fcntl-safer (Depends-on): Likewise.
29388         * modules/fts (Depends-on): Likewise.
29389         * modules/mkancesdirs (Depends-on): Likewise.
29390         * modules/mkdir-p (Depends-on): Likewise.
29391         * modules/open (Depends-on): Likewise.
29392         * modules/savewd (Depends-on): Likewise.
29393         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29394         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29395
29396 2009-08-22  Bruno Haible  <bruno@clisp.org>
29397
29398         * modules/binary-io (License): Relicense under LGPL.
29399         * modules/pipe2 (License): Likewise.
29400
29401 2009-08-22  Bruno Haible  <bruno@clisp.org>
29402
29403         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29404         return value.
29405         * lib/pipe-filter-gi.c (filter_init): Likewise.
29406         Reported by Eric Blake.
29407
29408 2009-08-22  Bruno Haible  <bruno@clisp.org>
29409
29410         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29411         * modules/pipe (Depends-on): Add pipe2.
29412
29413 2009-08-22  Bruno Haible  <bruno@clisp.org>
29414
29415         Tests for module 'pipe2'.
29416         * modules/pipe2-tests: New file.
29417         * tests/test-pipe2.c: New file.
29418
29419         New module 'pipe2'.
29420         * lib/unistd.in.h (pipe2): New declaration.
29421         * lib/pipe2.c: New file.
29422         * m4/pipe2.m4: New file.
29423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29424         HAVE_PIPE2.
29425         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29426         * modules/pipe2: New file.
29427         * doc/glibc-functions/pipe2.texi: Mention the new module.
29428
29429 2009-08-22  Bruno Haible  <bruno@clisp.org>
29430
29431         Reference some new glibc functions.
29432         * doc/glibc-functions/accept4.texi: New file.
29433         * doc/glibc-functions/dup3.texi: New file.
29434         * doc/glibc-functions/mkostemp.texi: New file.
29435         * doc/glibc-functions/pipe2.texi: New file.
29436         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29437         (Glibc sys/socket.h): Refer to accept4.
29438         (Glibc unistd.h): Refer to dup3, pipe2.
29439         Reported by Eric Blake.
29440
29441 2009-08-22  Jim Meyering  <meyering@redhat.com>
29442             Bruno Haible  <bruno@clisp.org>
29443
29444         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29445         This makes it so packages using automake-1.11's silent-rules option
29446         can print e.g., a single "GEN    configmake.h" line, rather than
29447         the 30+ statements that perform the job.  If you want to see the
29448         actual commands, you can still run "make V=1".
29449         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29450         so that make output is abbreviated when those variables are defined
29451         appropriately.
29452         * modules/argz: Likewise.
29453         * modules/arpa_inet: Likewise.
29454         * modules/byteswap: Likewise.
29455         * modules/configmake: Likewise.
29456         * modules/dirent: Likewise.
29457         * modules/errno: Likewise.
29458         * modules/fcntl: Likewise.
29459         * modules/float: Likewise.
29460         * modules/fnmatch: Likewise.
29461         * modules/getopt-posix: Likewise.
29462         * modules/glob: Likewise.
29463         * modules/iconv_open: Likewise.
29464         * modules/inttypes: Likewise.
29465         * modules/localcharset: Likewise.
29466         * modules/locale: Likewise.
29467         * modules/math: Likewise.
29468         * modules/netdb: Likewise.
29469         * modules/netinet_in: Likewise.
29470         * modules/poll: Likewise.
29471         * modules/posix_spawnp-tests: Likewise.
29472         * modules/sched: Likewise.
29473         * modules/search: Likewise.
29474         * modules/selinux-h: Likewise.
29475         * modules/signal: Likewise.
29476         * modules/spawn: Likewise.
29477         * modules/stdarg: Likewise.
29478         * modules/stdbool: Likewise.
29479         * modules/stddef: Likewise.
29480         * modules/stdint: Likewise.
29481         * modules/stdio: Likewise.
29482         * modules/stdlib: Likewise.
29483         * modules/string: Likewise.
29484         * modules/strings: Likewise.
29485         * modules/sys_file: Likewise.
29486         * modules/sys_ioctl: Likewise.
29487         * modules/sys_select: Likewise.
29488         * modules/sys_socket: Likewise.
29489         * modules/sys_stat: Likewise.
29490         * modules/sys_time: Likewise.
29491         * modules/sys_times: Likewise.
29492         * modules/sys_utsname: Likewise.
29493         * modules/sys_wait: Likewise.
29494         * modules/sysexits: Likewise.
29495         * modules/time: Likewise.
29496         * modules/unistd: Likewise.
29497         * modules/wchar: Likewise.
29498         * modules/wctype: Likewise.
29499
29500 2009-08-22  Jim Meyering  <meyering@redhat.com>
29501
29502         announce-gen: detect write failure
29503         * build-aux/announce-gen: Add Coda at end.
29504         Remove equivalent-but-more-verbose block at top.
29505
29506 2009-08-19  Akim Demaille  <demaille@gostai.com>
29507
29508         bootstrap: --help to stdout.
29509         * bootstrap (usage): Don't send --help to stderr.
29510         Use a here doc instead of a long string.
29511
29512 2009-08-21  Eric Blake  <ebb9@byu.net>
29513
29514         test-popen-safer: split from test-popen
29515         * tests/test-popen.c (main): Move...
29516         * tests/test-popen.h: ...into new file.
29517         * tests/test-popen-safer2.c: New file.
29518         * modules/popen-tests (Files): Add test-popen.h.
29519         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29520         Suggested by Bruno Haible.
29521
29522         test-fcntl-safer: split from test-open
29523         * tests/test-open.c (main): Move...
29524         * tests/test-open.h: ...into new file.
29525         * tests/test-fcntl-safer.c: New file.
29526         * modules/open-tests (Files): Add test-open.h.
29527         * modules/fcntl-safer-tests: New file.
29528         Suggested by Bruno Haible.
29529
29530         test-fopen-safer: split from test-fopen
29531         * tests/test-fopen.c (main): Move...
29532         * tests/test-fopen.h: ...into new file.
29533         * tests/test-fopen-safer.c: New file.
29534         * modules/fopen-tests (Files): Add test-fopen.h.
29535         * modules/fopen-safer-tests: New file.
29536         Suggested by Bruno Haible.
29537
29538 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29539
29540         popen-safer: test O_CLOEXEC at run-time.
29541         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29542
29543 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29544
29545         fcntl: move more flags to the header
29546         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29547         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29548         * lib/fcntl.in.h: Do both things here.
29549
29550 2009-08-21  Jim Meyering  <meyering@redhat.com>
29551
29552         consistently remove $@-t before redirecting to it
29553         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29554         * modules/alloca-opt: Likewise.
29555         * modules/byteswap: Likewise.
29556         * modules/fnmatch: Likewise.
29557         * modules/getopt-posix: Likewise.
29558         * modules/glob: Likewise.
29559         * modules/poll: Likewise.
29560         * modules/posix_spawnp-tests: Likewise.
29561         * modules/sys_socket: Likewise.
29562         * modules/sysexits: Likewise.
29563
29564 2009-08-21  Eric Blake  <ebb9@byu.net>
29565
29566         popen: simplify access to original popen
29567         * lib/popen.c (rpl_popen): No need to worry about popen being a
29568         macro.
29569         Reported by Bruno Haible.
29570
29571 2009-08-20  Eric Blake  <ebb9@byu.net>
29572
29573         build: avoid some compiler warnings
29574         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29575         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29576         type.
29577         (new_exclude_segment, excluded_file_pattern_p)
29578         (excluded_file_name_p): Reduce scope.
29579         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29580         old-style declaration.
29581
29582 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29583
29584         * tests/test-exclude1.sh: Handle Windows EOL.
29585         * tests/test-exclude2.sh: Likewise.
29586         * tests/test-exclude3.sh: Likewise.
29587         * tests/test-exclude4.sh: Likewise.
29588         * tests/test-exclude5.sh: Likewise.
29589         * tests/test-exclude6.sh: Likewise.
29590         * tests/test-exclude7.sh: Likewise.
29591
29592 2009-08-19  Akim Demaille  <demaille@gostai.com>
29593
29594         bootstrap: find sha1sum when named gsha1sum.
29595         * bootstrap (find_tool): New.
29596         ($SHA1SUM): New.
29597         Use it.
29598
29599 2009-08-20  Jim Meyering  <meyering@redhat.com>
29600
29601         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29602         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29603         expression that converts "." in a file name to "\." in the resulting
29604         regexp.  Start with a dummy statement, so that prior shell variable
29605         definitions are expanded portably.  Reported by Simon Josefsson.
29606
29607 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29608
29609         Fix polling for writeability of a screen buffer.
29610         * lib/poll.c: Distinguish input and screen buffers for the
29611         Win32 implementation.
29612         * lib/select.c: Likewise.
29613
29614 2009-08-19  Eric Blake  <ebb9@byu.net>
29615
29616         popen-safer: prevent popen from clobbering std descriptors
29617         * modules/popen-safer: New file.
29618         * lib/popen-safer.c: Likewise.
29619         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29620         * lib/stdio--.h (popen): Provide override.
29621         * lib/stdio-safer.h (popen_safer): Provide declaration.
29622         * tests/test-popen.c (includes): Partially test this.
29623         * modules/popen-safer-tests: New file, for more tests.
29624         * tests/test-popen-safer.c: Likewise.
29625         * MODULES.html.sh (file stream based Input/Output): Mention it.
29626
29627         tests: test some of the *-safer modules
29628         * modules/fopen-safer (Depends-on): Add fopen.
29629         * modules/fcntl-safer (Depends-on): Add fcntl.
29630         * modules/stdlib-safer (Depends-on): Add stdlib.
29631         (configure.ac): Set indicator.
29632         * modules/unistd-safer (configure.ac): Likewise.
29633         * modules/tmpfile-safer (configure.ac): Likewise.
29634         (Depends-on): Add tmpfile.
29635         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29636         active.
29637         * tests/test-fopen.c (includes): Test safer versions when they are
29638         in use.
29639         * tests/test-open.c (includes): Likewise.
29640
29641         popen: fix cygwin 1.5 bug when stdin closed
29642         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29643         * modules/popen: New file.
29644         * modules/popen-tests: Likewise.
29645         * tests/test-popen.c: Likewise.
29646         * m4/popen.m4: Likewise.
29647         * lib/popen.c: Likewise.
29648         * lib/stdio.in.h (popen): New declaration.
29649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29650         * modules/stdio (Makefile.am): Likewise.
29651         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29652
29653 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29654
29655         maint.mk: give full control over update-copyright exclusions
29656         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29657         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29658         (update-copyright): Don't force inclusion of top-level
29659         ChangeLog.  Don't force exclusion of all COPYING files, but make
29660         them the default exclusion instead.
29661
29662 2009-08-16  Bruno Haible  <bruno@clisp.org>
29663
29664         Fix test failures on Solaris 10.
29665         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29666         tests when Solaris iconv() is used.
29667         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29668         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29669         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29670         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29671         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29672
29673 2009-08-16  Bruno Haible  <bruno@clisp.org>
29674
29675         Fix test failures on Solaris 10.
29676         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29677         'tr' program and pass it as first argument.
29678         * tests/test-pipe-filter-gi1.sh: Likewise.
29679         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29680         program as first argument.
29681         * tests/test-pipe-filter-gi1.c (main): Likewise.
29682
29683 2009-08-16  Eric Blake  <ebb9@byu.net>
29684
29685         fpurge: fix previous commits
29686         * modules/fpurge (Makefile.am): Make replacement conditional,
29687         partially reverting 2007-04-29 change; missed in previous
29688         attempt.
29689         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29690         is missing.
29691
29692 2009-08-16  Bruno Haible  <bruno@clisp.org>
29693
29694         Clarify fpurge's effect on the file position.
29695         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29696         * tests/test-fpurge.c (main): Make a second pass for checking the file
29697         position.
29698
29699 2009-08-16  Bruno Haible  <bruno@clisp.org>
29700
29701         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29702         declaration of fpurge is missing.
29703         * tests/test-fpurge.c (main): Check that the file has not more contents
29704         than expected. Close the file before removing it.
29705
29706 2009-08-15  Eric Blake  <ebb9@byu.net>
29707
29708         fpurge: don't wrap working cygwin implementation
29709         * lib/fpurge.c (fpurge): Fix comment typo.
29710         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29711         1.7 to avoid replacement.
29712         * tests/test-fpurge.c (main): Enhance test.
29713
29714 2009-08-15  Eric Blake  <ebb9@byu.net>
29715         and Jim Meyering  <meyering@redhat.com>
29716
29717         test-update-copyright: skip if perl is insufficient
29718         * tests/test-update-copyright.sh: Failure to run maintainer tool
29719         should not cause testsuite failure on cygwin 1.5.
29720
29721 2009-08-14  Eric Blake  <ebb9@byu.net>
29722
29723         doc: mention more functions added in cygwin 1.7.0
29724         * doc/posix-headers/limits.texi (limits.h): Update for recent
29725         cygwin additions.
29726         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29727         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29728         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29729         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29730         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29731
29732 2009-08-14  Eric Blake  <ebb9@byu.net>
29733
29734         maint.mk: simplify update-copyright rule
29735         * top/maint.mk (update-copyright-local): Delete, and document how
29736         to do it in cfg.mk instead.
29737         (update-copyright-exclude-regexp): Delete, and document how to do
29738         it in .x-update-copyright instead.
29739         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29740         exclude ChangeLog.
29741
29742 2009-08-14  Bruno Haible  <bruno@clisp.org>
29743
29744         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29745
29746 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29747
29748         maint.mk: support update-copyright-env
29749         * top/maint.mk (update-copyright-env): Define place-holder.
29750         (update-copyright): Expand $(update-copyright-env) before
29751         invoking update-copyright.
29752
29753 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29754
29755         update-copyright: implement forced reformatting
29756         * build-aux/update-copyright: Implement and document
29757         UPDATE_COPYRIGHT_FORCE.
29758         * tests/test-update-copyright.sh: Test it.
29759
29760 2009-08-14  Eric Blake  <ebb9@byu.net>
29761         and Bruno Haible  <bruno@clisp.org>
29762
29763         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29764         * tests/test-locale.c: Revert previous patch related to NULL.
29765         * tests/test-stdio.c: Likewise.
29766         * tests/test-stdlib.c: Likewise.
29767         * tests/test-string.c: Likewise.
29768         * tests/test-unistd.c: Likewise.
29769         * modules/time-tests (Depends-on): Add verify.
29770         * modules/wchar-tests (Depends-on): Likewise.
29771         * tests/test-time.c: Test for NULL compliance.
29772         * tests/test-wchar.c: Likewise.
29773         * modules/locale (Depends-on): Add stddef.
29774         * modules/stdio (Depends-on): Likewise.
29775         * modules/stdlib (Depends-on): Likewise.
29776         * modules/string (Depends-on): Likewise.
29777         * modules/time (Depends-on): Likewise.
29778         * modules/unistd (Depends-on): Likewise.
29779         * modules/wchar (Depends-on): Likewise.
29780         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29781         * lib/stdlib.in.h (includes): Likewise.
29782         * lib/string.in.h (includes): Likewise.
29783         * lib/time.in.h (includes): Likewise.
29784         * lib/unistd.in.h (includes): Likewise.
29785         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29786         replaced.
29787         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29788         * m4/stddef_h.m4: New file.
29789         * modules/stddef: Likewise.
29790         * lib/stddef.in.h: Likewise.
29791         * modules/stddef-tests: Likewise.
29792         * tests/test-stddef.c: Likewise.
29793         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29794         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29795         * doc/posix-headers/locale.texi (locale.h): Likewise.
29796         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29797         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29798         * doc/posix-headers/string.texi (string.h): Likewise.
29799         * doc/posix-headers/time.texi (time.h): Likewise.
29800         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29801         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29802
29803 2009-08-14  Eric Blake  <ebb9@byu.net>
29804
29805         doc: improve git diff of texinfo files
29806         * .gitattributes: Add rule for *.texi files, with hint on how to
29807         use it.
29808         Copied from m4, and based on a report by Bruno Haible.
29809
29810 2009-08-14  Bruno Haible  <bruno@clisp.org>
29811
29812         Disable multithread support by default on Cygwin 1.5.x for real.
29813         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29814
29815 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29816
29817         update-copyright: much ado about intervals
29818         * build-aux/update-copyright: Implement and document
29819         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29820         of copyright year intervals.
29821         Also, document UPDATE_COPYRIGHT_YEAR.
29822         * tests/test-update-copyright.sh: Test it.
29823
29824         update-copyright: convert 2-digit to 4-digit years
29825         * build-aux/update-copyright: Implement and document.
29826         * tests/test-update-copyright.sh: Update.
29827
29828 2009-08-14  Jim Meyering  <meyering@redhat.com>
29829
29830         test-exclude: avoid coreutils "make check" failure
29831         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29832         just as in test-argmatch.c.
29833
29834 2009-08-13  Eric Blake  <ebb9@byu.net>
29835
29836         test-dup2: fix bad assumption
29837         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29838         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29839
29840         test-version-etc: fix CRLF portability issue
29841         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29842         recognize \r.
29843         * tests/test-argp-version-etc-1.sh: Likewise.
29844
29845         getopt: update client modules
29846         * modules/argp (Depends-on): Use getopt-gnu.
29847         * modules/git-merge-changelog (Depends-on): Likewise.
29848         * modules/long-options (Depends-on): Likewise.
29849         * modules/xstrtol (Depends-on): Likewise.
29850
29851 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29852
29853         * tests/test-version-etc.sh: Don't fail on different
29854         project/version.  Don't fail on CRLF differences.  Rewrite to use
29855         multiple -e instead of multiple sed forks, suggested by Eric Blake
29856         <ebb9@byu.net>.
29857         * tests/test-argp-version-etc-1.sh: Likewise.
29858
29859 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29860
29861         * tests/test-version-etc.sh: Don't fail on different
29862         project/version.
29863
29864 2009-08-12  Bruno Haible  <bruno@clisp.org>
29865
29866         Tests for modules 'getopt-posix', 'getopt-gnu'.
29867         * modules/getopt-posix-tests: New file.
29868         * tests/test-getopt.c: New file.
29869         * tests/test-getopt.h: New file.
29870         * tests/test-getopt_long.h: New file.
29871
29872         New modules 'getopt-posix', 'getopt-gnu'.
29873         * modules/getopt-gnu: New file, renamed from modules/getopt.
29874         * modules/getopt-posix: New file.
29875         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29876         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29877         (gl_GETOPT): Remove macro.
29878         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29879         Disable the test against BSD systems that declare optreset. Test
29880         against mingw bug. Test against lack of support of optional arguments
29881         on many platforms.
29882         * doc/glibc-headers/getopt.texi: Update module name and list of
29883         relevant platforms.
29884         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29885         'getopt-gnu' and more portability problems.
29886         * NEWS: Mention the changes.
29887
29888 2009-08-12  Bruno Haible  <bruno@clisp.org>
29889
29890         Ensure that optarg etc. get declared by <unistd.h>.
29891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29892         AC_USE_SYSTEM_EXTENSIONS.
29893         * modules/getopt (Depends-on): Add 'extensions'.
29894
29895 2009-08-12  Bruno Haible  <bruno@clisp.org>
29896
29897         Avoid test link errors.
29898         * modules/pipe-filter-ii-tests (Makefile.am): Define
29899         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29900         * modules/pipe-filter-gi-tests (Makefile.am): Define
29901         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29903
29904 2009-08-12  Bruno Haible  <bruno@clisp.org>
29905
29906         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29907         gl_GETOPT_SUBSTITUTE before.
29908         (gl_GETOPT): Use it.
29909         * m4/argp.m4 (gl_ARGP): Update.
29910         Reported by Sergey Poznyakoff.
29911
29912         * m4/getopt.m4: Reorder macros.
29913         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29914         (gl_GETOPT_SUBSTITUTE): Remove macro.
29915
29916 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29917
29918         Minor improvement in gitlog-to-changelog
29919
29920         * build-aux/gitlog-to-changelog: New option `--format' makes
29921         output format string configurable.
29922
29923 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29924
29925         Optimize exclude: use hash tables for non-wildcard patterns.
29926
29927         * lib/exclude.c: Include hash.h and mbuiter.h
29928         (struct exclude_pattern, exclude_segment): New data types.
29929         (struct exclude): Rewrite.
29930         (fnmatch_pattern_has_wildcards): New function.
29931         (new_exclude_segment, free_exclude_segment): New functions.
29932         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29933         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29934         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29935         * modules/exclude: Depend on hash and mbuiter.
29936
29937         * modules/exclude-tests: New file.
29938         * tests/test-exclude.c: New file.
29939         * tests/test-exclude1.sh: New file.
29940         * tests/test-exclude2.sh: New file.
29941         * tests/test-exclude3.sh: New file.
29942         * tests/test-exclude4.sh: New file.
29943         * tests/test-exclude5.sh: New file.
29944         * tests/test-exclude6.sh: New file.
29945         * tests/test-exclude7.sh: New file.
29946
29947 2009-08-12  Bruno Haible  <bruno@clisp.org>
29948
29949         Ensure that getopt() gets declared by <unistd.h>.
29950         * lib/unistd.in.h: Conditionally include getopt.h.
29951         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29952         Set GNULIB_UNISTD_H_GETOPT.
29953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29954         GNULIB_UNISTD_H_GETOPT.
29955         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29956
29957 2009-08-12  Bruno Haible  <bruno@clisp.org>
29958
29959         Clarify logic.
29960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29961         gl_replace_getopt instead of GETOPT_H.
29962
29963 2009-08-12  Bruno Haible  <bruno@clisp.org>
29964
29965         * m4/getopt.m4: Add comments.
29966
29967 2009-08-12  Bruno Haible  <bruno@clisp.org>
29968
29969         Disable multithread support by default on Cygwin 1.5.x.
29970         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29971         set gl_use_threads=no if not specified otherwise.
29972
29973 2009-08-11  Bruno Haible  <bruno@clisp.org>
29974
29975         Avoid compilation error on NetBSD 5.0.
29976         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29977         * tests/test-stdio.c: Likewise.
29978         * tests/test-stdlib.c: Likewise.
29979         * tests/test-string.c: Likewise.
29980         * tests/test-unistd.c: Likewise.
29981         Reported by Greg Troxel <gdt@ir.bbn.com>
29982         at <https://savannah.gnu.org/support/?106973>.
29983
29984 2009-08-11  Bruno Haible  <bruno@clisp.org>
29985
29986         * modules/dup2-tests (Depends-on): Remove close.
29987
29988         Undo 2009-07-19 commit.
29989         * modules/acl-tests (Depends-on): Remove close.
29990         * modules/binary-io-tests (Depends-on): Likewise.
29991         * modules/closein-tests (Depends-on): Likewise.
29992         * modules/flock-tests (Depends-on): Likewise.
29993         * modules/fsync-tests (Depends-on): Likewise.
29994         * modules/lseek-tests (Depends-on): Likewise.
29995         * modules/pipe-tests (Depends-on): Likewise.
29996         * modules/posix_spawn-tests (Depends-on): Likewise.
29997         * modules/posix_spawnp-tests (Depends-on): Likewise.
29998         * modules/stat-time-tests (Depends-on): Likewise.
29999         * modules/yesno-tests (Depends-on): Likewise.
30000
30001 2009-08-10  Bruno Haible  <bruno@clisp.org>
30002
30003         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30004
30005 2009-08-10  Bruno Haible  <bruno@clisp.org>
30006
30007         Fix a gcc warning.
30008         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30009
30010 2009-08-10  Bruno Haible  <bruno@clisp.org>
30011
30012         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30013         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30014         not only the first time.
30015         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30016         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30017         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30018         is 1, not only the the first time.
30019
30020 2009-08-10  Bruno Haible  <bruno@clisp.org>
30021
30022         Make it possible to use module 'gethostname' without module 'close'.
30023         * lib/unistd.in.h (close): Evoke a link error only if
30024         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30026         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30027         * modules/unistd (Makefile.am): Substitute
30028         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30029         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30030         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30031         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30032         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30033         * modules/sys_ioctl (Makefile.am): Substitute
30034         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30035         * modules/socket (configure.ac): On native Windows, set
30036         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30037         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30038         Reported by Sam Steingold <sds@gnu.org>.
30039
30040 2009-08-10  Bruno Haible  <bruno@clisp.org>
30041
30042         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30043         * modules/ioctl (configure.ac): Likewise.
30044
30045 2009-08-10  Bruno Haible  <bruno@clisp.org>
30046
30047         Avoid collision between gnulib wrapper and libintl wrapper.
30048         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30049         already defined in intl/printf.c.
30050         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30051         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30052
30053 2009-08-09  Bruno Haible  <bruno@clisp.org>
30054
30055         Make <sys/select.h> really self-contained, also on Solaris 10.
30056         * lib/sys_select.in.h: Include <string.h>.
30057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30058         Solaris 10 problem.
30059         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30060         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30061         Reported by Jim Meyering.
30062
30063 2009-08-09  Bruno Haible  <bruno@clisp.org>
30064
30065         Avoid warnings from 'aclocal' that are due to a use of macro name
30066         AM_XGETTEXT_OPTION that is not defined in automake.
30067         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30068         automake.
30069         * modules/error (configure.ac): Likewise.
30070         * modules/propername (configure.ac): Likewise.
30071         * modules/vasprintf (configure.ac): Likewise.
30072         * modules/verror (configure.ac): Likewise.
30073         * modules/xprintf (configure.ac): Likewise.
30074         * modules/xvasprintf (configure.ac): Likewise.
30075
30076 2009-08-08  Bruno Haible  <bruno@clisp.org>
30077
30078         Avoid compilation error in C++ mode.
30079         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30080         Reported by Sam Steingold <sds@gnu.org>.
30081
30082 2009-08-08  Bruno Haible  <bruno@clisp.org>
30083
30084         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30085         for the various Unix platforms.
30086         * doc/posix-headers/limits.texi: Update platforms list regarding
30087         HOST_NAME_MAX.
30088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30089
30090 2009-08-07  Jim Meyering  <meyering@redhat.com>
30091
30092         selinux-at: fix typo in a comment
30093         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30094         Spotted by Paolo Bonzini.
30095
30096         selinux-at: remove redundant m4 code, add documentation
30097         * modules/selinux-at (configure.ac): Remove redundant code.
30098         LIB_SELINUX is already set via the dependent module, selinux-h.
30099         (Include): Add quotes around selinux-at.h.
30100         * lib/selinux-at.h: Add documentation.
30101         Reported by Bruno Haible in
30102         http://marc.info/?l=gnulib-bug&m=124958988300749
30103
30104 2009-08-07  Bruno Haible  <bruno@clisp.org>
30105
30106         Avoid link error on MacOS X 10.3 and 10.4.
30107         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30108         on non-ELF systems.
30109         * lib/argp-pv.c (argp_program_version): Likewise.
30110         Reported by Simon Josefsson.
30111
30112 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30113
30114         * tests/test-version-etc.sh: Use $EXEEXT.
30115
30116 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30117
30118         update-copyright: update documentation to point to maint.mk
30119         * build-aux/update-copyright: Here.
30120
30121 2009-08-06  Jim Meyering  <meyering@redhat.com>
30122
30123         maint.mk: support update-copyright-local
30124         * top/maint.mk (update-copyright-local): Define place-holder.
30125         (update-copyright): Depend on $(update-copyright-local).
30126
30127 2009-08-06  Jim Meyering  <meyering@redhat.com>
30128
30129         selinux-at: new module
30130         Initially written for coreutils, this module will soon be
30131         used by findutils, too.
30132         * MODULES.html.sh [Misc]: Add selinux-at.
30133         * lib/selinux-at.h: New file, from coreutils.
30134         * lib/selinux-at.c: Likewise.
30135         * modules/selinux-at: Likewise.
30136         (License): Change from LGPL to GPL, since it depends
30137         on the GPL'd openat module.
30138
30139         doc: update README
30140         * README: Remove references to cogito.
30141         Remove cvs-repo-updating instructions from 2007.
30142         Don't imply that CVS is better if you have limited disk space.
30143
30144 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30145
30146         update-copyright: support C-style comments
30147         * build-aux/update-copyright: Implement and document.
30148         * tests/test-update-copyright.sh: Test.
30149
30150 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30151
30152         update-copyright: support omitted "(C)"
30153         * build-aux/update-copyright: Implement and document.  Also,
30154         allow variable whitespace before "(C)".
30155         * tests/test-update-copyright.sh: Test.
30156
30157 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30158
30159         update-copyright: don't trip on non-FSF copyright statements
30160         * build-aux/update-copyright: Fix so that the first correctly
30161         formatted FSF copyright statement is recognized no matter what
30162         appears before it.  Update documentation.
30163         * tests/test-update-copyright.sh: Test that.
30164
30165 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30166
30167         update-copyright: clean up code a little
30168         * build-aux/update-copyright: Append "_re" to the name of any
30169         variable holding a regular expression.
30170         Replace "old" and "new" with "stmt" in variable names.
30171         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30172         handled correctly.
30173         Format code more consistently.
30174
30175 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30176
30177         update-copyright-tests: improve portability
30178         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30179         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30180
30181 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30182
30183         update-copyright: support @copyright{} and &copy;
30184         * build-aux/update-copyright: Implement and document.
30185         * tests/test-update-copyright.sh: Test.
30186
30187 2009-08-04  Jim Meyering  <meyering@redhat.com>
30188
30189         update-copyright-tests: correctly test EOL=\r\n handling
30190         * tests/test-update-copyright.sh: Put \r at the end of some lines
30191         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30192
30193         maint.mk: make update-copyright exclusion list more configurable
30194         * top/maint.mk (update-copyright): Default to excluding COPYING,
30195         but allow an override, in case someone does want to update that file.
30196
30197         maint.mk: don't update copyright date in COPYING
30198         * top/maint.mk (update-copyright): Exclude COPYING.
30199
30200         maint.mk: add a copyright-updating rule
30201         * top/maint.mk (update-copyright): New rule.
30202         Derived from coreutils/Makefile.am.
30203
30204         update-copyright: rename some variables
30205         * build-aux/update-copyright: Rename a few variables for clarity.
30206         Tweak syntax.  List Joel E. Denny as coauthor.
30207
30208 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30209
30210         update-copyright: fix bug for 2-digit last year and add tests
30211         * build-aux/update-copyright: Fix bug.
30212         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30213         specified.
30214         * modules/update-copyright-tests: New
30215         * tests/test-update-copyright.sh: New.
30216
30217 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30218
30219         update-copyright: handle leading tabs in line prefix
30220         * build-aux/update-copyright: Count leading tabs as 8 spaces
30221         when computing margin.  This helps with the formatting of
30222         ChangeLogs, for example.
30223         Fix documentation a little.
30224
30225 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30226
30227         update-copyright: support EOL=\r\n
30228         * build-aux/update-copyright: Implement that.
30229
30230 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30231
30232         update-copyright: automatically format copyright statements
30233         * build-aux/update-copyright: Implement that.
30234         Also, be a little more predictable and safer by always failing
30235         when the full copyright format is not perfectly recognized as an
30236         unbroken whole.  Discussed at
30237         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30238         Rewrite documentation.
30239
30240 2009-08-03  Bruno Haible  <bruno@clisp.org>
30241
30242         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30243
30244 2009-08-02  Bruno Haible  <bruno@clisp.org>
30245
30246         Tests for module 'uname'.
30247         * modules/uname-tests: New file.
30248         * tests/test-uname.c: New file.
30249
30250         New module 'uname'.
30251         * lib/uname.c: New file.
30252         * m4/uname.m4: New file.
30253         * modules/uname: New file.
30254         * doc/posix-functions/uname.texi: Mention the new module.
30255
30256 2009-08-02  Bruno Haible  <bruno@clisp.org>
30257
30258         Tests for module 'sys_utsname'.
30259         * modules/sys_utsname-tests: New file.
30260         * tests/test-sys_utsname.c: New file.
30261
30262         New module 'sys_utsname'.
30263         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30264         * m4/sys_utsname_h.m4: New file.
30265         * modules/sys_utsname: New file.
30266         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30267
30268 2009-08-02  Bruno Haible  <bruno@clisp.org>
30269
30270         Implicitly initialize the sockets library.
30271         * lib/gethostname.c: Include sockets.h.
30272         (rpl_gethostname): Invoke gl_sockets_startup.
30273         * lib/socket.c: Include sockets.h.
30274         (rpl_socket): Invoke gl_sockets_startup.
30275         * modules/gethostname (Depends-on): Add sockets.
30276         * modules/socket (Depends-on): Likewise.
30277         * tests/test-poll.c: Don't include sockets.h.
30278         (main): Don't invoke gl_sockets_startup.
30279         * tests/test-select.c: Don't include sockets.h.
30280         (main): Don't invoke gl_sockets_startup.
30281
30282 2009-08-02  Bruno Haible  <bruno@clisp.org>
30283
30284         Allow multiple calls to gl_sockets_startup.
30285         * lib/sockets.c (initialized_sockets_version): New variable.
30286         (gl_sockets_startup): Do nothing if already called for this or a higher
30287         version.
30288         (gl_sockets_cleanup): Reset initialized_sockets_version.
30289
30290 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30291
30292         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30293         different project/version.
30294
30295 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30296             Bruno Haible  <bruno@clisp.org>
30297
30298         Tests for module 'pipe-filter-gi'.
30299         * modules/pipe-filter-gi-tests: New file.
30300         * tests/test-pipe-filter-gi1.sh: New file.
30301         * tests/test-pipe-filter-gi1.c: New file.
30302         * tests/test-pipe-filter-gi2.sh: New file.
30303         * tests/test-pipe-filter-gi2-main.c: New file.
30304         * tests/test-pipe-filter-gi2-child.c: New file.
30305
30306         New module 'pipe-filter-gi'.
30307         * lib/pipe-filter-gi.c: New file.
30308         * modules/pipe-filter-gi: New file.
30309
30310 2009-08-02  Bruno Haible  <bruno@clisp.org>
30311             Paolo Bonzini  <bonzini@gnu.org>
30312
30313         Tests for module 'pipe-filter-ii'.
30314         * modules/pipe-filter-ii-tests: New file.
30315         * tests/test-pipe-filter-ii1.sh: New file.
30316         * tests/test-pipe-filter-ii1.c: New file.
30317         * tests/test-pipe-filter-ii2.sh: New file.
30318         * tests/test-pipe-filter-ii2-main.c: New file.
30319         * tests/test-pipe-filter-ii2-child.c: New file.
30320
30321         New module 'pipe-filter-ii'.
30322         * lib/pipe-filter.h: New file.
30323         * lib/pipe-filter-ii.c: New file.
30324         * lib/pipe-filter-aux.h: New file.
30325         * modules/pipe-filter-ii: New file.
30326
30327 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30328
30329         * lib/gc-libgcrypt.c: Change copyright to FSF.
30330         * lib/gc-gnulib.c: Likewise.
30331
30332 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30333
30334         * lib/gethostname.c: Include limits.h.
30335
30336 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30337             Bruno Haible  <bruno@clisp.org>
30338
30339         Ensure HOST_NAME_MAX as part of the gethostname module.
30340         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30341         define also HOST_NAME_MAX.
30342         * tests/test-gethostname.c: Include <limits.h>.
30343         (main): Check also HOST_NAME_MAX.
30344         * doc/posix-headers/limits.texi: Document the mingw problem.
30345
30346 2009-08-02  Bruno Haible  <bruno@clisp.org>
30347
30348         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30349         Add comments.
30350
30351 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30352
30353         * lib/gethostname.c: Add Windows wrapper.
30354         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30355         * modules/gethostname: Depend on sys_socket & errno, for also
30356         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30357         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30358
30359 2009-07-31  Jim Meyering  <meyering@redhat.com>
30360
30361         getloadavg: fix symbol name in comment
30362         * lib/getloadavg.c: Correct a typo I introduced when adding
30363         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30364         Matt Kraai spotted the problem.
30365
30366 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30367
30368         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30369         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30370         code also if ! defined N_NAME_POINTER.
30371         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30372         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30373         but the n_name member is a 12-byte array.
30374
30375 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30376
30377         update-copyright: generalize comment handling
30378         * build-aux/update-copyright: Handle copyright statements
30379         within more comment styles.
30380         Document usage.
30381         Report any file with an external copyright holder or parse failure.
30382
30383 2009-07-29  Jim Meyering  <meyering@redhat.com>
30384
30385         mktime: correct setting of REPLACE_MKTIME
30386         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30387
30388         update-copyright: new module
30389         * modules/update-copyright: New file.
30390         * build-aux/update-copyright: New file.
30391         * MODULES.html.sh (maint+release support): Add update-copyright.
30392
30393 2009-07-27  Bruno Haible  <bruno@clisp.org>
30394
30395         Fix compilation error when <ctime> is used and mktime is replaced.
30396         * lib/time.in.h (mktime): New declaration.
30397         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30398         REPLACE_MKTIME instead of defining mktime in config.h.
30399         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30400         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30401         Reported by Ross McFarland <rwmcfa1@neces.com>.
30402
30403 2009-07-27  Bruno Haible  <bruno@clisp.org>
30404
30405         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30406         Reported by Matt Kraai <mkraai@beckman.com>.
30407
30408 2009-07-25  Jim Meyering  <meyering@redhat.com>
30409
30410         maint.mk: avoid warnings about missing files
30411         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30412         diagnostic when .prev-version does not exist.
30413         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30414         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30415         nonexistent cfg.mk.
30416         Suggestions from Simon Josefsson.
30417
30418 2009-07-25  Bruno Haible  <bruno@clisp.org>
30419
30420         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30421         defined as macros. Needed on QNX 6.4.1.
30422         Reported by Matt Kraai <mkraai@beckman.com>.
30423
30424 2009-07-23  Jim Meyering  <meyering@redhat.com>
30425
30426         maint.mk: invoke "make dist" with a working value of XZ_OPT
30427         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30428
30429 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30430
30431         Make fseeko.c compile on QNX.
30432         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30433
30434 2009-07-22  Peter Simons  <simons@cryp.to>
30435
30436         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30437         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30438         * lib/md4.h: Likewise.
30439         * lib/md5.h: Likewise.
30440         * lib/sha1.h: Likewise.
30441         * lib/sha256.h: Likewise.
30442         * lib/sha512.h: Likewise.
30443
30444         tests-sha1: don't assign literal string to 'char *' variable
30445         * tests/test-sha1.c (main): Declare locals with "const" to match
30446         attributes of the right hand side.
30447
30448 2009-07-21  Eric Blake  <ebb9@byu.net>
30449
30450         dup2: fix more mingw problems
30451         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30452         fd to itself.
30453         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30454         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30455         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30456         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30457         care of mingw bugs.
30458
30459 2009-07-21  Jim Meyering  <meyering@redhat.com>
30460
30461         vc-list-files: avoid failure when /bin/sh is dash
30462         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30463         On some Debian based systems, /bin/sh is a symlink to dash, and running
30464         this command would omit the "/" following each 'tests' prefix:
30465           dash -x build-aux/vc-list-files -C . tests
30466         That is because bash and dash work differently:
30467           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30468           bash ok
30469           dash odd
30470
30471 2009-07-21  Eric Blake  <ebb9@byu.net>
30472
30473         dup2-tests: test previous patch
30474         * modules/dup2-tests: New file.
30475         * tests/test-dup2.c: Likewise.
30476         * tests/test-open.c (main): Avoid unspecified behavior.
30477         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30478         test.
30479
30480         dup2: work around mingw and cygwin 1.5 bug
30481         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30483         * modules/unistd (Makefile.am): Substitute it.
30484         * lib/unistd.in.h (dup2): Declare the replacement.
30485         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30486         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30487         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30488         * modules/execute (Depends-on): Add dup2.
30489         * modules/fseterr (Depends-on): Likewise.
30490         * modules/pipe (Depends-on): Likewise.
30491         * modules/posix_spawn-internal (Depends-on): Likewise.
30492
30493 2009-07-21  Bruno Haible  <bruno@clisp.org>
30494
30495         * modules/.gitattributes: New file.
30496
30497 2009-07-20  Bruno Haible  <bruno@clisp.org>
30498
30499         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30500         (main): Use it.
30501
30502 2009-07-20  Eric Blake  <ebb9@byu.net>
30503
30504         test-pipe: make a bit more robust.
30505         * tests/test-pipe.c (myerr): Allow error messages regardless of
30506         what we do to stderr.
30507         (test_pipe): Rearrange to avoid deadlock.
30508         (child_main): Try a larger read, to ensure we avoided deadlock.
30509         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30510         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30511         if misused.
30512
30513 2009-07-19  Jim Meyering  <meyering@redhat.com>
30514
30515         fts: avoid false-positive cycle-detection
30516         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30517         for each new command line argument.
30518
30519 2009-07-19  Bruno Haible  <bruno@clisp.org>
30520
30521         Fix build error on mingw with the modules sys_select and unistd.
30522         * modules/acl-tests (Depends-on): Add close.
30523         * modules/binary-io-tests (Depends-on): Likewise.
30524         * modules/closein-tests (Depends-on): Likewise.
30525         * modules/flock-tests (Depends-on): Likewise.
30526         * modules/fsync-tests (Depends-on): Likewise.
30527         * modules/lseek-tests (Depends-on): Likewise.
30528         * modules/pipe-tests (Depends-on): Likewise.
30529         * modules/posix_spawn-tests (Depends-on): Likewise.
30530         * modules/posix_spawnp-tests (Depends-on): Likewise.
30531         * modules/stat-time-tests (Depends-on): Likewise.
30532         * modules/yesno-tests (Depends-on): Likewise.
30533
30534 2009-07-19  Bruno Haible  <bruno@clisp.org>
30535
30536         Unify conditionals.
30537         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30538         macros, not at the compiler macros.
30539         * lib/pipe.c: Likewise.
30540         * lib/execute.c: Likewise.
30541         * lib/spawni.c: Likewise.
30542
30543 2009-07-19  Bruno Haible  <bruno@clisp.org>
30544
30545         Fix handling of closed stdin/stdout/stderr on mingw.
30546         * lib/w32spawn.h: Include unistd.h.
30547         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30548         file descriptor with O_NOINHERIT flag.
30549         (fd_safer_noinherit): New function, based on fd-safer.c.
30550         (dup_safer_noinherit): New function, based on dup-safer.c.
30551         (undup_safer_noinherit): New function.
30552         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30553         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30554         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30555         instead of fd_safer.
30556         * tests/test-pipe.c: Include <windows.h>.
30557         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30558         result.
30559
30560         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30561         from main.
30562         (test_pipe): Pass an extra argument for disambiguation.
30563         (main): Invoke parent_main or child_main.
30564
30565         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30566         consistently.
30567
30568 2009-07-18  Eric Blake  <ebb9@byu.net>
30569
30570         test-pipe: fix mingw build
30571         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30572
30573 2009-07-18  Bruno Haible  <bruno@clisp.org>
30574
30575         * modules/pipe-tests (Makefile.am): Fix typo.
30576
30577 2009-07-18  Eric Blake  <ebb9@byu.net>
30578
30579         error: fix mingw build
30580         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30581         Reported by Bruno Haible.
30582
30583         error: avoid undefined use of stdout
30584         * lib/error.c (error, error_at_line): Check that fd 1 is open
30585         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30586         is handling faults and the close_stdout module wants to report the
30587         detection of closed stdout as an error.
30588
30589 2009-07-17  Eric Blake  <ebb9@byu.net>
30590
30591         pipe: be robust in face of closed fds
30592         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30593         should cause child to misbehave.
30594         * modules/pipe-tests: New module.
30595         * tests/test-pipe.c: New file.
30596         * tests/test-pipe.sh: New file.
30597         Reported by Akim Demaille.
30598
30599 2009-07-14  Bruno Haible  <bruno@clisp.org>
30600
30601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30602         Reported by anonymous kc.
30603
30604 2009-07-07  Jim Meyering  <meyering@redhat.com>
30605
30606         maint.mk: don't look for translatable strings in *.m4 or *.mk
30607         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30608         when searching for translatable strings.
30609
30610 2009-07-05  Jim Meyering  <meyering@redhat.com>
30611
30612         remove superfluous parentheses in STREQ definition
30613         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30614         * lib/getugroups.c (STREQ): Likewise.
30615         * lib/fnmatch.c (STREQ): Likewise.
30616         Spotted by Bruno Haible.
30617
30618 2009-07-04  Jim Meyering  <meyering@redhat.com>
30619
30620         argv-iter: new module
30621         * MODULES.html.sh: Add argv-iter.
30622         * lib/argv-iter.c, lib/argv-iter.h: New files.
30623         * modules/argv-iter: New file.
30624         * modules/argv-iter-tests: New file.
30625         * tests/test-argv-iter.c: Test it.
30626
30627 2009-07-04  Bruno Haible  <bruno@clisp.org>
30628
30629         Fix assertion.
30630         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30631         contains more exact copies of a given entry than file2, leave the extra
30632         copies unpaired rather than aborting.
30633         Reported by Eric Blake.
30634
30635 2009-07-02  Bruno Haible  <bruno@clisp.org>
30636
30637         Speedup git-merge-changelog for git cherry-pick.
30638         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30639         (entries_mapping_get): New function, extracted from compute_mapping.
30640         (entries_mapping_reverse_get): New function.
30641         (compute_mapping): Add a 'full' argument. Return the result in a
30642         'struct entries_mapping'.
30643         (main): Update. Access the mappings through entries_mapping_get.
30644         Reported by Eric Blake.
30645
30646 2009-07-02  Bruno Haible  <bruno@clisp.org>
30647
30648         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30649         best_i.
30650
30651 2009-07-02  Bruno Haible  <bruno@clisp.org>
30652
30653         Speed up approximate search for matching ChangeLog entries.
30654         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30655         argument. Call fstrcmp_bounded instead of fstrcmp.
30656         (compute_mapping, try_split_merged_entry, main): Update callers.
30657
30658 2009-07-02  Bruno Haible  <bruno@clisp.org>
30659
30660         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30661
30662 2009-06-30  Bruno Haible  <bruno@clisp.org>
30663
30664         Reduce the number of uc_is_cased calls.
30665         * lib/unicase.h (casing_suffix_context_t): Add
30666         'first_char_except_ignorable' field.
30667         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30668         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30669         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30670         Update initializer.
30671         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30672         case-ignorable characters.
30673         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30674         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30675         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30676         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30677         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30678
30679 2009-06-30  Bruno Haible  <bruno@clisp.org>
30680
30681         Tests for module 'unicase/ignorable'.
30682         * modules/unicase/ignorable-tests: New file.
30683         * tests/unicase/test-ignorable.c: New file, generated by
30684         gen-uni-tables.
30685
30686         Tests for module 'unicase/cased'.
30687         * modules/unicase/cased-tests: New file.
30688         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30689         * tests/unicase/test-predicate-part1.h: New file, derived from
30690         tests/unictype/test-predicate-part1.h.
30691         * tests/unicase/test-predicate-part2.h: New file, same as
30692         tests/unictype/test-predicate-part2.h.
30693
30694         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30695         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30696         (output_casing_properties): New function.
30697         (main): Call it.
30698         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30699         * lib/unicase/cased.c: Include unictype/bitmap.h.
30700         (uc_is_cased): Define through a bitmap lookup.
30701         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30702         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30703         (uc_is_case_ignorable): Define through a bitmap lookup.
30704         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30705         lib/unictype/bitmap.h.
30706         (Depends-on): Add inline. Clean up.
30707         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30708         lib/unictype/bitmap.h.
30709         (Depends-on): Add inline. Clean up.
30710         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30711         recognition.
30712         * tests/unicase/test-u16-tolower.c (main): Likewise.
30713         * tests/unicase/test-u32-tolower.c (main): Likewise.
30714
30715 2009-06-30  Bruno Haible  <bruno@clisp.org>
30716
30717         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30718         * lib/unicase/u16-casemap.c: Likewise.
30719         * lib/unicase/u32-casemap.c: Likewise.
30720
30721 2009-06-29  Bruno Haible  <bruno@clisp.org>
30722
30723         Define u32_casefold as a wrapper around u32_ct_casefold.
30724         * lib/unicase/u32-casefold.c: Update.
30725         * modules/unicase/u32-casefold (Depends-on): Add
30726         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30727         unicase/empty-suffix-context. Clean up.
30728
30729         Define u16_casefold as a wrapper around u16_ct_casefold.
30730         * lib/unicase/u16-casefold.c: Update.
30731         * modules/unicase/u16-casefold (Depends-on): Add
30732         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30733         unicase/empty-suffix-context. Clean up.
30734
30735         Define u8_casefold as a wrapper around u8_ct_casefold.
30736         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30737         * lib/unicase/u8-casefold.c: Update.
30738         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30739         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30740
30741         Define u32_totitle as a wrapper around u32_ct_totitle.
30742         * lib/unicase/u32-totitle.c: Update.
30743         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30744         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30745
30746         Define u16_totitle as a wrapper around u16_ct_totitle.
30747         * lib/unicase/u16-totitle.c: Update.
30748         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30749         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30750
30751         Define u8_totitle as a wrapper around u8_ct_totitle.
30752         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30753         functions.
30754         (FUNC): Delegate to U_CT_TOTITLE.
30755         * lib/unicase/u8-totitle.c: Update.
30756         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30757         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30758
30759         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30760         invocation.
30761         * modules/unicase/u32-tolower (Depends-on): Add
30762         unicase/empty-prefix-context, unicase/empty-suffix-context.
30763
30764         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30765         invocation.
30766         * modules/unicase/u16-tolower (Depends-on): Add
30767         unicase/empty-prefix-context, unicase/empty-suffix-context.
30768
30769         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30770         * modules/unicase/u8-tolower (Depends-on): Add
30771         unicase/empty-prefix-context, unicase/empty-suffix-context.
30772
30773         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30774         invocation.
30775         * modules/unicase/u32-toupper (Depends-on): Add
30776         unicase/empty-prefix-context, unicase/empty-suffix-context.
30777
30778         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30779         invocation.
30780         * modules/unicase/u16-toupper (Depends-on): Add
30781         unicase/empty-prefix-context, unicase/empty-suffix-context.
30782
30783         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30784         * modules/unicase/u8-toupper (Depends-on): Add
30785         unicase/empty-prefix-context, unicase/empty-suffix-context.
30786
30787         New module 'unicase/u32-ct-casefold'.
30788         * lib/unicase/u32-ct-casefold.c: New file.
30789         * modules/unicase/u32-ct-casefold: New file.
30790
30791         New module 'unicase/u16-ct-casefold'.
30792         * lib/unicase/u16-ct-casefold.c: New file.
30793         * modules/unicase/u16-ct-casefold: New file.
30794
30795         New module 'unicase/u8-ct-casefold'.
30796         * lib/unicase/u8-ct-casefold.c: New file.
30797         * lib/unicase/u-ct-casefold.h: New file, derived from
30798         lib/unicase/u-casefold.h.
30799         * modules/unicase/u8-ct-casefold: New file.
30800
30801         New module 'unicase/u32-ct-totitle'.
30802         * lib/unicase/u32-ct-totitle.c: New file.
30803         * modules/unicase/u32-ct-totitle: New file.
30804
30805         New module 'unicase/u16-ct-totitle'.
30806         * lib/unicase/u16-ct-totitle.c: New file.
30807         * modules/unicase/u16-ct-totitle: New file.
30808
30809         New module 'unicase/u8-ct-totitle'.
30810         * lib/unicase/u8-ct-totitle.c: New file.
30811         * lib/unicase/u-ct-totitle.h: New file, derived from
30812         lib/unicase/u-totitle.h.
30813         * modules/unicase/u8-ct-totitle: New file.
30814
30815         New module 'unicase/u32-ct-tolower'.
30816         * lib/unicase/u32-ct-tolower.c: New file.
30817         * modules/unicase/u32-ct-tolower: New file.
30818
30819         New module 'unicase/u16-ct-tolower'.
30820         * lib/unicase/u16-ct-tolower.c: New file.
30821         * modules/unicase/u16-ct-tolower: New file.
30822
30823         New module 'unicase/u8-ct-tolower'.
30824         * lib/unicase/u8-ct-tolower.c: New file.
30825         * modules/unicase/u8-ct-tolower: New file.
30826
30827         New module 'unicase/u32-ct-toupper'.
30828         * lib/unicase/u32-ct-toupper.c: New file.
30829         * modules/unicase/u32-ct-toupper: New file.
30830
30831         New module 'unicase/u16-ct-toupper'.
30832         * lib/unicase/u16-ct-toupper.c: New file.
30833         * modules/unicase/u16-ct-toupper: New file.
30834
30835         New module 'unicase/u8-ct-toupper'.
30836         * lib/unicase/u8-ct-toupper.c: New file.
30837         * modules/unicase/u8-ct-toupper: New file.
30838
30839         Add context arguments to u*_casemap functions.
30840         * lib/unicase/unicasemap.h: Include unicase.h.
30841         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30842         suffix_context arguments.
30843         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30844         functions.
30845         (FUNC): Add prefix_context and suffix_context arguments. Use
30846         uc_is_cased and uc_is_case_ignorable.
30847         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30848         * lib/unicase/u16-casemap.c: Likewise.
30849         * lib/unicase/u32-casemap.c: Likewise.
30850         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30851         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30852         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30853         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30854         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30855         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30856
30857         New module 'unicase/u32-suffix-context'.
30858         * lib/unicase/u32-suffix-context.c: New file.
30859         * modules/unicase/u32-suffix-context: New file.
30860
30861         New module 'unicase/u16-suffix-context'.
30862         * lib/unicase/u16-suffix-context.c: New file.
30863         * modules/unicase/u16-suffix-context: New file.
30864
30865         New module 'unicase/u8-suffix-context'.
30866         * lib/unicase/u8-suffix-context.c: New file.
30867         * lib/unicase/u-suffix-context.h: New file.
30868         * modules/unicase/u8-suffix-context: New file.
30869
30870         New module 'unicase/empty-suffix-context'.
30871         * lib/unicase/empty-suffix-context.c: New file.
30872         * modules/unicase/empty-suffix-context: New file.
30873
30874         New module 'unicase/u32-prefix-context'.
30875         * lib/unicase/u32-prefix-context.c: New file.
30876         * modules/unicase/u32-prefix-context: New file.
30877
30878         New module 'unicase/u16-prefix-context'.
30879         * lib/unicase/u16-prefix-context.c: New file.
30880         * modules/unicase/u16-prefix-context: New file.
30881
30882         New module 'unicase/u8-prefix-context'.
30883         * lib/unicase/u8-prefix-context.c: New file.
30884         * lib/unicase/u-prefix-context.h: New file.
30885         * lib/unicase/context.h: New file.
30886         * modules/unicase/u8-prefix-context: New file.
30887
30888         New module 'unicase/empty-prefix-context'.
30889         * lib/unicase/empty-prefix-context.c: New file.
30890         * modules/unicase/empty-prefix-context: New file.
30891
30892         New module 'unicase/ignorable'.
30893         * lib/unicase/ignorable.c: New file.
30894         * modules/unicase/ignorable: New file.
30895
30896         New module 'unicase/cased'.
30897         * lib/unicase/caseprop.h: New file.
30898         * lib/unicase/cased.c: New file.
30899         * modules/unicase/cased: New file.
30900
30901         New functions for case mapping of substrings.
30902         * lib/unicase.h (casing_prefix_context_t): New type.
30903         (unicase_empty_prefix_context): New variable.
30904         (u8_casing_prefix_context, u16_casing_prefix_context,
30905         u32_casing_prefix_context, u8_casing_prefixes_context,
30906         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30907         declarations.
30908         (casing_suffix_context_t): New type.
30909         (unicase_empty_suffix_context): New variable.
30910         (u8_casing_suffix_context, u16_casing_suffix_context,
30911         u32_casing_suffix_context, u8_casing_suffixes_context,
30912         u16_casing_suffixes_context, u32_casing_suffixes_context,
30913         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30914         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30915         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30916         declarations.
30917
30918 2009-06-28  Jim Meyering  <meyering@redhat.com>
30919
30920         boostrap: indent only with spaces
30921         * build-aux/bootstrap: Indent only with spaces, never TABs.
30922
30923         bootstrap: split long lines
30924         * build-aux/bootstrap: Keep line length < 80.
30925
30926         bootstrap: sync from coreutils
30927         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30928         just as autoreconf does.  Verify a list of prerequisite
30929         package-name,version-number pairs if defined in bootstrap.conf.
30930         Refer to README-prereq, if prerequisites are not satisfied.
30931
30932 2009-06-27  Eric Blake  <ebb9@byu.net>
30933
30934         tests: add test for bogus NULL definition
30935         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30936         * tests/test-stdlib.c: Likewise.
30937         * tests/test-string.c: Likewise.
30938         * tests/test-locale.c: Likewise.
30939         * tests/test-unistd.c: Likewise.
30940         * modules/stdio-tests (Depends-on): Add verify.
30941         * modules/stdlib-tests (Depends-on): Likewise.
30942         * modules/string-tests (Depends-on): Likewise.
30943         * modules/locale-tests (Depends-on): Likewise.
30944         * modules/unistd-tests (Depends-on): Likewise.
30945
30946 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30947
30948         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30949         self-explaining comment.
30950         * m4/selinux-selinux-h: Update serial.
30951         (gl_LIBSELINUX): New macro, adding a warning for missing development
30952         packages to code extracted from...
30953         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30954         Add warning for missing development packages here, too.
30955
30956 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30957
30958         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30959
30960 2009-06-25  Eric Blake  <ebb9@byu.net>
30961
30962         version-etc: fix regression
30963         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30964         gcc.
30965         (version_etc): Use it, to catch bugs with trailing NULL.
30966         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30967         (version_etc_va): Fix logic bug.
30968         * modules/version-etc-tests: Add test.
30969         * tests/test-version-etc.c: New file.
30970         * tests/test-version-etc.sh: Likewise.
30971
30972 2009-06-25  Sam Steingold  <sds@gnu.org>
30973
30974         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30975         mbtowc declaration.
30976
30977 2009-06-25  Eric Blake  <ebb9@byu.net>
30978
30979         fpurge: migrate into <stdio.h>
30980         * lib/fpurge.h: Delete...
30981         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30982         * lib/fpurge.c (fpurge): Change declaring header.
30983         * modules/fpurge (Files): Drop deleted file.
30984         (Depends-on): Add stdio.
30985         (configure.ac): Set witness.
30986         * modules/stdio (Makefile.am): Support fpurge macros.
30987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30988         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30989         * lib/fflush.c: Update client.
30990         * tests/test-fpurge.c: Likewise.
30991         * NEWS: Mention the change.
30992
30993 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30994
30995         * lib/argp-version-etc.c (program_authors): Add const
30996         qualifier.
30997         * lib/version-etc.c: Fix typos in the comments.
30998         * modules/argp-version-etc: Depends on version-etc.
30999
31000 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31001
31002         argp-version-etc: new module.
31003
31004         * lib/argp-version-etc.c: New file.
31005         * lib/argp-version-etc.h: New file.
31006         * modules/argp-version-etc: New file.
31007         * modules/argp-version-etc-tests: New file.
31008         * tests/test-argp-version-etc.c: New test.
31009         * tests/test-argp-version-etc-1.sh: New test.
31010
31011 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31012
31013         Provide additional interfaces and documentation for version-etc
31014         module.
31015
31016         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31017         interfaces.
31018         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31019         prototypes.
31020
31021 2009-06-24  Bruno Haible  <bruno@clisp.org>
31022
31023         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31024         HAVE_LIB${NAME} macro.
31025         Reported by Sam Steingold <sds@gnu.org>.
31026
31027 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31028
31029         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31030         needed.
31031
31032 2009-06-21  Bruno Haible  <bruno@clisp.org>
31033
31034         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31035         work.
31036         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31037         together with LIB${NAME}, LTLIB${NAME}.
31038         Reported by Sam Steingold <sds@gnu.org>.
31039
31040 2009-06-20  Jim Meyering  <meyering@redhat.com>
31041
31042         tests: make sc_require_test_exit_idiom more generic
31043         * top/maint.mk (Exit_witness_file): New overridable variable.
31044         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31045         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31046
31047 2009-06-19  Jim Meyering  <meyering@redhat.com>
31048
31049         hash: reverse order of src/dst parameters in an internal interface
31050         * lib/hash.c (transfer_entries): Reverse order of parameters to
31051         put DST before SRC.  Adjust callers.
31052
31053         tests: test-hash: avoid wholesale duplication
31054         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31055         Instead, use a loop and add a single conditional.
31056
31057         tests: test-hash: allow seed selection via a command line argument
31058         * tests/test-hash.c (get_seed): New function.
31059         (main): Use it.
31060
31061 2009-06-19  Eric Blake  <ebb9@byu.net>
31062
31063         hash: avoid memory leak on allocation failure
31064         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31065         failure.  Factor repeated algorithm...
31066         (transfer_entries): ...into new helper routine.
31067         (hash_delete): React to hash_rehash return value.
31068
31069         hash: reduce memory pressure in hash_rehash no-op case
31070         * lib/hash.c (next_prime): Avoid overflow.
31071         (hash_initialize): Factor bucket size computation...
31072         (compute_bucket_size): ...into new helper function.
31073         (hash_rehash): Use new function and open coding to reduce memory
31074         pressure, and avoid a memory leak in USE_OBSTACK code.
31075         Reported by Jim Meyering.
31076
31077 2009-06-18  Eric Blake  <ebb9@byu.net>
31078
31079         hash: make rotation more obvious
31080         * modules/hash (Depends-on): Add bitrotate and stdint.
31081         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31082         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31083         (SIZE_MAX): Rely on headers for definition.
31084         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31085         (raw_hasher): Use rotr_sz.
31086         Suggested by Jim Meyering.
31087
31088         hash: fix memory leak in last patch
31089         * lib/hash.c (hash_rehash): Avoid memory leak.
31090
31091         hash: avoid no-op rehashing
31092         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31093
31094         hash: provide default callback functions
31095         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31096         (hash_initialize): Use them as defaults.
31097         * tests/test-hash.c (main): Test this.
31098
31099         hash: minor optimization
31100         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31101         when possible.
31102         (hash_initialize): Document this promise.
31103         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31104         * tests/test-hash.c (hash_compare_strings): Test this.
31105
31106 2009-06-18  Bruno Haible  <bruno@clisp.org>
31107
31108         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31109         going to be replaced anyway.
31110
31111 2009-06-18  Bruno Haible  <bruno@clisp.org>
31112
31113         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31114         in one place.
31115         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31116         be replaced anyway.
31117
31118 2009-06-18  Eric Blake  <ebb9@byu.net>
31119
31120         hash: check for resize before insertion
31121         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31122         threshold before insertion, so that a pathological hash_rehash
31123         that fills every bucket can still trigger another rehash.
31124
31125 2009-06-18  Jim Meyering  <meyering@redhat.com>
31126
31127         hash-tests: add a loop around the small tests
31128         * tests/test-hash.c (main): Repeat small tests with selected
31129         small initial table sizes.
31130
31131 2009-06-17  Eric Blake  <ebb9@byu.net>
31132
31133         hash: minor cleanups
31134         * lib/hash.h (hash_entry): Make opaque, by moving...
31135         * lib/hash.c (hash_entry): ...here.
31136         (hash_insert): Clarify restrictions on what can be inserted.
31137         (hash_get_next): Clarify when it is safe to remove an element
31138         during traversal.
31139         (check_tuning): Skip verification when tuning is known safe.
31140         (hash_initialize): Clarify restrictions on tuning.
31141
31142 2009-06-17  Jim Meyering  <jim@meyering.net>
31143         and Eric Blake  <ebb9@byu.net>
31144
31145         hash-tests: new module
31146         * modules/hash-tests: New file.
31147         * tests/test-hash.c: New file.
31148
31149 2009-06-17  Eric Blake  <ebb9@byu.net>
31150
31151         strstr-simple: document new module
31152         * MODULES.html.sh: Document new module.
31153
31154         strstr, strcasestr: replace on platforms with broken memchr
31155         * modules/strstr: Split into...
31156         * modules/strstr-simple: ...new module that does not care about
31157         performance, but does care about glibc bug.
31158         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31159         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31160         if platform memchr is broken, per Debian bug 521737.
31161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31162         memchr.
31163         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31164         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31165         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31166         * modules/mountlist (Depends-on): Add strstr-simple.
31167         * modules/gen-uni-tables (Depends-on): Likewise.
31168         * modules/argz (Depends-on): Add strstr.
31169
31170 2009-06-17  Bruno Haible  <bruno@clisp.org>
31171
31172         * modules/posix_spawn-internal (Depends-on): Add errno.
31173
31174 2009-06-17  Bruno Haible  <bruno@clisp.org>
31175
31176         Define missing ESTALE on Interix 3.5.
31177         * lib/errno.in.h (ESTALE): Assign a value if missing.
31178         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31179         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31180         missing.
31181         * doc/posix-headers/errno.texi: Mention the Interix bug.
31182         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31183
31184 2009-06-15  Eric Blake  <ebb9@byu.net>
31185
31186         memchr, memchr2: add valgrind exception
31187         * lib/memchr.valgrind: New file.
31188         * lib/memchr2.valgrind: New file.
31189         * modules/memchr (Files): Distribute valgrind file.
31190         * modules/memchr2 (Files): Likewise.
31191
31192         docs: memchr is no longer obsolete
31193         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31194         * lib/string.in.h (memchr): Simplify logic.
31195
31196 2009-06-14  Jim Meyering  <meyering@redhat.com>
31197
31198         link-follow: fix the "checking..." message to not mention trailing slash
31199         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31200         never considered trailing slashes.
31201
31202 2009-06-14  Bruno Haible  <bruno@clisp.org>
31203
31204         * m4/memchr.m4: Mention also the bug on IA-64.
31205         * doc/posix-functions/memchr.texi: Likewise.
31206
31207 2009-06-12  Eric Blake  <ebb9@byu.net>
31208
31209         memchr: detect broken x86_64 and alpha implementations
31210         * modules/memchr-tests (Depends-on): Move mmap detection...
31211         * modules/memchr (Depends-on): ...here.
31212         (configure.ac): Set indicator.
31213         * lib/string.in.h (memchr): Declare replacement.
31214         * modules/string (Makefile.am): Trigger replacement.
31215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31216         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31217         bugs.
31218         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31219         * modules/getpagesize (License): Relax license.
31220
31221 2009-06-11  Bruno Haible  <bruno@clisp.org>
31222
31223         * lib/idpriv.h: Add more references.
31224
31225 2009-06-08  Bruno Haible  <bruno@clisp.org>
31226
31227         Tests for module 'idpriv-droptemp'.
31228         * modules/idpriv-droptemp-tests: New file.
31229         * tests/test-idpriv-droptemp.sh: New file.
31230         * tests/test-idpriv-droptemp.su.sh: New file.
31231         * tests/test-idpriv-droptemp.c: New file.
31232
31233         New module 'idpriv-droptemp'.
31234         * lib/idpriv-droptemp.c: New file.
31235         * modules/idpriv-droptemp: New file.
31236
31237 2009-06-08  Bruno Haible  <bruno@clisp.org>
31238
31239         Tests for module 'idpriv-drop'.
31240         * modules/idpriv-drop-tests: New file.
31241         * tests/test-idpriv-drop.sh: New file.
31242         * tests/test-idpriv-drop.su.sh: New file.
31243         * tests/test-idpriv-drop.c: New file.
31244
31245         New module 'idpriv-drop'.
31246         * lib/idpriv.h: New file.
31247         * lib-idpriv-drop.c: New file.
31248         * m4/idpriv.m4: New file.
31249         * modules/idpriv-drop: New file.
31250
31251 2009-06-08  Bruno Haible  <bruno@clisp.org>
31252
31253         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31254         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31255         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31256         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31257         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31258         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31259         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31260
31261 2009-06-08  Eric Blake  <ebb9@byu.net>
31262
31263         test-strstr: use memory fence, when possible
31264         * tests/test-strstr.c (main): Use memory fence, in order to be
31265         more likely to trigger Debian bug 521737.
31266         * modules/strstr-tests (Files): Pull in additional files.
31267
31268         memchr: no longer obsolete, for wider field testing
31269         * modules/memchr (Status, Notice): Delete, this module is no
31270         longer obsolete.
31271         * modules/vasnprintf (Depends-on): Add memchr.
31272
31273 2009-06-07  Jim Meyering  <meyering@redhat.com>
31274
31275         hash: declare some functions with the warn_unused_result attribute
31276         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31277
31278 2009-06-07  Bruno Haible  <bruno@clisp.org>
31279
31280         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31281         Reported by Eric Blake.
31282
31283 2009-06-06  Eric Blake  <ebb9@byu.net>
31284
31285         test-alignof: fix typo with long double
31286         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31287         compiler error.
31288
31289 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31290
31291         Escape non-texinfo { and }s.
31292         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31293         markup error.
31294
31295 2009-06-04  Jim Meyering  <meyering@redhat.com>
31296
31297         gitlog-to-changelog: don't infloop on an empty commit log
31298         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31299         Reported by Boris Petersen <transacid@centerim.org>.
31300
31301 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31302
31303         version-etc: extend for packagers
31304         Add three new configure options, intended for packagers:
31305           --with-packager="packager name"
31306           --with-packager-version="packager-specific version"
31307           --with-packager-bug-reports="packager bug reporting"
31308         An example with coreutils:
31309           $ ./configure \
31310             --with-packager=Gentoo \
31311             --with-packager-bug-report=http://bugs.gentoo.org/ \
31312             --with-packager-version="patchset 1.6"
31313           $ ./src/ls --version | head -n2
31314           ls (GNU coreutils) 7.1-dirty
31315           Packaged by Gentoo (patchset 1.6)
31316         Note that the bug reporting info via --help doesn't show up because
31317         coreutils uses its own custom emit_bug_reporting_address() implementation
31318         in src/system.h.  If it didn't, it'd look like:
31319           $ ./src/ls --help | tail -n4
31320           Report bugs to <bug-coreutils@gnu.org>.
31321           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31322           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31323           General help using GNU software: <http://www.gnu.org/gethelp/>.
31324         * lib/version-etc.c: Print new information, if provided.
31325         * m4/version-etc.m4: New file.
31326         * modules/version-etc (Files): Add m4/version-etc.m4.
31327         (configure.ac): Add gl_VERSION_ETC.
31328
31329 2009-05-31  Bruno Haible  <bruno@clisp.org>
31330
31331         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31332         and 'int64_t'.
31333         * modules/alignof-tests (Dependencies): Add stdint.
31334         Reported by Eric Blake.
31335
31336 2009-05-31  Bruno Haible  <bruno@clisp.org>
31337
31338         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31339         restriction due to compiler bugs.
31340         Reported by Eric Blake.
31341
31342 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31343             Bruno Haible  <bruno@clisp.org>
31344
31345         Fix test-alignof failure.
31346         * lib/alignof.h (alignof_slot): New macro.
31347         (alignof_type): New macro, with the same semantics as the previous
31348         'alignof'.
31349         (alignof): Alias to alignof_slot.
31350         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31351         check that the results are usable as constant expressions.
31352
31353 2009-05-31  Bruno Haible  <bruno@clisp.org>
31354
31355         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31356         * tests/test-memchr.c (main): Check that memchr does not read past the
31357         first occurrence of the byte.
31358         * tests/test-strstr.c (main): Update comment.
31359         Suggested by Eric Blake.
31360
31361 2009-05-30  Bruno Haible  <bruno@clisp.org>
31362
31363         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31364         detail how to use dumpbin.
31365         Reported by David Byron <dbyron@dbyron.com>.
31366
31367 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31368
31369         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31370
31371 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31372
31373         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31374
31375 2009-05-28  Bruno Haible  <bruno@clisp.org>
31376
31377         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31378         build-aux/ files.
31379
31380 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31381
31382         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31383
31384 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31385
31386         * gnulib-tool (sed_transform_main_lib_file)
31387         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31388         regexps.
31389
31390 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31391
31392         * tests/test-strstr.c: Add another self-test.
31393         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31394         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31395
31396 2009-05-23  Bruno Haible  <bruno@clisp.org>
31397
31398         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31399         change.
31400
31401 2009-05-21  Bruno Haible  <bruno@clisp.org>
31402
31403         Simplify use of mode_t varargs.
31404         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31405         uses 'mode_t' or 'int'.
31406         * lib/openat.c (openat): Likewise.
31407         * lib/open-safer.c (open_safer): Likewise.
31408         * m4/mode_t.m4: New file.
31409         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31410         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31411         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31412         * modules/open (Files): Add m4/mode_t.m4.
31413         * modules/openat (Files): Likewise.
31414         * modules/fcntl-safer (Files): Likewise.
31415         Suggested by Eric Blake.
31416
31417 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31418
31419         * doc/glibc-functions/fallocate.texi: New file.
31420         * doc/gnulib.texi: Include it.
31421
31422 2009-05-21  Eric Blake  <ebb9@byu.net>
31423             Bruno Haible  <bruno@clisp.org>
31424
31425         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31426         invocations.
31427         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31428
31429 2009-05-21  Eric Blake  <ebb9@byu.net>
31430             Bruno Haible  <bruno@clisp.org>
31431
31432         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31433         include_next. Fix of 2008-11-20 commit.
31434         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31435         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31436         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31437         NEXT_MATH_H.
31438         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31439         instead of NEXT_MATH_H.
31440
31441 2009-05-21  Bruno Haible  <bruno@clisp.org>
31442
31443         Avoid redefinition warnings for SIZE_MAX.
31444         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31445         Reported by Simon Josefsson.
31446
31447 2009-05-21  Bruno Haible  <bruno@clisp.org>
31448
31449         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31450         AC_CACHE_VAL.
31451
31452 2009-05-20  Bruno Haible  <bruno@clisp.org>
31453
31454         Make zeroptr.h work on mingw.
31455         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31456         mprotect.
31457         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31458         * modules/memchr2-tests (configure.ac): Likewise.
31459         * modules/memcmp-tests (configure.ac): Likewise.
31460         * modules/memmem-tests (configure.ac): Likewise.
31461         * modules/memrchr-tests (configure.ac): Likewise.
31462         Reported by Simon Josefsson.
31463
31464 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31465
31466         * tests/test-glob.c: Include string.h for strcmp prototype.
31467
31468 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31469
31470         * modules/getdelim (Depends-on): Add explicit stdint, although it
31471         was implicitly already pulled in via realloc-posix.
31472         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31473
31474 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31475
31476         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31477         G. Christensen" <tgc@jupiterrise.com>.
31478         * m4/sys_socket_h.m4: Check for sa_family_t.
31479         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31480         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31481         * tests/test-sys_socket.c: Check that sa_family_t works.
31482
31483 2009-05-18  Eric Blake  <ebb9@byu.net>
31484
31485         maint.mk: allow gnulib_dir in VPATH build
31486         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31487
31488 2009-05-15  Jim Meyering  <meyering@redhat.com>
31489
31490         maint.mk: Give gnulib_dir a default definition.
31491         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31492         Thus, most packages no longer need to specify this variable in cfg.mk
31493
31494 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31495
31496         rename.m4: fix typos that would make non-mingw cross-configure fail
31497         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31498
31499 2009-05-13  Eric Blake  <ebb9@byu.net>
31500
31501         mmap-anon: avoid out-of-order autoconf expansion
31502         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31503         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31504         * modules/memchr-tests (Depends-on): Add extensions.
31505         * modules/memchr2-tests (Depends-on): Add extensions.
31506         * modules/memcmp-tests (Depends-on): Add extensions.
31507         * modules/memmem-tests (Depends-on): Add extensions.
31508         * modules/memrchr-tests (Depends-on): Add extensions.
31509
31510 2009-05-13  Bruno Haible  <bruno@clisp.org>
31511
31512         Make some tests ISO C 99 compliant.
31513         * tests/zerosize-ptr.h: New file.
31514         * tests/test-memchr.c: Include zerosize-ptr.h.
31515         (main): Use a zero-size object pointer instead of NULL.
31516         * tests/test-memchr2.c: Include zerosize-ptr.h.
31517         (main): Use a zero-size object pointer instead of NULL.
31518         * tests/test-memcmp.c: Include zerosize-ptr.h.
31519         (main): Use a zero-size object pointer instead of NULL.
31520         * tests/test-memmem.c: Include zerosize-ptr.h.
31521         (main): Use a zero-size object pointer instead of NULL.
31522         * tests/test-memrchr.c: Include zerosize-ptr.h.
31523         (main): Use a zero-size object pointer instead of NULL.
31524         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31525         m4/mmap-anon.m4.
31526         (Depends-on): Add getpagesize.
31527         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31528         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31529         m4/mmap-anon.m4.
31530         (Depends-on): Add getpagesize.
31531         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31532         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31533         m4/mmap-anon.m4.
31534         (Depends-on): Add getpagesize.
31535         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31536         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31537         m4/mmap-anon.m4.
31538         (Depends-on): Add getpagesize.
31539         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31540         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31541         m4/mmap-anon.m4.
31542         (Depends-on): Add getpagesize.
31543         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31544
31545 2009-05-12  Bruno Haible  <bruno@clisp.org>
31546
31547         Tests for module 'alignof'.
31548         * modules/alignof-tests: New file.
31549         * tests/test-alignof.c: New file.
31550
31551 2009-05-12  Bruno Haible  <bruno@clisp.org>
31552
31553         Fix alignof macro.
31554         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31555         vendor compilers that are always correct.
31556
31557 2009-05-12  Bruno Haible  <bruno@clisp.org>
31558
31559         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31560         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31561         not whether its fully works.
31562
31563 2009-05-12  Bruno Haible  <bruno@clisp.org>
31564
31565         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31566
31567 2009-05-12  Jim Meyering  <meyering@redhat.com>
31568
31569         * top/maint.mk: Adjust backslash alignment.
31570
31571 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31572
31573         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31574
31575 2009-05-11  Eric Blake  <ebb9@byu.net>
31576
31577         argp: avoid undefined behavior
31578         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31579         macros.
31580
31581 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31582
31583         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31584         user.name to prevent git commit from complaining.
31585
31586 2009-05-10  Bruno Haible  <bruno@clisp.org>
31587
31588         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31589         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31590         it rewrites every file name only once.
31591         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31592
31593 2009-05-08  Bruno Haible  <bruno@clisp.org>
31594
31595         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31596         instead of 'max'.
31597
31598 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31599
31600         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31601         sockaddr_storage test.
31602
31603 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31604
31605         * modules/sys_socket (Makefile.am): Substitute
31606         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31607         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31608         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31609         * tests/test-sys_socket.c: Check sockaddr_storage.
31610
31611 2009-05-08  Bruno Haible  <bruno@clisp.org>
31612
31613         New module 'alignof'.
31614         * lib/alignof.h: New file.
31615         * modules/alignof: New file.
31616
31617 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31618             Bruno Haible  <bruno@clisp.org>
31619
31620         Fix test-file-has-acl on FreeBSD.
31621         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31622         mask is implicitly added.
31623         * tests/test-file-has-acl.c: Include <signal.h>.
31624         (main): Terminate the test after 5 seconds.
31625         * modules/acl-tests (configure.ac): Check for alarm function.
31626
31627 2009-05-04  Bruno Haible  <bruno@clisp.org>
31628
31629         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31631         * modules/errno (configure.ac): Drop AC_REQUIRE.
31632         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31633         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31634
31635 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31636
31637         * modules/glob-tests: New module.
31638         * tests/test-glob.c: Add.
31639
31640 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31641
31642         * modules/fnmatch-tests: New module.
31643         * tests/test-fnmatch.c: Add.
31644
31645 2009-05-04  Eric Blake  <ebb9@byu.net>
31646
31647         maint: make the new no-submodule-changes rule VPATH-safe
31648         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31649
31650 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31651             Bruno Haible  <bruno@clisp.org>
31652
31653         acl: Fix infinite loop on FreeBSD.
31654         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31655         of return value from acl_get_entry.
31656         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31657         Likewise.
31658
31659 2009-05-03  Bruno Haible  <bruno@clisp.org>
31660
31661         * lib/acl-internal.h (acl_entries): Clarify return value.
31662         * lib/acl_entries.c (acl_entries): Likewise.
31663
31664 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31665
31666         Bug fix in acl module.
31667         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31668
31669 2009-05-03  Bruno Haible  <bruno@clisp.org>
31670
31671         Create gperf-generated file in the source dir, not in the build dir.
31672         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31673         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31674         * modules/unicase/locale-language (unicase/locale-languages.h):
31675         Likewise.
31676         * modules/unicase/special-casing (unicase/special-casing-table.h):
31677         Likewise.
31678         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31679         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31680         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31681         Reported by Ralf Wildenhues.
31682
31683 2009-05-03  Bruno Haible  <bruno@clisp.org>
31684
31685         * modules/fnmatch (Description, configure.ac): Taken from
31686         fnmatch-posix.
31687         * modules/fnmatch-posix: Turn into a symbolic reference to the
31688         'fnmatch' module, and deprecate.
31689         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31690
31691 2009-05-03  Bruno Haible  <bruno@clisp.org>
31692
31693         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31694         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31695         Reported by Ralf Wildenhues.
31696
31697 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31698
31699         * m4/fnmatch.m4: Fix fnmatch re-define.
31700
31701 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31702
31703         priv-set: new module and tests; adapt write-any-file
31704         * lib/priv-set.c: New file.
31705         * lib/priv-set.h: New file.
31706         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31707         * lib/write-any-file.c: Simplify by using priv-set module.
31708         * m4/priv-set.m4: New file.
31709         * modules/priv-set: New file.
31710         * modules/unlinkdir: Add dependency on priv-set module.
31711         * modules/write-any-file: Likewise.
31712
31713         Tests for module 'priv-set'.
31714         * modules/priv-set-tests: New file.
31715         * tests/test-priv-set.c: New file.
31716
31717 2009-05-03  Jim Meyering  <meyering@redhat.com>
31718             Bruno Haible  <bruno@clisp.org>
31719
31720         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31721         use the converted UTF-8 variant of the name instead.
31722
31723 2009-05-03  Jim Meyering  <meyering@redhat.com>
31724
31725         tests: tighten some getdate tests
31726         * tests/test-getdate.c (main): Tighten tests: require equality,
31727         not just greater than.  Set TZ envvar to UTC0.
31728
31729 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31730
31731         getdate: correctly interpret "next monday" when run on a Monday
31732         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31733         that e.g., "next tues" (when run on a tuesday) results in a date
31734         that is one week in the future, and not today's date.
31735         I.e., add a week when the wday is the same as the current one.
31736         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31737         and earlier by Martin Bernreuther and Jan Minář.
31738         * tests/test-getdate.c (main): Check that "next DAY" is always in
31739         the future and that "last DAY" is always in the past.
31740
31741 2009-05-02  Jim Meyering  <meyering@redhat.com>
31742
31743         build: ensure that a release build fails when a submodule is unclean
31744         * top/maint.mk (no-submodule-changes): New rule.
31745         (alpha beta major): Depend on it.
31746
31747 2009-05-02  Bruno Haible  <bruno@clisp.org>
31748
31749         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31750         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31751         shell variable gl_fnmatch_required to detect which variant is
31752         requested.
31753         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31754         gl_FUNC_FNMATCH_POSIX.
31755         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31756         exclude fnmatch-posix.
31757
31758 2009-05-02  Bruno Haible  <bruno@clisp.org>
31759
31760         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31761         * modules/mbsrtowcs (License): Change to LGPLv2+.
31762         * modules/strnlen1 (License): Likewise.
31763         Reported by Simon Josefsson.
31764
31765 2009-05-02  Bruno Haible  <bruno@clisp.org>
31766
31767         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31768         "cross".
31769         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31770         gnulib-tool was called with option --source-base=lib.
31771
31772 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31773
31774         Use automake *-local hooks without commands, for extensibility.
31775         * modules/localcharset (Makefile.am): Rename install-exec-local
31776         rule to install-exec-localcharset, and make it a prerequisite of
31777         install-exec-local.  Likewise, rename the uninstall-local rule to
31778         uninstall-localcharset, and make it a prerequisite of the former.
31779
31780 2009-05-01  Bruno Haible  <bruno@clisp.org>
31781
31782         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31783         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31784         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31785         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31786         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31787         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31788         m4/locale-zh.m4, m4/codeset.m4.
31789
31790         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31791         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31792         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31793         m4/locale-zh.m4.
31794
31795         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31796         REPLACE_WCRTOMB if mbstate_t must be replaced.
31797         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31798         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31799
31800 2009-05-01  Bruno Haible  <bruno@clisp.org>
31801
31802         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31803         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31804         dngettext, dcngettext, textdomain, bindtextdomain,
31805         bind_textdomain_codeset): Undefine before redefining.
31806
31807 2009-04-30  Bruno Haible  <bruno@clisp.org>
31808
31809         Fix bug introduced on 2009-04-25.
31810         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31811         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31812         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31813         is defined.
31814         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31815         is defined.
31816         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31817         is defined.
31818         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31819
31820 2009-04-28  Bruno Haible  <bruno@clisp.org>
31821
31822         Comment tweaks.
31823         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31824         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31825         * lib/unicase.h (u*_casexfrm): Likewise.
31826         Reported by Paolo Bonzini.
31827
31828 2009-04-28  Bruno Haible  <bruno@clisp.org>
31829
31830         Fix a compilation error.
31831         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31832         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31833         Reported by Jim Meyering.
31834
31835 2009-04-27  Bruno Haible  <bruno@clisp.org>
31836
31837         New module 'libunistring'.
31838         * modules/libunistring: New file.
31839         * m4/libunistring.m4: New file.
31840         * MODULES.html.sh (Unicode string functions): Add it.
31841
31842 2009-04-27  Eric Blake  <ebb9@byu.net>
31843
31844         maint.mk: allow package-specific header to provide <config.h>
31845         * top/maint.mk (sc_require_config_h): New variable.
31846         (sc_require_config_h, sc_require_config_h_first): Use it.
31847
31848 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31849
31850         * top/maint.mk (sc_avoid_if_before_free): Except
31851         useless-if-before-free script.
31852
31853 2009-04-27  Eric Blake  <ebb9@byu.net>
31854
31855         maintainer-makefile: depend on all required helper scripts
31856         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31857         useless-if-before-free.
31858         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31859         version, rather than assuming gnulib checkout is available.
31860         Reported by Simen Josefsson.
31861
31862 2009-04-26  Bruno Haible  <bruno@clisp.org>
31863
31864         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31865         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31866         "../" or "..".
31867
31868 2009-04-26  Bruno Haible  <bruno@clisp.org>
31869
31870         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31871         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31872         AC_LIB_HAVE_LINKFLAGS.
31873
31874 2009-04-26  Bruno Haible  <bruno@clisp.org>
31875
31876         Simplify calling convention of u*_conv_from_encoding.
31877         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31878         u32_conv_from_encoding): Expect a resultbuf argument and return the
31879         result directly as a pointer.
31880         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31881         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31882         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31883         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31884         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31885         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31886         Update.
31887         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31888         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31889         * lib/vasnprintf.c (VASNPRINTF): Update.
31890         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31891         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31892         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31893         * NEWS: Mention the change.
31894
31895 2009-04-26  Bruno Haible  <bruno@clisp.org>
31896
31897         Simplify calling convention of u*_conv_to_encoding.
31898         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31899         u32_conv_to_encoding): Expect a resultbuf argument and return the
31900         result directly as a pointer.
31901         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31902         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31903         freeing scaled_offsets if mem_iconveha failed.
31904         * lib/unicase/u-casexfrm.h (FUNC): Update.
31905         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31906         * lib/vasnprintf.c (VASNPRINTF): Update.
31907         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31908         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31909         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31910         * NEWS: Mention the change.
31911
31912 2009-04-26  Bruno Haible  <bruno@clisp.org>
31913
31914         Avoid test failures on AIX and OSF/1.
31915         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31916         malloc(0).
31917         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31918         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31919         Likewise.
31920         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31921         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31922         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31923         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31924         * doc/posix-functions/malloc.texi: Document the portability problem
31925         related to malloc(0).
31926
31927 2009-04-26  Bruno Haible  <bruno@clisp.org>
31928
31929         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31930         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31931         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31932
31933 2009-04-25  Bruno Haible  <bruno@clisp.org>
31934
31935         Avoid link error when creating a namespace clean library.
31936         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31937         as macro with arguments if already defined as an alias.
31938         * lib/signbitf.c (gl_signbitf): Don't undefine.
31939         * lib/signbitd.c (gl_signbitd): Don't undefine.
31940         * lib/signbitl.c (gl_signbitl): Don't undefine.
31941
31942 2009-04-25  Jim Meyering  <meyering@redhat.com>
31943
31944         vc-list-files: fix another quoting bug
31945         * build-aux/vc-list-files: Avoid sed backslash expansion
31946         of pathological directory names.
31947
31948 2009-04-25  Eric Blake  <ebb9@byu.net>
31949
31950         vc-list-files: fix shell quoting error
31951         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31952         timestamp.
31953
31954 2009-04-25  Jim Meyering  <meyering@redhat.com>
31955
31956         vc-list-files: restore lost functionality with subdir argument
31957         * build-aux/vc-list-files: When given a non-"." sub-directory
31958         argument, substitute the $dir/ prefix back onto each resulting name.
31959         Otherwise, coreutils' root_tests check would fail.
31960
31961 2009-04-24  Eric Blake  <ebb9@byu.net>
31962
31963         vc-list-files: ignore git symlinks
31964         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31965         than ls-files, to ignore git symlinks.
31966
31967         maint.mk: import improvements from m4
31968         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31969         (move_if_change): Delete unused macro.
31970         (news-date-check, vc-diff-check): Support VPATH builds.
31971         (announcement): Likewise.  Split --bootstrap-tools list...
31972         (boostrap-tools): ...into separate list, which can be overridden
31973         in cfg.mk.
31974         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31975         requiring dependency on useless-if-before-free module.
31976         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31977         Support VPATH builds.
31978
31979 2009-04-24  Jim Meyering  <meyering@redhat.com>
31980
31981         maint.mk: remove coreutils-specific rules and variables
31982         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31983         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31984         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31985
31986         maint.mk: remove obsolete rule
31987         * top/maint.mk (rel-check): Remove rule.
31988         (WGET, WGETFLAGS): Remove now-unused variables.
31989
31990 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31991
31992         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31993         consistency.
31994
31995         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31996         '$(PATH_SEPARATOR)' instead of ':'.
31997
31998 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31999
32000         * lib/getopt1.c (main): Use 'const' for static array.
32001
32002 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32003
32004         * top/maint.mk: Sync with coreutils.
32005         * NEWS: Explain incompatibilities.
32006
32007 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32008             Bruno Haible  <bruno@clisp.org>
32009
32010         Fix cross-compilation results.
32011         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32012         statement, as third argument of AC_TRY_RUN.
32013         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32014         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32015         Likewise.
32016         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32017         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32018         Likewise.
32019         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32020         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32021         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32022
32023 2009-04-20  Bruno Haible  <bruno@clisp.org>
32024
32025         Avoid test failure on mingw.
32026         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32027
32028 2009-04-20  Bruno Haible  <bruno@clisp.org>
32029
32030         Avoid compilation error on mingw.
32031         * modules/localename-tests (Depends-on): Add locale.
32032
32033 2009-04-19  Bruno Haible  <bruno@clisp.org>
32034
32035         Support for building a shared library on Windows platforms.
32036         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32037         (main): Test the presence of UNINORM_NFC here.
32038         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32039         (main): Test the presence of UNINORM_NFD here.
32040         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32041         (main): Test the presence of UNINORM_NFKC here.
32042         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32043         (main): Test the presence of UNINORM_NFKD here.
32044
32045 2009-04-19  Bruno Haible  <bruno@clisp.org>
32046
32047         Avoid a compiler warning.
32048         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32049         Change type of variable 'sequence'.
32050
32051 2009-04-19  Bruno Haible  <bruno@clisp.org>
32052
32053         * modules/configmake (Makefile.am): When the contents of configmake.h
32054         does not change, arrange to preserve its modification time.
32055
32056 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32057
32058         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32059         gettext domain.
32060
32061 2009-04-16  Jim Meyering  <meyering@redhat.com>
32062
32063         useless-if-before-free: improve conversion code
32064         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32065         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32066
32067 2009-04-14  Bruno Haible  <bruno@clisp.org>
32068
32069         * modules/fcntl (Depends-on): Add extensions.
32070         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32071
32072 2009-04-12  Ben Pfaff  <blp@gnu.org>
32073
32074         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32075         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32076
32077 2009-03-20  Ben Pfaff  <blp@gnu.org>
32078
32079         Make rename replace existing destinations on Windows.
32080         * m4/rename.m4: Add test for Mingw.
32081         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32082         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32083         * doc/posix-functions/rename.texi: Document.
32084
32085 2009-04-10  Bruno Haible  <bruno@clisp.org>
32086
32087         New include file "iconveh.h".
32088         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32089         * lib/striconveh.h: Include it.
32090         (enum iconv_ilseq_handler): Remove definition.
32091         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32092         striconveh.h.
32093         * lib/striconveha.c: Include striconveh.h.
32094         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32095         * modules/striconveh (Files): Add lib/iconveh.h.
32096         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32097         lib/striconveh.h.
32098
32099 2009-04-10  Bruno Haible  <bruno@clisp.org>
32100
32101         * lib/uniconv.h: Update comment.
32102
32103 2009-04-10  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32106         always.
32107         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32108         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32109         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32110         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32111         "unistring-notinline.h", so that the function gets defined always.
32112         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32113         * lib/unistr/u8-uctomb.c: Likewise.
32114         * lib/unistr/u16-mbtouc.c: Likewise.
32115         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32116         * lib/unistr/u16-uctomb.c: Likewise.
32117         * lib/unistr/u32-mbtouc.c: Likewise.
32118         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32119         * lib/unistr/u32-uctomb.c: Likewise.
32120
32121 2009-04-10  Bruno Haible  <bruno@clisp.org>
32122
32123         Mark 'utime' obsolete.
32124         * modules/utime (Status, Notice): New sections.
32125         Suggested by Jim Meyering.
32126
32127         Fix cross-compile guess for utime test.
32128         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32129         autoconf.
32130         * doc/posix-functions/utime.texi: Give more precisions.
32131         Reported by Jan <ipif@ymail.com>.
32132
32133 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32134
32135         filevercmp: correct today's change
32136         * lib/filevercmp.c: Also handle coreutils' test inputs.
32137         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32138
32139         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32140         for reporting it.
32141         * lib/filevercmp.c: Special handle for "", "." and "..".
32142         * tests/test-filevercmp.c: Enlarge the set suite.
32143
32144 2009-04-07  Jim Meyering  <meyering@redhat.com>
32145
32146         useless-if-before-free: show how to remove braced useless free, too
32147         * build-aux/useless-if-before-free: still only in a comment, though.
32148
32149 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32150
32151         maint.mk: import changes to syntax-check macros from coreutils
32152         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32153         Use them in the relevant macros.
32154
32155 2009-04-06  Bruno Haible  <bruno@clisp.org>
32156
32157         Fix unportable use of bit-fields.
32158         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32159         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32160         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32161
32162 2009-04-06  Bruno Haible  <bruno@clisp.org>
32163
32164         Avoid test failures on AIX and OSF/1.
32165         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32166         that malloc(0) = NULL.
32167         * tests/unicase/test-u8-tolower.c (check): Likewise.
32168         * tests/unicase/test-u8-totitle.c (check): Likewise.
32169         * tests/unicase/test-u8-toupper.c (check): Likewise.
32170         * tests/unicase/test-u16-casefold.c (check): Likewise.
32171         * tests/unicase/test-u16-tolower.c (check): Likewise.
32172         * tests/unicase/test-u16-totitle.c (check): Likewise.
32173         * tests/unicase/test-u16-toupper.c (check): Likewise.
32174         * tests/unicase/test-u32-casefold.c (check): Likewise.
32175         * tests/unicase/test-u32-tolower.c (check): Likewise.
32176         * tests/unicase/test-u32-totitle.c (check): Likewise.
32177         * tests/unicase/test-u32-toupper.c (check): Likewise.
32178         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32179         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32180         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32181         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32182         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32183         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32184         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32185         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32186         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32187         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32188         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32189         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32190
32191 2009-04-05  Bruno Haible  <bruno@clisp.org>
32192
32193         Work around an autoconf limitation.
32194         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32195         comment line if it would be longer than 3 KB.
32196
32197 2009-04-05  Bruno Haible  <bruno@clisp.org>
32198
32199         Avoid test failure with libiconv-1.13.
32200         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32201         of the expected test results.
32202
32203 2009-04-05  Bruno Haible  <bruno@clisp.org>
32204
32205         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32206         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32207         that it should be installed.
32208
32209 2009-04-05  Bruno Haible  <bruno@clisp.org>
32210
32211         * gnulib-tool: New option --copy-file.
32212         (func_usage): Document it.
32213         (func_dest_tmpfilename): Moved out of func_import.
32214         (func_add_file, func_update_file): New functions, extracted from
32215         func_import.
32216         (func_import): Update.
32217
32218 2009-04-05  Karl Berry  <karl@gnu.org>
32219
32220         * README: prominently mention gnulib-tool.
32221         Rearrange sections so getting the code is near the top.
32222
32223 2009-04-05  Bruno Haible  <bruno@clisp.org>
32224
32225         * lib/unicase.h: Mention u*_cmp2.
32226         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32227         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32228         * lib/unicase/ulc-casecmp.c: Likewise.
32229         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32230         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32231         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32232         unistr/u8-cmp.
32233         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32234         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32235         unistr/u16-cmp.
32236         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32237         unistr/u32-cmp.
32238
32239         * lib/uninorm.h: Mention u*_cmp2.
32240         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32241         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32242         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32243         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32244         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32245         unistr/u8-cmp.
32246         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32247         unistr/u16-cmp.
32248         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32249         unistr/u32-cmp.
32250
32251         New module 'unistr/u32-cmp2'.
32252         * lib/unistr/u32-cmp2.c: New file.
32253         * modules/unistr/u32-cmp2: New file.
32254
32255         New module 'unistr/u16-cmp2'.
32256         * lib/unistr/u16-cmp2.c: New file.
32257         * modules/unistr/u16-cmp2: New file.
32258
32259         New module 'unistr/u8-cmp2'.
32260         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32261         * lib/unistr/u8-cmp2.c: New file.
32262         * lib/unistr/u-cmp2.h: New file.
32263         * modules/unistr/u8-cmp2: New file.
32264
32265 2009-04-05  Bruno Haible  <bruno@clisp.org>
32266
32267         * lib/unictype.h (uc_property_is_valid): New macro.
32268         * tests/unictype/test-pr_byname.c (main): Use it.
32269
32270         * lib/unistr.h: Doc fixes.
32271         * lib/uniconv.h: Doc fixes.
32272         * lib/unictype.h: Doc fixes.
32273
32274 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32275
32276         Port coreutils 7.2 to Solaris 8.
32277
32278         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32279         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32280         for Solaris 8.  This is a bit of a hack, as it means it's the
32281         caller's responsibility to add -lnsl if needed, but most likely it
32282         won't be needed since only getaddrinfo uses this and getaddrinfo
32283         isn't needed on Solaris 8.
32284
32285         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32286         problem to Solaris 8 encountered with coreutils 7.2, which
32287         resulted in a message "fnmatch.c:292: warning: passing argument 4
32288         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32289         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32290
32291 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32292
32293         * m4/ld-version-script.m4: Add FIXME comment.
32294
32295 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32296
32297         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32298         SOVERSION variable.
32299
32300 2009-04-02  Bruno Haible  <bruno@clisp.org>
32301
32302         * Makefile (info, html, dvi, pdf): Combine the rules.
32303         Suggested by Jim Meyering.
32304
32305 2009-04-01  Bruno Haible  <bruno@clisp.org>
32306
32307         * Makefile (info, html, dvi, pdf): New targets.
32308         Reported by Reuben Thomas <rrt@sc3d.org>.
32309
32310 2009-04-01  Bruno Haible  <bruno@clisp.org>
32311
32312         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32313         can be put into PATH.
32314         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32315
32316 2009-04-01  Bruno Haible  <bruno@clisp.org>
32317
32318         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32319
32320 2009-04-01  Bruno Haible  <bruno@clisp.org>
32321
32322         Rename module 'visibility'.
32323         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32324         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32325         * doc/gnulib.texi: Update.
32326         * MODULES.html.sh (Misc): Update.
32327         * NEWS: Mention the change.
32328
32329 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32330
32331         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32332         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32333         Eric Blake <ebb9@byu.net> for review.
32334         * MODULES.html.sh: Add lib-msvc-compat.
32335         * doc/gnulib.texi: Link to new section.
32336         * m4/ld-output-def.m4: New file.
32337         * doc/ld-output-def.texi: New file.
32338
32339 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32340
32341         Rename ld-version-script to lib-symbol-versions.  Suggested by
32342         Bruno Haible <bruno@clisp.org>.
32343         * modules/ld-version-script: Renamed to lib-symbol-versions.
32344         * doc/ld-version-script.texi: Fix module name.
32345         * MODULES.html.sh: Add lib-symbol-versions.
32346
32347 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32348
32349         * modules/u64-tests: New file.
32350         * tests/test-u64.c: New file.
32351
32352 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32353
32354         * MODULES.html.sh: Mention u64.
32355         * modules/u64: New module.
32356         * modules/crypto/sha512: Depend on u64 module instead of providing
32357         u64.h.
32358
32359 2009-03-27  Eric Blake  <ebb9@byu.net>
32360
32361         test-strerror: make debugging EAI_SYSTEM easier
32362         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32363         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32364         failure was EAI_SYSTEM.
32365
32366 2009-03-25  Bruno Haible  <bruno@clisp.org>
32367
32368         Fix a problem with --enable-relocatable on Solaris 7.
32369         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32370         since 2008-02-24.
32371
32372 2009-03-25  Eric Blake  <ebb9@byu.net>
32373
32374         test-sockets: avoid gcc warning
32375         * tests/test-sockets.c (main): Silence compiler warning.
32376
32377 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32378
32379         New modules nproc, pthread, contributed by Glen Lenker.
32380
32381         * MODULES.html.sh: Add pthread, nproc.
32382         * lib/nproc.c: New file.
32383         * lib/nproc.h: New file.
32384         * lib/pthread.in.h: New file.
32385         * m4/pthread.m4: New file.
32386         * modules/nproc: New file.
32387         * modules/pthread: New file.
32388
32389 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32390
32391         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32392         New variable.
32393
32394 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32395
32396         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32397         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32398         * tests/test-filevercmp.c: Add tests for backup suffixes.
32399
32400 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32401
32402         * modules/stdlib (Depends-on): Add stdint, needed when defining
32403         struct random_data on, for example, HP-UX 10.20.  Reported by
32404         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32405
32406 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32407
32408         * lib/readline.c (readline): Call fflush on stdout after printing
32409         prompt.
32410
32411 2009-03-20  Bruno Haible  <bruno@clisp.org>
32412
32413         Remove dependency from 'close' module to -lws2_32 on native Windows.
32414         * lib/close-hook.h: New file.
32415         * lib/close-hook.c: New file.
32416         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32417         w32sock.h.
32418         (_gl_close_fd_maybe_socket): Remove function.
32419         (rpl_close): Invoke execute_all_close_hooks instead of
32420         _gl_close_fd_maybe_socket.
32421         * lib/sockets.c: Include close-hook.h, w32sock.h.
32422         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32423         (close_sockets_hook): New variable.
32424         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32425         (gl_sockets_cleanup): Unregister it.
32426         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32427         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32428         * modules/close-hook: New file.
32429         * modules/close (Files): Remove lib/w32sock.h.
32430         (Depends-on): Add close-hook.
32431         (Link): Remove section.
32432         * modules/sockets (Files): Add lib/w32sock.h.
32433         (Depends-on): Add close-hook.
32434         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32435         invocation.
32436         * NEWS: Mention that LIB_CLOSE is gone.
32437
32438 2009-03-23  Eric Blake  <ebb9@byu.net>
32439
32440         signal-tests: test previous patch
32441         * tests/test-signal.c: New file.
32442         * modules/signal-tests: Likewise.
32443
32444         signal.h: always support 'volatile sig_atomic_t'
32445         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32446         (gl_SIGNAL_H_DEFAULTS): Add a default.
32447         * modules/signal (Makefile.am): Substitute if needed.
32448         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32449         users can blindly add volatile.
32450         * doc/posix-headers/signal.texi (signal.h): Document it.
32451         Reported by Matthew Woehlke.
32452
32453 2009-03-23  Jim Meyering  <meyering@redhat.com>
32454
32455         pathmax: PATH_MAX: use pathconf only when available
32456         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32457         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32458         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32459         This avoids a link failure in a PSP cross-compilation environment
32460         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32461
32462         * lib/vasnprintf.c (divide): Fix typo in comment.
32463
32464 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32465
32466         * gnulib-tool (func_filter_filelist): Fix comment.
32467
32468 2009-03-20  Bruno Haible  <bruno@clisp.org>
32469
32470         Make sockets.h self-contained.
32471         * lib/sockets.c: Include sockets.h first.
32472         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32473
32474 2009-03-19  Eric Blake  <ebb9@byu.net>
32475
32476         doc: mention more functions added in cygwin 1.7.0
32477         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32478         addition.
32479         * doc/posix-functions/log2f.texi: Likewise.
32480
32481 2009-03-19  Jim Meyering  <meyering@redhat.com>
32482
32483         fsusage: avoid syntax error due to statement-before-declaration
32484         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32485         after all declarations.  Reported by Matthew Woehlke in
32486         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32487
32488 2009-03-18  Eric Blake  <ebb9@byu.net>
32489
32490         build-aux/compile: sync from automake
32491         * build-aux/compile: New file, from automake.
32492         * config/srclist.txt: Mention build-aux/compile.
32493
32494 2009-03-17  Bruno Haible  <bruno@clisp.org>
32495
32496         * lib/git-merge-changelog.c: Fix typo in comment.
32497         Reported by Reuben Thomas <rrt@sc3d.org>.
32498
32499 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32500
32501         * m4/regex.m4: update and improve help for
32502         --without-included-regex.
32503
32504 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32505
32506         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32507         failure on missing include files.
32508
32509 2009-03-17  Eric Blake  <ebb9@byu.net>
32510
32511         doc: mention more functions added in cygwin 1.7.0
32512         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32513         addition.
32514         * doc/posix-functions/fwscanf.texi: Likewise.
32515         * doc/posix-functions/swprintf.texi: Likewise.
32516         * doc/posix-functions/swscanf.texi: Likewise.
32517         * doc/posix-functions/vfwprintf.texi: Likewise.
32518         * doc/posix-functions/vfwscanf.texi: Likewise.
32519         * doc/posix-functions/vswprintf.texi: Likewise.
32520         * doc/posix-functions/vswscanf.texi: Likewise.
32521         * doc/posix-functions/vwprintf.texi: Likewise.
32522         * doc/posix-functions/vwscanf.texi: Likewise.
32523         * doc/posix-functions/wcscasecmp.texi: Likewise.
32524         * doc/posix-functions/wcsdup.texi: Likewise.
32525         * doc/posix-functions/wcsftime.texi: Likewise.
32526         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32527         * doc/posix-functions/wprintf.texi: Likewise.
32528         * doc/posix-functions/wscanf.texi: Likewise.
32529         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32530
32531 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32532
32533         maint.mk: really add $(AM_MAKEFLAGS)
32534         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32535         was inadvertently omitted in the last commit.
32536         Spotted by Bruno Haible.
32537
32538         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32539         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32540         $(AM_MAKEFLAGS)' rather than plain `make'.
32541
32542         gnulib-tool: execute $MAKE not make
32543         * gnulib-tool: Default $MAKE to 'make'.
32544         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32545         than make.  Initialize $MAKE in the do-autobuild script.
32546
32547         gnulib-tool: use $MAKE not make in generated files
32548         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32549         make, in generated files.  Initialize $MAKE in the do-autobuild
32550         script.
32551
32552         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32553
32554         GNUmakefile: disable parallelism only for multiple, recursive targets
32555         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32556         additions in the Makefile.
32557         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32558         by Automake.
32559         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32560         are listed on the command line and at least one of them is
32561         listed in $(ALL_RECURSIVE_TARGETS).
32562
32563 2009-03-14  Bruno Haible  <bruno@clisp.org>
32564
32565         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32566         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32567         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32568         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32569         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32570         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32571         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32572         unistr/u8-uctomb.
32573         * modules/unistr/u8-strchr (Depends-on): Likewise.
32574         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32575         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32576         unistr/u16-uctomb.
32577         * modules/unistr/u16-strchr (Depends-on): Likewise.
32578         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32579
32580 2009-03-12  Bruno Haible  <bruno@clisp.org>
32581
32582         Work around select() bug on Interix 3.5.
32583         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32584         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32585         * m4/select.m4: New file.
32586         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32587         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32588         * modules/select (Files): Add m4/select.m4.
32589         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32590         * modules/nanosleep (Depends-on): Add select.
32591         * modules/poll (Depends-on): Likewise.
32592         * doc/posix-functions/select.texi: Mention the Interix bug.
32593         Reported by Markus Duft <mduft@gentoo.org>.
32594
32595         * lib/select.c: Renamed from lib/winsock-select.c.
32596         * modules/select (Files): Add lib/select.c, remove
32597         lib/winsock-select.c.
32598         (configure.ac): Update.
32599
32600 2009-03-12  Jim Meyering  <meyering@redhat.com>
32601
32602         avoid gcc warnings about unused macro definitions
32603         * lib/readtokens.c (STREQ): Remove unused definition.
32604         * lib/xmalloc.c (SIZE_MAX): Likewise.
32605         * lib/openat-die.c (N_): Likewise.
32606         * lib/mountlist.c (SIZE_MAX): Remove definition.
32607         Instead, include <stdint.h>.
32608         * lib/readutmp.c: Likewise.
32609         * modules/readutmp (Depends-on): Add stdint.
32610         * modules/mountlist (Depends-on): Add stdint.
32611         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32612
32613 2009-03-10  Bruno Haible  <bruno@clisp.org>
32614
32615         Tests for module 'mbmemcasecoll'.
32616         * modules/mbmemcasecoll-tests: New file.
32617         * tests/test-mbmemcasecoll1.sh: New file.
32618         * tests/test-mbmemcasecoll2.sh: New file.
32619         * tests/test-mbmemcasecoll3.sh: New file.
32620         * tests/test-mbmemcasecoll.c: New file.
32621
32622         New module 'mbmemcasecoll'.
32623         * lib/mbmemcasecoll.h: New file.
32624         * lib/mbmemcasecoll.c: New file.
32625         * modules/mbmemcasecoll: New file.
32626
32627         * tests/test-mbmemcasecmp.h: New file, extracted from
32628         tests/test-mbmemcasecmp.c.
32629         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32630         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32631         (main): Update.
32632         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32633
32634 2009-03-09  Bruno Haible  <bruno@clisp.org>
32635
32636         Tests for module 'mbmemcasecmp'.
32637         * modules/mbmemcasecmp-tests: New file.
32638         * tests/test-mbmemcasecmp1.sh: New file.
32639         * tests/test-mbmemcasecmp2.sh: New file.
32640         * tests/test-mbmemcasecmp3.sh: New file.
32641         * tests/test-mbmemcasecmp.c: New file.
32642
32643         New module 'mbmemcasecmp'.
32644         * lib/mbmemcasecmp.h: New file.
32645         * lib/mbmemcasecmp.c: New file.
32646         * modules/mbmemcasecmp: New file.
32647
32648 2009-03-09  Bruno Haible  <bruno@clisp.org>
32649
32650         Tests for module 'unicase/ulc-casecoll'.
32651         * modules/unicase/ulc-casecoll-tests: New file.
32652         * tests/unicase/test-ulc-casecoll1.sh: New file.
32653         * tests/unicase/test-ulc-casecoll2.sh: New file.
32654         * tests/unicase/test-ulc-casecoll.c: New file.
32655
32656         New module 'unicase/ulc-casecoll'.
32657         * lib/unicase.h (ulc_casecoll): New declaration.
32658         * lib/unicase/ulc-casecoll.c: New file.
32659         * modules/unicase/ulc-casecoll: New file.
32660
32661         New module 'unicase/ulc-casexfrm'.
32662         * lib/unicase.h (ulc_casexfrm): New declaration.
32663         * lib/unicase/ulc-casexfrm.c: New file.
32664         * modules/unicase/ulc-casexfrm: New file.
32665
32666 2009-03-09  Bruno Haible  <bruno@clisp.org>
32667
32668         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32669         invocations.
32670
32671         * m4/mbscasecmp.m4: Remove file.
32672         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32673         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32674
32675         * m4/mbscasestr.m4: Remove file.
32676         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32677         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32678
32679         * m4/mbschr.m4: Remove file.
32680         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32681         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32682
32683         * m4/mbscspn.m4: Remove file.
32684         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32685         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32686
32687         * m4/mbslen.m4: Remove file.
32688         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32689         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32690
32691         * m4/mbsncasecmp.m4: Remove file.
32692         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32693         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32694
32695         * m4/mbsnlen.m4: Remove file.
32696         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32697         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32698
32699         * m4/mbspbrk.m4: Remove file.
32700         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32701         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32702
32703         * m4/mbspcasecmp.m4: Remove file.
32704         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32705         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32706
32707         * m4/mbsrchr.m4: Remove file.
32708         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32709         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32710
32711         * m4/mbssep.m4: Remove file.
32712         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32713         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32714
32715         * m4/mbsspn.m4: Remove file.
32716         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32717         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32718
32719         * m4/mbsstr.m4: Remove file.
32720         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32721         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32722
32723         * m4/mbstok_r.m4: Remove file.
32724         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32725         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32726
32727         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32728
32729         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32730         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32731
32732         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32733
32734 2009-03-08  Bruno Haible  <bruno@clisp.org>
32735
32736         Tests for module 'unicase/ulc-casecmp'.
32737         * modules/unicase/ulc-casecmp-tests: New file.
32738         * tests/unicase/test-ulc-casecmp1.sh: New file.
32739         * tests/unicase/test-ulc-casecmp2.sh: New file.
32740         * tests/unicase/test-ulc-casecmp.c: New file.
32741
32742         New module 'unicase/ulc-casecmp'.
32743         * lib/unicase.h (ulc_casecmp): New declaration.
32744         * lib/unicase/ulc-casecmp.c: New file.
32745         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32746         'const SRC_UNIT *'.
32747         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32748         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32749         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32750         * modules/unicase/ulc-casecmp: New file.
32751
32752         Tests for module 'unicase/u32-is-cased'.
32753         * modules/unicase/u32-is-cased-tests: New file.
32754         * tests/unicase/test-u32-is-cased.c: New file.
32755
32756         Tests for module 'unicase/u16-is-cased'.
32757         * modules/unicase/u16-is-cased-tests: New file.
32758         * tests/unicase/test-u16-is-cased.c: New file.
32759
32760         Tests for module 'unicase/u8-is-cased'.
32761         * modules/unicase/u8-is-cased-tests: New file.
32762         * tests/unicase/test-u8-is-cased.c: New file.
32763         * tests/unicase/test-is-cased.h: New file.
32764
32765         New module 'unicase/u32-is-cased'.
32766         * lib/unicase/u32-is-cased.c: New file.
32767         * modules/unicase/u32-is-cased: New file.
32768
32769         New module 'unicase/u16-is-cased'.
32770         * lib/unicase/u16-is-cased.c: New file.
32771         * modules/unicase/u16-is-cased: New file.
32772
32773         New module 'unicase/u8-is-cased'.
32774         * lib/unicase/u8-is-cased.c: New file.
32775         * lib/unicase/u-is-cased.h: New file.
32776         * modules/unicase/u8-is-cased: New file.
32777
32778         Tests for module 'unicase/u32-is-casefolded'.
32779         * modules/unicase/u32-is-casefolded-tests: New file.
32780         * tests/unicase/test-u32-is-casefolded.c: New file.
32781
32782         Tests for module 'unicase/u16-is-casefolded'.
32783         * modules/unicase/u16-is-casefolded-tests: New file.
32784         * tests/unicase/test-u16-is-casefolded.c: New file.
32785
32786         Tests for module 'unicase/u8-is-casefolded'.
32787         * modules/unicase/u8-is-casefolded-tests: New file.
32788         * tests/unicase/test-u8-is-casefolded.c: New file.
32789         * tests/unicase/test-is-casefolded.h: New file.
32790
32791         New module 'unicase/u32-is-casefolded'.
32792         * lib/unicase/u32-is-casefolded.c: New file.
32793         * modules/unicase/u32-is-casefolded: New file.
32794
32795         New module 'unicase/u16-is-casefolded'.
32796         * lib/unicase/u16-is-casefolded.c: New file.
32797         * modules/unicase/u16-is-casefolded: New file.
32798
32799         New module 'unicase/u8-is-casefolded'.
32800         * lib/unicase/u8-is-casefolded.c: New file.
32801         * modules/unicase/u8-is-casefolded: New file.
32802
32803         Tests for module 'unicase/u32-is-titlecase'.
32804         * modules/unicase/u32-is-titlecase-tests: New file.
32805         * tests/unicase/test-u32-is-titlecase.c: New file.
32806
32807         Tests for module 'unicase/u16-is-titlecase'.
32808         * modules/unicase/u16-is-titlecase-tests: New file.
32809         * tests/unicase/test-u16-is-titlecase.c: New file.
32810
32811         Tests for module 'unicase/u8-is-titlecase'.
32812         * modules/unicase/u8-is-titlecase-tests: New file.
32813         * tests/unicase/test-u8-is-titlecase.c: New file.
32814         * tests/unicase/test-is-titlecase.h: New file.
32815
32816         New module 'unicase/u32-is-titlecase'.
32817         * lib/unicase/u32-is-titlecase.c: New file.
32818         * modules/unicase/u32-is-titlecase: New file.
32819
32820         New module 'unicase/u16-is-titlecase'.
32821         * lib/unicase/u16-is-titlecase.c: New file.
32822         * modules/unicase/u16-is-titlecase: New file.
32823
32824         New module 'unicase/u8-is-titlecase'.
32825         * lib/unicase/u8-is-titlecase.c: New file.
32826         * modules/unicase/u8-is-titlecase: New file.
32827
32828         Tests for module 'unicase/u32-is-lowercase'.
32829         * modules/unicase/u32-is-lowercase-tests: New file.
32830         * tests/unicase/test-u32-is-lowercase.c: New file.
32831
32832         Tests for module 'unicase/u16-is-lowercase'.
32833         * modules/unicase/u16-is-lowercase-tests: New file.
32834         * tests/unicase/test-u16-is-lowercase.c: New file.
32835
32836         Tests for module 'unicase/u8-is-lowercase'.
32837         * modules/unicase/u8-is-lowercase-tests: New file.
32838         * tests/unicase/test-u8-is-lowercase.c: New file.
32839         * tests/unicase/test-is-lowercase.h: New file.
32840
32841         New module 'unicase/u32-is-lowercase'.
32842         * lib/unicase/u32-is-lowercase.c: New file.
32843         * modules/unicase/u32-is-lowercase: New file.
32844
32845         New module 'unicase/u16-is-lowercase'.
32846         * lib/unicase/u16-is-lowercase.c: New file.
32847         * modules/unicase/u16-is-lowercase: New file.
32848
32849         New module 'unicase/u8-is-lowercase'.
32850         * lib/unicase/u8-is-lowercase.c: New file.
32851         * modules/unicase/u8-is-lowercase: New file.
32852
32853         Tests for module 'unicase/u32-is-uppercase'.
32854         * modules/unicase/u32-is-uppercase-tests: New file.
32855         * tests/unicase/test-u32-is-uppercase.c: New file.
32856
32857         Tests for module 'unicase/u16-is-uppercase'.
32858         * modules/unicase/u16-is-uppercase-tests: New file.
32859         * tests/unicase/test-u16-is-uppercase.c: New file.
32860
32861         Tests for module 'unicase/u8-is-uppercase'.
32862         * modules/unicase/u8-is-uppercase-tests: New file.
32863         * tests/unicase/test-u8-is-uppercase.c: New file.
32864         * tests/unicase/test-is-uppercase.h: New file.
32865
32866         New module 'unicase/u32-is-uppercase'.
32867         * lib/unicase/u32-is-uppercase.c: New file.
32868         * modules/unicase/u32-is-uppercase: New file.
32869
32870         New module 'unicase/u16-is-uppercase'.
32871         * lib/unicase/u16-is-uppercase.c: New file.
32872         * modules/unicase/u16-is-uppercase: New file.
32873
32874         New module 'unicase/u8-is-uppercase'.
32875         * lib/unicase/u8-is-uppercase.c: New file.
32876         * modules/unicase/u8-is-uppercase: New file.
32877
32878         New module 'unicase/u32-is-invariant'.
32879         * lib/unicase/u32-is-invariant.c: New file.
32880         * modules/unicase/u32-is-invariant: New file.
32881
32882         New module 'unicase/u16-is-invariant'.
32883         * lib/unicase/u16-is-invariant.c: New file.
32884         * modules/unicase/u16-is-invariant: New file.
32885
32886         New module 'unicase/u8-is-invariant'.
32887         * lib/unicase/u8-is-invariant.c: New file.
32888         * lib/unicase/invariant.h: New file.
32889         * lib/unicase/u-is-invariant.h: New file.
32890         * modules/unicase/u8-is-invariant: New file.
32891
32892         Tests for module 'unicase/u32-casecoll'.
32893         * modules/unicase/u32-casecoll-tests: New file.
32894         * tests/unicase/test-u32-casecoll.c: New file.
32895
32896         Tests for module 'unicase/u16-casecoll'.
32897         * modules/unicase/u16-casecoll-tests: New file.
32898         * tests/unicase/test-u16-casecoll.c: New file.
32899
32900         Tests for module 'unicase/u8-casecoll'.
32901         * modules/unicase/u8-casecoll-tests: New file.
32902         * tests/unicase/test-u8-casecoll.c: New file.
32903
32904         New module 'unicase/u32-casecoll'.
32905         * lib/unicase/u32-casecoll.c: New file.
32906         * modules/unicase/u32-casecoll: New file.
32907
32908         New module 'unicase/u16-casecoll'.
32909         * lib/unicase/u16-casecoll.c: New file.
32910         * modules/unicase/u16-casecoll: New file.
32911
32912         New module 'unicase/u8-casecoll'.
32913         * lib/unicase/u8-casecoll.c: New file.
32914         * lib/unicase/u-casecoll.h: New file.
32915         * modules/unicase/u8-casecoll: New file.
32916
32917         New module 'unicase/u32-casexfrm'.
32918         * lib/unicase/u32-casexfrm.c: New file.
32919         * modules/unicase/u32-casexfrm: New file.
32920
32921         New module 'unicase/u16-casexfrm'.
32922         * lib/unicase/u16-casexfrm.c: New file.
32923         * modules/unicase/u16-casexfrm: New file.
32924
32925         New module 'unicase/u8-casexfrm'.
32926         * lib/unicase/u8-casexfrm.c: New file.
32927         * lib/unicase/u-casexfrm.h: New file.
32928         * modules/unicase/u8-casexfrm: New file.
32929
32930         Tests for module 'unicase/u32-casecmp'.
32931         * modules/unicase/u32-casecmp-tests: New file.
32932         * tests/unicase/test-u32-casecmp.c: New file.
32933
32934         Tests for module 'unicase/u16-casecmp'.
32935         * modules/unicase/u16-casecmp-tests: New file.
32936         * tests/unicase/test-u16-casecmp.c: New file.
32937
32938         Tests for module 'unicase/u8-casecmp'.
32939         * modules/unicase/u8-casecmp-tests: New file.
32940         * tests/unicase/test-u8-casecmp.c: New file.
32941         * tests/unicase/test-casecmp.h: New file.
32942
32943         New module 'unicase/u32-casecmp'.
32944         * lib/unicase/u32-casecmp.c: New file.
32945         * modules/unicase/u32-casecmp: New file.
32946
32947         New module 'unicase/u16-casecmp'.
32948         * lib/unicase/u16-casecmp.c: New file.
32949         * modules/unicase/u16-casecmp: New file.
32950
32951         New module 'unicase/u8-casecmp'.
32952         * lib/unicase/u8-casecmp.c: New file.
32953         * lib/unicase/u-casecmp.h: New file.
32954         * modules/unicase/u8-casecmp: New file.
32955
32956         Tests for module 'unicase/u32-casefold'.
32957         * modules/unicase/u32-casefold-tests: New file.
32958         * tests/unicase/test-u32-casefold.c: New file.
32959
32960         Tests for module 'unicase/u16-casefold'.
32961         * modules/unicase/u16-casefold-tests: New file.
32962         * tests/unicase/test-u16-casefold.c: New file.
32963
32964         Tests for module 'unicase/u8-casefold'.
32965         * modules/unicase/u8-casefold-tests: New file.
32966         * tests/unicase/test-u8-casefold.c: New file.
32967
32968         New module 'unicase/u32-casefold'.
32969         * lib/unicase/u32-casefold.c: New file.
32970         * modules/unicase/u32-casefold: New file.
32971
32972         New module 'unicase/u16-casefold'.
32973         * lib/unicase/u16-casefold.c: New file.
32974         * modules/unicase/u16-casefold: New file.
32975
32976         New module 'unicase/u8-casefold'.
32977         * lib/unicase/u8-casefold.c: New file.
32978         * lib/unicase/u-casefold.h: New file.
32979         * modules/unicase/u8-casefold: New file.
32980
32981         New module 'unicase/tocasefold'.
32982         * lib/unicase/casefold.h: New file.
32983         * lib/unicase/tocasefold.c: New file.
32984         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32985         * modules/unicase/tocasefold: New file.
32986
32987         Tests for module 'unicase/u32-totitle'.
32988         * modules/unicase/u32-totitle-tests: New file.
32989         * tests/unicase/test-u32-totitle.c: New file.
32990
32991         Tests for module 'unicase/u16-totitle'.
32992         * modules/unicase/u16-totitle-tests: New file.
32993         * tests/unicase/test-u16-totitle.c: New file.
32994
32995         Tests for module 'unicase/u8-totitle'.
32996         * modules/unicase/u8-totitle-tests: New file.
32997         * tests/unicase/test-u8-totitle.c: New file.
32998
32999         New module 'unicase/u32-totitle'.
33000         * lib/unicase/u32-totitle.c: New file.
33001         * modules/unicase/u32-totitle: New file.
33002
33003         New module 'unicase/u16-totitle'.
33004         * lib/unicase/u16-totitle.c: New file.
33005         * modules/unicase/u16-totitle: New file.
33006
33007         New module 'unicase/u8-totitle'.
33008         * lib/unicase/u8-totitle.c: New file.
33009         * lib/unicase/u-totitle.h: New file.
33010         * modules/unicase/u8-totitle: New file.
33011
33012         Tests for module 'unicase/u32-tolower'.
33013         * modules/unicase/u32-tolower-tests: New file.
33014         * tests/unicase/test-u32-tolower.c: New file.
33015
33016         Tests for module 'unicase/u16-tolower'.
33017         * modules/unicase/u16-tolower-tests: New file.
33018         * tests/unicase/test-u16-tolower.c: New file.
33019
33020         Tests for module 'unicase/u8-tolower'.
33021         * modules/unicase/u8-tolower-tests: New file.
33022         * tests/unicase/test-u8-tolower.c: New file.
33023
33024         New module 'unicase/u32-tolower'.
33025         * lib/unicase/u32-tolower.c: New file.
33026         * modules/unicase/u32-tolower: New file.
33027
33028         New module 'unicase/u16-tolower'.
33029         * lib/unicase/u16-tolower.c: New file.
33030         * modules/unicase/u16-tolower: New file.
33031
33032         New module 'unicase/u8-tolower'.
33033         * lib/unicase/u8-tolower.c: New file.
33034         * modules/unicase/u8-tolower: New file.
33035
33036         Tests for module 'unicase/u32-toupper'.
33037         * modules/unicase/u32-toupper-tests: New file.
33038         * tests/unicase/test-u32-toupper.c: New file.
33039
33040         Tests for module 'unicase/u16-toupper'.
33041         * modules/unicase/u16-toupper-tests: New file.
33042         * tests/unicase/test-u16-toupper.c: New file.
33043
33044         Tests for module 'unicase/u8-toupper'.
33045         * modules/unicase/u8-toupper-tests: New file.
33046         * tests/unicase/test-u8-toupper.c: New file.
33047
33048         New module 'unicase/u32-toupper'.
33049         * lib/unicase/u32-toupper.c: New file.
33050         * modules/unicase/u32-toupper: New file.
33051
33052         New module 'unicase/u16-toupper'.
33053         * lib/unicase/u16-toupper.c: New file.
33054         * modules/unicase/u16-toupper: New file.
33055
33056         New module 'unicase/u8-toupper'.
33057         * lib/unicase/u8-toupper.c: New file.
33058         * modules/unicase/u8-toupper: New file.
33059
33060         New module 'unicase/u32-casemap'.
33061         * lib/unicase/u32-casemap.c: New file.
33062         * modules/unicase/u32-casemap: New file.
33063
33064         New module 'unicase/u16-casemap'.
33065         * lib/unicase/u16-casemap.c: New file.
33066         * modules/unicase/u16-casemap: New file.
33067
33068         New module 'unicase/u8-casemap'.
33069         * lib/unicase/unicasemap.h: New file.
33070         * lib/unicase/u8-casemap.c: New file.
33071         * lib/unicase/u-casemap.h: New file.
33072         * modules/unicase/u8-casemap: New file.
33073
33074         New module 'unicase/special-casing'.
33075         * lib/unicase/special-casing.h: New file.
33076         * lib/unicase/special-casing.c: New file.
33077         * lib/unicase/special-casing-table.gperf: New file, generated by
33078         gen-uni-tables.c.
33079         * modules/unicase/special-casing: New file.
33080
33081         Tests for module 'unicase/locale-language'.
33082         * modules/unicase/locale-language-tests: New file.
33083         * tests/unicase/test-locale-language.sh: New file.
33084         * tests/unicase/test-locale-language.c: New file.
33085
33086         New module 'unicase/locale-language'.
33087         * lib/unicase/locale-language.c: New file.
33088         * lib/unicase/locale-languages.gperf: New file.
33089         * modules/unicase/locale-language: New file.
33090
33091         Generate more tables for case conversion and case folding.
33092         * lib/gen-uni-tables.c (SCC_*): New enum items.
33093         (struct special_casing_rule): New type.
33094         (casing_rules, num_casing_rules, allocated_casing_rules): New
33095         variables.
33096         (add_casing_rule, fill_casing_rules): New functions.
33097         (struct casefold_rule): New type.
33098         (casefolding_rules, num_casefolding_rules,
33099         allocated_casefolding_rules): New variables.
33100         (fill_casefolding_rules): New function.
33101         (unicode_casefold): New variable.
33102         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33103         sort_casing_rules, output_casing_rules): New functions.
33104         (main): Accept to more arguments: SpecialCasing.txt and
33105         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33106         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33107         Output mapping for casefolding.
33108
33109         * lib/unicase.h: Include stdbool.h, uninorm.h.
33110         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33111         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33112         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33113         arguments.
33114         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33115         resultp arguments.
33116         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33117         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33118         resultp arguments.
33119         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33120         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33121         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33122         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33123         declarations.
33124         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33125
33126 2009-03-08  Bruno Haible  <bruno@clisp.org>
33127
33128         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33129         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33130         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33131         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33132
33133 2009-03-07  Bruno Haible  <bruno@clisp.org>
33134
33135         Adjust u*_normcmp, u*_normcoll API.
33136         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33137         u16_normcoll, u32_normcoll): Change failure conventions.
33138         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33139         errno and return -1.
33140         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33141
33142 2009-03-07  Bruno Haible  <bruno@clisp.org>
33143
33144         Tests for module 'uninorm/u32-normcoll'.
33145         * modules/uninorm/u32-normcoll-tests: New file.
33146         * tests/uninorm/test-u32-normcoll.c: New file.
33147
33148         Tests for module 'uninorm/u16-normcoll'.
33149         * modules/uninorm/u16-normcoll-tests: New file.
33150         * tests/uninorm/test-u16-normcoll.c: New file.
33151
33152         Tests for module 'uninorm/u8-normcoll'.
33153         * modules/uninorm/u8-normcoll-tests: New file.
33154         * tests/uninorm/test-u8-normcoll.c: New file.
33155
33156 2009-03-07  Bruno Haible  <bruno@clisp.org>
33157
33158         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33159         tests/uninorm/test-u32-normcmp.c.
33160         * tests/uninorm/test-u32-normcmp.c: Include it.
33161         (test_nonascii): New function, extracted from main. Add some more
33162         tests.
33163         (main): Invoke test_ascii and test_nonascii.
33164         * modules/uninorm/u32-normcmp-tests (Files): Add
33165         tests/uninorm/test-u32-normcmp.h.
33166         (Depends-on): Remove uninorm/u32-normcmp.
33167
33168         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33169         tests/uninorm/test-u16-normcmp.c.
33170         * tests/uninorm/test-u16-normcmp.c: Include it.
33171         (test_nonascii): New function, extracted from main. Add some more
33172         tests.
33173         (main): Invoke test_ascii and test_nonascii.
33174         * modules/uninorm/u16-normcmp-tests (Files): Add
33175         tests/uninorm/test-u16-normcmp.h.
33176         (Depends-on): Remove uninorm/u16-normcmp.
33177
33178         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33179         tests/uninorm/test-u8-normcmp.c.
33180         * tests/uninorm/test-u8-normcmp.c: Include it.
33181         (test_nonascii): New function, extracted from main. Add some more
33182         tests.
33183         (main): Invoke test_ascii and test_nonascii.
33184         * modules/uninorm/u8-normcmp-tests (Files): Add
33185         tests/uninorm/test-u8-normcmp.h.
33186         (Depends-on): Remove uninorm/u8-normcmp.
33187
33188 2009-03-07  Bruno Haible  <bruno@clisp.org>
33189
33190         New module 'uninorm/u32-normcoll'.
33191         * lib/uninorm/u32-normcoll.c: New file.
33192         * modules/uninorm/u32-normcoll: New file.
33193
33194         New module 'uninorm/u16-normcoll'.
33195         * lib/uninorm/u16-normcoll.c: New file.
33196         * modules/uninorm/u16-normcoll: New file.
33197
33198         New module 'uninorm/u8-normcoll'.
33199         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33200         declarations.
33201         * lib/uninorm/u8-normcoll.c: New file.
33202         * lib/uninorm/u-normcoll.h: New file.
33203         * modules/uninorm/u8-normcoll: New file.
33204
33205         New module 'uninorm/u32-normxfrm'.
33206         * lib/uninorm/u32-normxfrm.c: New file.
33207         * modules/uninorm/u32-normxfrm: New file.
33208
33209         New module 'uninorm/u16-normxfrm'.
33210         * lib/uninorm/u16-normxfrm.c: New file.
33211         * modules/uninorm/u16-normxfrm: New file.
33212
33213         New module 'uninorm/u8-normxfrm'.
33214         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33215         declarations.
33216         * lib/uninorm/u8-normxfrm.c: New file.
33217         * lib/uninorm/u-normxfrm.h: New file.
33218         * modules/uninorm/u8-normxfrm: New file.
33219
33220 2009-03-07  Bruno Haible  <bruno@clisp.org>
33221
33222         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33223         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33224         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33225
33226 2009-03-07  Bruno Haible  <bruno@clisp.org>
33227
33228         New module 'memxfrm'.
33229         * lib/memxfrm.h: New file.
33230         * lib/memxfrm.c: New file.
33231         * modules/memxfrm: New file.
33232
33233 2009-03-07  Bruno Haible  <bruno@clisp.org>
33234
33235         New module 'memcmp2'.
33236         * lib/memcmp2.h: New file.
33237         * lib/memcmp2.c: New file.
33238         * modules/memcmp2: New file.
33239
33240 2009-03-07  Bruno Haible  <bruno@clisp.org>
33241
33242         Tests for module 'uninorm/decomposing-form'.
33243         * modules/uninorm/decomposing-form-tests: New file.
33244         * tests/uninorm/test-decomposing-form.c: New file.
33245
33246         New module 'uninorm/decomposing-form'.
33247         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33248         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33249         Add 'decomposing_variant' field.
33250         * lib/uninorm/decomposing-form.c: New file.
33251         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33252         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33253         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33254         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33255         * modules/uninorm/decomposing-form: New file.
33256         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33257         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33258
33259 2009-03-07  Bruno Haible  <bruno@clisp.org>
33260
33261         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33262         strings.
33263
33264 2009-03-06  Bruno Haible  <bruno@clisp.org>
33265
33266         Tests for module 'uninorm/u32-normcmp'.
33267         * tests/uninorm/test-u32-normcmp.c: New file.
33268         * modules/uninorm/u32-normcmp-tests: New file.
33269
33270         Tests for module 'uninorm/u16-normcmp'.
33271         * tests/uninorm/test-u16-normcmp.c: New file.
33272         * modules/uninorm/u16-normcmp-tests: New file.
33273
33274         Tests for module 'uninorm/u8-normcmp'.
33275         * tests/uninorm/test-u8-normcmp.c: New file.
33276         * modules/uninorm/u8-normcmp-tests: New file.
33277
33278         New module 'uninorm/u32-normcmp'.
33279         * lib/uninorm/u32-normcmp.c: New file.
33280         * modules/uninorm/u32-normcmp: New file.
33281
33282         New module 'uninorm/u16-normcmp'.
33283         * lib/uninorm/u16-normcmp.c: New file.
33284         * modules/uninorm/u16-normcmp: New file.
33285
33286         New module 'uninorm/u8-normcmp'.
33287         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33288         declarations.
33289         * lib/uninorm/u8-normcmp.c: New file.
33290         * lib/uninorm/u-normcmp.h: New file.
33291         * modules/uninorm/u8-normcmp: New file.
33292
33293 2009-03-06  Bruno Haible  <bruno@clisp.org>
33294
33295         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33296         Reported by Eric Blake.
33297
33298 2009-03-06  Eric Blake  <ebb9@byu.net>
33299             Bruno Haible  <bruno@clisp.org>
33300
33301         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33302         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33303         condition.
33304         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33305         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33306         condition.
33307         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33308
33309 2009-03-06  Eric Blake  <ebb9@byu.net>
33310
33311         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33312         to avoid compiler warnings.
33313         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33314
33315 2009-03-05  Bruno Haible  <bruno@clisp.org>
33316
33317         * tests/test-ftell.c (main): Disable test beyond end of file on
33318         FreeMiNT.
33319         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33320
33321 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33322
33323         * lib/filevercmp.c: Move hidden files up in ordering.
33324         * tests/test-filevercmp.c: Add tests for hidden files.
33325
33326 2009-03-04  Bruno Haible  <bruno@clisp.org>
33327
33328         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33329         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33330         AM_CFLAGS.
33331         Reported by Simon Josefsson.
33332
33333 2009-03-03  Bruno Haible  <bruno@clisp.org>
33334
33335         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33336         Reported by Simon Josefsson.
33337
33338         * doc/ld-version-script.texi: Update node reference.
33339
33340 2009-03-03  Bruno Haible  <bruno@clisp.org>
33341
33342         * modules/visibility (License): Change to 'unlimited'.
33343         Suggested by Simon Josefsson.
33344
33345 2009-03-03  Jim Meyering  <meyering@redhat.com>
33346
33347         unlinkdir: cannot_unlink_dir may modify process state
33348         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33349         it's neither thread-safe nor appropriate for use in a library.
33350
33351 2009-03-03  Eric Blake  <ebb9@byu.net>
33352
33353         test-closein: silence test under Darwin
33354         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33355         care if it dies from EPIPE or EBADF.
33356
33357 2009-03-03  Bruno Haible  <bruno@clisp.org>
33358
33359         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33360         earlier.
33361         * doc/visibility.texi: Fix @node and @section.
33362
33363 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33364
33365         * doc/gnulib.texi: Link to sections for ld version script and
33366         visibility.
33367         * doc/visibility.texi: Add @node and @section.
33368         * modules/ld-version-script: New module.
33369         * m4/ld-version-script.m4: New file.
33370         * doc/ld-version-script.texi: New file.
33371
33372 2009-03-02  David Lutterkort  <lutter@redhat.com>
33373
33374         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33376
33377 2009-03-02  Bruno Haible  <bruno@clisp.org>
33378
33379         * doc/visibility.texi: Mention libtool's -export-symbols option.
33380
33381 2009-03-02  Jim Meyering  <meyering@redhat.com>
33382
33383         announce-gen: new option: --no-print-checksums
33384         * build-aux/announce-gen (usage): Describe it.
33385         (print_checksums): Print a newline here, not in the [*] footnote.
33386         (main): Honor it.
33387
33388 2009-03-01  Bruno Haible  <bruno@clisp.org>
33389
33390         Use socklen_t in the native Windows replacements prototypes.
33391         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33392         instead of 'int'.
33393         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33394         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33395         * modules/getsockopt (Depends-on): Add socklen.
33396         * modules/setsockopt (Depends-on): Add socklen.
33397
33398 2009-03-01  Bruno Haible  <bruno@clisp.org>
33399
33400         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33401         least 4.2.
33402
33403 2009-03-01  Eric Blake  <ebb9@byu.net>
33404             Bruno Haible  <bruno@clisp.org>
33405
33406         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33407         error messages.
33408         * lib/wait-process.c (wait_subprocess): Omit error message about
33409         deadly signal sent to the child of termsigp != NULL.
33410
33411 2009-03-01  Eric Blake  <ebb9@byu.net>
33412
33413         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33414
33415 2009-03-01  Bruno Haible  <bruno@clisp.org>
33416
33417         Avoid a gcc warning.
33418         * tests/test-sched.c (b): Make global.
33419         Reported by Eric Blake.
33420
33421 2009-01-19  Martin Lambers  <marlam@marlam.de>
33422
33423         Provide POSIX semantics for socket timeout options on W32.
33424         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33425         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33426         * modules/setsockopt: Depend on sys_time module for struct timeval.
33427         * modules/getsockopt: Depend on sys_time module for struct timeval.
33428
33429 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33430
33431         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33432         __USE_GNU, for consistency with netdb.in.h.
33433         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33434
33435 2009-03-01  Bruno Haible  <bruno@clisp.org>
33436
33437         More support for FreeMiNT.
33438         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33439         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33440
33441 2009-03-01  Bruno Haible  <bruno@clisp.org>
33442
33443         More support for FreeMiNT.
33444         * lib/fpurge.c (fpurge): Correct last commit.
33445         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33446
33447 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33448
33449         Fix unportable awk script in vc-list-files.
33450         * build-aux/vc-list-files: In the replacement awk script, use
33451         substr with a second argument of 1, not zero.
33452         Report by Simon Josefsson.
33453
33454 2009-02-28  Bruno Haible  <bruno@clisp.org>
33455
33456         More support for FreeMiNT.
33457         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33458         to FreeMiNT today.
33459         * lib/fwriting.c (fwriting): Likewise.
33460         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33461
33462 2009-02-28  Bruno Haible  <bruno@clisp.org>
33463
33464         * tests/test-freadseek.c (main): Disable test beyond end of file on
33465         FreeMiNT.
33466         * tests/test-ftello.c (main): Likewise.
33467         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33468
33469 2009-02-28  Bruno Haible  <bruno@clisp.org>
33470
33471         Add tentative support for FreeMiNT.
33472         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33473         * lib/fpurge.c (fpurge): Likewise.
33474         * lib/freadable.c (freadable): Likewise.
33475         * lib/freading.c (freading): Likewise.
33476         * lib/freadptr.c (freadptr): Likewise.
33477         * lib/freadseek.c (freadptrinc): Likewise.
33478         * lib/fseeko.c (rpl_fseeko): Likewise.
33479         * lib/fseterr.c (fseterr): Likewise.
33480         * lib/fwritable.c (fwritable): Likewise.
33481         * lib/fwriting.c (fwriting): Likewise.
33482         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33483         Hourihane.
33484         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33485
33486 2009-02-28  Bruno Haible  <bruno@clisp.org>
33487
33488         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33489         SIGCHLD.
33490         Reported by Jim Meyering.
33491
33492 2009-02-28  Bruno Haible  <bruno@clisp.org>
33493
33494         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33495         Mention the results of these tests on various platforms.
33496         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33497         order.
33498         * doc/posix-functions/printf.texi: Likewise.
33499         * doc/posix-functions/snprintf.texi: Likewise.
33500         * doc/posix-functions/sprintf.texi: Likewise.
33501         * doc/posix-functions/vfprintf.texi: Likewise.
33502         * doc/posix-functions/vprintf.texi: Likewise.
33503         * doc/posix-functions/vsnprintf.texi: Likewise.
33504         * doc/posix-functions/vsprintf.texi: Likewise.
33505         * doc/glibc-functions/obstack_printf.texi: Likewise.
33506         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33507
33508 2009-02-28  Bruno Haible  <bruno@clisp.org>
33509
33510         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33511         Reported by Loïc Minier <lool@dooz.org>.
33512
33513 2009-02-27  Bruno Haible  <bruno@clisp.org>
33514
33515         * gnulib-tool (func_import): Make the sed expression used to create the
33516         sed script for updating the .gitignore file POSIX compliant.
33517         Reported by Eric Blake.
33518
33519 2009-02-27  Bruno Haible  <bruno@clisp.org>
33520
33521         * gnulib-tool (sed): Don't alias as "sed --posix".
33522         Reported by Eric Blake.
33523
33524 2009-02-27  Bruno Haible  <bruno@clisp.org>
33525
33526         Avoid test link errors.
33527         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33528         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33529         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33530         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33532
33533 2009-02-27  Bruno Haible  <bruno@clisp.org>
33534
33535         Avoid spurious "(cached)" in configure output.
33536         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33537         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33538         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33539         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33540         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33541         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33542         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33543         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33544         Reported by Eric Blake.
33545
33546 2009-02-27  Eric Blake  <ebb9@byu.net>
33547
33548         printf: fix regression in previous patch
33549         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33550
33551 2009-02-27  Bruno Haible  <bruno@clisp.org>
33552
33553         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33554         value.
33555         * lib/stdint.in.h: Likewise.
33556         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33557
33558 2009-02-27  Eric Blake  <ebb9@byu.net>
33559
33560         doc: mention more functions added in cygwin 1.7.0
33561         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33562         addition.
33563         * doc/posix-functions/open_wmemstream.texi: Likewise.
33564         * doc/posix-functions/wcsnlen.texi: Likewise.
33565         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33566         * doc/posix-functions/wcstod.texi: Likewise.
33567         * doc/posix-functions/wcstof.texi: Likewise.
33568         * doc/posix-functions/wcstoimax.texi: Likewise.
33569         * doc/posix-functions/wcstok.texi: Likewise.
33570         * doc/posix-functions/wcstoumax.texi: Likewise.
33571
33572         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33574         * doc/posix-functions/fprintf.texi: Update.
33575         * doc/posix-functions/printf.texi: Update.
33576         * doc/posix-functions/snprintf.texi: Update.
33577         * doc/posix-functions/sprintf.texi: Update.
33578         * doc/posix-functions/vfprintf.texi: Update.
33579         * doc/posix-functions/vprintf.texi: Update.
33580         * doc/posix-functions/vsnprintf.texi: Update.
33581         * doc/posix-functions/vsprintf.texi: Update.
33582         * doc/glibc-functions/obstack_printf.texi: Update.
33583         * doc/glibc-functions/obstack_vprintf.texi: Update.
33584
33585 2009-02-26  Eric Blake  <ebb9@byu.net>
33586
33587         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33588         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33589         compilation bug by using runtime conversion.
33590         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33591         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33592         * modules/ceill-tests (Files): Use nan.h.
33593         * modules/floorl-tests (Files): Likewise.
33594         * modules/frexpl-tests (Files): Likewise.
33595         * modules/isnanl-tests (Files): Likewise.
33596         * modules/ldexpl-tests (Files): Likewise.
33597         * modules/roundl-tests (Files): Likewise.
33598         * modules/truncl-tests (Files): Likewise.
33599         * tests/test-ceill.c (main): Use a working NaN.
33600         * tests/test-floorl.c (main): Likewise.
33601         * tests/test-frexpl.c (main): Likewise.
33602         * tests/test-isnan.c (test_long_double): Likewise.
33603         * tests/test-isnanl.h (main): Likewise.
33604         * tests/test-ldexpl.h (main): Likewise.
33605         * tests/test-roundl.h (main): Likewise.
33606         * tests/test-truncl.h (main): Likewise.
33607         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33608
33609 2009-02-26  Eric Blake  <ebb9@byu.net>
33610             Bruno Haible  <bruno@clisp.org>
33611
33612         Work around a *printf bug with %ls on Solaris.
33613         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33614         precision is specified, sprintf stops converting the wide string
33615         argument when the number of bytes that have been produced by this
33616         conversion equals or exceeds the precision.
33617         * doc/posix-functions/fprintf.texi: Update.
33618         * doc/posix-functions/printf.texi: Update.
33619         * doc/posix-functions/snprintf.texi: Update.
33620         * doc/posix-functions/sprintf.texi: Update.
33621         * doc/posix-functions/vfprintf.texi: Update.
33622         * doc/posix-functions/vprintf.texi: Update.
33623         * doc/posix-functions/vsnprintf.texi: Update.
33624         * doc/posix-functions/vsprintf.texi: Update.
33625         * doc/glibc-functions/obstack_printf.texi: Update.
33626         * doc/glibc-functions/obstack_vprintf.texi: Update.
33627
33628 2009-02-26  Eric Blake  <ebb9@byu.net>
33629
33630         stdlib: favor compiler check of random.h
33631         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33632         to avoid an ObjC random.h installed by Swarm.
33633
33634 2009-02-26  Bruno Haible  <bruno@clisp.org>
33635
33636         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33637         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33638         Reported by Gary V. Vaughan <gary@gnu.org>.
33639
33640 2009-02-26  Bruno Haible  <bruno@clisp.org>
33641
33642         Fix *printf behaviour regarding the %ls directive.
33643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33644         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33645         NEED_PRINTF_DIRECTIVE_LS.
33646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33647         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33649         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33650         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33651         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33652         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33657         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33658         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33659         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33660         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33661         * doc/posix-functions/fprintf.texi: Update.
33662         * doc/posix-functions/printf.texi: Update.
33663         * doc/posix-functions/snprintf.texi: Update.
33664         * doc/posix-functions/sprintf.texi: Update.
33665         * doc/posix-functions/vfprintf.texi: Update.
33666         * doc/posix-functions/vprintf.texi: Update.
33667         * doc/posix-functions/vsnprintf.texi: Update.
33668         * doc/posix-functions/vsprintf.texi: Update.
33669         * doc/glibc-functions/obstack_printf.texi: Update.
33670         * doc/glibc-functions/obstack_vprintf.texi: Update.
33671         Reported by Eric Blake.
33672
33673 2009-02-25  Bruno Haible  <bruno@clisp.org>
33674
33675         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33676         with known value.
33677         Reported by Gary V. Vaughan <gary@gnu.org>.
33678
33679 2009-02-25  Bruno Haible  <bruno@clisp.org>
33680
33681         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33682         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33683         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33684         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33685         Reported by Gary V. Vaughan <gary@gnu.org>.
33686
33687 2009-02-25  Bruno Haible  <bruno@clisp.org>
33688
33689         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33690         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33691         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33692         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33693         Reported by Gary V. Vaughan <gary@gnu.org>.
33694
33695 2009-02-25  Eric Blake  <ebb9@byu.net>
33696
33697         tests: skip fseek/ftell tests if ungetc is broken
33698         * m4/ungetc.m4: New file.
33699         * modules/fseek-tests: Split test, so ungetc dependency is
33700         separate from rest of test.
33701         * modules/fseeko-tests: Likewise.
33702         * modules/ftell-tests: Likewise.
33703         * modules/ftello-tests: Likewise.
33704         * tests/test-fseek.c (main): Isolate ungetc dependency.
33705         * tests/test-fseeko.c (main): Likewise.
33706         * tests/test-ftell.c (main): Likewise.
33707         * tests/test-ftello.c (main): Likewise.
33708         * tests/test-fseek2.sh: New file.
33709         * tests/test-fseeko2.sh: Likewise.
33710         * tests/test-ftell2.sh: Likewise.
33711         * tests/test-ftello2.sh: Likewise.
33712
33713 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33714
33715         test-getaddrinfo: fix usage of skip return code 77
33716         * tests/test-gettaddrinfo.c: Return skip code 77 only
33717         for first occurance of skip (4x77 is not 77)
33718
33719 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33720
33721         strtod: avoid C99 decl-after-statement
33722         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33723
33724 2009-02-24  Eric Blake  <ebb9@byu.net>
33725
33726         strtod: detect HP-UX 11.31 bug
33727         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33728         Reported by Gary V. Vaughan.
33729
33730 2009-02-23  Bruno Haible  <bruno@clisp.org>
33731
33732         Fix invalid read past end of memory block.
33733         * lib/vasnprintf.c (DCHAR_SET): Define.
33734         (local_wcslen): Define only when needed.
33735         (local_strnlen, local_wcsnlen): New functions.
33736         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33737         directives that involve a conversion ourselves.
33738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33739         wcsnlen, mbrtowc, wcrtomb.
33740         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33741         * tests/test-vasprintf-posix.c (test_function): Likewise.
33742         * tests/test-snprintf-posix.h (test_function): Likewise.
33743         * tests/test-sprintf-posix.h (test_function): Likewise.
33744         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33745
33746 2009-02-22  Bruno Haible  <bruno@clisp.org>
33747
33748         Implement new clarified decomposition of Hangul syllables.
33749         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33750         of type LTV, return only a pairwise decomposition.
33751         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33752         Likewise.
33753         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33754         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33755         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33756
33757 2009-02-22  Bruno Haible  <bruno@clisp.org>
33758
33759         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33760         zero-length results and shrink excess allocated memory.
33761         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33762         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33763         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33764         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33765         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33766         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33767         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33768         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33769         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33770         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33771         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33772         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33773
33774 2009-02-21  Bruno Haible  <bruno@clisp.org>
33775
33776         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33777         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33778         spaces after a period. Put a space between a macro name and its
33779         argument list. Trivial rewordings.
33780         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33781         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33782         (main): Return 0 explicitly.
33783
33784 2009-02-21  Bruno Haible  <bruno@clisp.org>
33785
33786         Tests for module 'uninorm/filter'.
33787         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33788         * modules/uninorm/filter-tests: New file.
33789
33790         New module 'uninorm/filter'.
33791         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33792         uninorm_filter_flush, uninorm_filter_free): New declarations.
33793         * lib/uninorm/uninorm-filter.c: New file.
33794         * modules/uninorm/filter: New file.
33795
33796 2009-02-21  Bruno Haible  <bruno@clisp.org>
33797
33798         Tests for module 'uninorm/nfkc'.
33799         * tests/uninorm/test-nfkc.c: New file.
33800         * tests/uninorm/test-u8-nfkc.c: New file.
33801         * tests/uninorm/test-u16-nfkc.c: New file.
33802         * tests/uninorm/test-u32-nfkc.c: New file.
33803         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33804         * tests/uninorm/test-u32-nfkc-big.c: New file.
33805         * modules/uninorm/nfkc-tests: New file.
33806
33807         New module 'uninorm/nfkc'.
33808         * lib/uninorm/nfkc.c: New file.
33809         * modules/uninorm/nfkc: New file.
33810
33811         Tests for module 'uninorm/nfkd'.
33812         * tests/uninorm/test-nfkd.c: New file.
33813         * tests/uninorm/test-u8-nfkd.c: New file.
33814         * tests/uninorm/test-u16-nfkd.c: New file.
33815         * tests/uninorm/test-u32-nfkd.c: New file.
33816         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33817         * tests/uninorm/test-u32-nfkd-big.c: New file.
33818         * modules/uninorm/nfkd-tests: New file.
33819
33820         New module 'uninorm/nfkd'.
33821         * lib/uninorm/nfkd.c: New file.
33822         * modules/uninorm/nfkd: New file.
33823
33824         Tests for module 'uninorm/nfc'.
33825         * tests/uninorm/test-nfc.c: New file.
33826         * tests/uninorm/test-u8-nfc.c: New file.
33827         * tests/uninorm/test-u16-nfc.c: New file.
33828         * tests/uninorm/test-u32-nfc.c: New file.
33829         * tests/uninorm/test-u32-nfc-big.sh: New file.
33830         * tests/uninorm/test-u32-nfc-big.c: New file.
33831         * modules/uninorm/nfc-tests: New file.
33832
33833         New module 'uninorm/nfc'.
33834         * lib/uninorm/nfc.c: New file.
33835         * modules/uninorm/nfc: New file.
33836
33837         Tests for module 'uninorm/nfd'.
33838         * tests/uninorm/test-nfd.c: New file.
33839         * tests/uninorm/test-u8-nfd.c: New file.
33840         * tests/uninorm/test-u16-nfd.c: New file.
33841         * tests/uninorm/test-u32-nfd.c: New file.
33842         * tests/uninorm/test-u32-nfd-big.sh: New file.
33843         * tests/uninorm/test-u32-nfd-big.c: New file.
33844         * tests/uninorm/test-u32-normalize-big.h: New file.
33845         * tests/uninorm/test-u32-normalize-big.c: New file.
33846         * tests/uninorm/NormalizationTest.txt: New file, created from
33847         Unicode 5.1.0 NormalizationTest.txt.
33848         * modules/uninorm/nfd-tests: New file.
33849
33850         New module 'uninorm/nfd'.
33851         * lib/uninorm/nfd.c: New file.
33852         * modules/uninorm/nfd: New file.
33853
33854         New module 'uninorm/u32-normalize'.
33855         * lib/uninorm/u32-normalize.c: New file.
33856         * modules/uninorm/u32-normalize: New file.
33857
33858         New module 'uninorm/u16-normalize'.
33859         * lib/uninorm/u16-normalize.c: New file.
33860         * modules/uninorm/u16-normalize: New file.
33861
33862         New module 'uninorm/u8-normalize'.
33863         * lib/uninorm/u8-normalize.c: New file.
33864         * lib/uninorm/normalize-internal.h: New file.
33865         * lib/uninorm/u-normalize-internal.h: New file.
33866         * modules/uninorm/u8-normalize: New file.
33867
33868         New module 'uninorm/decompose-internal'.
33869         * lib/uninorm/decompose-internal.c: New file.
33870         * modules/uninorm/decompose-internal: New file.
33871
33872         Tests for module 'uninorm/composition'.
33873         * tests/uninorm/test-composition.c: New file.
33874         * modules/uninorm/composition-tests: New file.
33875
33876         New module 'uninorm/composition'.
33877         * lib/uninorm/composition.c: New file.
33878         * lib/uninorm/composition-table.gperf: New file, generated by
33879         gen-uni-tables.
33880         * modules/uninorm/composition: New file.
33881
33882         Tests for module 'uninorm/compat-decomposition'.
33883         * tests/uninorm/test-compat-decomposition.c: New file.
33884         * modules/uninorm/compat-decomposition-tests: New file.
33885
33886         New module 'uninorm/compat-decomposition'.
33887         * lib/uninorm/decompose-internal.h: New file.
33888         * lib/uninorm/compat-decomposition.c: New file.
33889         * modules/uninorm/compat-decomposition: New file.
33890
33891         Tests for module 'uninorm/canonical-decomposition'.
33892         * tests/uninorm/test-canonical-decomposition.c: New file.
33893         * modules/uninorm/canonical-decomposition-tests: New file.
33894
33895         New module 'uninorm/canonical-decomposition'.
33896         * lib/uninorm/canonical-decomposition.c: New file.
33897         * modules/uninorm/canonical-decomposition: New file.
33898
33899         Tests for module 'uninorm/decomposition'.
33900         * tests/uninorm/test-decomposition.c: New file.
33901         * modules/uninorm/decomposition-tests: New file.
33902
33903         New module 'uninorm/decomposition'.
33904         * lib/uninorm/decomposition.c: New file.
33905         * modules/uninorm/decomposition: New file.
33906
33907         New module 'uninorm/decomposition-table'.
33908         * lib/uninorm/decomposition-table.h: New file.
33909         * lib/uninorm/decomposition-table.c: New file.
33910         * lib/uninorm/decomposition-table1.h: New file, generated by
33911         gen-uni-tables.
33912         * lib/uninorm/decomposition-table2.h: New file, generated by
33913         gen-uni-tables.
33914         * modules/uninorm/decomposition-table: New file.
33915
33916         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33917         (UC_DECOMP_*): New enumeration items.
33918         (get_decomposition): New function.
33919         (struct decomp_table): New type.
33920         (output_decomposition, output_decomposition_tables): New functions.
33921         (unicode_composition_exclusions): New variable.
33922         (fill_composition_exclusions, debug_output_composition_tables): New
33923         functions.
33924         (main): Accept one more argument. Invoke fill_composition_exclusions.
33925         Output decomposition and composition tables.
33926
33927         New module 'uninorm/base'.
33928         * lib/uninorm.h: New file.
33929         * lib/unictype.h: Update comment.
33930         * modules/uninorm/base: New file.
33931
33932 2009-02-21  David Lutterkort  <lutter@redhat.com>
33933
33934         Tests for module 'safe-alloc'.
33935         * tests/test-safe-alloc.c: New file.
33936         * modules/safe-alloc-tests: New file.
33937
33938         New module 'safe-alloc'.
33939         * lib/safe-alloc.h: New file.
33940         * lib/safe-alloc.c: New file.
33941         * m4/safe-alloc.m4: New file.
33942         * modules/safe-alloc: New file.
33943         * doc/safe-alloc.texi: New file.
33944         * doc/gnulib.texi: Include it.
33945         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33946         safe-alloc.
33947
33948 2009-02-18  Bruno Haible  <bruno@clisp.org>
33949
33950         Fix link error on non-glibc systems.
33951         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33952         variable.
33953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33954
33955 2009-02-18  Jim Meyering  <meyering@redhat.com>
33956
33957         fts: avoid used-uninitialized error due to recent change
33958         * lib/fts.c (fts_read): Guard uses of the new member,
33959         parent->fts_n_dirs_remaining, since it's not relevant for
33960         the parent of a directory specified on the command-line.
33961
33962 2009-02-17  James Youngman  <jay@gnu.org>
33963             Bruno Haible  <bruno@clisp.org>
33964
33965         * m4/include_next.m4: Reformulate comment.
33966
33967 2009-02-16  Jim Meyering  <meyering@redhat.com>
33968
33969         fts: add #if guards so that the fts_lgpl module still builds
33970         * lib/fts.c: Guard just-added hash-table-using parts with
33971         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33972         Reported by Simon Josefsson.
33973
33974 2009-02-15  Bruno Haible  <bruno@clisp.org>
33975
33976         * modules/array-mergesort-tests: New file.
33977         * tests/test-array-mergesort.c: New file.
33978
33979         New module 'array-mergesort'.
33980         * modules/array-mergesort: New file.
33981         * lib/array-mergesort.h: New file.
33982
33983 2009-02-15  Bruno Haible  <bruno@clisp.org>
33984
33985         Fix 2009-02-07 commit.
33986         * lib/gen-uni-tables.c (output_predicate, output_category,
33987         output_combclass, output_bidi_category, output_decimal_digit,
33988         output_digit, output_numeric, output_mirror, output_scripts,
33989         output_ident_category, output_simple_mapping): Fix format directives.
33990         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33991
33992 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33993
33994         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33995         fixes are available from IBM.
33996
33997 2009-02-13  Jim Meyering  <meyering@redhat.com>
33998
33999         fts: arrange not to stat non-directories in more cases
34000         This makes GNU find (when it doesn't need to stat each file)
34001         *much* more efficient at traversing reiserfs file systems.
34002         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34003         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34004         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34005         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34006         (leaf_optimization_applies): New function.
34007         (LCO_hash, LCO_compare): New helper functions.
34008         (link_count_optimize_ok): New function.
34009         (fts_stat): Initialize new member (if dir).
34010         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34011         we've just stat'ed a directory.  Skip the stat call when possible.
34012         ---
34013         Note this AFS-related exchange:
34014         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34015         and note find's pioctl call in find/fstype.c.
34016         But that is necessary only if you want to enable the
34017         optimization for AFS, and for now, I don't.
34018
34019         fts: move a function definition "up" (no semantic change)
34020         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34021         "up" to precede upcoming use of a related function.
34022
34023 2009-02-11  Jim Meyering  <meyering@redhat.com>
34024
34025         fts: correct internal computation of nlinks (optimization-related)
34026         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34027         whether the current entry is a directory, so don't test it.
34028
34029 2009-02-10  Bruno Haible  <bruno@clisp.org>
34030
34031         Tests for module 'uniwbrk/ulc-wordbreaks'.
34032         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34033         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34034         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34035
34036         Tests for module 'uniwbrk/u32-wordbreaks'.
34037         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34038         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34039
34040         Tests for module 'uniwbrk/u16-wordbreaks'.
34041         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34042         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34043
34044         Tests for module 'uniwbrk/u8-wordbreaks'.
34045         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34046         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34047
34048 2009-02-10  Bruno Haible  <bruno@clisp.org>
34049
34050         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34051         property.
34052         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34053         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34054         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34055
34056 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34057
34058         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34059         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34060
34061 2009-02-10  Bruno Haible  <bruno@clisp.org>
34062
34063         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34064         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34065         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34066         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34067         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34068         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34069
34070 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34071
34072         * lib/sockets.h (gl_fd_to_handle): New function.
34073
34074         * tests/test-sockets.c: Call gl_fd_to_handle.
34075
34076 2009-02-09  Bruno Haible  <bruno@clisp.org>
34077
34078         * doc/havelib.texi: Document the conventions on bi-arch systems.
34079
34080 2009-02-08  Bruno Haible  <bruno@clisp.org>
34081
34082         Document the AC_LIB_LINKFLAGS macro.
34083         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34084         * doc/gnulib.texi: Include it.
34085
34086 2009-02-08  Bruno Haible  <bruno@clisp.org>
34087
34088         Fix wrong order of sections, compared to TOC.
34089         * doc/gnulib.texi: Include relocatable-maint.texi after the
34090         "Regular expressions" node, not before.
34091
34092 2009-02-08  Bruno Haible  <bruno@clisp.org>
34093
34094         Tests for module 'unicase/totitle'.
34095         * modules/unicase/totitle-tests: New file.
34096
34097         Tests for module 'unicase/tolower'.
34098         * modules/unicase/tolower-tests: New file.
34099
34100         Tests for module 'unicase/toupper'.
34101         * modules/unicase/toupper-tests: New file.
34102         * tests/unicase/test-mapping-part1.h: New file.
34103         * tests/unicase/test-mapping-part2.h: New file.
34104
34105         New module 'unicase/totitle'.
34106         * modules/unicase/totitle: New file.
34107         * lib/unicase/totitle.c: New file.
34108
34109         New module 'unicase/tolower'.
34110         * modules/unicase/tolower: New file.
34111         * lib/unicase/tolower.c: New file.
34112
34113         New module 'unicase/toupper'.
34114         * modules/unicase/toupper: New file.
34115         * lib/unicase/toupper.c: New file.
34116         * lib/unicase/simple-mapping.h: New file.
34117
34118         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34119         (mapping_table): New structure.
34120         (output_simple_mapping): New function.
34121         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34122         * modules/gen-uni-tables (Description): Update.
34123         * lib/unicase/toupper.h: New file, automatically generated by
34124         gen-uni-tables.
34125         * lib/unicase/tolower.h: New file, automatically generated by
34126         gen-uni-tables.
34127         * lib/unicase/totitle.h: New file, automatically generated by
34128         gen-uni-tables.
34129         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34130         gen-uni-tables.
34131         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34132         gen-uni-tables.
34133         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34134         gen-uni-tables.
34135
34136         New module 'unicase/base'.
34137         * modules/unicase/base: New file.
34138         * lib/unicase.h: New file.
34139
34140 2009-02-08  Bruno Haible  <bruno@clisp.org>
34141
34142         New module 'uniwbrk/ulc-wordbreaks'.
34143         * modules/uniwbrk/ulc-wordbreaks: New file.
34144         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34145
34146         New module 'uniwbrk/u32-wordbreaks'.
34147         * modules/uniwbrk/u32-wordbreaks: New file.
34148         * lib/uniwbrk/u32-wordbreaks.c: New file.
34149
34150         New module 'uniwbrk/u16-wordbreaks'.
34151         * modules/uniwbrk/u16-wordbreaks: New file.
34152         * lib/uniwbrk/u16-wordbreaks.c: New file.
34153
34154         New module 'uniwbrk/u8-wordbreaks'.
34155         * modules/uniwbrk/u8-wordbreaks: New file.
34156         * lib/uniwbrk/u8-wordbreaks.c: New file.
34157         * lib/uniwbrk/u-wordbreaks.h: New file.
34158
34159         New module 'uniwbrk/table'.
34160         * modules/uniwbrk/table: New file.
34161         * lib/uniwbrk/wbrktable.h: New file.
34162         * lib/uniwbrk/wbrktable.c: New file.
34163
34164         New module 'uniwbrk/wordbreak-property'.
34165         * modules/uniwbrk/wordbreak-property: New file.
34166         * lib/uniwbrk/wordbreak-property.c: New file.
34167
34168         * lib/gen-uni-tables.c (WBP_*): New enum items.
34169         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34170         (unicode_org_wbp): New variable.
34171         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34172         New functions.
34173         (wbp_table): New structure.
34174         (output_wbp, output_wbrk_tables): New functions.
34175         (main): Accept additional argument. Invoke fill_org_wbp,
34176         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34177         output_wbrk_tables.
34178         * modules/gen-uni-tables (Description): Update.
34179         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34180         gen-uni-tables.
34181
34182         New module 'uniwbrk/base'.
34183         * modules/uniwbrk/base: New file.
34184         * lib/uniwbrk.h: New file.
34185
34186 2009-02-08  Bruno Haible  <bruno@clisp.org>
34187
34188         Update to Unicode 5.1.0.
34189         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34190         U+2185..U+2188.
34191         (is_property_default_ignorable_code_point): Don't include characters
34192         of category Cc or Cs and not-a-characters.
34193         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34194         U+0D79, U+109E, U+109F, U+A60C.
34195         * lib/unictype/bidi_of.h: Regenerated.
34196         * lib/unictype/blocks.h: Regenerated.
34197         * lib/unictype/categ_C.h: Regenerated.
34198         * lib/unictype/categ_Cf.h: Regenerated.
34199         * lib/unictype/categ_Cn.h: Regenerated.
34200         * lib/unictype/categ_L.h: Regenerated.
34201         * lib/unictype/categ_Ll.h: Regenerated.
34202         * lib/unictype/categ_Lm.h: Regenerated.
34203         * lib/unictype/categ_Lo.h: Regenerated.
34204         * lib/unictype/categ_Lu.h: Regenerated.
34205         * lib/unictype/categ_M.h: Regenerated.
34206         * lib/unictype/categ_Mc.h: Regenerated.
34207         * lib/unictype/categ_Me.h: Regenerated.
34208         * lib/unictype/categ_Mn.h: Regenerated.
34209         * lib/unictype/categ_N.h: Regenerated.
34210         * lib/unictype/categ_Nd.h: Regenerated.
34211         * lib/unictype/categ_Nl.h: Regenerated.
34212         * lib/unictype/categ_No.h: Regenerated.
34213         * lib/unictype/categ_P.h: Regenerated.
34214         * lib/unictype/categ_Pd.h: Regenerated.
34215         * lib/unictype/categ_Pe.h: Regenerated.
34216         * lib/unictype/categ_Pf.h: Regenerated.
34217         * lib/unictype/categ_Pi.h: Regenerated.
34218         * lib/unictype/categ_Po.h: Regenerated.
34219         * lib/unictype/categ_Ps.h: Regenerated.
34220         * lib/unictype/categ_S.h: Regenerated.
34221         * lib/unictype/categ_Sk.h: Regenerated.
34222         * lib/unictype/categ_Sm.h: Regenerated.
34223         * lib/unictype/categ_So.h: Regenerated.
34224         * lib/unictype/categ_of.h: Regenerated.
34225         * lib/unictype/combining.h: Regenerated.
34226         * lib/unictype/ctype_alnum.h: Regenerated.
34227         * lib/unictype/ctype_alpha.h: Regenerated.
34228         * lib/unictype/ctype_graph.h: Regenerated.
34229         * lib/unictype/ctype_lower.h: Regenerated.
34230         * lib/unictype/ctype_print.h: Regenerated.
34231         * lib/unictype/ctype_punct.h: Regenerated.
34232         * lib/unictype/ctype_upper.h: Regenerated.
34233         * lib/unictype/decdigit.h: Regenerated.
34234         * lib/unictype/digit.h: Regenerated.
34235         * lib/unictype/mirror.h: Regenerated.
34236         * lib/unictype/numeric.h: Regenerated.
34237         * lib/unictype/pr_alphabetic.h: Regenerated.
34238         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34239         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34240         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34241         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34242         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34243         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34244         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34245         * lib/unictype/pr_combining.h: Regenerated.
34246         * lib/unictype/pr_dash.h: Regenerated.
34247         * lib/unictype/pr_decimal_digit.h: Regenerated.
34248         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34249         * lib/unictype/pr_deprecated.h: Regenerated.
34250         * lib/unictype/pr_diacritic.h: Regenerated.
34251         * lib/unictype/pr_extender.h: Regenerated.
34252         * lib/unictype/pr_format_control.h: Regenerated.
34253         * lib/unictype/pr_grapheme_base.h: Regenerated.
34254         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34255         * lib/unictype/pr_grapheme_link.h: Regenerated.
34256         * lib/unictype/pr_id_continue.h: Regenerated.
34257         * lib/unictype/pr_id_start.h: Regenerated.
34258         * lib/unictype/pr_ideographic.h: Regenerated.
34259         * lib/unictype/pr_ignorable_control.h: Regenerated.
34260         * lib/unictype/pr_lowercase.h: Regenerated.
34261         * lib/unictype/pr_math.h: Regenerated.
34262         * lib/unictype/pr_numeric.h: Regenerated.
34263         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34264         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34265         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34266         * lib/unictype/pr_other_id_continue.h: Regenerated.
34267         * lib/unictype/pr_other_lowercase.h: Regenerated.
34268         * lib/unictype/pr_other_math.h: Regenerated.
34269         * lib/unictype/pr_punctuation.h: Regenerated.
34270         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34271         * lib/unictype/pr_soft_dotted.h: Regenerated.
34272         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34273         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34274         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34275         * lib/unictype/pr_uppercase.h: Regenerated.
34276         * lib/unictype/pr_xid_continue.h: Regenerated.
34277         * lib/unictype/pr_xid_start.h: Regenerated.
34278         * lib/unictype/pr_zero_width.h: Regenerated.
34279         * lib/unictype/scripts.h: Regenerated.
34280         * lib/unictype/scripts_byname.gperf: Regenerated.
34281         * lib/unictype/sy_java_ident.h: Regenerated.
34282         * lib/unilbrk/lbrkprop1.h: Regenerated.
34283         * lib/unilbrk/lbrkprop2.h: Regenerated.
34284         * tests/unictype/test-categ_C.c: Regenerated.
34285         * tests/unictype/test-categ_Cf.c: Regenerated.
34286         * tests/unictype/test-categ_Cn.c: Regenerated.
34287         * tests/unictype/test-categ_L.c: Regenerated.
34288         * tests/unictype/test-categ_Ll.c: Regenerated.
34289         * tests/unictype/test-categ_Lm.c: Regenerated.
34290         * tests/unictype/test-categ_Lo.c: Regenerated.
34291         * tests/unictype/test-categ_Lu.c: Regenerated.
34292         * tests/unictype/test-categ_M.c: Regenerated.
34293         * tests/unictype/test-categ_Mc.c: Regenerated.
34294         * tests/unictype/test-categ_Me.c: Regenerated.
34295         * tests/unictype/test-categ_Mn.c: Regenerated.
34296         * tests/unictype/test-categ_N.c: Regenerated.
34297         * tests/unictype/test-categ_Nd.c: Regenerated.
34298         * tests/unictype/test-categ_Nl.c: Regenerated.
34299         * tests/unictype/test-categ_No.c: Regenerated.
34300         * tests/unictype/test-categ_P.c: Regenerated.
34301         * tests/unictype/test-categ_Pd.c: Regenerated.
34302         * tests/unictype/test-categ_Pe.c: Regenerated.
34303         * tests/unictype/test-categ_Pf.c: Regenerated.
34304         * tests/unictype/test-categ_Pi.c: Regenerated.
34305         * tests/unictype/test-categ_Po.c: Regenerated.
34306         * tests/unictype/test-categ_Ps.c: Regenerated.
34307         * tests/unictype/test-categ_S.c: Regenerated.
34308         * tests/unictype/test-categ_Sk.c: Regenerated.
34309         * tests/unictype/test-categ_Sm.c: Regenerated.
34310         * tests/unictype/test-categ_So.c: Regenerated.
34311         * tests/unictype/test-ctype_alnum.c: Regenerated.
34312         * tests/unictype/test-ctype_alpha.c: Regenerated.
34313         * tests/unictype/test-ctype_graph.c: Regenerated.
34314         * tests/unictype/test-ctype_lower.c: Regenerated.
34315         * tests/unictype/test-ctype_print.c: Regenerated.
34316         * tests/unictype/test-ctype_punct.c: Regenerated.
34317         * tests/unictype/test-ctype_upper.c: Regenerated.
34318         * tests/unictype/test-decdigit.h: Regenerated.
34319         * tests/unictype/test-digit.h: Regenerated.
34320         * tests/unictype/test-numeric.h: Regenerated.
34321         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34322         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34323         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34324         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34325         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34326         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34327         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34328         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34329         * tests/unictype/test-pr_combining.c: Regenerated.
34330         * tests/unictype/test-pr_dash.c: Regenerated.
34331         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34332         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34333         * tests/unictype/test-pr_deprecated.c: Regenerated.
34334         * tests/unictype/test-pr_diacritic.c: Regenerated.
34335         * tests/unictype/test-pr_extender.c: Regenerated.
34336         * tests/unictype/test-pr_format_control.c: Regenerated.
34337         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34338         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34339         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34340         * tests/unictype/test-pr_id_continue.c: Regenerated.
34341         * tests/unictype/test-pr_id_start.c: Regenerated.
34342         * tests/unictype/test-pr_ideographic.c: Regenerated.
34343         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34344         * tests/unictype/test-pr_lowercase.c: Regenerated.
34345         * tests/unictype/test-pr_math.c: Regenerated.
34346         * tests/unictype/test-pr_numeric.c: Regenerated.
34347         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34348         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34349         Regenerated.
34350         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34351         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34352         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34353         * tests/unictype/test-pr_other_math.c: Regenerated.
34354         * tests/unictype/test-pr_punctuation.c: Regenerated.
34355         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34356         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34357         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34358         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34359         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34360         * tests/unictype/test-pr_uppercase.c: Regenerated.
34361         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34362         * tests/unictype/test-pr_xid_start.c: Regenerated.
34363         * tests/unictype/test-pr_zero_width.c: Regenerated.
34364
34365         Update to Unicode 5.1.0.
34366         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34367         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34368         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34369         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34370         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34371         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34372         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34373         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34374         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34375         (nonspacing_table_ind): Update.
34376         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34377
34378         Update to Unicode 5.1.0.
34379         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34380         code transform.
34381         * lib/uniname/uniname.c (unicode_character_name,
34382         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34383         * lib/uniname/uninames.h: Regenerated.
34384         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34385
34386 2009-02-07  Bruno Haible  <bruno@clisp.org>
34387
34388         Merge gen-ctype and gen-lbrk into a single program.
34389         * lib/gen-uni-tables.c: New file, incorporating
34390         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34391         Add directory prefixes to the names of the generated files.
34392         * lib/unictype/gen-ctype.c: Remove file.
34393         * lib/unilbrk/gen-lbrk.c: Remove file.
34394         * modules/gen-uni-tables: New file.
34395         * modules/unictype/gen-ctype: Remove file.
34396         * modules/unilbrk/gen-lbrk: Remove file.
34397
34398 2009-02-07  Bruno Haible  <bruno@clisp.org>
34399
34400         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34401
34402         New module 'unistr/u32-strcoll'.
34403         * modules/unistr/u32-strcoll: New file.
34404         * lib/unistr/u32-strcoll.c: New file.
34405
34406         New module 'unistr/u16-strcoll'.
34407         * modules/unistr/u16-strcoll: New file.
34408         * lib/unistr/u16-strcoll.c: New file.
34409
34410         New module 'unistr/u8-strcoll'.
34411         * modules/unistr/u8-strcoll: New file.
34412         * lib/unistr/u8-strcoll.c: New file.
34413         * lib/unistr/u-strcoll.h: New file.
34414
34415 2009-02-07  Bruno Haible  <bruno@clisp.org>
34416
34417         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34418         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34419         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34420         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34421         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34422         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34423
34424 2009-02-07  Bruno Haible  <bruno@clisp.org>
34425
34426         Make 64-bit clean.
34427         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34428         output_combclass, output_bidi_category, output_decimal_digit,
34429         output_digit, output_numeric, output_mirror, output_scripts,
34430         output_ident_category): Use proper width specifier in format strings.
34431
34432 2009-02-07  Bruno Haible  <bruno@clisp.org>
34433
34434         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34435         failure behaviour.
34436
34437 2009-02-07  Jim Meyering  <meyering@redhat.com>
34438
34439         regex: avoid compilation failure with upcoming gcc-4.4
34440         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34441         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34442         "... error: integer overflow in preprocessor expression".
34443
34444 2009-02-05  Ben Pfaff  <blp@gnu.org>
34445
34446         Fix link errors on Windows when close module is used.
34447         * modules/close: Add $(LIB_CLOSE) to Link section.
34448         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34449         $(LIB_CLOSE) on Windows.
34450
34451 2009-02-05  Jim Meyering  <meyering@redhat.com>
34452
34453         still avoid unused-parameter warnings, but do it cleanly
34454         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34455         (get_fs_usage): Cast to void instead.
34456         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34457         (dev_from_mount_options, read_file_system_list): Cast to void.
34458         Prompted by Bruno Haible.
34459
34460 2009-02-04  Jim Meyering  <meyering@redhat.com>
34461
34462         fsusage.c: correct copyright year
34463         * lib/fsusage.c: Reflect year in which the change is pushed into
34464
34465         avoid misc. warnings
34466         * lib/fsusage.c (UNUSED_PARAM): Define.
34467         (get_fs_usage): Mark parameter "disk" as unused.
34468         * lib/getugroups.c (getgrent): Use "void" in prototype.
34469         * lib/mountlist.c: Mark unused parameters.
34470         (read_file_system_list): Declare a local with "const".
34471         * lib/nanosleep.c (getnow): Declare static.
34472         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34473
34474         dirfd: set errno upon failure
34475         * lib/dirfd.c: Include <errno.h>.
34476         Set errno to ENOTSUP when returning -1.
34477         * modules/dirfd (Depends-on): Add errno.
34478         Suggested by John Kodis <kodis@comcast.net>.
34479
34480 2009-02-01  Bruno Haible  <bruno@clisp.org>
34481
34482         Don't assume sizeof (long) >= sizeof (void *).
34483         * lib/memcmp.c: Include stdint.h.
34484         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34485         srcp2 to 'const byte *'.
34486         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34487         types to uintptr_t.
34488         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34489         * modules/memcmp (Depends-on): Add stdint.
34490         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34491
34492 2009-01-30  Eric Blake  <ebb9@byu.net>
34493
34494         fix more require-before-expand issues
34495         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34496         expand, AC_PROG_AWK.
34497         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34498
34499 2009-01-28  Eric Blake  <ebb9@byu.net>
34500
34501         version-etc: use consistent URL formatting
34502         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34503         Improve formatting.  Use fputs for string without %.
34504
34505 2009-01-28  Jim Meyering  <meyering@redhat.com>
34506
34507         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34508         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34509         "underquoted definition of NAME" from autoconf-2.59.
34510
34511 2009-01-28  Bruno Haible  <bruno@clisp.org>
34512
34513         * doc/gnulib.texi: Add "Obsolete modules" to index.
34514
34515 2009-01-28  Jim Meyering  <meyering@redhat.com>
34516
34517         useless-if-before-free: recognize more variants
34518         * build-aux/useless-if-before-free: Also recognize e.g.,
34519         if (NULL != p) free (p);
34520
34521 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34522
34523         test-getaddrinfo: skip (don't fail) this test when there's no network
34524         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34525         on the presumption that it means you lack network access.
34526
34527 2009-01-26  Jim Meyering  <meyering@redhat.com>
34528
34529         fflush: avoid warnings on modern systems
34530         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34531         pos and result, into scopes where they're used.
34532
34533 2009-01-26  Eric Blake  <ebb9@byu.net>
34534
34535         Silence warning reintroduced by recent extensions patch.
34536         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34537         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34538         autoconf.
34539
34540         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34541         * m4/00gnulib.m4: New file.
34542         * gnulib-tool (func_get_filelist): Always use it.
34543         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34544         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34545
34546 2009-01-25  Bruno Haible  <bruno@clisp.org>
34547
34548         Make test-quotearg work on MacOS X and AIX.
34549         * tests/test-quotearg.sh: New file.
34550         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34551         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34552         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34553         include <libintl.h>.
34554         (fake_locale): Remove variable.
34555         (gettext, dgettext, dcgettext): Remove functions.
34556         (main): Instead of setting a fake locale, set a real locale. Call
34557         textdomain and bindtextdomain.
34558         * modules/quotearg-tests (Files): Add the new files.
34559         (Depends-on): Add gettext, setenv, unsetenv.
34560         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34561         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34562         Augment TESTS_ENVIRONMENT.
34563
34564 2009-01-25  Bruno Haible  <bruno@clisp.org>
34565
34566         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34567         fr_FR.ISO8859-1 locale on MacOS X.
34568         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34569         ja_JP.eucJP locale on MacOS X.
34570         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34571         zh_CN.GB18030 locale on MacOS X.
34572
34573 2009-01-25  Bruno Haible  <bruno@clisp.org>
34574
34575         Avoid link errors on MacOS X 10.3.
34576         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34577         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34578
34579 2009-01-25  Bruno Haible  <bruno@clisp.org>
34580
34581         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34582         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34583         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34584         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34585         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34586         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34587         posix_spawnattr_init, posix_spawnattr_setsigmask,
34588         posix_spawnattr_setflags, posix_spawnattr_destroy.
34589
34590         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34591         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34592         * modules/execute (Files): Remove m4/posix_spawn.m4.
34593         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34594         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34595         posix_spawnattr_init, posix_spawnattr_setsigmask,
34596         posix_spawnattr_setflags, posix_spawnattr_destroy.
34597
34598 2009-01-25  Bruno Haible  <bruno@clisp.org>
34599
34600         * lib/glthread/threadlib.c: Include <stdlib.h>.
34601
34602 2009-01-25  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/glthread/threadlib.c (dummy): New declaration.
34605
34606 2009-01-25  Bruno Haible  <bruno@clisp.org>
34607
34608         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34609         multibyte characters also for the GB18030 encoding. Don't crash when
34610         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34611
34612 2009-01-25  Bruno Haible  <bruno@clisp.org>
34613
34614         Avoid redefining 'struct random_data' on OSF/1 5.1.
34615         * lib/stdlib.in.h: Include <random.h> if it exists.
34616         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34617         HAVE_RANDOM_H. Include <random.h> when testing whether
34618         'struct random_data' exists.
34619         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34620
34621 2009-01-25  Bruno Haible  <bruno@clisp.org>
34622
34623         Don't install charset.alias on MacOS X >= 10.3.
34624         * lib/localcharset.c (DARWIN7): New macro.
34625         (get_charset_aliases): Hardcode the result for Darwin7.
34626         * modules/localcharset (install-exec-local): Don't install
34627         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34628
34629 2009-01-25  Bruno Haible  <bruno@clisp.org>
34630
34631         Don't install charset.alias on mingw and Cygwin.
34632         * modules/localcharset (install-exec-local): Don't install
34633         charset.alias on mingw and Cygwin, if the file does not yet exist.
34634         The result for these platforms is hardcoded in localcharset.c.
34635
34636 2009-01-25  Bruno Haible  <bruno@clisp.org>
34637
34638         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34640         before requiring AC_USE_SYSTEM_EXTENSIONS.
34641
34642 2009-01-25  Jim Meyering  <meyering@redhat.com>
34643
34644         c-strtod: avoid warnings
34645         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34646         "assignment discards qualifiers from pointer target type" warnings.
34647
34648 2009-01-24  Bruno Haible  <bruno@clisp.org>
34649
34650         Add support for non-UTF-8 locales on MacOS X.
34651         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34652         canonical encodings. For Darwin 7 and newer, don't map traditional
34653         encodings to UTF-8.
34654         Reported by Vincent Lefevre <vincent@vinc17.org>
34655         at <http://savannah.gnu.org/bugs/?25235>.
34656
34657 2009-01-24  Bruno Haible  <bruno@clisp.org>
34658
34659         * doc/gnulib.texi (Obsolete modules): New section.
34660         Reported by Mike Frysinger <vapier@gentoo.org>.
34661
34662 2009-01-24  Bruno Haible  <bruno@clisp.org>
34663
34664         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34665         (%.dvi): New rule.
34666
34667 2009-01-24  Bruno Haible  <bruno@clisp.org>
34668
34669         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34670         Reported by Eric Blake.
34671
34672 2009-01-24  Bruno Haible  <bruno@clisp.org>
34673
34674         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34675         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34676         Reported by Gary V. Vaughan <gary@gnu.org>.
34677
34678 2009-01-24  Bruno Haible  <bruno@clisp.org>
34679
34680         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34681
34682 2009-01-23  Bruno Haible  <bruno@clisp.org>
34683
34684         Make c-strtod, c-strtold usable in libraries.
34685         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34686         (C_STRTOD): Call strdup instead of xstrdup.
34687         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34688         * modules/c-strtold (Depends-on): Likewise.
34689         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34690         * NEWS: Mention the change.
34691         Reported by Michael Gold <mgold@ncf.ca>.
34692
34693 2009-01-23  Jim Meyering  <meyering@redhat.com>
34694
34695         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34696         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34697         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34698
34699 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34700
34701         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34702         GNU CoreUtils.
34703         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34704         * modules/version-etc (Description): Update.
34705
34706 2009-01-22  Bruno Haible  <bruno@clisp.org>
34707
34708         Cache the C locale object.
34709         * lib/c-strtod.c (c_locale_cache): New variable.
34710         (c_locale): New function.
34711         (C_STRTOD): Use it, and don't call freelocale.
34712         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34713         Suggested by Paolo Bonzini.
34714
34715 2009-01-21  Bruno Haible  <bruno@clisp.org>
34716
34717         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34718         conditions other than overflow.
34719
34720 2009-01-21  Bruno Haible  <bruno@clisp.org>
34721
34722         * lib/c-strtod.c: Include errno.h.
34723         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34724         value from STRTOD_L and STRTOD.
34725
34726 2009-01-21  Bruno Haible  <bruno@clisp.org>
34727         and Jim Meyering  <meyering@redhat.com>
34728
34729         nanosleep: skip configure test (fail it) for apple universal builds
34730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34731         universal builds, assume that nanosleep does not work.
34732         * modules/nanosleep (Depends-on): Add multiarch.
34733
34734         mktime: skip configure test (fail it) for apple universal builds
34735         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34736         universal builds, assume that mktime does not work.
34737         * modules/mktime (Depends-on): Add multiarch.
34738
34739 2009-01-21  Eric Blake  <ebb9@byu.net>
34740
34741         multiarch: avoid expand-before-require warning
34742         * modules/multiarch (configure.ac): Require, rather than expand,
34743         gl_MULTIARCH.
34744         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34745         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34746         enforce that all clients require it.  Partial reversion of
34747         2008-12-29 patch.
34748
34749         error: avoid expand-before-require warning
34750         * modules/errno (configure.ac): Require, rather than expand,
34751         gl_HEADER_ERRNO_H.
34752         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34753         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34754         enforce that all clients require it.
34755
34756         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34757         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34758         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34759         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34760
34761 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34762
34763         Revert:
34764         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34765
34766         regex: do not depend on obsolete modules.
34767         * modules/regex: Remove memcmp and memmove.
34768
34769 2009-01-20  Bruno Haible  <bruno@clisp.org>
34770
34771         Make the 'link' module link on Windows NT 4.
34772         * lib/link.c (_WIN32_WINNT): Don't define.
34773         (CreateHardLinkFuncType): New type.
34774         (CreateHardLinkFunc, initialized): New variables.
34775         (initialize): New function.
34776         (link): Invoke CreateHardLink indirectly through the function pointer.
34777
34778 2009-01-20  Bruno Haible  <bruno@clisp.org>
34779
34780         Fix compilation failure on mingw.
34781         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34782
34783 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34784
34785         * doc/c-strtod.texi: Mention a couple of restrictions.
34786
34787 2009-01-20  Jim Meyering  <meyering@redhat.com>
34788
34789         gettimeofday: move more declarations out of functions
34790         * lib/gettimeofday.c: Move extern declarations of tzset and
34791         gmtime out of containing functions.  Prompted by Bruno Haible.
34792
34793 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34794
34795         regex: do not depend on obsolete modules.
34796         * modules/regex: Remove memcmp and memmove.
34797
34798 2009-01-19  Bruno Haible  <bruno@clisp.org>
34799
34800         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34801         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34802         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34803         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34804         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34805
34806 2009-01-19  Bruno Haible  <bruno@clisp.org>
34807
34808         * tests/test-link.c: Include <errno.h>.
34809         (main): Exit with code 77 when a hard link cannot be created due to
34810         the file system.
34811         * tests/test-link.sh: Skip test when a hard link cannot be created due
34812         to the file system.
34813         Suggested by Eric Blake.
34814
34815 2009-01-19  Martin Lambers  <marlam@marlam.de>
34816
34817         * modules/link-tests: New file.
34818         * tests/test-link.sh: New file.
34819         * tests/test-link.c: New file.
34820
34821 2009-01-19  Eric Blake  <ebb9@byu.net>
34822
34823         doc: mention another function added in cygwin 1.7.0
34824         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34825         Another new function in cygwin 1.7.
34826
34827 2009-01-19  Bruno Haible  <bruno@clisp.org>
34828
34829         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34830         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34831         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34832         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34833         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34834         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34835         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34836         * m4/md4.m4 (gl_MD4): Likewise.
34837         * m4/md5.m4 (gl_MD5): Likewise.
34838         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34839         * m4/sha1.m4 (gl_SHA1): Likewise.
34840         * m4/sha256.m4 (gl_SHA256): Likewise.
34841         * m4/sha512.m4 (gl_SHA512): Likewise.
34842
34843 2009-01-19  Bruno Haible  <bruno@clisp.org>
34844
34845         * modules/uniname/uniname-tests (Depends-on): Add progname.
34846         * tests/uniname/test-uninames.c: Include progname.h.
34847         (main): Call set_program_name.
34848
34849         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34850         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34851         (main): Call set_program_name.
34852
34853         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34854         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34855         (main): Call set_program_name.
34856
34857         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34858         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34859         (main): Call set_program_name.
34860
34861         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34862         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34863         (main): Call set_program_name.
34864
34865         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34866         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34867         (main): Call set_program_name.
34868
34869         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34870         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34871         (main): Call set_program_name.
34872
34873         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34874         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34875         (main): Call set_program_name.
34876
34877         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34878         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34879         (main): Call set_program_name.
34880
34881 2009-01-19  Eric Blake  <ebb9@byu.net>
34882
34883         test-unistd: test previous patch
34884         * tests/test-unistd.c: Test *_FILENO macros.
34885
34886         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34887         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34888         Guarantee a definition.
34889         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34890         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34891         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34892         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34893         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34894         Likewise.
34895         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34896         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34897         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34898         Likewise.
34899         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34900         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34901         (STDERR_FILENO): Likewise.
34902         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34903         (STDERR_FILENO): Likewise.
34904         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34905         (STDERR_FILENO): Likewise.
34906         Reported by Elbert Pol.
34907
34908 2009-01-19  Eric Blake  <ebb9@byu.net>
34909
34910         doc: mention more functions added in cygwin 1.7.0
34911         * doc/posix-functions/abort.texi (abort): Update wording related
34912         to cygwin.
34913         * doc/posix-functions/daylight.texi (daylight): Likewise.
34914         * doc/posix-functions/optarg.texi (optarg): Likewise.
34915         * doc/posix-functions/optarg.texi (opterr): Likewise.
34916         * doc/posix-functions/optarg.texi (optind): Likewise.
34917         * doc/posix-functions/optarg.texi (optopt): Likewise.
34918         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34919         worked in 1.5.x, and was withdrawn in 1.7.
34920         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34921         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34922         cygwin versions.
34923         * doc/posix-functions/perror.texi (perror): Likewise.
34924         * doc/posix-functions/printf.texi (printf): Likewise.
34925         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34926         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34927         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34928         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34929         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34930         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34931         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34932         Likewise.
34933         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34934         Likewise.
34935         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34936         this function.
34937         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34938         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34939         Likewise.
34940         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34941         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34942         * doc/posix-functions/confstr.texi (confstr): Likewise.
34943         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34944         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34945         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34946         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34947         * doc/posix-functions/fputws.texi (fputws): Likewise.
34948         * doc/posix-functions/fwide.texi (fwide): Likewise.
34949         * doc/posix-functions/getwc.texi (getwc): Likewise.
34950         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34951         * doc/posix-functions/putwc.texi (putwc): Likewise.
34952         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34953         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34954         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34955         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34956         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34957         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34958         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34959         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34960         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34961         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34962         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34963
34964 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34965
34966         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34967         * lib/ioctl.c: Include <sys/ioctl.h>.
34968
34969 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34970
34971         * modules/getdate-tests (Depends-on): Add progname.
34972         * tests/test-getdate.c: Use progname module, to avoid link errors
34973         on non-glibc systems.
34974
34975 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34976
34977         * modules/filenamecat-tests (Depends-on): Add progname.
34978         * modules/fstrcmp-tests (Depends-on): Likewise.
34979
34980         * tests/test-filenamecat.c: Use progname module, to avoid link
34981         errors on non-glibc systems.
34982         * tests/test-fstrcmp.c: Likewise.
34983
34984 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34985
34986         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34987         * lib/gettimeofday.c: Move extern declaration out of function.
34988
34989 2009-01-18  Bruno Haible  <bruno@clisp.org>
34990
34991         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34992         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34993         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34994
34995 2009-01-18  Bruno Haible  <bruno@clisp.org>
34996
34997         * lib/strftime.c (MEMPCPY): Remove unused macro.
34998         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34999
35000 2009-01-18  Martin Lambers  <marlam@marlam.de>
35001
35002         New module 'link'.
35003         * lib/unistd.in.h (link): New declaration.
35004         * lib/link.c: New file.
35005         * m4/link.m4: New file.
35006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35007         HAVE_LINK.
35008         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35009         * modules/link: New file.
35010         * doc/posix-functions/link.texi: Mention the new module.
35011
35012 2009-01-18  Bruno Haible  <bruno@clisp.org>
35013
35014         * tests/test-avltree_list.c (main): Call set_program_name.
35015         * tests/test-avltree_oset.c (main): Likewise.
35016         * tests/test-obstack-printf.c: Include progname.h.
35017         (main): Call set_program_name.
35018         * tests/test-quotearg.c: Include progname.h.
35019         (main): Call set_program_name.
35020         * tests/test-xmemdup0.c: Include progname.h.
35021         (main): Call set_program_name.
35022
35023 2009-01-18  Bruno Haible  <bruno@clisp.org>
35024
35025         New module 'alphasort'.
35026         * lib/dirent.in.h (alphasort): New declaration.
35027         * lib/alphasort.c: New file, from glibc with modifications.
35028         * m4/alphasort.m4: New file.
35029         * modules/alphasort: New file.
35030         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35031         HAVE_ALPHASORT.
35032         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35033         HAVE_ALPHASORT.
35034         * doc/posix-functions/alphasort.texi: Mention the new module and the
35035         portability problems.
35036
35037 2009-01-18  Bruno Haible  <bruno@clisp.org>
35038
35039         New module 'scandir'.
35040         * lib/dirent.in.h (scandir): New declaration.
35041         * lib/scandir.c: New file, from glibc with modifications.
35042         * m4/scandir.m4: New file.
35043         * modules/scandir: New file.
35044         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35045         HAVE_SCANDIR.
35046         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35047         HAVE_SCANDIR.
35048         * doc/posix-functions/scandir.texi: Mention the new module and the
35049         portability problems.
35050
35051 2009-01-17  Bruno Haible  <bruno@clisp.org>
35052
35053         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35054         Update documentation.
35055         (func_remove_suffix): Escape all dots in the suffix. Update
35056         documentation.
35057         (func_filter_filelist): Update documentation.
35058         Reported by Ralf Wildenhues.
35059
35060 2009-01-17  Bruno Haible  <bruno@clisp.org>
35061
35062         * modules/dprintf-posix-tests: New file.
35063         * tests/test-dprintf-posix.sh: New file.
35064         * tests/test-dprintf-posix.c: New file.
35065
35066         New modules 'dprintf', 'dprintf-posix'.
35067         * lib/stdio.in.h (dprintf): New declaration.
35068         * lib/dprintf.c: New file.
35069         * m4/dprintf.m4: New file.
35070         * m4/dprintf-posix.m4: New file.
35071         * modules/dprintf: New file.
35072         * modules/dprintf-posix: New file.
35073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35074         HAVE_DPRINTF, REPLACE_DPRINTF.
35075         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35076         HAVE_DPRINTF, REPLACE_DPRINTF.
35077         * doc/posix-functions/dprintf.texi: Mention the new modules.
35078
35079 2009-01-17  Bruno Haible  <bruno@clisp.org>
35080
35081         * modules/vdprintf-posix-tests: New file.
35082         * tests/test-vdprintf-posix.sh: New file.
35083         * tests/test-vdprintf-posix.c: New file.
35084
35085         New modules 'vdprintf', 'vdprintf-posix'.
35086         * lib/stdio.in.h (vdprintf): New declaration.
35087         * lib/vdprintf.c: New file.
35088         * m4/vdprintf.m4: New file.
35089         * m4/vdprintf-posix.m4: New file.
35090         * modules/vdprintf: New file.
35091         * modules/vdprintf-posix: New file.
35092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35093         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35094         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35095         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35096         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35097
35098 2009-01-17  Bruno Haible  <bruno@clisp.org>
35099
35100         Fix replacement of fopen on mingw.
35101         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35102         mingw.
35103
35104 2009-01-17  Bruno Haible  <bruno@clisp.org>
35105
35106         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35107         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35108
35109 2009-01-17  Bruno Haible  <bruno@clisp.org>
35110
35111         Avoid test-fflush2.sh failure on mingw.
35112         * tests/test-fflush2.c: Include binary-io.h.
35113         (main): Put standard input into binary mode.
35114         * modules/fflush-tests (Depends-on): Add binary-io.
35115
35116 2009-01-17  Bruno Haible  <bruno@clisp.org>
35117
35118         * lib/wchar.in.h: In another particular situation, include only the
35119         system's <wchar.h> file.
35120         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35121         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35122         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35123
35124 2009-01-17  Bruno Haible  <bruno@clisp.org>
35125
35126         Support for stripping executables in --enable-relocatable.
35127         * build-aux/install-reloc: Expect one more argument, or an environment
35128         variable RELOC_STRIP_PROG. If set, strip the destination program and
35129         its wrapper.
35130         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35131         RELOC_STRIP_PROG.
35132         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35133         to set RELOCATABLE_STRIP.
35134         * NEWS: Mention the new Makefile requirement.
35135
35136 2009-01-17  Bruno Haible  <bruno@clisp.org>
35137
35138         * build-aux/install-reloc: Remove debugging information left over by
35139         C compiler on MacOS X.
35140
35141 2009-01-17  Bruno Haible  <bruno@clisp.org>
35142
35143         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35144         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35145         _NSGetExecutablePath.
35146
35147 2009-01-16  Jim Meyering  <meyering@redhat.com>
35148
35149         strerror: avoid warnings about discarding "const"
35150         * lib/strerror.c (rpl_strerror): Instead of returning a const
35151         string from each and every "case", use a variable, and add a single
35152         cast after the switch.
35153
35154 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35155
35156         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35157
35158 2009-01-16  Bruno Haible  <bruno@clisp.org>
35159
35160         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35161         array initializer syntax that also works in C++ mode.
35162         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35163
35164 2009-01-16  Jim Meyering  <meyering@redhat.com>
35165
35166         poll: suppress a warning
35167         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35168         to ignore "...unsigned expression < 0 is always false" warnings.
35169
35170 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35171
35172         poll: remove declarations of unused variables
35173         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35174         sockbuf and optlen.
35175
35176 2009-01-15  Bruno Haible  <bruno@clisp.org>
35177
35178         Make fflush-after-ungetc POSIX compliant on BSD systems.
35179         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35180         (clear_ungetc_buffer): Implement also for other systems.
35181         (rpl_fflush): On glibc systems, invoke
35182         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35183         clear_ungetc_buffer after fetching the stream's position, not before.
35184
35185 2009-01-15  Bruno Haible  <bruno@clisp.org>
35186
35187         Make fflush-after-ungetc POSIX compliant on glibc systems.
35188         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35189         after ungetc.
35190         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35191         (rpl_fflush): On glibc systems, simply call the system's fflush
35192         function after clearing the ungetc buffer.
35193         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35194         Instead, lseek only to the end of file, then use the system's fseeko
35195         for the rest. On glibc systems, reset the EOF indicator bit.
35196
35197 2009-01-15  Jim Meyering  <meyering@redhat.com>
35198
35199         openmp.m4: revert quote-adding change, for portability to older autoconf
35200         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35201         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35202         Simon Josefsson noticed the problem when using autoconf-2.61.
35203
35204 2009-01-15  Bruno Haible  <bruno@clisp.org>
35205
35206         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35207         * tests/test-fflush2.c (ASSERT): Always fail.
35208         (main): Add two tests for fflush() after ungetc(), taking into account
35209         the Austin Group's clarification.
35210         Suggested by Eric Blake.
35211
35212 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35213
35214         mktime.m4: remove K&R-style function prototypes
35215         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35216         for the Sun C++ compiler.
35217
35218 2009-01-14  Bruno Haible  <bruno@clisp.org>
35219
35220         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35221         while including <wchar.h>.
35222         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35223         the system's <wchar.h> file.
35224         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35225
35226 2009-01-14  Bruno Haible  <bruno@clisp.org>
35227
35228         * m4/csharp.m4: Don't mention gettext on the serial number line.
35229         * m4/csharpexec.m4: Likewise.
35230         * m4/eaccess.m4: Likewise.
35231         * m4/javaexec.m4: Likewise.
35232         * m4/sig_atomic_t.m4: Likewise.
35233         * m4/tmpdir.m4: Likewise.
35234         * m4/intldir.m4: Bump gettext version.
35235         * m4/lib-ld.m4: Likewise.
35236
35237 2009-01-14  Bruno Haible  <bruno@clisp.org>
35238
35239         * lib/progname.c (set_program_name): Add more comments.
35240         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35241
35242 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35243
35244         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35245         were sys/stat.h does not define it.
35246
35247 2009-01-14  Jim Meyering  <meyering@redhat.com>
35248
35249         many *.m4 files: improve m4 quoting
35250         99% of this change was performed by running the following commands:
35251         git ls-files | grep '\.m4$' | xargs perl -pi \
35252           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35253           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35254           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35255           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35256         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35257         The remainder were to add Copyright dates, increment serial numbers,
35258         undo some changes in comments, exclude m4/intl.m4, and add quotes
35259         around the "1" in ",1" where the unusual spacing prohibited the
35260         above regexps from doing the job.  For more details, see
35261         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35262         * m4/acl.m4: Modified.
35263         * m4/afs.m4: Likewise.
35264         * m4/alloca.m4: Likewise.
35265         * m4/argp.m4: Likewise.
35266         * m4/argz.m4: Likewise.
35267         * m4/atexit.m4: Likewise.
35268         * m4/bison-i18n.m4: Likewise.
35269         * m4/bison.m4: Likewise.
35270         * m4/byteswap.m4: Likewise.
35271         * m4/c-stack.m4: Likewise.
35272         * m4/c-strtod.m4: Likewise.
35273         * m4/calloc.m4: Likewise.
35274         * m4/canonicalize-lgpl.m4: Likewise.
35275         * m4/chown.m4: Likewise.
35276         * m4/clock_time.m4: Likewise.
35277         * m4/codeset.m4: Likewise.
35278         * m4/copy-file.m4: Likewise.
35279         * m4/csharp.m4: Likewise.
35280         * m4/csharpcomp.m4: Likewise.
35281         * m4/csharpexec.m4: Likewise.
35282         * m4/d-ino.m4: Likewise.
35283         * m4/d-type.m4: Likewise.
35284         * m4/dirfd.m4: Likewise.
35285         * m4/double-slash-root.m4: Likewise.
35286         * m4/eaccess.m4: Likewise.
35287         * m4/eealloc.m4: Likewise.
35288         * m4/environ.m4: Likewise.
35289         * m4/errno_h.m4: Likewise.
35290         * m4/euidaccess.m4: Likewise.
35291         * m4/execute.m4: Likewise.
35292         * m4/fatal-signal.m4: Likewise.
35293         * m4/fchdir.m4: Likewise.
35294         * m4/fcntl_h.m4: Likewise.
35295         * m4/fileblocks.m4: Likewise.
35296         * m4/filenamecat.m4: Likewise.
35297         * m4/findprog.m4: Likewise.
35298         * m4/flexmember.m4: Likewise.
35299         * m4/fnmatch.m4: Likewise.
35300         * m4/fopen.m4: Likewise.
35301         * m4/fpending.m4: Likewise.
35302         * m4/fprintf-posix.m4: Likewise.
35303         * m4/free.m4: Likewise.
35304         * m4/frexp.m4: Likewise.
35305         * m4/frexpl.m4: Likewise.
35306         * m4/fsusage.m4: Likewise.
35307         * m4/ftruncate.m4: Likewise.
35308         * m4/gc-camellia.m4: Likewise.
35309         * m4/gc-random.m4: Likewise.
35310         * m4/gc.m4: Likewise.
35311         * m4/getaddrinfo.m4: Likewise.
35312         * m4/getcwd-abort-bug.m4: Likewise.
35313         * m4/getcwd-path-max.m4: Likewise.
35314         * m4/getdate.m4: Likewise.
35315         * m4/getdomainname.m4: Likewise.
35316         * m4/getgroups.m4: Likewise.
35317         * m4/gethostname.m4: Likewise.
35318         * m4/gethrxtime.m4: Likewise.
35319         * m4/getline.m4: Likewise.
35320         * m4/getloadavg.m4: Likewise.
35321         * m4/getndelim2.m4: Likewise.
35322         * m4/getpass.m4: Likewise.
35323         * m4/gettext.m4: Likewise.
35324         * m4/gettime.m4: Likewise.
35325         * m4/gettimeofday.m4: Likewise.
35326         * m4/gnulib-common.m4: Likewise.
35327         * m4/group-member.m4: Likewise.
35328         * m4/host-os.m4: Likewise.
35329         * m4/iconv.m4: Likewise.
35330         * m4/iconv_open.m4: Likewise.
35331         * m4/inet_ntop.m4: Likewise.
35332         * m4/inet_pton.m4: Likewise.
35333         * m4/inline.m4: Likewise.
35334         * m4/intldir.m4: Likewise.
35335         * m4/intlmacosx.m4: Likewise.
35336         * m4/intmax.m4: Likewise.
35337         * m4/intmax_t.m4: Likewise.
35338         * m4/inttypes.m4: Likewise.
35339         * m4/inttypes_h.m4: Likewise.
35340         * m4/inttypes-pri.m4: Likewise.
35341         * m4/isapipe.m4: Likewise.
35342         * m4/isnand.m4: Likewise.
35343         * m4/isnanf.m4: Likewise.
35344         * m4/isnanl.m4: Likewise.
35345         * m4/javacomp.m4: Likewise.
35346         * m4/javaexec.m4: Likewise.
35347         * m4/jm-winsz1.m4: Likewise.
35348         * m4/jm-winsz2.m4: Likewise.
35349         * m4/lchown.m4: Likewise.
35350         * m4/lcmessage.m4: Likewise.
35351         * m4/ldexpl.m4: Likewise.
35352         * m4/lib-ld.m4: Likewise.
35353         * m4/lib-link.m4: Likewise.
35354         * m4/libsigsegv.m4: Likewise.
35355         * m4/link-follow.m4: Likewise.
35356         * m4/localcharset.m4: Likewise.
35357         * m4/locale-fr.m4: Likewise.
35358         * m4/locale-ja.m4: Likewise.
35359         * m4/locale-tr.m4: Likewise.
35360         * m4/locale-zh.m4: Likewise.
35361         * m4/lock.m4: Likewise.
35362         * m4/longlong.m4: Likewise.
35363         * m4/ls-mntd-fs.m4: Likewise.
35364         * m4/lstat.m4: Likewise.
35365         * m4/malloc.m4: Likewise.
35366         * m4/mathl.m4: Likewise.
35367         * m4/mbrtowc.m4: Likewise.
35368         * m4/mbstate_t.m4: Likewise.
35369         * m4/mbswidth.m4: Likewise.
35370         * m4/memchr.m4: Likewise.
35371         * m4/memcmp.m4: Likewise.
35372         * m4/memcpy.m4: Likewise.
35373         * m4/memmem.m4: Likewise.
35374         * m4/memmove.m4: Likewise.
35375         * m4/mempcpy.m4: Likewise.
35376         * m4/memrchr.m4: Likewise.
35377         * m4/memset.m4: Likewise.
35378         * m4/minmax.m4: Likewise.
35379         * m4/mkdir-slash.m4: Likewise.
35380         * m4/mkdtemp.m4: Likewise.
35381         * m4/mktime.m4: Likewise.
35382         * m4/mmap-anon.m4: Likewise.
35383         * m4/mountlist.m4: Likewise.
35384         * m4/nanosleep.m4: Likewise.
35385         * m4/nls.m4: Likewise.
35386         * m4/nocrash.m4: Likewise.
35387         * m4/open.m4: Likewise.
35388         * m4/openat.m4: Likewise.
35389         * m4/openmp.m4: Likewise.
35390         * m4/pathmax.m4: Likewise.
35391         * m4/perl.m4: Likewise.
35392         * m4/physmem.m4: Likewise.
35393         * m4/pipe.m4: Likewise.
35394         * m4/po.m4: Likewise.
35395         * m4/poll.m4: Likewise.
35396         * m4/posixtm.m4: Likewise.
35397         * m4/posixver.m4: Likewise.
35398         * m4/printf-frexp.m4: Likewise.
35399         * m4/printf-frexpl.m4: Likewise.
35400         * m4/printf-posix.m4: Likewise.
35401         * m4/printf-posix-rpl.m4: Likewise.
35402         * m4/printf.m4: Likewise.
35403         * m4/progtest.m4: Likewise.
35404         * m4/putenv.m4: Likewise.
35405         * m4/readline.m4: Likewise.
35406         * m4/readlink.m4: Likewise.
35407         * m4/readutmp.m4: Likewise.
35408         * m4/realloc.m4: Likewise.
35409         * m4/regex.m4: Likewise.
35410         * m4/relocatable.m4: Likewise.
35411         * m4/relocatable-lib.m4: Likewise.
35412         * m4/rename-dest-slash.m4: Likewise.
35413         * m4/rename.m4: Likewise.
35414         * m4/rmdir-errno.m4: Likewise.
35415         * m4/rmdir.m4: Likewise.
35416         * m4/roundf.m4: Likewise.
35417         * m4/roundl.m4: Likewise.
35418         * m4/rpmatch.m4: Likewise.
35419         * m4/save-cwd.m4: Likewise.
35420         * m4/selinux-selinux-h.m4: Likewise.
35421         * m4/setenv.m4: Likewise.
35422         * m4/settime.m4: Likewise.
35423         * m4/sig2str.m4: Likewise.
35424         * m4/sig_atomic_t.m4: Likewise.
35425         * m4/signalblocking.m4: Likewise.
35426         * m4/signbit.m4: Likewise.
35427         * m4/sigpipe.m4: Likewise.
35428         * m4/sockets.m4: Likewise.
35429         * m4/sockpfaf.m4: Likewise.
35430         * m4/st_dm_mode.m4: Likewise.
35431         * m4/stat-time.m4: Likewise.
35432         * m4/stdbool.m4: Likewise.
35433         * m4/stdint.m4: Likewise.
35434         * m4/stdint_h.m4: Likewise.
35435         * m4/stpcpy.m4: Likewise.
35436         * m4/stpncpy.m4: Likewise.
35437         * m4/strcase.m4: Likewise.
35438         * m4/strchrnul.m4: Likewise.
35439         * m4/strcspn.m4: Likewise.
35440         * m4/strdup.m4: Likewise.
35441         * m4/strftime.m4: Likewise.
35442         * m4/strndup.m4: Likewise.
35443         * m4/strnlen.m4: Likewise.
35444         * m4/strpbrk.m4: Likewise.
35445         * m4/strptime.m4: Likewise.
35446         * m4/strsep.m4: Likewise.
35447         * m4/strtod.m4: Likewise.
35448         * m4/strtoimax.m4: Likewise.
35449         * m4/strtok_r.m4: Likewise.
35450         * m4/strtol.m4: Likewise.
35451         * m4/strtoll.m4: Likewise.
35452         * m4/strtoul.m4: Likewise.
35453         * m4/strtoull.m4: Likewise.
35454         * m4/strtoumax.m4: Likewise.
35455         * m4/strverscmp.m4: Likewise.
35456         * m4/threadlib.m4: Likewise.
35457         * m4/timegm.m4: Likewise.
35458         * m4/tm_gmtoff.m4: Likewise.
35459         * m4/tmpdir.m4: Likewise.
35460         * m4/tmpfile.m4: Likewise.
35461         * m4/tzset.m4: Likewise.
35462         * m4/uintmax_t.m4: Likewise.
35463         * m4/unlinkdir.m4: Likewise.
35464         * m4/unlocked-io.m4: Likewise.
35465         * m4/uptime.m4: Likewise.
35466         * m4/userspec.m4: Likewise.
35467         * m4/utimbuf.m4: Likewise.
35468         * m4/utime.m4: Likewise.
35469         * m4/utimes-null.m4: Likewise.
35470         * m4/utimes.m4: Likewise.
35471         * m4/vararrays.m4: Likewise.
35472         * m4/vasnprintf.m4: Likewise.
35473         * m4/vfprintf-posix.m4: Likewise.
35474         * m4/vprintf-posix.m4: Likewise.
35475         * m4/wait-process.m4: Likewise.
35476         * m4/wchar_t.m4: Likewise.
35477         * m4/wint_t.m4: Likewise.
35478         * m4/write-any-file.m4: Likewise.
35479         * m4/yield.m4: Likewise.
35480
35481 2009-01-13  Bruno Haible  <bruno@clisp.org>
35482
35483         Avoid test-copy-file.sh failures when ACL support insufficient.
35484         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35485         TESTS_ENVIRONMENT.
35486         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35487         Reported by Jim Meyering.
35488
35489 2009-01-13  Bruno Haible  <bruno@clisp.org>
35490
35491         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35492         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35493         * modules/unistdio/u8-printf-parse (Files): Likewise.
35494         * modules/unistdio/u32-printf-parse (Files): Likewise.
35495         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35496
35497 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35498
35499         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35500         and m4/inttypes_h.m4 too.
35501
35502 2009-01-12  Eric Blake  <ebb9@byu.net>
35503
35504         tests: IRIX 6.2 cc can't compile -0.0 into .data
35505         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35506         rather than at compile-time.
35507         * tests/test-floorl.c (minus_zero): Likewise.
35508         * tests/test-frexpl.c (minus_zero): Likewise.
35509         * tests/test-isnan.c (minus_zerol): Likewise.
35510         * tests/test-isnanl.h (minus_zero): Likewise.
35511         * tests/test-ldexpl.c (minus_zero): Likewise.
35512         * tests/test-roundl.c (minus_zero): Likewise.
35513         * tests/test-signbit.c (minus_zerol): Likewise.
35514         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35515         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35516         * tests/test-truncl.c (minus_zero): Likewise.
35517         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35518         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35519         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35520
35521 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35522
35523         regex: fix glibc bug 9697
35524         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35525         handling.
35526
35527 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35528
35529         regex: fix glibc bug 697
35530         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35531         being NULL also if there are no backreferences.
35532
35533 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35534
35535         regex: merge glibc changes
35536         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35537         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35538         re_string_skip_chars, re_string_reconstruct): Likewise.
35539         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35540
35541 2009-01-07  Jim Meyering  <meyering@redhat.com>
35542
35543         poll: filter through cppi
35544         * lib/poll.c: Indent cpp directives to reflect nesting.
35545
35546 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35547
35548         poll: don't return uninitialized
35549         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35550
35551 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35552
35553         avoid compile failure on AIX 6.1
35554         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35555         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35556
35557 2009-01-04  Jim Meyering  <meyering@redhat.com>
35558
35559         remove duplicate inclusion of <stdio.h>
35560         * tests/test-fprintf-posix.c: Likewise.
35561         * tests/test-printf-posix.c: Likewise.
35562         * tests/test-snprintf-posix.c: Likewise.
35563         * tests/test-sprintf-posix.c: Likewise.
35564         * tests/test-vasprintf-posix.c: Likewise.
35565         * tests/test-vfprintf-posix.c: Likewise.
35566         * tests/test-vprintf-posix.c: Likewise.
35567         * tests/test-vsnprintf-posix.c: Likewise.
35568         * tests/test-vsprintf-posix.c: Likewise.
35569
35570 2009-01-03  Jim Meyering  <meyering@redhat.com>
35571
35572         gnulib-tool: fix sed-based filtering
35573         * gnulib-tool (func_filter_filelist): Remove extra backslash
35574         in sed_fff_filter definition.
35575
35576 2009-01-02  Jim Meyering  <meyering@redhat.com>
35577
35578         strftime: avoid compilation failure on Solaris 2.6
35579         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35580         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35581         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35582         be available.  Reported by Tom G. Christensen.  Details in
35583         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35584
35585 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35586             Bruno Haible  <bruno@clisp.org>
35587
35588         Speed up gnulib-tool by doing more string processing through shell
35589         built-ins.
35590         * gnulib-tool (fast_func_append): New variable.
35591         (func_remove_prefix, func_remove_suffix): New functions.
35592         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35593         (func_filter_filelist): New function.
35594         (func_get_dependencies): Use func_remove_suffix instead of sed.
35595         (func_get_automake_snippet): Use func_filter_filelist instead of a
35596         subshell and sed invocation.
35597
35598 2009-01-01  Bruno Haible  <bruno@clisp.org>
35599
35600         Fix a security bug.
35601         * gnulib-tool (func_import, import, update): Don't allow the characters
35602         '"', '$', '`', '\' in macro arguments that become part of commands that
35603         are evaluated.
35604
35605 2009-01-01  Bruno Haible  <bruno@clisp.org>
35606
35607         * gnulib-tool (func_reset_sigpipe): Add more comments.
35608
35609 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35610
35611         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35612         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35613         already know the answer.
35614
35615 2009-01-01  Jim Meyering  <meyering@redhat.com>
35616
35617         * lib/version-etc.c (version_etc_va): Update copyright year.
35618
35619 2008-12-30  Bruno Haible  <bruno@clisp.org>
35620
35621         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35622         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35623         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35624
35625 2008-12-29  Eric Blake  <ebb9@byu.net>
35626
35627         multiarch: avoid autoconf AC_REQUIRE bug
35628         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35629         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35630         2.63 and older.
35631         Reported by Bruno Haible, and analyzed in
35632         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35633
35634 2008-12-29  Bruno Haible  <bruno@clisp.org>
35635
35636         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35637         files in subdirectories correctly.
35638         Reported by Ralf Wildenhues.
35639
35640 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35641
35642         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35643         rather than 'join FILE -', for Solaris join.
35644
35645 2008-12-29  Bruno Haible  <bruno@clisp.org>
35646
35647         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35648         quoting.
35649         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35650         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35651         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35652         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35653         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35654         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35655         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35656         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35657         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35658         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35659         * m4/nls.m4 (AM_NLS): Likewise.
35660         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35661         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35662         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35663         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35664         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35665         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35666         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35667         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35668         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35669         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35670         * m4/xsize.m4 (gl_XSIZE): Likewise.
35671         Suggested by Jim Meyering.
35672
35673 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35674
35675         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35676         * lib/parse-duration.c: use a switch instead of cascading if's.
35677
35678 2008-12-29  Eric Blake  <ebb9@byu.net>
35679
35680         wchar.h: supply WEOF on Irix 5.3
35681         * lib/wchar.in.h (wint_t): Also supply WEOF.
35682         * lib/wctype.in.h (wint_t): Likewise.
35683         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35684         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35685         Reported by Tom G. Christensen.
35686
35687 2008-12-26  Bruno Haible  <bruno@clisp.org>
35688
35689         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35690         i486, i586, i686.
35691
35692 2008-12-26  Bruno Haible  <bruno@clisp.org>
35693
35694         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35695
35696 2008-12-26  Bruno Haible  <bruno@clisp.org>
35697
35698         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35699         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35700         not __STDC_CONSTANT_MACROS.
35701         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35702
35703 2008-12-25  Bruno Haible  <bruno@clisp.org>
35704
35705         Add support for universal builds to vasnprintf.
35706         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35707         universal builds, guess no.
35708         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35709         * modules/vasprintf-posix (Depends-on): Likewise.
35710         * modules/fprintf-posix (Depends-on): Likewise.
35711         * modules/vfprintf-posix (Depends-on): Likewise.
35712         * modules/snprintf-posix (Depends-on): Likewise.
35713         * modules/vsnprintf-posix (Depends-on): Likewise.
35714         * modules/sprintf-posix (Depends-on): Likewise.
35715         * modules/vsprintf-posix (Depends-on): Likewise.
35716         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35717         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35718         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35719         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35720         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35721         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35722         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35723
35724         Add support for universal builds to <inttypes.h>.
35725         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35726         _SCNu64_PREFIX): In Apple
35727         universal builds, define directly, using _LP64.
35728         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35729         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35730         * modules/inttypes (Depends-on): Add multiarch.
35731         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35732
35733         Add support for universal builds to <stdint.h>.
35734         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35735         universal builds, define directly, using _LP64.
35736         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35737         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35738         and size_t.
35739         * modules/stdint (Depends-on): Add multiarch.
35740         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35741
35742         New module 'multiarch'.
35743         * modules/multiarch: New file.
35744         * m4/multiarch.m4: New file.
35745
35746 2008-12-25  Bruno Haible  <bruno@clisp.org>
35747
35748         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35749
35750 2008-12-25  Bruno Haible  <bruno@clisp.org>
35751
35752         * modules/btowc (License): Relicense under LGPLv2+.
35753         * modules/mbsinit (License): Likewise.
35754         * modules/mbrtowc (License): Likewise.
35755         * modules/wcrtomb (License): Likewise.
35756         * modules/streq (License): Likewise.
35757         Reported by David Lutterkort <lutter@redhat.com>.
35758
35759 2008-12-23  Bruno Haible  <bruno@clisp.org>
35760
35761         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35762
35763 2008-12-23  Bruno Haible  <bruno@clisp.org>
35764
35765         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35766         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35767         GETADDRINFO_LIB, not in LIBS.
35768         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35769         * modules/canon-host (Link): Likewise.
35770         * NEWS: Mention the change.
35771         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35772         GETADDRINFO_LIB.
35773
35774 2008-12-22  Bruno Haible  <bruno@clisp.org>
35775
35776         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35777         * doc/posix-functions/iswalpha_l.texi: Likewise.
35778         * doc/posix-functions/iswblank_l.texi: Likewise.
35779         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35780         * doc/posix-functions/iswctype_l.texi: Likewise.
35781         * doc/posix-functions/iswdigit_l.texi: Likewise.
35782         * doc/posix-functions/iswgraph_l.texi: Likewise.
35783         * doc/posix-functions/iswlower_l.texi: Likewise.
35784         * doc/posix-functions/iswprint_l.texi: Likewise.
35785         * doc/posix-functions/iswpunct_l.texi: Likewise.
35786         * doc/posix-functions/iswspace_l.texi: Likewise.
35787         * doc/posix-functions/iswupper_l.texi: Likewise.
35788         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35789         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35790         * doc/posix-functions/open_wmemstream.texi: Likewise.
35791         * doc/posix-functions/swscanf.texi: Likewise.
35792         * doc/posix-functions/towctrans_l.texi: Likewise.
35793         * doc/posix-functions/towlower.texi: Likewise.
35794         * doc/posix-functions/towlower_l.texi: Likewise.
35795         * doc/posix-functions/towupper.texi: Likewise.
35796         * doc/posix-functions/towupper_l.texi: Likewise.
35797         * doc/posix-functions/vfwprintf.texi: Likewise.
35798         * doc/posix-functions/vfwscanf.texi: Likewise.
35799         * doc/posix-functions/vswscanf.texi: Likewise.
35800         * doc/posix-functions/vwprintf.texi: Likewise.
35801         * doc/posix-functions/vwscanf.texi: Likewise.
35802         * doc/posix-functions/wcpcpy.texi: Likewise.
35803         * doc/posix-functions/wcpncpy.texi: Likewise.
35804         * doc/posix-functions/wcscasecmp.texi: Likewise.
35805         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35806         * doc/posix-functions/wcscoll_l.texi: Likewise.
35807         * doc/posix-functions/wcsdup.texi: Likewise.
35808         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35809         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35810         * doc/posix-functions/wcsnlen.texi: Likewise.
35811         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35812         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35813         * doc/posix-functions/wctrans_l.texi: Likewise.
35814         * doc/posix-functions/wctype_l.texi: Likewise.
35815         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35816         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35817         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35818         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35819         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35820         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35821         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35822         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35823         * doc/glibc-functions/wcschrnul.texi: Likewise.
35824         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35825         * doc/glibc-functions/wcstod_l.texi: Likewise.
35826         * doc/glibc-functions/wcstof_l.texi: Likewise.
35827         * doc/glibc-functions/wcstol_l.texi: Likewise.
35828         * doc/glibc-functions/wcstold_l.texi: Likewise.
35829         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35830         * doc/glibc-functions/wcstoq.texi: Likewise.
35831         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35832         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35833         * doc/glibc-functions/wcstouq.texi: Likewise.
35834         * doc/glibc-functions/wmempcpy.texi: Likewise.
35835
35836 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35837             Eric Blake  <ebb9@byu.net>
35838             Paolo Bonzini  <bonzini@gnu.org>
35839             Bruno Haible  <bruno@clisp.org>
35840
35841         Make c-stack work on Haiku.
35842         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35843         (c_stack_action): Use SA_ONSTACK flag.
35844
35845 2008-12-22  Bruno Haible  <bruno@clisp.org>
35846
35847         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35848
35849 2008-12-22  Bruno Haible  <bruno@clisp.org>
35850
35851         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35852         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35853         being overridden.
35854         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35855         New macros.
35856         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35858         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35859         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35860
35861 2008-12-22  Bruno Haible  <bruno@clisp.org>
35862
35863         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35864         from test code.
35865
35866 2008-12-22  Eric Blake  <ebb9@byu.net>
35867
35868         Avoid gcc warnings on cygwin.
35869         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35870         Avoid unused variable.
35871         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35872         Likewise.
35873
35874 2008-12-22  Bruno Haible  <bruno@clisp.org>
35875
35876         Remove HAVE_MBRTOWC conditionals.
35877         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35878         (mbscasecmp): Assume mbrtowc function.
35879         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35880         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35881         * lib/mbschr.c: Include mbuiter.h unconditionally.
35882         (mbschr): Assume mbrtowc function.
35883         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35884         (mbscspn): Assume mbrtowc function.
35885         * lib/mbslen.c: Include mbuiter.h unconditionally.
35886         (mbslen): Assume mbrtowc function.
35887         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35888         (mbsncasecmp): Assume mbrtowc function.
35889         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35890         (mbsnlen): Assume mbrtowc function.
35891         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35892         (mbspbrk): Assume mbrtowc function.
35893         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35894         (mbspcasecmp): Assume mbrtowc function.
35895         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35896         (mbsrchr): Assume mbrtowc function.
35897         * lib/mbssep.c: Include mbuiter.h unconditionally.
35898         (mbssep): Assume mbrtowc function.
35899         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35900         (mbsspn): Assume mbrtowc function.
35901         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35902         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35903         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35904         (mbstok_r): Assume mbrtowc function.
35905         * lib/propername.c: Include mbuiter.h unconditionally.
35906         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35907         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35908         (trim2): Assume mbrtowc function.
35909         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35910         (mbsnwidth): Assume mbrtowc function.
35911         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35912         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35913         fallback definitions.
35914         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35915
35916 2008-12-22  Bruno Haible  <bruno@clisp.org>
35917
35918         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35919
35920 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35921
35922         * modules/regex: Request emulations for the mb*/wc* functions we need.
35923         * m4/regex.m4: Don't look for those functions here.
35924         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35925
35926 2008-12-22  Bruno Haible  <bruno@clisp.org>
35927
35928         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35929
35930 2008-12-21  Bruno Haible  <bruno@clisp.org>
35931
35932         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35933         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35934         (Include): Remove conditionalization.
35935         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35936         (Include): Remove conditionalization.
35937         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35938         (Include): Remove conditionalization.
35939         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35940         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35941         * NEWS: Mention the change.
35942         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35943         via Sergey Poznyakoff <gray@gnu.org.ua>.
35944
35945 2008-12-21  Bruno Haible  <bruno@clisp.org>
35946
35947         * MODULES.html.sh (Extended multibyte and wide character utilities
35948         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35949         wcrtomb, wcsrtombs.
35950         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35951         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35952         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35953         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35954
35955 2008-12-21  Bruno Haible  <bruno@clisp.org>
35956
35957         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35958
35959 2008-12-21  Bruno Haible  <bruno@clisp.org>
35960
35961         * modules/wcsnrtombs-tests: New file.
35962         * tests/test-wcsnrtombs1.sh: New file.
35963         * tests/test-wcsnrtombs2.sh: New file.
35964         * tests/test-wcsnrtombs3.sh: New file.
35965         * tests/test-wcsnrtombs4.sh: New file.
35966         * tests/test-wcsnrtombs.c: New file.
35967
35968         New module 'wcsnrtombs'.
35969         * lib/wchar.in.h (wcsnrtombs): New declaration.
35970         * lib/wcsnrtombs.c: New file.
35971         * lib/wcsrtombs-state.c: New file.
35972         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35973         (internal_state): Remove variable.
35974         * m4/wcsnrtombs.m4: New file.
35975         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35976         compilation units.
35977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35978         HAVE_WCSNRTOMBS.
35979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35980         HAVE_WCSNRTOMBS.
35981         * modules/wcsnrtombs: New file.
35982         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35983         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35984
35985 2008-12-21  Bruno Haible  <bruno@clisp.org>
35986
35987         * modules/wcsrtombs-tests: New file.
35988         * tests/test-wcsrtombs1.sh: New file.
35989         * tests/test-wcsrtombs2.sh: New file.
35990         * tests/test-wcsrtombs3.sh: New file.
35991         * tests/test-wcsrtombs4.sh: New file.
35992         * tests/test-wcsrtombs.c: New file.
35993
35994         New module 'wcsrtombs'.
35995         * lib/wchar.in.h (wcsrtombs): New declaration.
35996         * lib/wcsrtombs.c: New file.
35997         * m4/wcsrtombs.m4: New file.
35998         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35999         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36000         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36001         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36002         * modules/wcsrtombs: New file.
36003         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36004         bugs.
36005
36006 2008-12-21  Bruno Haible  <bruno@clisp.org>
36007
36008         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36009         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36010         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36011         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36012         if not correct.
36013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36014         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36015         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36016         m4/locale-zh.m4, m4/codeset.m4.
36017         * doc/posix-functions/wcrtomb.texi: Document the bug.
36018
36019 2008-12-21  Bruno Haible  <bruno@clisp.org>
36020
36021         Work around a btowc() bug on IRIX 6.5.
36022         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36023         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36024         REPLACE_WTOBC if not.
36025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36026         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36027         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36028
36029 2008-12-21  Bruno Haible  <bruno@clisp.org>
36030
36031         * modules/wcrtomb-tests: New file.
36032         * tests/test-wcrtomb.sh: New file.
36033         * tests/test-wcrtomb.c: New file.
36034
36035         New module 'wcrtomb'.
36036         * lib/wchar.in.h (wcrtomb): New declaration.
36037         * lib/wcrtomb.c: New file.
36038         * m4/wcrtomb.m4: New file.
36039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36040         HAVE_WCRTOMB.
36041         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36042         HAVE_WCRTOMB.
36043         * modules/wcrtomb: New file.
36044         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36045
36046 2008-12-21  Bruno Haible  <bruno@clisp.org>
36047
36048         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36049         * modules/mbsrtowcs (Files): Likewise.
36050         * modules/wctob (Files): Likewise.
36051         * modules/c-strcase-tests (Files): Likewise.
36052         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36053         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36054         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36055         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36056         * modules/vasnprintf-posix-tests (Files): Likewise.
36057
36058 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36059
36060         gitlog-to-changelog: pass all command-line arguments to git-log
36061         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36062         it is sometimes convenient to filter the commits in various ways.
36063         gitlog-to-changelog only allows --since to specify a start date,
36064         but git-log itself supports many other filtering mechanisms.
36065         At the moment, I want to filter by branch name.  Rather than
36066         adding a --branch option to gitlog-to-changelog, it seems more
36067         flexible to simply pass all options directly to git-log and let
36068         git do the work.  Notice that this effectively makes --since a
36069         redundant option for gitlog-to-changelog, but removing it would
36070         require current usage to change since calls would then require
36071         an additional '--'.
36072
36073 2008-12-21  Bruno Haible  <bruno@clisp.org>
36074
36075         * modules/mbsnrtowcs-tests: New file.
36076         * tests/test-mbsnrtowcs1.sh: New file.
36077         * tests/test-mbsnrtowcs2.sh: New file.
36078         * tests/test-mbsnrtowcs3.sh: New file.
36079         * tests/test-mbsnrtowcs4.sh: New file.
36080         * tests/test-mbsnrtowcs.c: New file.
36081
36082         New module 'mbsnrtowcs'.
36083         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36084         * lib/mbsnrtowcs.c: New file.
36085         * lib/mbsrtowcs-state.c: New file.
36086         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36087         (internal_state): Remove variable.
36088         * m4/mbsnrtowcs.m4: New file.
36089         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36090         compilation units.
36091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36092         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36093         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36094         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36095         * modules/mbsnrtowcs: New file.
36096         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36097         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36098         portability problem.
36099
36100 2008-12-21  Bruno Haible  <bruno@clisp.org>
36101
36102         Work around mbsrtowcs bug.
36103         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36104         (gl_FUNC_MBSRTOWCS): Invoke it.
36105         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36106         m4/locale-zh.m4.
36107         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36108
36109 2008-12-21  Bruno Haible  <bruno@clisp.org>
36110
36111         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36112
36113 2008-12-21  Bruno Haible  <bruno@clisp.org>
36114
36115         Update doc for AIX.
36116         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36117         16-bit wchar_t type.
36118         * doc/posix-functions/btowc.texi: Likewise.
36119         * doc/posix-functions/fgetwc.texi: Likewise.
36120         * doc/posix-functions/fgetws.texi: Likewise.
36121         * doc/posix-functions/fputwc.texi: Likewise.
36122         * doc/posix-functions/fputws.texi: Likewise.
36123         * doc/posix-functions/fwide.texi: Likewise.
36124         * doc/posix-functions/fwprintf.texi: Likewise.
36125         * doc/posix-functions/fwscanf.texi: Likewise.
36126         * doc/posix-functions/getwchar.texi: Likewise.
36127         * doc/posix-functions/getwc.texi: Likewise.
36128         * doc/posix-functions/iswalnum.texi: Likewise.
36129         * doc/posix-functions/iswalpha.texi: Likewise.
36130         * doc/posix-functions/iswblank.texi: Likewise.
36131         * doc/posix-functions/iswcntrl.texi: Likewise.
36132         * doc/posix-functions/iswctype.texi: Likewise.
36133         * doc/posix-functions/iswdigit.texi: Likewise.
36134         * doc/posix-functions/iswgraph.texi: Likewise.
36135         * doc/posix-functions/iswlower.texi: Likewise.
36136         * doc/posix-functions/iswprint.texi: Likewise.
36137         * doc/posix-functions/iswpunct.texi: Likewise.
36138         * doc/posix-functions/iswspace.texi: Likewise.
36139         * doc/posix-functions/iswupper.texi: Likewise.
36140         * doc/posix-functions/iswxdigit.texi: Likewise.
36141         * doc/posix-functions/mbrtowc.texi: Likewise.
36142         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36143         * doc/posix-functions/mbstowcs.texi: Likewise.
36144         * doc/posix-functions/mbtowc.texi: Likewise.
36145         * doc/posix-functions/putwchar.texi: Likewise.
36146         * doc/posix-functions/putwc.texi: Likewise.
36147         * doc/posix-functions/swprintf.texi: Likewise.
36148         * doc/posix-functions/tolower.texi: Likewise.
36149         * doc/posix-functions/toupper.texi: Likewise.
36150         * doc/posix-functions/towctrans.texi: Likewise.
36151         * doc/posix-functions/ungetwc.texi: Likewise.
36152         * doc/posix-functions/vswprintf.texi: Likewise.
36153         * doc/posix-functions/wcrtomb.texi: Likewise.
36154         * doc/posix-functions/wcscat.texi: Likewise.
36155         * doc/posix-functions/wcschr.texi: Likewise.
36156         * doc/posix-functions/wcscmp.texi: Likewise.
36157         * doc/posix-functions/wcscoll.texi: Likewise.
36158         * doc/posix-functions/wcscpy.texi: Likewise.
36159         * doc/posix-functions/wcscspn.texi: Likewise.
36160         * doc/posix-functions/wcsftime.texi: Likewise.
36161         * doc/posix-functions/wcslen.texi: Likewise.
36162         * doc/posix-functions/wcsncat.texi: Likewise.
36163         * doc/posix-functions/wcsncmp.texi: Likewise.
36164         * doc/posix-functions/wcsncpy.texi: Likewise.
36165         * doc/posix-functions/wcspbrk.texi: Likewise.
36166         * doc/posix-functions/wcsrchr.texi: Likewise.
36167         * doc/posix-functions/wcsrtombs.texi: Likewise.
36168         * doc/posix-functions/wcsspn.texi: Likewise.
36169         * doc/posix-functions/wcsstr.texi: Likewise.
36170         * doc/posix-functions/wcstod.texi: Likewise.
36171         * doc/posix-functions/wcstof.texi: Likewise.
36172         * doc/posix-functions/wcstoimax.texi: Likewise.
36173         * doc/posix-functions/wcstok.texi: Likewise.
36174         * doc/posix-functions/wcstold.texi: Likewise.
36175         * doc/posix-functions/wcstoll.texi: Likewise.
36176         * doc/posix-functions/wcstol.texi: Likewise.
36177         * doc/posix-functions/wcstombs.texi: Likewise.
36178         * doc/posix-functions/wcstoull.texi: Likewise.
36179         * doc/posix-functions/wcstoul.texi: Likewise.
36180         * doc/posix-functions/wcstoumax.texi: Likewise.
36181         * doc/posix-functions/wcswidth.texi: Likewise.
36182         * doc/posix-functions/wcsxfrm.texi: Likewise.
36183         * doc/posix-functions/wctob.texi: Likewise.
36184         * doc/posix-functions/wctomb.texi: Likewise.
36185         * doc/posix-functions/wctrans.texi: Likewise.
36186         * doc/posix-functions/wctype.texi: Likewise.
36187         * doc/posix-functions/wcwidth.texi: Likewise.
36188         * doc/posix-functions/wmemchr.texi: Likewise.
36189         * doc/posix-functions/wmemcmp.texi: Likewise.
36190         * doc/posix-functions/wmemcpy.texi: Likewise.
36191         * doc/posix-functions/wmemmove.texi: Likewise.
36192         * doc/posix-functions/wmemset.texi: Likewise.
36193         * doc/posix-functions/wprintf.texi: Likewise.
36194         * doc/posix-functions/wscanf.texi: Likewise.
36195
36196 2008-12-21  Bruno Haible  <bruno@clisp.org>
36197
36198         Update doc for HP-UX 11.11.
36199         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36200         in HP-UX version 11.00, not in all versions of HP-UX 11.
36201         * doc/posix-functions/fwide.texi: Likewise.
36202         * doc/posix-functions/fwprintf.texi: Likewise.
36203         * doc/posix-functions/fwscanf.texi: Likewise.
36204         * doc/posix-functions/inet_ntop.texi: Likewise.
36205         * doc/posix-functions/inet_pton.texi: Likewise.
36206         * doc/posix-functions/mbrlen.texi: Likewise.
36207         * doc/posix-functions/mbrtowc.texi: Likewise.
36208         * doc/posix-functions/mbsinit.texi: Likewise.
36209         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36210         * doc/posix-functions/swprintf.texi: Likewise.
36211         * doc/posix-functions/swscanf.texi: Likewise.
36212         * doc/posix-functions/towctrans.texi: Likewise.
36213         * doc/posix-functions/vfwprintf.texi: Likewise.
36214         * doc/posix-functions/vswprintf.texi: Likewise.
36215         * doc/posix-functions/vwprintf.texi: Likewise.
36216         * doc/posix-functions/wcrtomb.texi: Likewise.
36217         * doc/posix-functions/wcsrtombs.texi: Likewise.
36218         * doc/posix-functions/wcsstr.texi: Likewise.
36219         * doc/posix-functions/wctob.texi: Likewise.
36220         * doc/posix-functions/wctrans.texi: Likewise.
36221         * doc/posix-functions/wmemchr.texi: Likewise.
36222         * doc/posix-functions/wmemcmp.texi: Likewise.
36223         * doc/posix-functions/wmemcpy.texi: Likewise.
36224         * doc/posix-functions/wmemmove.texi: Likewise.
36225         * doc/posix-functions/wmemset.texi: Likewise.
36226         * doc/posix-functions/wprintf.texi: Likewise.
36227         * doc/posix-functions/wscanf.texi: Likewise.
36228
36229 2008-12-21  Bruno Haible  <bruno@clisp.org>
36230
36231         Work around a portability problem.
36232         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36233         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36234
36235 2008-12-20  Bruno Haible  <bruno@clisp.org>
36236
36237         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36238         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36239         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36240         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36241         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36242
36243         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36244         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36245         set.
36246         (GNULIB_defined_mbstate_t): New macro.
36247         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36248         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36249         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36250         reuses the system's mbrtowc function but works around the bugs.
36251         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36252         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36253         macros.
36254         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36255         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36256         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36257         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36258         REPLACE_MBSINIT if mbsinit needs to be overridden.
36259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36260         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36261         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36262         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36263         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36264         m4/locale-zh.m4.
36265         (Depends): Add mbsinit.
36266         * modules/mbsinit (Depends): Add mbrtowc.
36267         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36268
36269 2008-12-20  Bruno Haible  <bruno@clisp.org>
36270
36271         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36272         so that there are no conversion errors on AIX.
36273         * tests/test-mbsrtowcs.c (main): LIkewise.
36274
36275 2008-12-20  Bruno Haible  <bruno@clisp.org>
36276
36277         Work around wctob bug on Solaris <= 9.
36278         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36279         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36281         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36282         * modules/wctob (Files): Add m4/locale-fr.m4.
36283         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36284
36285 2008-12-20  Bruno Haible  <bruno@clisp.org>
36286
36287         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36288         /dev/null.
36289         * tests/test-select-in.sh: Likewise.
36290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36291
36292 2008-12-20  Bruno Haible  <bruno@clisp.org>
36293
36294         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36295         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36296         Cygwin 1.5.x.
36297
36298 2008-12-20  Bruno Haible  <bruno@clisp.org>
36299
36300         Ensure mbstate_t is defined on HP-UX 11.11.
36301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36302         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36303         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36304         AC_USE_SYSTEM_EXTENSIONS.
36305         * modules/fnmatch (Depends-on): Add extensions.
36306         * modules/mbrlen (Depends-on): Likewise.
36307         * modules/mbrtowc (Depends-on): Likewise.
36308         * modules/mbsinit (Depends-on): Likewise.
36309         * modules/mbsrtowcs (Depends-on): Likewise.
36310         * modules/mbswidth (Depends-on): Likewise.
36311         * modules/quotearg (Depends-on): Likewise.
36312         * modules/strftime (Depends-on): Likewise.
36313
36314 2008-12-20  Bruno Haible  <bruno@clisp.org>
36315
36316         Ensure wctob is declared on IRIX 6.5.
36317         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36318         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36319         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36321         of HAVE_WCTOB.
36322         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36323         HAVE_WCTOB.
36324         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36325
36326 2008-12-19  Bruno Haible  <bruno@clisp.org>
36327
36328         * modules/mbsrtowcs-tests: New file.
36329         * tests/test-mbsrtowcs1.sh: New file.
36330         * tests/test-mbsrtowcs2.sh: New file.
36331         * tests/test-mbsrtowcs3.sh: New file.
36332         * tests/test-mbsrtowcs4.sh: New file.
36333         * tests/test-mbsrtowcs.c: New file.
36334
36335         New module 'mbsrtowcs'.
36336         * lib/wchar.in.h (mbsrtowcs): New declaration.
36337         * lib/mbsrtowcs.c: New file.
36338         * m4/mbsrtowcs.m4: New file.
36339         * modules/mbsrtowcs: New file.
36340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36341         HAVE_MBSRTOWCS.
36342         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36343         HAVE_MBSRTOWCS.
36344         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36345
36346 2008-12-19  Bruno Haible  <bruno@clisp.org>
36347
36348         New module 'mbrlen'.
36349         * lib/wchar.in.h (mbrlen): New declaration.
36350         * lib/mbrlen.c: New file.
36351         * m4/mbrlen.m4: New file.
36352         * modules/mbrlen: New file.
36353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36354         HAVE_MBRLEN.
36355         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36356         HAVE_MBRLEN.
36357         * doc/posix-functions/mbrlen.texi: Document the new module.
36358
36359 2008-12-19  Bruno Haible  <bruno@clisp.org>
36360
36361         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36362         * modules/mbrtowc (Depends-on): Add verify.
36363         Suggested by Paul Eggert.
36364
36365 2008-12-18  Bruno Haible  <bruno@clisp.org>
36366
36367         * modules/mbsinit-tests: New file.
36368         * tests/test-mbsinit.sh: New file.
36369         * tests/test-mbsinit.c: New file.
36370
36371 2008-12-18  Bruno Haible  <bruno@clisp.org>
36372
36373         * modules/mbrtowc-tests: New file.
36374         * tests/test-mbrtowc1.sh: New file.
36375         * tests/test-mbrtowc2.sh: New file.
36376         * tests/test-mbrtowc3.sh: New file.
36377         * tests/test-mbrtowc4.sh: New file.
36378         * tests/test-mbrtowc.c: New file.
36379
36380         New module 'mbrtowc'.
36381         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36382         mbsinit and mbrtowc.
36383         (mbrtowc): New declaration.
36384         * lib/mbrtowc.c: New file.
36385         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36386         * modules/mbrtowc: New file.
36387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36388         HAVE_MBRTOWC.
36389         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36390         HAVE_MBRTOWC.
36391         * doc/posix-functions/mbrtowc.texi: Document the new module.
36392
36393 2008-12-18  Bruno Haible  <bruno@clisp.org>
36394
36395         New module 'wctob'.
36396         * lib/wchar.in.h (wctob): New declaration.
36397         * lib/wctob.c: New file.
36398         * m4/wctob.m4: New file.
36399         * modules/wctob: New file.
36400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36401         HAVE_WCTOB.
36402         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36403         * doc/posix-functions/wctob.texi: Document the new module.
36404
36405 2008-12-18  Bruno Haible  <bruno@clisp.org>
36406
36407         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36408         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36409
36410 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36411
36412         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36413         G. Christensen" <tgc@jupiterrise.com>.
36414
36415         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36416         G. Christensen" <tgc@jupiterrise.com>.
36417
36418         * lib/flock.c: Need to include string.h.  Reported by "Tom
36419         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36420         <ebb9@byu.net>.
36421
36422 2008-12-18  Bruno Haible  <bruno@clisp.org>
36423
36424         * m4/locale-ja.m4: New file, from GNU gettext.
36425
36426 2008-12-17  Bruno Haible  <bruno@clisp.org>
36427
36428         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36429         Suggested by Eric Blake.
36430
36431 2008-12-17  Bruno Haible  <bruno@clisp.org>
36432
36433         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36434
36435 2008-12-17  Bruno Haible  <bruno@clisp.org>
36436
36437         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36438         * modules/mbsinit (Depends-on): Add verify.
36439         Suggested by Paul Eggert.
36440
36441 2008-12-17  Bruno Haible  <bruno@clisp.org>
36442
36443         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36444         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36445         gl_FUNC_MBRTOWC.
36446         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36447         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36448         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36449         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36450         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36451         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36452         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36453         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36454         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36455         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36456         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36457         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36458         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36459         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36460         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36461         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36462         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36463         * modules/trim (configure.ac): Likewise.
36464
36465 2008-12-17  Bruno Haible  <bruno@clisp.org>
36466
36467         * modules/btowc-tests: New file.
36468         * tests/test-btowc1.sh: New file.
36469         * tests/test-btowc2.sh: New file.
36470         * tests/test-btowc.c: New file.
36471
36472         New module 'btowc'.
36473         * lib/wchar.in.h (btowc): New declaration.
36474         * lib/btowc.c: New file.
36475         * m4/btowc.m4: New file.
36476         * modules/btowc: New file.
36477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36478         HAVE_BTOWC.
36479         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36480         * doc/posix-functions/btowc.texi: Document the new module.
36481
36482 2008-12-17  Bruno Haible  <bruno@clisp.org>
36483
36484         New module 'mbsinit'.
36485         * lib/wchar.in.h (mbsinit): New declaration.
36486         * lib/mbsinit.c: New file.
36487         * m4/mbsinit.m4: New file.
36488         * modules/mbsinit: New file.
36489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36490         HAVE_MBSINIT.
36491         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36492         HAVE_MBSINIT.
36493         * doc/posix-functions/mbsinit.texi: Document the new module.
36494
36495 2008-12-16  Bruno Haible  <bruno@clisp.org>
36496
36497         * lib/unistd.in.h: Add comment.
36498         * tests/test-environ.c: Don't include <stdlib.h>.
36499
36500 2008-12-16  Bruno Haible  <bruno@clisp.org>
36501
36502         * lib/parse-duration.h (parse_duration): Document return value
36503         convention.
36504         * lib/parse-duration.c: Include specification header first. Add
36505         comments.
36506         (_): Remove macro.
36507         (parse_year_month_day, parse_hour_minute_second): Move side effects
36508         outside of strchr call.
36509         (parse_non_iso8601): Move side effects outside of isspace call.
36510         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36511         call.
36512
36513 2008-12-16  Bruno Haible  <bruno@clisp.org>
36514
36515         * tests/test-parse-duration.sh: Produce no output when the test
36516         succeeds.
36517
36518 2008-12-16  Bruno Haible  <bruno@clisp.org>
36519
36520         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36521         expressions.
36522
36523 2008-12-15  Bruno Haible  <bruno@clisp.org>
36524
36525         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36526         * doc/glibc-functions/flistxattr.texi: Likewise.
36527         * doc/glibc-functions/fopencookie.texi: Likewise.
36528         * doc/glibc-functions/fremovexattr.texi: Likewise.
36529         * doc/glibc-functions/fsetxattr.texi: Likewise.
36530         * doc/glibc-functions/getxattr.texi: Likewise.
36531         * doc/glibc-functions/lgetxattr.texi: Likewise.
36532         * doc/glibc-functions/listxattr.texi: Likewise.
36533         * doc/glibc-functions/llistxattr.texi: Likewise.
36534         * doc/glibc-functions/lremovexattr.texi: Likewise.
36535         * doc/glibc-functions/lsetxattr.texi: Likewise.
36536         * doc/glibc-functions/removexattr.texi: Likewise.
36537         * doc/glibc-functions/setxattr.texi: Likewise.
36538         * doc/posix-functions/open_memstream.texi: Likewise.
36539
36540 2008-12-15  Eric Blake  <ebb9@byu.net>
36541
36542         Update doc for cygwin 1.7.
36543         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36544         functions.
36545         * doc/posix-functions/fchmodat.texi: Likewise.
36546         * doc/posix-functions/fchownat.texi: Likewise.
36547         * doc/posix-functions/fdopendir.texi: Likewise.
36548         * doc/posix-functions/fmemopen.texi: Likewise.
36549         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36550         * doc/posix-functions/fstatat.texi: Likewise.
36551         * doc/posix-functions/futimens.texi: Likewise.
36552         * doc/posix-functions/gai_strerror.texi: Likewise.
36553         * doc/posix-functions/getaddrinfo.texi: Likewise.
36554         * doc/posix-functions/getnameinfo.texi: Likewise.
36555         * doc/posix-functions/if_freenameindex.texi: Likewise.
36556         * doc/posix-functions/if_indextoname.texi: Likewise.
36557         * doc/posix-functions/if_nameindex.texi: Likewise.
36558         * doc/posix-functions/if_nametoindex.texi: Likewise.
36559         * doc/posix-functions/insque.texi: Likewise.
36560         * doc/posix-functions/linkat.texi: Likewise.
36561         * doc/posix-functions/llrint.texi: Likewise.
36562         * doc/posix-functions/llrintf.texi: Likewise.
36563         * doc/posix-functions/llrintl.texi: Likewise.
36564         * doc/posix-functions/lockf.texi: Likewise.
36565         * doc/posix-functions/lrintl.texi: Likewise.
36566         * doc/posix-functions/mkdirat.texi: Likewise.
36567         * doc/posix-functions/mkfifoat.texi: Likewise.
36568         * doc/posix-functions/mknodat.texi: Likewise.
36569         * doc/posix-functions/mq_close.texi: Likewise.
36570         * doc/posix-functions/mq_getattr.texi: Likewise.
36571         * doc/posix-functions/mq_notify.texi: Likewise.
36572         * doc/posix-functions/mq_open.texi: Likewise.
36573         * doc/posix-functions/mq_receive.texi: Likewise.
36574         * doc/posix-functions/mq_send.texi: Likewise.
36575         * doc/posix-functions/mq_setattr.texi: Likewise.
36576         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36577         * doc/posix-functions/mq_timedsend.texi: Likewise.
36578         * doc/posix-functions/mq_unlink.texi: Likewise.
36579         * doc/posix-functions/open_memstream.texi: Likewise.
36580         * doc/posix-functions/openat.texi: Likewise.
36581         * doc/posix-functions/posix_fadvise.texi: Likewise.
36582         * doc/posix-functions/posix_fallocate.texi: Likewise.
36583         * doc/posix-functions/posix_madvise.texi: Likewise.
36584         * doc/posix-functions/posix_memalign.texi: Likewise.
36585         * doc/posix-functions/posix_openpt.texi: Likewise.
36586         * doc/posix-functions/readlinkat.texi: Likewise.
36587         * doc/posix-functions/remque.texi: Likewise.
36588         * doc/posix-functions/renameat.texi: Likewise.
36589         * doc/posix-functions/rintl.texi: Likewise.
36590         * doc/posix-functions/sem_unlink.texi: Likewise.
36591         * doc/posix-functions/shm_open.texi: Likewise.
36592         * doc/posix-functions/shm_unlink.texi: Likewise.
36593         * doc/posix-functions/signgam.texi: Likewise.
36594         * doc/posix-functions/sigset.texi: Likewise.
36595         * doc/posix-functions/stpcpy.texi: Likewise.
36596         * doc/posix-functions/stpncpy.texi: Likewise.
36597         * doc/posix-functions/strerror.texi: Likewise.
36598         * doc/posix-functions/strtod.texi: Likewise.
36599         * doc/posix-functions/symlinkat.texi: Likewise.
36600         * doc/posix-functions/unlinkat.texi: Likewise.
36601         * doc/posix-functions/utimensat.texi: Likewise.
36602         * doc/glibc-functions/bindresvport.texi: Likewise.
36603         * doc/glibc-functions/dn_expand.texi: Likewise.
36604         * doc/glibc-functions/exp10.texi: Likewise.
36605         * doc/glibc-functions/exp10f.texi: Likewise.
36606         * doc/glibc-functions/fgetxattr.texi: Likewise.
36607         * doc/glibc-functions/flistxattr.texi: Likewise.
36608         * doc/glibc-functions/fopencookie.texi: Likewise.
36609         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36610         * doc/glibc-functions/fremovexattr.texi: Likewise.
36611         * doc/glibc-functions/fsetxattr.texi: Likewise.
36612         * doc/glibc-functions/getifaddrs.texi: Likewise.
36613         * doc/glibc-functions/getxattr.texi: Likewise.
36614         * doc/glibc-functions/lgetxattr.texi: Likewise.
36615         * doc/glibc-functions/listxattr.texi: Likewise.
36616         * doc/glibc-functions/llistxattr.texi: Likewise.
36617         * doc/glibc-functions/lremovexattr.texi: Likewise.
36618         * doc/glibc-functions/lsetxattr.texi: Likewise.
36619         * doc/glibc-functions/pow10.texi: Likewise.
36620         * doc/glibc-functions/pow10f.texi: Likewise.
36621         * doc/glibc-functions/rcmd_af.texi: Likewise.
36622         * doc/glibc-functions/removexattr.texi: Likewise.
36623         * doc/glibc-functions/res_init.texi: Likewise.
36624         * doc/glibc-functions/res_mkquery.texi: Likewise.
36625         * doc/glibc-functions/res_query.texi: Likewise.
36626         * doc/glibc-functions/res_querydomain.texi: Likewise.
36627         * doc/glibc-functions/res_send.texi: Likewise.
36628         * doc/glibc-functions/rresvport_af.texi: Likewise.
36629         * doc/glibc-functions/setxattr.texi: Likewise.
36630         * doc/glibc-functions/strcasestr.texi: Likewise.
36631
36632 2008-12-15  Bruno Haible  <bruno@clisp.org>
36633
36634         Fix compilation error on OSF/1 4.0.
36635         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36636         <sys/time.h>, simply delegate to the system header.
36637         Reported by Daniel Richard G. <oss@teragram.com>.
36638
36639 2008-12-15  Bruno Haible  <bruno@clisp.org>
36640
36641         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36642         * doc/posix-functions/fchmodat.texi: Likewise.
36643         * doc/posix-functions/fchownat.texi: Likewise.
36644         * doc/posix-functions/fdopendir.texi: Likewise.
36645         * doc/posix-functions/fstatat.texi: Likewise.
36646         * doc/posix-functions/mkdirat.texi: Likewise.
36647         * doc/posix-functions/unlinkat.texi: Likewise.
36648
36649 2008-12-14  Bruno Haible  <bruno@clisp.org>
36650
36651         Update doc for POSIX:2008.
36652         * doc/posix-functions/faccessat.texi: New file.
36653         * doc/posix-functions/fchmodat.texi: New file.
36654         * doc/posix-functions/fchownat.texi: New file.
36655         * doc/posix-functions/fdopendir.texi: New file.
36656         * doc/posix-functions/fstatat.texi: New file.
36657         * doc/posix-functions/futimens.texi: New file.
36658         * doc/posix-functions/linkat.texi: New file.
36659         * doc/posix-functions/mkdirat.texi: New file.
36660         * doc/posix-functions/mkfifoat.texi: New file.
36661         * doc/posix-functions/mknodat.texi: New file.
36662         * doc/posix-functions/open_wmemstream.texi: New file.
36663         * doc/posix-functions/openat.texi: New file.
36664         * doc/posix-functions/psiginfo.texi: New file.
36665         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36666         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36667         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36668         * doc/posix-functions/readlinkat.texi: New file.
36669         * doc/posix-functions/renameat.texi: New file.
36670         * doc/posix-functions/strerror_l.texi: New file.
36671         * doc/posix-functions/symlinkat.texi: New file.
36672         * doc/posix-functions/unlinkat.texi: New file.
36673         * doc/posix-functions/utimensat.texi: New file.
36674         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36675
36676 2008-12-14  Bruno Haible  <bruno@clisp.org>
36677
36678         Update doc for POSIX:2008.
36679         * doc/posix-functions/alphasort.texi: Renamed from
36680         doc/glibc-functions/alphasort.texi.
36681         * doc/posix-functions/dirfd.texi: Renamed from
36682         doc/glibc-functions/dirfd.texi.
36683         * doc/posix-functions/dprintf.texi: Renamed from
36684         doc/glibc-functions/dprintf.texi.
36685         * doc/posix-functions/duplocale.texi: Renamed from
36686         doc/glibc-functions/duplocale.texi.
36687         * doc/posix-functions/fexecve.texi: Renamed from
36688         doc/glibc-functions/fexecve.texi.
36689         * doc/posix-functions/fmemopen.texi: Renamed from
36690         doc/glibc-functions/fmemopen.texi.
36691         * doc/posix-functions/freelocale.texi: Renamed from
36692         doc/glibc-functions/freelocale.texi.
36693         * doc/posix-functions/getdate_err.texi: Renamed from
36694         doc/glibc-functions/getdate_err.texi.
36695         * doc/posix-functions/isalnum_l.texi: Renamed from
36696         doc/glibc-functions/isalnum_l.texi.
36697         * doc/posix-functions/isalpha_l.texi: Renamed from
36698         doc/glibc-functions/isalpha_l.texi.
36699         * doc/posix-functions/isblank_l.texi: Renamed from
36700         doc/glibc-functions/isblank_l.texi.
36701         * doc/posix-functions/iscntrl_l.texi: Renamed from
36702         doc/glibc-functions/iscntrl_l.texi.
36703         * doc/posix-functions/isdigit_l.texi: Renamed from
36704         doc/glibc-functions/isdigit_l.texi.
36705         * doc/posix-functions/isgraph_l.texi: Renamed from
36706         doc/glibc-functions/isgraph_l.texi.
36707         * doc/posix-functions/islower_l.texi: Renamed from
36708         doc/glibc-functions/islower_l.texi.
36709         * doc/posix-functions/isprint_l.texi: Renamed from
36710         doc/glibc-functions/isprint_l.texi.
36711         * doc/posix-functions/ispunct_l.texi: Renamed from
36712         doc/glibc-functions/ispunct_l.texi.
36713         * doc/posix-functions/isspace_l.texi: Renamed from
36714         doc/glibc-functions/isspace_l.texi.
36715         * doc/posix-functions/isupper_l.texi: Renamed from
36716         doc/glibc-functions/isupper_l.texi.
36717         * doc/posix-functions/iswalnum_l.texi: Renamed from
36718         doc/glibc-functions/iswalnum_l.texi.
36719         * doc/posix-functions/iswalpha_l.texi: Renamed from
36720         doc/glibc-functions/iswalpha_l.texi.
36721         * doc/posix-functions/iswblank_l.texi: Renamed from
36722         doc/glibc-functions/iswblank_l.texi.
36723         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36724         doc/glibc-functions/iswcntrl_l.texi.
36725         * doc/posix-functions/iswctype_l.texi: Renamed from
36726         doc/glibc-functions/iswctype_l.texi.
36727         * doc/posix-functions/iswdigit_l.texi: Renamed from
36728         doc/glibc-functions/iswdigit_l.texi.
36729         * doc/posix-functions/iswgraph_l.texi: Renamed from
36730         doc/glibc-functions/iswgraph_l.texi.
36731         * doc/posix-functions/iswlower_l.texi: Renamed from
36732         doc/glibc-functions/iswlower_l.texi.
36733         * doc/posix-functions/iswprint_l.texi: Renamed from
36734         doc/glibc-functions/iswprint_l.texi.
36735         * doc/posix-functions/iswpunct_l.texi: Renamed from
36736         doc/glibc-functions/iswpunct_l.texi.
36737         * doc/posix-functions/iswspace_l.texi: Renamed from
36738         doc/glibc-functions/iswspace_l.texi.
36739         * doc/posix-functions/iswupper_l.texi: Renamed from
36740         doc/glibc-functions/iswupper_l.texi.
36741         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36742         doc/glibc-functions/iswxdigit_l.texi.
36743         * doc/posix-functions/isxdigit_l.texi: Renamed from
36744         doc/glibc-functions/isxdigit_l.texi.
36745         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36746         doc/glibc-functions/mbsnrtowcs.texi.
36747         * doc/posix-functions/mkdtemp.texi: Renamed from
36748         doc/glibc-functions/mkdtemp.texi.
36749         * doc/posix-functions/newlocale.texi: Renamed from
36750         doc/glibc-functions/newlocale.texi.
36751         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36752         doc/glibc-functions/nl_langinfo_l.texi.
36753         * doc/posix-functions/open_memstream.texi: Renamed from
36754         doc/glibc-functions/open_memstream.texi.
36755         * doc/posix-functions/opterr.texi: Renamed from
36756         doc/glibc-functions/opterr.texi.
36757         * doc/posix-functions/optind.texi: Renamed from
36758         doc/glibc-functions/optind.texi.
36759         * doc/posix-functions/optopt.texi: Renamed from
36760         doc/glibc-functions/optopt.texi.
36761         * doc/posix-functions/psignal.texi: Renamed from
36762         doc/glibc-functions/psignal.texi.
36763         * doc/posix-functions/scandir.texi: Renamed from
36764         doc/glibc-functions/scandir.texi.
36765         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36766         doc/glibc-functions/sched_get_priority_min.texi.
36767         * doc/posix-functions/signgam.texi: Renamed from
36768         doc/glibc-functions/signgam.texi.
36769         * doc/posix-functions/stpcpy.texi: Renamed from
36770         doc/glibc-functions/stpcpy.texi.
36771         * doc/posix-functions/stpncpy.texi: Renamed from
36772         doc/glibc-functions/stpncpy.texi.
36773         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36774         doc/glibc-functions/strcasecmp_l.texi.
36775         * doc/posix-functions/strcoll_l.texi: Renamed from
36776         doc/glibc-functions/strcoll_l.texi.
36777         * doc/posix-functions/strfmon_l.texi: Renamed from
36778         doc/glibc-functions/strfmon_l.texi.
36779         * doc/posix-functions/strftime_l.texi: Renamed from
36780         doc/glibc-functions/strftime_l.texi.
36781         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36782         doc/glibc-functions/strncasecmp_l.texi.
36783         * doc/posix-functions/strndup.texi: Renamed from
36784         doc/glibc-functions/strndup.texi.
36785         * doc/posix-functions/strnlen.texi: Renamed from
36786         doc/glibc-functions/strnlen.texi.
36787         * doc/posix-functions/strsignal.texi: Renamed from
36788         doc/glibc-functions/strsignal.texi.
36789         * doc/posix-functions/strxfrm_l.texi: Renamed from
36790         doc/glibc-functions/strxfrm_l.texi.
36791         * doc/posix-functions/timer_gettime.texi: Renamed from
36792         doc/glibc-functions/timer_gettime.texi.
36793         * doc/posix-functions/tolower_l.texi: Renamed from
36794         doc/glibc-functions/tolower_l.texi.
36795         * doc/posix-functions/toupper_l.texi: Renamed from
36796         doc/glibc-functions/toupper_l.texi.
36797         * doc/posix-functions/towctrans_l.texi: Renamed from
36798         doc/glibc-functions/towctrans_l.texi.
36799         * doc/posix-functions/towlower_l.texi: Renamed from
36800         doc/glibc-functions/towlower_l.texi.
36801         * doc/posix-functions/towupper_l.texi: Renamed from
36802         doc/glibc-functions/towupper_l.texi.
36803         * doc/posix-functions/uselocale.texi: Renamed from
36804         doc/glibc-functions/uselocale.texi.
36805         * doc/posix-functions/vdprintf.texi: Renamed from
36806         doc/glibc-functions/vdprintf.texi.
36807         * doc/posix-functions/wcpcpy.texi:
36808         Renamed from doc/glibc-functions/wcpcpy.texi.
36809         * doc/posix-functions/wcpncpy.texi: Renamed from
36810         doc/glibc-functions/wcpncpy.texi.
36811         * doc/posix-functions/wcscasecmp.texi: Renamed from
36812         doc/glibc-functions/wcscasecmp.texi.
36813         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36814         doc/glibc-functions/wcscasecmp_l.texi.
36815         * doc/posix-functions/wcscoll_l.texi: Renamed from
36816         doc/glibc-functions/wcscoll_l.texi.
36817         * doc/posix-functions/wcsdup.texi: Renamed from
36818         doc/glibc-functions/wcsdup.texi.
36819         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36820         doc/glibc-functions/wcsncasecmp.texi.
36821         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36822         doc/glibc-functions/wcsncasecmp_l.texi.
36823         * doc/posix-functions/wcsnlen.texi: Renamed from
36824         doc/glibc-functions/wcsnlen.texi.
36825         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36826         doc/glibc-functions/wcsnrtombs.texi.
36827         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36828         doc/glibc-functions/wcsxfrm_l.texi.
36829         * doc/posix-functions/wctrans_l.texi: Renamed from
36830         doc/glibc-functions/wctrans_l.texi.
36831         * doc/posix-functions/wctype_l.texi: Renamed from
36832         doc/glibc-functions/wctype_l.texi.
36833         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36834         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36835         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36836         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36837         these subsections.
36838         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36839         Remove sections.
36840
36841 2008-12-14  Bruno Haible  <bruno@clisp.org>
36842
36843         Update doc for POSIX:2008.
36844         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36845
36846 2008-12-14  Bruno Haible  <bruno@clisp.org>
36847
36848         Update doc for POSIX:2008.
36849         * doc/pastposix-functions/bcmp.texi: Renamed from
36850         doc/posix-functions/bcmp.texi.
36851         * doc/pastposix-functions/bcopy.texi: Renamed from
36852         doc/posix-functions/bcopy.texi.
36853         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36854         doc/posix-functions/bsd_signal.texi.
36855         * doc/pastposix-functions/bzero.texi: Renamed from
36856         doc/posix-functions/bzero.texi.
36857         * doc/pastposix-functions/ecvt.texi: Renamed from
36858         doc/posix-functions/ecvt.texi.
36859         * doc/pastposix-functions/fcvt.texi: Renamed from
36860         doc/posix-functions/fcvt.texi.
36861         * doc/pastposix-functions/ftime.texi: Renamed from
36862         doc/posix-functions/ftime.texi.
36863         * doc/pastposix-functions/gcvt.texi: Renamed from
36864         doc/posix-functions/gcvt.texi.
36865         * doc/pastposix-functions/getcontext.texi: Renamed from
36866         doc/posix-functions/getcontext.texi.
36867         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36868         doc/posix-functions/gethostbyaddr.texi.
36869         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36870         doc/posix-functions/gethostbyname.texi.
36871         * doc/pastposix-functions/getwd.texi: Renamed from
36872         doc/posix-functions/getwd.texi.
36873         * doc/pastposix-functions/h_errno.texi: Renamed from
36874         doc/posix-functions/h_errno.texi.
36875         * doc/pastposix-functions/index.texi: Renamed from
36876         doc/posix-functions/index.texi.
36877         * doc/pastposix-functions/makecontext.texi: Renamed from
36878         doc/posix-functions/makecontext.texi.
36879         * doc/pastposix-functions/mktemp.texi: Renamed from
36880         doc/posix-functions/mktemp.texi.
36881         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36882         doc/posix-functions/pthread_attr_getstackaddr.texi.
36883         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36884         doc/posix-functions/pthread_attr_setstackaddr.texi.
36885         * doc/pastposix-functions/rindex.texi: Renamed from
36886         doc/posix-functions/rindex.texi.
36887         * doc/pastposix-functions/scalb.texi: Renamed from
36888         doc/posix-functions/scalb.texi.
36889         * doc/pastposix-functions/setcontext.texi: Renamed from
36890         doc/posix-functions/setcontext.texi.
36891         * doc/pastposix-functions/swapcontext.texi: Renamed from
36892         doc/posix-functions/swapcontext.texi.
36893         * doc/pastposix-functions/ualarm.texi: Renamed from
36894         doc/posix-functions/ualarm.texi.
36895         * doc/pastposix-functions/usleep.texi: Renamed from
36896         doc/posix-functions/usleep.texi.
36897         * doc/pastposix-functions/vfork.texi: Renamed from
36898         doc/posix-functions/vfork.texi.
36899         * doc/pastposix-functions/wcswcs.texi: Renamed from
36900         doc/posix-functions/wcswcs.texi.
36901         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36902         (Function Substitutes): Update.
36903
36904 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36905
36906         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36907         m4/strerror.m4.
36908
36909 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36910             Bruno Haible  <bruno@clisp.org>
36911
36912         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36913
36914 2008-12-13  Bruno Haible  <bruno@clisp.org>
36915
36916         * modules/strtoull (Depends-on): Remove unistd.
36917
36918 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36919
36920         * modules/strtoull (Depends-on): Add stdlib.
36921
36922 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36923
36924         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36925
36926 2008-12-10  Jim Meyering  <meyering@redhat.com>
36927
36928         gl_ASSERT: don't say assertions are disabled when they're not
36929         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36930         "checking whether to enable assertions... no", when they are in
36931         fact enabled.  This is solely a bug in the output of configure.
36932         In spite of saying "no", NDEBUG was not defined in that case.
36933         Also, as noted by Eric Blake, leave assertions enabled upon
36934         --enable-assert=INVALID.
36935
36936 2008-12-10  Bruno Haible  <bruno@clisp.org>
36937
36938         Change MODULES.html to refer to POSIX:2008 where possible.
36939         * MODULES.html.sh (POSIX2008_URL): New variable.
36940         (posix_headers): Remove sys/timeb, ucontext.
36941         (posix2001_headers): New variable.
36942         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36943         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36944         index, makecontext, mktemp, pthread_attr_getstackaddr,
36945         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36946         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36947         (posix2001_functions): New variable.
36948         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36949         otherwise.
36950
36951 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36952
36953         add missing include to parse-duration.c
36954         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36955         * modules/parse-duration (Depends-on): Add xalloc.
36956
36957         fix sed script reading maint.mk
36958         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36959         (syntax-check-rules): Use it.
36960
36961 2008-12-09  Bruno Haible  <bruno@clisp.org>
36962
36963         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36964         MacOS X 10.4/PowerPC.
36965         Reported by Simon Josefsson.
36966
36967 2008-12-08  Jim Meyering  <meyering@redhat.com>
36968
36969         work around mingw's lack of some S_IF definitions
36970         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36971         Reported by Simon Josefsson.
36972
36973 2008-12-08  Bruno Haible  <bruno@clisp.org>
36974
36975         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36976         applied to variables. Needed on MacOS X 10.4/PowerPC.
36977         Reported by Simon Josefsson.
36978
36979 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36980         and Eric Blake  <ebb9@byu.net>
36981
36982         assert: honor --enable-assert
36983         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36984         order to honor --enable-assert, rather than treating it as a
36985         synonym for --disable-assert.
36986
36987 2008-12-08  Jim Meyering  <meyering@redhat.com>
36988
36989         * lib/posixtm.c: Remove now-useless declaration of mktime.
36990
36991         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36992
36993 2008-12-07  Bruno Haible  <bruno@clisp.org>
36994
36995         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36996         test_once): Mark functions as static.
36997         * tests/test-tls.c (test_tls): Likewise.
36998
36999 2008-12-07  Bruno Haible  <bruno@clisp.org>
37000
37001         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37002         iconv_register_autodetect.
37003
37004 2008-12-07  Jim Meyering  <meyering@redhat.com>
37005
37006         posixtm.c: avoid a warning
37007         * lib/posixtm.c (posixtime): Don't initialize tm0.
37008         It's no longer needed to placate gcc4's -Wuninitialized,
37009         and the attempt to placate would elicit a new warning.
37010
37011         unicodeio.c: mark unused parameters
37012         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37013         (fallback_failure_callback): Likewise.
37014
37015 2008-12-07  Bruno Haible  <bruno@clisp.org>
37016
37017         * gnulib-tool (func_create_testdir): When building the tests
37018         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37019         Reported by Simon Josefsson.
37020
37021 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37022
37023         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37024
37025 2008-12-06  Bruno Haible  <bruno@clisp.org>
37026
37027         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37028         Suggested by Eric Blake.
37029
37030 2008-12-06  Bruno Haible  <bruno@clisp.org>
37031
37032         Fix a c-stack test failure on MacOS X.
37033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37034         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37035         handler for SIGBUS as well.
37036         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37037         install a signal handler for SIGBUS as well.
37038         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37039
37040 2008-12-06  Bruno Haible  <bruno@clisp.org>
37041
37042         Advocacy documentation.
37043         * doc/gnulib-intro.texi (Benefits): New section.
37044         * doc/gnulib.texi: Update.
37045
37046 2008-12-06  Bruno Haible  <bruno@clisp.org>
37047
37048         Document the 'manywarnings' module.
37049         * doc/manywarnings.texi: New file.
37050         * doc/gnulib.texi: Include it.
37051
37052 2008-12-05  Eric Blake  <ebb9@byu.net>
37053
37054         tests: silence some gcc warnings
37055         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37056         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37057         type mismatches.
37058
37059 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37060             Bruno Haible  <bruno@clisp.org>
37061
37062         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37063
37064 2008-11-29  Jim Meyering  <meyering@redhat.com>
37065
37066         unicodeio.c: mark unused parameters
37067         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37068         (fallback_failure_callback): Likewise.
37069
37070         fts: fix a thinko
37071         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37072         (set_stat_type): Return S_IF*-valued "type" directly.
37073         Prompted by James Youngman's spotting a related bug.
37074         Confirmed by further testing through find.
37075
37076         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37077         * lib/fts.c (D_TYPE): Define.
37078         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37079         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37080         (s_ifmt_shift_bits): New function.
37081         (set_stat_type): New function.
37082         (fts_build): When not calling fts_stat, call set_stat_type
37083         to propagate dirent.d_type info to fts_read caller.
37084         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37085         fts_statp->st_mode type information may be valid.
37086
37087 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37088
37089         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37090         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37091         <sds@gnu.org>.
37092
37093 2008-11-20  Bruno Haible  <bruno@clisp.org>
37094
37095         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37096         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37097         INCLUDE_NEXT.
37098         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37099         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37100         * modules/math (Makefile.am): Substitute
37101         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37102         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37103
37104 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37105             Bruno Haible  <bruno@clisp.org>
37106
37107         * lib/stdint.in.h: Define all type macros so that their expansion is
37108         a single typedef'ed token. Fixes a compilation failure in Boost which
37109         does "using ::int8_t;".
37110
37111 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37112
37113         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37114         gl_MANYWARN_ALL_GCC.
37115         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37116         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37117         * modules/manywarnings: New file.
37118         * MODULES.html.sh: Mention manywarnings module.
37119
37120 2008-11-18  Bruno Haible  <bruno@clisp.org>
37121
37122         * doc/gnulib-tool.texi (Unit tests): New section.
37123
37124 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37125
37126         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37127         paths like 'lib/po/foo.po'.
37128
37129 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37130
37131         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37132         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37133
37134 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37135
37136         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37137         parameter works.
37138
37139 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37140
37141         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37142
37143 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37144
37145         * modules/parse-duration-tests: New file.
37146         * tests/test-parse-duration.sh: New file.
37147         * tests/test-parse-duration.c: New file.
37148
37149         New module 'parse-duration'.
37150         * lib/parse-duration.h: New file.
37151         * lib/parse-duration.c: New file.
37152         * modules/parse-duration: New file.
37153
37154 2008-11-17  Bruno Haible  <bruno@clisp.org>
37155
37156         * tests/test-select-out.sh: Comment out the first pipe test.
37157         Reported by Simon Josefsson.
37158
37159 2008-11-17  Bruno Haible  <bruno@clisp.org>
37160
37161         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37162         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37163         gl_HOSTENT.
37164
37165 2008-11-17  Bruno Haible  <bruno@clisp.org>
37166
37167         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37168         -lnetwork and -lnet. Needed for Haiku and BeOS.
37169
37170 2008-11-16  Bruno Haible  <bruno@clisp.org>
37171
37172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37173
37174 2008-11-16  Bruno Haible  <bruno@clisp.org>
37175
37176         Avoid test failure on Haiku.
37177         * tests/test-fsync.c: Include <errno.h>.
37178         (main): Don't require that fsync (0) fails.
37179
37180 2008-11-15  Bruno Haible  <bruno@clisp.org>
37181
37182         New module 'hostent'.
37183         * modules/hostent: New file.
37184         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37185
37186 2008-11-15  Bruno Haible  <bruno@clisp.org>
37187
37188         New module 'servent'.
37189         * modules/servent: New file.
37190         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37191
37192 2008-11-15  Bruno Haible  <bruno@clisp.org>
37193
37194         Avoid generating same test program with two different rules.
37195         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37196         test-frexp to test-frexp-nolibm.
37197         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37198         test-frexpl to test-frexpl-nolibm.
37199
37200 2008-11-15  Bruno Haible  <bruno@clisp.org>
37201
37202         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37203         $(FREXPL_LIBM).
37204
37205 2008-11-15  Bruno Haible  <bruno@clisp.org>
37206
37207         * lib/netdb.in.h: Activate the definitions also when the system's
37208         <netdb.h> has 'struct addrinfo'.
37209         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37210         EAI_OVERFLOW or AI_NUMERICSERV.
37211         * doc/posix-headers/netdb.texi: Document the problem.
37212
37213 2008-11-15  Bruno Haible  <bruno@clisp.org>
37214
37215         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37216
37217         Make the 'sched' module work on platforms where <sched.h> exists but
37218         is incomplete (such as Haiku).
37219         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37220         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37221         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37222         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37223         HAVE_STRUCT_SCHED_PARAM.
37224         * modules/sched (Depends-on): Add include_next.
37225         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37226         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37227         * doc/posix-headers/sched.texi: Document the issue.
37228
37229 2008-11-13  Jim Meyering  <meyering@redhat.com>
37230
37231         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37232         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37233         test would fail due to the difference in the Report bugs to ...
37234         line.  The expected address is empty, "<>", while the actual
37235         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37236
37237 2008-11-12  Bruno Haible  <bruno@clisp.org>
37238
37239         lstat: don't compile lstat.c on systems lacking lstat
37240         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37241         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37242         Reported by Daniel P. Berrange via Jim Meyering.
37243
37244 2008-11-12  Jim Meyering  <meyering@redhat.com>
37245
37246         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37247
37248 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37249
37250         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37251         instead.
37252
37253 2008-11-12  Bruno Haible  <bruno@clisp.org>
37254
37255         * lib/unicodeio.c: Include unistr.h.
37256         (utf8_wctomb): Remove function.
37257         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37258
37259 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37260
37261         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37262         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37263         <bruno@clisp.org>.
37264         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37265
37266 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37267
37268         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37269         * doc/gnulib.texi: Add section for warnings.
37270
37271 2008-11-11  Bruno Haible  <bruno@clisp.org>
37272
37273         * lib/sockets.h: Add a comment.
37274
37275 2008-11-11  Karl Berry  <karl@gnu.org>
37276
37277         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37278
37279 2008-11-11  Eric Blake  <ebb9@byu.net>
37280
37281         fdl.texi: avoid git symlinks
37282         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37283
37284 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37285
37286         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37287
37288 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37289
37290         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37291         (gl_WARN_ADD): Substitute $2 if literal.
37292
37293 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37294
37295         * m4/warning.m4: Remove.
37296
37297 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37298
37299         * m4/warnings.m4: Almost complete rewrite. :-)
37300
37301 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37302
37303         * modules/warnings: New module.
37304         * m4/warnings.m4: New file.
37305         * MODULES.html.sh: Mention warnings module.
37306         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37307         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37308
37309 2008-11-10  Eric Blake  <ebb9@byu.net>
37310
37311         fdl.texi: make a symlink to the latest version
37312         * doc/standards.texi: Revert today's earlier change.
37313         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37314         * doc/fdl.texi: ...and replace this with a symlink to the newer
37315         fdl-1.3.texi.
37316
37317 2008-11-10  Bruno Haible  <bruno@clisp.org>
37318
37319         * tests/test-select-fd.c (main): Accept the result file name as fourth
37320         argument.
37321         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37322         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37323
37324 2008-11-10  Bruno Haible  <bruno@clisp.org>
37325
37326         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37327         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37328         as autoconf-substituted macros.
37329         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37331         gl_NETDB_H_DEFAULTS. Set these variables.
37332         * modules/netdb (Makefile.am): Substitute these variables.
37333
37334 2008-11-10  Eric Blake  <ebb9@byu.net>
37335
37336         standards.texi: include correct file for FDL 1.3
37337         * doc/standards.texi (GNU Free Documentation License): Change
37338         include file to pull in FDL 1.3, not 1.2.
37339
37340         fdl.texi: revert accidental change to license
37341         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37342
37343 2008-11-10  Bruno Haible  <bruno@clisp.org>
37344
37345         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37346         cross-compiling guesses also when the native compile gives no result.
37347
37348 2008-11-10  Bruno Haible  <bruno@clisp.org>
37349
37350         * lib/spawni.c (__spawni): Force variable into the stack.
37351
37352 2008-11-10  Bruno Haible  <bruno@clisp.org>
37353
37354         Add support for Haiku.
37355         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37356         glibc and BeOS, but also on Haiku.
37357         * lib/fpurge.c (fpurge): Likewise.
37358         * lib/freadable.c (freadable): Likewise.
37359         * lib/freadahead.c (freadahead): Likewise.
37360         * lib/freading.c (freading): Likewise.
37361         * lib/freadptr.c (freadptr): Likewise.
37362         * lib/freadseek.c (freadptrinc): Likewise.
37363         * lib/fseeko.c (rpl_fseeko): Likewise.
37364         * lib/fseterr.c (fseterr): Likewise.
37365         * lib/fwritable.c (fwritable): Likewise.
37366         * lib/fwriting.c (fwriting): Likewise.
37367         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37368
37369 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37370
37371         * lib/config.charset: Treat Haiku like BeOS.
37372
37373 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37374
37375         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37376         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37377
37378 2008-11-08  Bruno Haible  <bruno@clisp.org>
37379
37380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37381         AC_CACHE_CHECK.
37382
37383 2008-11-08  Bruno Haible  <bruno@clisp.org>
37384
37385         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37386
37387 2008-11-08  Bruno Haible  <bruno@clisp.org>
37388
37389         * tests/test-select-fd.c: New file.
37390         * tests/test-select-in.sh: New file.
37391         * tests/test-select-out.sh: New file.
37392         * tests/test-select-stdin.c: New file.
37393         * modules/select-tests (Files): Add the new files.
37394         (Depends-on): Add gettimeofday.
37395         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37396         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37397         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37398
37399 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37400             Bruno Haible  <bruno@clisp.org>
37401
37402         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37403
37404 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37405
37406         * build-aux/pmccabe2html: Added support for C++ source files.
37407
37408 2008-11-05  Ben Pfaff  <blp@gnu.org>
37409
37410         Fix lib/close.c build on Windows.
37411         * modules/close (Files): Add lib/w32sock.h.
37412
37413 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37414
37415         Accept Bison's NEWS format.
37416         * build-aux/announce-gen (print_news_deltas): Tweak
37417         $re_prefix.
37418
37419 2008-11-04  Bruno Haible  <bruno@clisp.org>
37420
37421         * modules/random_r (Maintainer): Add glibc.
37422
37423 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37424
37425         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37426         by karl@freefriends.org (Karl Berry).
37427         * doc/alloca.texi: Likewise.
37428         * doc/c-ctype.texi: Likewise.
37429         * doc/c-strcase.texi: Likewise.
37430         * doc/c-strcaseeq.texi: Likewise.
37431         * doc/c-strcasestr.texi: Likewise.
37432         * doc/c-strstr.texi: Likewise.
37433         * doc/c-strtod.texi: Likewise.
37434         * doc/c-strtold.texi: Likewise.
37435         * doc/ctime.texi: Likewise.
37436         * doc/error.texi: Likewise.
37437         * doc/fdl.texi: Likewise.
37438         * doc/gcd.texi: Likewise.
37439         * doc/getdate.texi: Likewise.
37440         * doc/gnulib-intro.texi: Likewise.
37441         * doc/gnulib-tool.texi: Likewise.
37442         * doc/gnulib.texi: Likewise.
37443         * doc/inet_ntoa.texi: Likewise.
37444         * doc/maintain.texi: Likewise.
37445         * doc/make-stds.texi: Likewise.
37446         * doc/quote.texi: Likewise.
37447         * doc/regexprops-generic.texi: Likewise.
37448         * doc/standards.texi: Likewise.
37449         * doc/verify.texi: Likewise.
37450         * doc/visibility.texi: Likewise.
37451         * doc/gnulib.texi (GNU Free Documentation License): Include
37452         fdl-1.3.texi instead of fdl.texi.
37453
37454 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37455
37456         * doc/fdl-1.3.texi: New file, from
37457         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37458         * modules/fdl-1.3: Add.
37459         * MODULES.html.sh: Add fdl-1.3.
37460
37461 2008-11-03  Bruno Haible  <bruno@clisp.org>
37462
37463         Make determination of absolute name of header file work with AIX xlc.
37464         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37465         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37466         preprocessing.
37467         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37468         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37469
37470 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37471
37472         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37473         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37474         <ludo@gnu.org>.
37475
37476 2008-11-02  Bruno Haible  <bruno@clisp.org>
37477
37478         Mark 'strpbrk' obsolete.
37479         * modules/strpbrk (Status, Notice): New sections.
37480         * modules/strtok_r (Depends-on): Add strpbrk.
37481
37482 2008-11-02  Bruno Haible  <bruno@clisp.org>
37483
37484         Mark 'strdup' obsolete.
37485         * modules/strdup (Status, Notice): New sections.
37486         * modules/findprog (Depends-on): Add strdup.
37487         * modules/getaddrinfo (Depends-on): Likewise.
37488         * modules/localename (Depends-on): Likewise.
37489         * modules/relocatable-lib (Depends-on): Likewise.
37490         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37491         * modules/relocatable-prog (Depends-on): Likewise.
37492         * modules/trim (Depends-on): Likewise.
37493         * modules/unictype/gen-ctype (Depends-on): Likewise.
37494         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37495
37496 2008-11-02  Bruno Haible  <bruno@clisp.org>
37497
37498         Mark 'strcspn' obsolete.
37499         * modules/strcspn (Status, Notice): New sections.
37500
37501 2008-11-02  Bruno Haible  <bruno@clisp.org>
37502
37503         Mark 'rmdir' obsolete.
37504         * modules/rmdir (Status, Notice): New sections.
37505         * modules/clean-temp (Depends-on): Add rmdir.
37506         * modules/openat (Depends-on): Likewise.
37507
37508 2008-11-02  Bruno Haible  <bruno@clisp.org>
37509
37510         Mark 'raise' obsolete.
37511         * modules/raise (Status, Notice): New sections.
37512         (Include): Specify <signal.h>.
37513         * modules/stdio (Depends-on): Add raise.
37514         * modules/write (Depends-on): Likewise.
37515
37516 2008-11-02  Bruno Haible  <bruno@clisp.org>
37517
37518         Mark 'memset' obsolete.
37519         * modules/memset (Status, Notice): New sections.
37520
37521 2008-11-02  Bruno Haible  <bruno@clisp.org>
37522
37523         Mark 'memmove' obsolete.
37524         * modules/memmove (Status, Notice): New sections.
37525         * modules/argp (Depends-on): Add memmove.
37526         * modules/argz (Depends-on): Likewise.
37527         * modules/canonicalize (Depends-on): Likewise.
37528         * modules/canonicalize-lgpl (Depends-on): Likewise.
37529         * modules/fts (Depends-on): Likewise.
37530         * modules/getcwd (Depends-on): Likewise.
37531         * modules/human (Depends-on): Likewise.
37532         * modules/regex (Depends-on): Likewise.
37533         * modules/striconveh (Depends-on): Likewise.
37534         * modules/trim (Depends-on): Likewise.
37535         * modules/unistr/u8-move (Depends-on): Likewise.
37536         * modules/unistr/u16-move (Depends-on): Likewise.
37537         * modules/unistr/u32-move (Depends-on): Likewise.
37538
37539 2008-11-02  Bruno Haible  <bruno@clisp.org>
37540
37541         Mark 'memcpy' obsolete.
37542         * modules/memcpy (Status, Notice): New sections.
37543
37544 2008-11-02  Bruno Haible  <bruno@clisp.org>
37545
37546         Mark 'memcmp' obsolete.
37547         * modules/memcmp (Status, Notice): New sections.
37548         * modules/argmatch (Depends-on): Add memchr.
37549         * modules/backupfile (Depends-on): Likewise.
37550         * modules/c-strcasestr (Depends-on): Likewise.
37551         * modules/crypto/des (Depends-on): Likewise.
37552         * modules/csharpcomp (Depends-on): Likewise.
37553         * modules/fnmatch (Depends-on): Likewise.
37554         * modules/git-merge-changelog (Depends-on): Likewise.
37555         * modules/isnand (Depends-on): Likewise.
37556         * modules/isnand-nolibm (Depends-on): Likewise.
37557         * modules/isnanf (Depends-on): Likewise.
37558         * modules/isnanf-nolibm (Depends-on): Likewise.
37559         * modules/isnanl (Depends-on): Likewise.
37560         * modules/isnanl-nolibm (Depends-on): Likewise.
37561         * modules/mbchar (Depends-on): Likewise.
37562         * modules/memcoll (Depends-on): Likewise.
37563         * modules/quotearg (Depends-on): Likewise.
37564         * modules/regex (Depends-on): Likewise.
37565         * modules/relocatable-prog (Depends-on): Likewise.
37566         * modules/same (Depends-on): Likewise.
37567         * modules/signbit (Depends-on): Likewise.
37568         * modules/strcasestr-simple (Depends-on): Likewise.
37569         * modules/unictype/gen-ctype (Depends-on): Likewise.
37570         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37571         * modules/uniname/uniname (Depends-on): Likewise.
37572         * modules/unistr/u8-cmp (Depends-on): Likewise.
37573
37574 2008-11-02  Bruno Haible  <bruno@clisp.org>
37575
37576         Mark 'memchr' obsolete.
37577         * modules/memchr (Status, Notice): New sections.
37578         * modules/argp (Depends-on): Add memchr.
37579         * modules/base64 (Depends-on): Likewise.
37580         * modules/c-strcasestr (Depends-on): Likewise.
37581         * modules/chdir-long (Depends-on): Likewise.
37582         * modules/fnmatch (Depends-on): Likewise.
37583         * modules/getsubopt (Depends-on): Likewise.
37584         * modules/git-merge-changelog (Depends-on): Likewise.
37585         * modules/glob (Depends-on): Likewise.
37586         * modules/strcasestr-simple (Depends-on): Likewise.
37587         * modules/strnlen (Depends-on): Likewise.
37588
37589 2008-11-02  Bruno Haible  <bruno@clisp.org>
37590
37591         Mark 'atexit' obsolete.
37592         * modules/atexit (Status, Notice): New sections.
37593         * modules/chdir-long (Depends-on): Add atexit.
37594         * modules/wait-process (Depends-on): Likewise.
37595
37596 2008-11-02  Bruno Haible  <bruno@clisp.org>
37597
37598         * gnulib-tool: New option --with-obsolete.
37599         (func_usage): Document it.
37600         (func_modules_transitive_closure): Drop obsolete dependencies if
37601         incobsolete is not true.
37602         (func_import): Read and save the incobsolete variable to the cache.
37603
37604 2008-11-02  Bruno Haible  <bruno@clisp.org>
37605
37606         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37607         * gnulib-tool: New option --extract-status.
37608         (func_usage): Document it.
37609         (sed_extract_prog): Recognize it.
37610         (func_get_status): New function.
37611
37612 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37613
37614         * modules/sockets (License): Change from LGPL to LGPLv2+.
37615
37616 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37617
37618         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37619
37620 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37621
37622         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37623         Mention times and sys_times.
37624         * modules/sys_times, modules/sys_times-tests: New modules.
37625         * modules/times, modules/times-tests: Likewise
37626         * m4/sys_times_h.m4: New file.
37627         * lib/sys_times.in.h: Likewise
37628         * lib/times.c: Likewise.
37629         * tests/test-sys_times.c: Likewise.
37630         * tests/test-times.c: Likewise.
37631         * doc/posix-headers/sys_times.texi: Update.
37632         * doc/posix-functions/times.texi: Update.
37633
37634 2008-10-28  Jim Meyering  <meyering@redhat.com>
37635
37636         * modules/tempname (Depends-on): Add lstat.
37637
37638         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37639
37640 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37641
37642         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37643         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37644         using idiom used elsewhere in gnulib.
37645
37646 2008-10-27  Jim Meyering  <meyering@redhat.com>
37647
37648         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37649
37650 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37651
37652         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37653         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37654         programs.
37655         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37656
37657 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37658
37659         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37660
37661 2008-10-27  Bruno Haible  <bruno@clisp.org>
37662
37663         * tests/test-lstat.c: Include <stdio.h>.
37664
37665 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37666
37667         * modules/lstat-tests: New module.
37668         * tests/test-lstat.c: New file.
37669
37670 2008-10-26  Jim Meyering  <meyering@redhat.com>
37671
37672         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37673
37674 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37675             Bruno Haible  <bruno@clisp.org>
37676
37677         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37678         * modules/configmake (Include): Add a note that the include must come
37679         after all system headers.
37680         * lib/javaversion.c: Include configmake.h after all other includes.
37681
37682 2008-10-26  Bruno Haible  <bruno@clisp.org>
37683
37684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37685         HAVE_STRUCT_RANDOM_DATA to 1.
37686         (gl_STDLIB_H): Simplify.
37687
37688 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37689
37690         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37691         substitute HAVE_STRUCT_RANDOM_DATA.
37692         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37693         random_data.
37694         * modules/stdlib (Makefile.am): Substitute
37695         HAVE_STRUCT_RANDOM_DATA.
37696
37697 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37698
37699         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37700         * doc/gnulib-intro.texi (Copyright): Likewise.
37701
37702 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37703
37704         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37705         findings.
37706
37707 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37708             Bruno Haible  <bruno@clisp.org>
37709
37710         * lib/unistd.in.h: Include <winsock2.h>.
37711         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37712         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37713         Provide dummy declarations.
37714         (gethostname): Override.
37715         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37716         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37717         gl_PREREQ_SYS_H_WINSOCK2.
37718         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37719         * doc/posix-functions/gethostname.texi: More details.
37720
37721 2008-10-25  Bruno Haible  <bruno@clisp.org>
37722
37723         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37724         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37725         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37726
37727         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37728         here ...
37729         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37730         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37731         gl_UNISTD_H_DEFAULTS.
37732
37733 2008-10-25  Eric Blake  <ebb9@byu.net>
37734
37735         signbit: avoid spurious compiler failure
37736         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37737         declarations inside function.
37738
37739 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37740             Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37743         * modules/random_r (Depends-on): Add stdint.
37744
37745 2008-10-24  Bruno Haible  <bruno@clisp.org>
37746
37747         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37748         Eggert.
37749         * modules/strerror (License): Likewise.
37750
37751 2008-10-24  Jim Meyering  <meyering@redhat.com>
37752
37753         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37754         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37755
37756 2008-10-24  Eric Blake  <ebb9@byu.net>
37757
37758         getgroups: fix compilation when getgroups is available
37759         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37760         but with <config.h> override of getgroups disabled.
37761
37762 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37763
37764         * doc/gnulib.texi (Header files): Add note about C++ problems.
37765         Explained by Bruno Haible <bruno@clisp.org>.
37766
37767 2008-10-23  Bruno Haible  <bruno@clisp.org>
37768
37769         Define a dummy SA_NODEFER macro on Interix.
37770         * lib/signal.in.h (SA_NODEFER): Define fallback.
37771         Reported by Aleksey Cheusov <cheusov@tut.by> via
37772         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37773
37774 2008-10-23  Bruno Haible  <bruno@clisp.org>
37775
37776         * modules/freadahead (License): Change to LGPLv2+.
37777         Suggested by Simon Josefsson.
37778
37779 2008-10-23  Jim Meyering  <meyering@redhat.com>
37780
37781         random_r: new module
37782         * modules/random_r: New file.
37783         * m4/random_r.m4: New file.
37784         * lib/random_r.c: New file, from glibc.
37785         * modules/random_r-tests: New file.
37786         * tests/test-random_r.c: New file.
37787         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37788          Declare.
37789         (RAND_MAX): Define.
37790         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37791         * modules/stdlib: Substitute them, too.
37792         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37793         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37794         * doc/glibc-functions/random_r.texi: Likewise.
37795         * doc/glibc-functions/setstate_r.texi: Likewise.
37796         * doc/glibc-functions/srandom_r.texi: Likewise.
37797         * config/srclist.txt: Mention it.
37798
37799 2008-10-23  David Lutterkort  <lutter@redhat.com>
37800
37801         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37802         link requirement
37803
37804 2008-10-23  Jim Meyering  <meyering@redhat.com>
37805
37806         selinux-h: mark parameters of stub functions as intentionally unused
37807         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37808         * lib/se-context.in.h: Likewise.
37809
37810 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37811
37812         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37813
37814 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37815
37816         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37817
37818 2008-10-22  Eric Blake  <ebb9@byu.net>
37819
37820         glthread/thread: avoid compiler warning
37821         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37822         Add unreachable abort to silence compiler.
37823
37824 2008-10-22  Eric Blake  <ebb9@byu.net>
37825
37826         netdb: also supply struct addrinfo for cygwin 1.5.x
37827         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37828         older cygwin.
37829         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37830         cygwin.
37831         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37832
37833 2008-10-22  Bruno Haible  <bruno@clisp.org>
37834
37835         * users.txt: Update entry about pspp.
37836
37837 2008-10-21  Bruno Haible  <bruno@clisp.org>
37838
37839         Simplification.
37840         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37841         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37842
37843         Simplification.
37844         * lib/ioctl.c (ioctl): Don't undefine.
37845         * lib/socket.c (socket): Don't undefine.
37846
37847         Remove unused module indicator macros.
37848         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37849         GNULIB_$1 as a C macro.
37850
37851         * doc/posix-functions/close.texi: Undo last change.
37852         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37853         Windows platforms.
37854
37855 2008-10-21  Bruno Haible  <bruno@clisp.org>
37856
37857         Add gethostname() declaration to <unistd.h>.
37858         * lib/unistd.in.h (gethostname): New declaration.
37859         * lib/gethostname.c: Include <unistd.h>.
37860         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37861         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37863         and HAVE_GETHOSTNAME.
37864         * modules/gethostname (Depends-on): Add unistd.
37865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37866         (Include): Specify <unistd.h>.
37867         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37868         HAVE_GETHOSTNAME.
37869         * tests/test-gethostname.c: Include <unistd.h> first.
37870
37871 2008-10-21  Bruno Haible  <bruno@clisp.org>
37872
37873         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37874         * modules/select-tests (Depends-on): Likewise.
37875         Reported by Simon Josefsson.
37876
37877 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37878
37879         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37880         * lib/accept.c: New file, based on winsock.c.
37881         * lib/bind.c: New file, based on winsock.c.
37882         * lib/connect.c: New file, based on winsock.c.
37883         * lib/getpeername.c: New file, based on winsock.c.
37884         * lib/getsockname.c: New file, based on winsock.c.
37885         * lib/getsockopt.c: New file, based on winsock.c.
37886         * lib/ioctl.c: New file, based on winsock.c.
37887         * lib/listen.c: New file, based on winsock.c.
37888         * lib/recv.c: New file, based on winsock.c.
37889         * lib/recvfrom.c: New file, based on winsock.c.
37890         * lib/send.c: New file, based on winsock.c.
37891         * lib/sendto.c: New file, based on winsock.c.
37892         * lib/setsockopt.c: New file, based on winsock.c.
37893         * lib/shutdown.c: New file, based on winsock.c.
37894         * lib/socket.c: New file, based on winsock.c.
37895         * lib/w32sock.h: New file, based on winsock.c.
37896         * lib/winsock.c: Remove file.
37897         * modules/accept: Likewise.
37898         * modules/bind: Likewise.
37899         * modules/connect: Likewise.
37900         * modules/getpeername: Likewise.
37901         * modules/getsockname: Likewise.
37902         * modules/getsockopt: Likewise.
37903         * modules/ioctl: Likewise.
37904         * modules/listen: Likewise.
37905         * modules/recv: Likewise.
37906         * modules/recvfrom: Likewise.
37907         * modules/send: Likewise.
37908         * modules/sendto: Likewise.
37909         * modules/setsockopt: Likewise.
37910         * modules/shutdown: Likewise.
37911         * modules/socket: Use socket.c instead of winsock.c.
37912         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37913         * doc/posix-functions/accept.texi: Doc fix.
37914         * doc/posix-functions/bind.texi: Doc fix.
37915         * doc/posix-functions/close.texi: Doc fix.
37916         * doc/posix-functions/connect.texi: Doc fix.
37917         * doc/posix-functions/getpeername.texi: Doc fix.
37918         * doc/posix-functions/getsockname.texi: Doc fix.
37919         * doc/posix-functions/getsockopt.texi: Doc fix.
37920         * doc/posix-functions/ioctl.texi: Doc fix.
37921         * doc/posix-functions/listen.texi: Doc fix.
37922         * doc/posix-functions/recv.texi: Doc fix.
37923         * doc/posix-functions/recvfrom.texi: Doc fix.
37924         * doc/posix-functions/send.texi: Doc fix.
37925         * doc/posix-functions/sendto.texi: Doc fix.
37926         * doc/posix-functions/setsockopt.texi: Doc fix.
37927         * doc/posix-functions/shutdown.texi: Doc fix.
37928         * doc/posix-functions/socket.texi: Doc fix.
37929
37930 2008-10-20  Bruno Haible  <bruno@clisp.org>
37931
37932         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37933         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37934         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37935         as an alias for SIGABRT.
37936         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37937         (sigaction): Map it to SIGABRT.
37938         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37939
37940 2008-10-20  Bruno Haible  <bruno@clisp.org>
37941
37942         * lib/fts.c: Don't include lstat.h.
37943         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37944
37945         Move the lstat() declaration to <sys/stat.h>.
37946         * lib/lstat.h: Remove file.
37947         * lib/sys_stat.in.h: Add special invocation convention.
37948         (lstat): New declaration.
37949         * lib/lstat.c (orig_lstat): New function.
37950         (rpl_lstat): Use orig_lstat instead of lstat.
37951         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37952         AC_C_INLINE. Set REPLACE_LSTAT.
37953         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37954         and REPLACE_LSTAT.
37955         * modules/lstat (Files): Remove lib/lstat.h.
37956         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37957         (Include): Specify <sys/stat.h> instead of lstat.h.
37958         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37959         REPLACE_LSTAT.
37960         * NEWS: Mention the change.
37961
37962 2008-10-20  Bruno Haible  <bruno@clisp.org>
37963
37964         * modules/posix_spawn-tests: New file.
37965         * tests/test-posix_spawn3.c: New file.
37966
37967 2008-10-20  Bruno Haible  <bruno@clisp.org>
37968
37969         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37970         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37971         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37972         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37973         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37974
37975 2008-10-20  Bruno Haible  <bruno@clisp.org>
37976
37977         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37978         of posix_spawn on AIX 5.3.
37979
37980 2008-10-20  Bruno Haible  <bruno@clisp.org>
37981
37982         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37983
37984 2008-10-20  Bruno Haible  <bruno@clisp.org>
37985
37986         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37987         of AC_LANG_PROGRAM.
37988
37989 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37990
37991         * lib/netdb.in.h: Don't define GNU specific constants until they
37992         are supported or needed.  Reported by Bruno Haible
37993         <bruno@clisp.org>.
37994
37995 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37996
37997         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37998
37999 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38000
38001         * lib/getaddrinfo.h: Remove file.
38002         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38003         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38004         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38005         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38006         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38007         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38008         * tests/test-getaddrinfo.c: Likewise.
38009         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38010         * NEWS: Mention change.
38011
38012 2008-10-19  Bruno Haible  <bruno@clisp.org>
38013
38014         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38015
38016 2008-10-19  Bruno Haible  <bruno@clisp.org>
38017
38018         * lib/wait-process.c: Include simply <sys/wait.h>.
38019         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38020         WIFSTOPPED): Remove fallback definitions.
38021         * modules/wait-process (Depends-on): Add sys_wait.
38022
38023         New module 'sys_wait'.
38024         * modules/sys_wait: New file.
38025         * lib/sys_wait.in.h: New file, partially copied from
38026         lib/wait-process.c.
38027         * m4/sys_wait_h.m4: New file.
38028         * doc/posix-headers/sys_wait.texi: Mention the new module.
38029
38030 2008-10-19  Bruno Haible  <bruno@clisp.org>
38031
38032         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38033
38034 2008-10-19  Bruno Haible  <bruno@clisp.org>
38035
38036         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38037         * lib/wait-process.c (WAIT_T): Remove type.
38038         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38039         (wait_subprocess): Update.
38040
38041 2008-10-19  Bruno Haible  <bruno@clisp.org>
38042
38043         New module 'atoll'.
38044         * modules/atoll: New file.
38045         * lib/stdlib.in.h (atoll): New declaration.
38046         * lib/atoll.c: New file, from glibc with modifications.
38047         * m4/atoll.m4: New file.
38048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38049         HAVE_ATOLL.
38050         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38051         * doc/posix-functions/atoll.texi: Mention the new module.
38052
38053 2008-10-19  Bruno Haible  <bruno@clisp.org>
38054
38055         Add strtoull() declaration to <stdlib.h>.
38056         * lib/stdlib.in.h (strtoull): New declaration.
38057         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38058         Set HAVE_STRTOULL.
38059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38060         HAVE_STRTOULL.
38061         * modules/strtoull (Depends-on): Add stdlib.
38062         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38063         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38064         HAVE_STRTOULL.
38065
38066 2008-10-19  Bruno Haible  <bruno@clisp.org>
38067
38068         Add strtoll() declaration to <stdlib.h>.
38069         * lib/stdlib.in.h (strtoll): New declaration.
38070         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38071         Set HAVE_STRTOLL.
38072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38073         HAVE_STRTOLL.
38074         * modules/strtoll (Depends-on): Add stdlib.
38075         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38076         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38077
38078 2008-10-19  Bruno Haible  <bruno@clisp.org>
38079
38080         * modules/bcopy (Depends-on): Add strings.
38081         (Include): Specify <strings.h>.
38082
38083 2008-10-19  Bruno Haible  <bruno@clisp.org>
38084
38085         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38086
38087 2008-10-19  Bruno Haible  <bruno@clisp.org>
38088
38089         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38090         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38091         mingw.
38092
38093 2008-10-19  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/atanl.c: Don't include isnanl.h.
38096         * lib/cosl.c: Likewise.
38097         * lib/ldexpl.c: Likewise.
38098         * lib/logl.c: Likewise.
38099         * lib/sinl.c: Likewise.
38100         * lib/sqrtl.c: Likewise.
38101         * lib/tanl.c: Likewise.
38102
38103         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38104         * lib/isnanf.h: Remove file.
38105         * lib/isnand.h: Remove file.
38106         * lib/isnanl.h: Remove file.
38107         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38108         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38109         macros.
38110         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38111         HAVE_ISNANF, don't define it as a C macro.
38112         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38113         HAVE_ISNAND, don't define it as a C macro.
38114         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38115         HAVE_ISNANL, don't define it as a C macro.
38116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38117         HAVE_ISNAN[FDL].
38118         * modules/isnanf (Files): Remove lib/isnanf.h.
38119         (Depends-on): Add math.
38120         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38121         (Include): Specify <math.h> instead of isnanf.h.
38122         * modules/isnand (Files): Remove lib/isnand.h.
38123         (Depends-on): Add math.
38124         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38125         (Include): Specify <math.h> instead of isnand.h.
38126         * modules/isnanl (Files): Remove lib/isnanl.h.
38127         (Depends-on): Add math.
38128         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38129         (Include): Specify <math.h> instead of isnanl.h.
38130         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38131         HAVE_ISNAN[FDL].
38132         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38133         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38134         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38135         * NEWS: Mention the change.
38136
38137 2008-10-18  Bruno Haible  <bruno@clisp.org>
38138
38139         Add getusershell(), setusershell(), endusershell() declarations to
38140         <unistd.h>.
38141         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38142         declarations.
38143         * lib/getusershell.c: Include unistd.h.
38144         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38145         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38146         HAVE_GETUSERSHELL.
38147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38148         and HAVE_GETUSERSHELL.
38149         * modules/getusershell (Depends-on): Add unistd, extensions.
38150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38151         (Include): Specify <unistd.h>.
38152         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38153         HAVE_GETUSERSHELL.
38154
38155 2008-10-18  Bruno Haible  <bruno@clisp.org>
38156
38157         Add a getloadavg() declaration to <stdlib.h>.
38158         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38159         getloadavg declaration.
38160         (getloadavg): New declaration.
38161         * lib/getloadavg.c: Include <stdlib.h> first.
38162         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38163         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38164         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38166         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38167         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38169         (Include): Specify <stdlib.h>.
38170         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38171         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38172
38173 2008-10-18  Bruno Haible  <bruno@clisp.org>
38174
38175         * lib/dirchownmod.c: Don't include lchmod.h.
38176
38177         Move the lchmod() declaration to <sys/stat.h>.
38178         * lib/lchmod.h: Remove file.
38179         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38180         (lchmod): New declaration, moved here from lib/lchown.h.
38181         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38182         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38184         and HAVE_LCHMOD.
38185         * modules/lchmod (Files): Remove lib/lchmod.h.
38186         (Depends-on): Add sys_stat, extensions.
38187         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38188         (Include): Specify <sys/stat.h> instead of lchmod.h.
38189         * modules/sys_stat (Depends-on): Add link-warning.
38190         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38191         definition of GL_LINK_WARNING.
38192         * NEWS: Mention the change.
38193
38194 2008-10-18  Bruno Haible  <bruno@clisp.org>
38195
38196         * lib/fchdir.c: Don't include dirfd.h.
38197         * lib/fts.c: Likewise.
38198         * lib/getcwd.c: Likewise.
38199         * lib/glob.c: Likewise.
38200
38201         Move the dirfd() declaration to <dirent.h>.
38202         * lib/dirfd.h: Remove file.
38203         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38204         (dirfd): New declaration.
38205         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38206         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38207         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38208         HAVE_DECL_DIRFD.
38209         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38210         HAVE_DECL_DIRFD.
38211         * modules/dirfd (Files): Remove lib/dirfd.h.
38212         (Depends-on): Add dirent, extensions.
38213         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38214         (Include): Specify <dirent.h> instead of dirfd.h.
38215         * modules/dirent (Depends-on): Add link-warning.
38216         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38217         definition of GL_LINK_WARNING.
38218         * NEWS: Mention the change.
38219
38220 2008-10-18  Bruno Haible  <bruno@clisp.org>
38221
38222         Move the euidaccess() declaration to <unistd.h>.
38223         * lib/euidaccess.h: Remove file.
38224         * lib/unistd.in.h (euidaccess): New declaration.
38225         * lib/euidaccess.c: Don't include euidaccess.h.
38226         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38227         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38229         and HAVE_EUIDACCESS.
38230         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38231         (Depends-on): Add unistd.
38232         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38233         (Include): Specify <unistd.h> instead of euidaccess.h.
38234         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38235         HAVE_EUIDACCESS.
38236         * NEWS: Mention the change.
38237
38238 2008-10-18  Bruno Haible  <bruno@clisp.org>
38239
38240         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38241
38242         Move the getdomainname() declaration to <unistd.h>.
38243         * lib/getdomainname.h: Remove file.
38244         * lib/unistd.in.h (getdomainname): New declaration.
38245         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38246         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38247         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38248         HAVE_GETDOMAINNAME.
38249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38250         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38251         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38252         (Depends-on): Add unistd, extensions.
38253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38254         (Includes): Specify <unistd.h> instead of getdomainname.h.
38255         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38256         HAVE_GETDOMAINNAME.
38257         * NEWS: Mention the change.
38258
38259 2008-10-18  Bruno Haible  <bruno@clisp.org>
38260
38261         * modules/dirent: New file.
38262         * m4/dirent_h.m4: New file.
38263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38264         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38265         * modules/fchdir (Files): Remove lib/dirent.in.h.
38266         (Depends-on): Add dirent.
38267         (Makefile.am): Move rules to modules/dirent.
38268         * doc/posix-headers/dirent.texi: Mention the new module.
38269
38270 2008-10-18  Bruno Haible  <bruno@clisp.org>
38271
38272         Avoid -Wunused-parameter warnings in public gnulib header files.
38273         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38274         macro.
38275         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38276
38277 2008-10-18  Bruno Haible  <bruno@clisp.org>
38278
38279         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38280         * doc/glibc-functions/error.texi: Mention the module 'error'.
38281         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38282         * doc/glibc-functions/getdomainname.texi: Mention the module
38283         'getdomainname'.
38284         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38285         * doc/glibc-functions/getpagesize.texi: Mention the module
38286         'getpagesize'.
38287         * doc/glibc-functions/getusershell.texi: Mention the module
38288         'getusershell'.
38289         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38290         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38291         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38292         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38293         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38294         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38295         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38296         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38297         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38298         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38299         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38300         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38301         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38302         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38303
38304 2008-10-17  Bruno Haible  <bruno@clisp.org>
38305
38306         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38307         HP-UX and IRIX, use -0.0L.
38308         * tests/test-ceill.c (minus_zero): Likewise.
38309         * tests/test-floorl.c (minus_zero): Likewise.
38310         * tests/test-frexpl.c (minus_zero): Likewise.
38311         * tests/test-isnan.c (minus_zerol): Likewise.
38312         * tests/test-isnanl.h (minus_zero): Likewise.
38313         * tests/test-ldexpl.c (minus_zero): Likewise.
38314         * tests/test-roundl.c (minus_zero): Likewise.
38315         * tests/test-signbit.c (minus_zerol): Likewise.
38316         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38317         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38318         * tests/test-truncl.c (minus_zero): Likewise.
38319         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38320         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38321         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38322         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38323
38324 2008-10-17  Bruno Haible  <bruno@clisp.org>
38325
38326         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38327         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38328         that it gets activated only for gcc >= 3.0.
38329         * lib/dirent.in.h: Likewise.
38330         * lib/errno.in.h: Likewise.
38331         * lib/fcntl.in.h: Likewise.
38332         * lib/float.in.h: Likewise.
38333         * lib/iconv.in.h: Likewise.
38334         * lib/inttypes.in.h: Likewise.
38335         * lib/locale.in.h: Likewise.
38336         * lib/math.in.h: Likewise.
38337         * lib/netdb.in.h: Likewise.
38338         * lib/netinet_in.in.h: Likewise.
38339         * lib/search.in.h: Likewise.
38340         * lib/signal.in.h: Likewise.
38341         * lib/spawn.in.h: Likewise.
38342         * lib/stdarg.in.h: Likewise.
38343         * lib/stdint.in.h: Likewise.
38344         * lib/stdio.in.h: Likewise.
38345         * lib/stdlib.in.h: Likewise.
38346         * lib/string.in.h: Likewise.
38347         * lib/strings.in.h: Likewise.
38348         * lib/sys_file.in.h: Likewise.
38349         * lib/sys_ioctl.in.h: Likewise.
38350         * lib/sys_select.in.h: Likewise.
38351         * lib/sys_socket.in.h: Likewise.
38352         * lib/sys_stat.in.h: Likewise.
38353         * lib/sys_time.in.h: Likewise.
38354         * lib/sysexits.in.h: Likewise.
38355         * lib/time.in.h: Likewise.
38356         * lib/unistd.in.h: Likewise.
38357         * lib/wchar.in.h: Likewise.
38358         * lib/wctype.in.h: Likewise.
38359         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38360
38361 2008-10-17  Jim Meyering  <meyering@redhat.com>
38362
38363         ignore-value: don't depend on inline module
38364         * modules/ignore-value (Depends-on): Remove 'inline'.
38365         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38366         Suggestion from Bruno Haible.
38367
38368 2008-10-17  Bruno Haible  <bruno@clisp.org>
38369
38370         New implementation of condition variables for Win32.
38371         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38372         (gl_linked_waitqueue_t): New type.
38373         (gl_cond_t): Use it.
38374         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38375         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38376         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38377         (glthread_cond_init_func, glthread_cond_wait_func,
38378         glthread_cond_timedwait_func, glthread_cond_signal_func,
38379         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38380         Reimplemented on the basis of gl_linked_waitqueue_t.
38381         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38382         gl_waitqueue_t.
38383         (gl_rwlock_t): Update.
38384         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38385
38386 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38387
38388         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38389         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38390
38391 2008-10-17  Jim Meyering  <meyering@redhat.com>
38392
38393         ignore-value: new module
38394         * modules/ignore-value: New file.
38395         * lib/ignore-value.h: New file.
38396         * MODULES.html.sh (Compiler warning management): New section,
38397         just for this module.  More to come.
38398
38399 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38400
38401         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38402         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38403         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38404
38405 2008-10-16  Jim Meyering  <meyering@redhat.com>
38406
38407         openat-die.c: avoid 'no previous prototype' warning
38408         * lib/openat-die.c: Include "openat.h".
38409         Reported by Reuben Thomas <rrt@sc3d.org>.
38410
38411 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38412
38413         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38414         * lib/netdb.in.h: Fix typo.
38415         Reported by Bruno Haible  <bruno@clisp.org>
38416
38417         * lib/netdb.in.h: Include sys/socket.h for platforms without
38418         netdb.h, to get structures like hostent on MinGW.
38419         * modules/netdb (Depends-on): Add sys_socket.
38420
38421 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38422
38423         * modules/netdb, modules/netdb-tests: New file.
38424         * m4/netdb_h.m4: New file.
38425         * lib/netdb.in.h: Add, currently just an empty file pending
38426         definitions.
38427         * tests/test-netdb.c: New file.
38428         * doc/posix-headers/netdb.texi: Mention that we replace it if
38429         needed.
38430         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38431         netdb.
38432
38433 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38434
38435         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38436         with code.
38437
38438 2008-10-13  Bruno Haible  <bruno@clisp.org>
38439
38440         * lib/glthread/cond.c (glthread_cond_wait_func,
38441         glthread_cond_timedwait_func): Add a comment.
38442
38443 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38444
38445         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38446         * tests/test-select.c: Likewise,
38447
38448 2008-10-13  Bruno Haible  <bruno@clisp.org>
38449
38450         * lib/glthread/cond.c (glthread_cond_wait_func,
38451         glthread_cond_timedwait_func): Fix variable name.
38452         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38453
38454 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38455
38456         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38457         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38458         struct sockaddr.sa_len.
38459         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38460
38461 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38462
38463         * build-aux/pmccabe2html: Add css and css_url parameters.
38464
38465 2008-10-12  Bruno Haible  <bruno@clisp.org>
38466
38467         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38468         calling aclx_get.
38469         Reported by Rainer Tammer <tammer@tammer.net>.
38470
38471 2008-10-12  Bruno Haible  <bruno@clisp.org>
38472
38473         Use msvcrt aware primitives for creation/termination of Win32 threads.
38474         * lib/glthread/thread.c: Include <process.h>.
38475         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38476         (wrapper_func): Update signature.
38477         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38478
38479 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38480             Bruno Haible  <bruno@clisp.org>
38481
38482         Provide a Win32 implementation of the 'cond' module.
38483         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38484         * lib/glthread/cond.c (glthread_cond_init_func,
38485         glthread_cond_wait_func, glthread_cond_timedwait_func,
38486         glthread_cond_signal_func, glthread_cond_broadcast_func,
38487         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38488         * modules/cond (Dependencies): Add gettimeofday.
38489
38490 2008-10-11  Bruno Haible  <bruno@clisp.org>
38491
38492         Make sleep work on older versions of mingw.
38493         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38494         only whether it exists.
38495         * doc/posix-functions/sleep.texi: Mention the problem with older
38496         versions of mingw.
38497
38498 2008-10-11  Bruno Haible  <bruno@clisp.org>
38499
38500         New module 'shutdown'.
38501         * modules/shutdown: New file.
38502         * lib/sys_socket.in.h (shutdown): New declaration.
38503         * lib/winsock.c (shutdown): New function.
38504         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38505         GNULIB_SHUTDOWN.
38506         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38507         * doc/posix-functions/shutdown.texi: Document the new module.
38508
38509 2008-10-11  Jim Meyering  <meyering@redhat.com>
38510
38511         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38512
38513 2008-10-11  Bruno Haible  <bruno@clisp.org>
38514
38515         New module 'fclose'.
38516         * modules/fclose: New file.
38517         * lib/stdio.in.h (fclose): New declaration.
38518         * lib/fclose.c: New file.
38519         * m4/fclose.m4: New file.
38520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38521         REPLACE_FCLOSE.
38522         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38523         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38524         REPLACE_FCLOSE.
38525         * modules/close (Depends-on): fclose.
38526         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38527
38528 2008-10-11  Bruno Haible  <bruno@clisp.org>
38529
38530         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38531         set errno and don't call _close.
38532
38533 2008-10-10  Bruno Haible  <bruno@clisp.org>
38534
38535         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38536         ACL, not afterwards. Fixes test failure on Cygwin.
38537
38538 2008-10-09  Ben Pfaff  <blp@gnu.org>
38539
38540         * build-aux/announce-gen: Fix gnulib version related part of usage
38541         message.  Die with a useful error message if no tarballs are
38542         found.
38543
38544 2008-10-10  Jim Meyering  <meyering@redhat.com>
38545
38546         bootstrap: use git's --depth=N option only if it's supported
38547         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38548         recognize the --depth option.  Reported by Pádraig Brady.
38549
38550 2008-10-09  Bruno Haible  <bruno@clisp.org>
38551
38552         New module 'ioctl'.
38553         * modules/ioctl: New file.
38554         * lib/sys_socket.in.h (ioctl): Remove declaration.
38555         * lib/winsock.c: Include <sys/ioctl.h>.
38556         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38557         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38558         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38559         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38560         * doc/posix-functions/ioctl.texi: Mention the new module.
38561
38562 2008-10-09  Bruno Haible  <bruno@clisp.org>
38563
38564         New module 'sys_ioctl'.
38565         * lib/sys_ioctl.in.h: New file.
38566         * m4/sys_ioctl_h.m4: New file.
38567         * modules/sys_ioctl: New file.
38568         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38569
38570 2008-10-09  Bruno Haible  <bruno@clisp.org>
38571
38572         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38573         * lib/winsock.c: Include <stdarg.h>.
38574         (rpl_ioctl): Change to second argument 'int' and then varargs.
38575
38576 2008-10-09  Bruno Haible  <bruno@clisp.org>
38577
38578         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38579         when the sys_socket module is present and the system has <winsock2.h>.
38580
38581 2008-10-09  Bruno Haible  <bruno@clisp.org>
38582
38583         * doc/posix-functions/close.texi: Mention module 'close' instead of
38584         module 'sys_socket'.
38585
38586 2008-10-09  Bruno Haible  <bruno@clisp.org>
38587
38588         * doc/glibc-headers/sys_ioctl.texi: New file.
38589         * doc/gnulib.texi: Include it.
38590
38591 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38592             Bruno Haible  <bruno@clisp.org>
38593
38594         Combine the two replacements of 'close'.
38595         * lib/sys_socket.in.h (close): Define to a reminder to include
38596         <unistd.h>.
38597         (_gl_close_fd_maybe_socket): New declaration.
38598         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38599         * lib/winsock.c (close): Remove undefinition.
38600         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38601         needed for the gnulib module 'close'.
38602         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38603         define to an error symbol or to a warning, if suitable.
38604         * lib/close.c: Include <sys/socket.h>.
38605         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38606         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38607         UNISTD_H_HAVE_WINSOCK2_H.
38608         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38610         UNISTD_H_HAVE_WINSOCK2_H.
38611         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38612         (configure.ac): Set a module indicator.
38613         (Makefile.am): Substitute GNULIB_CLOSE.
38614         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38615         * modules/poll-tests (Depends-on): Add close.
38616         * modules/select-tests (Depends-on): Likewise.
38617
38618 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38619             Bruno Haible  <bruno@clisp.org>
38620
38621         New module 'close'.
38622         * modules/close: New file.
38623         * lib/unistd.in.h (close): Move declaration out of the
38624         FCHDIR_REPLACEMENT scope.
38625         (_gl_unregister_fd): New declaration.
38626         * lib/close.c: New file.
38627         * lib/fchdir.c (rpl_close): Remove function.
38628         * m4/close.m4: New file.
38629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38630         close.
38631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38632         REPLACE_CLOSE.
38633         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38634         REPLACE_CLOSE.
38635         * modules/fchdir (Depends-on): Add close.
38636
38637 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38638             Bruno Haible  <bruno@clisp.org>
38639
38640         * lib/fcntl.in.h (open): Simplify conditionals.
38641         (_gl_register_fd): New declaration.
38642         * lib/fchdir.c (rpl_open): Remove function.
38643         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38644         also.
38645         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38647         open.
38648
38649 2008-10-09  Jim Meyering  <meyering@redhat.com>
38650
38651         GNUmakefile: use the more name-space-friendly "_version"
38652         * top/GNUmakefile (_dummy): Update.
38653         (_version): Rename from "version".
38654
38655 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38656             Bruno Haible  <bruno@clisp.org>
38657
38658         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38659         rpl_close.
38660         (_gl_register_fd): New function, extracted from rpl_open.
38661         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38662         (rpl_open, rpl_opendir): Use _gl_register_fd.
38663
38664 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38665
38666         Fix organization of 'open' replacement.
38667         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38668         (gl_FUNC_OPEN): Use it.
38669         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38670
38671 2008-10-08  Bruno Haible  <bruno@clisp.org>
38672
38673         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38674
38675 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38676
38677         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38678         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38679         listen).
38680
38681 2008-10-08  Eric Blake  <ebb9@byu.net>
38682
38683         GNUmakefile: add 'make version' target
38684         * top/GNUmakefile (_curr-ver): Split version update rules...
38685         (version): ...into a target.
38686
38687 2008-10-07  Bruno Haible  <bruno@clisp.org>
38688
38689         Use a more portable replacement expression for -0.0L.
38690         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38691         instead of -0.0L. Fix m4 quotation.
38692
38693         * tests/test-signbit.c: Include <float.h>.
38694         (minus_zero): New variable.
38695         (test_signbitl): Use minus_zero instead of -zero.
38696         * modules/signbit-tests (Depends-on): Add float.
38697
38698         * tests/test-ceill.c: Include <float.h>.
38699         (zero): Remove variable.
38700         (minus_zero): New variable.
38701         (main): Use minus_zero instead of -zero.
38702         * modules/ceill-tests (Depends-on): Add float.
38703
38704         * tests/test-floorl.c: Include <float.h>.
38705         (zero): Remove variable.
38706         (minus_zero): New variable.
38707         (main): Use minus_zero instead of -zero.
38708         * modules/floorl-tests (Depends-on): Add float.
38709
38710         * tests/test-roundl.c: Include <float.h>.
38711         (zero): Remove variable.
38712         (minus_zero): New variable.
38713         (main): Use minus_zero instead of -zero.
38714         * modules/roundl-tests (Depends-on): Add float.
38715
38716         * tests/test-truncl.c: Include <float.h>.
38717         (zero): Remove variable.
38718         (minus_zero): New variable.
38719         (main): Use minus_zero instead of -zero.
38720         * modules/truncl-tests (Depends-on): Add float.
38721
38722         * tests/test-frexpl.c (zero): Remove variable.
38723         (minus_zero): New variable.
38724         (main): Use minus_zero instead of -zero.
38725         * modules/frexpl-tests (Depends-on): Add float.
38726
38727         * tests/test-isnan.c (zerol): Remove variable.
38728         (minus_zerol): New variable.
38729         (test_long_double): Use minus_zerol instead of -zerol.
38730         * modules/isnan-tests (Depends-on): Add float.
38731
38732         * tests/test-isnanl.h (zero): Remove variable.
38733         (minus_zero): New variable.
38734         (main): Use minus_zero instead of -zero.
38735         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38736         * modules/isnanl-tests (Depends-on): Add float.
38737
38738         * tests/test-ldexpl.c (zero): Remove variable.
38739         (minus_zero): New variable.
38740         (main): Use minus_zero instead of -zero.
38741         * modules/ldexpl-tests (Depends-on): Add float.
38742
38743         * tests/test-snprintf-posix.h (zerol): Remove variable.
38744         (minus_zerol): New variable.
38745         (test_function): Use minus_zerol instead of -zerol.
38746         * modules/snprintf-posix-tests (Depends-on): Add float.
38747         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38748
38749         * tests/test-sprintf-posix.h (zerol): Remove variable.
38750         (minus_zerol): New variable.
38751         (test_function): Use minus_zerol instead of -zerol.
38752         * modules/sprintf-posix-tests (Depends-on): Add float.
38753         * modules/vsprintf-posix-tests (Depends-on): Add float.
38754
38755         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38756         (minus_zerol): New variable.
38757         (test_function): Use minus_zerol instead of -zerol.
38758         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38759
38760         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38761         (minus_zerol): New variable.
38762         (test_function): Use minus_zerol instead of -zerol.
38763         * modules/vasprintf-posix-tests (Depends-on): Add float.
38764
38765 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38766
38767         * MODULES.html.sh (Support for building documentation): Mention
38768         pmccabe2html.  Sort entries.
38769
38770         Add pmccabe2html module, from gnupdf.
38771         * build-aux/pmccabe.css: New file.
38772         * build-aux/pmccabe2html: New file.
38773         * m4/pmccabe2html.m4: New file.
38774         * modules/pmccabe2html: New file.
38775
38776 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38777
38778         flock: new module
38779         * MODULES.html.sh: Add to list of modules.
38780         * lib/flock.c: flock implementation for Windows and Unix systems
38781         which have fcntl.
38782         * doc/glibc-functions/flock.texi: Update documentation.
38783         * lib/sys_file.in.h: <sys/file.h> header file.
38784         * m4/flock.m4: M4 macros.
38785         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38786         * modules/flock: flock module.
38787         * modules/flock-tests: flock tests module.
38788         * modules/sys_file: sys/file.h module.
38789         * tests/test-flock.c: test suite for flock.
38790
38791 2008-10-06  Jim Meyering  <meyering@redhat.com>
38792
38793         bootstrap: check for LT_INIT more portably still ;-)
38794         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38795         Spotted by Bruno Haible.
38796
38797 2008-10-06  Eric Blake  <ebb9@byu.net>
38798
38799         test-signbit: avoid tripping Irix cc bug on -0.0L
38800         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38801         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38802         entire testsuite consistent and avoids an Irix 6.2 bug.
38803
38804 2008-10-05  Bruno Haible  <bruno@clisp.org>
38805             Jim Meyering  <jim@meyering.net>
38806
38807         Add an option for ignoring EPIPE during close_stdout.
38808         * lib/closeout.h: Include <stdbool.h>.
38809         (close_stdout_set_ignore_EPIPE): New declaration.
38810         * lib/closeout.c: Include <stdbool.h>.
38811         (ignore_EPIPE): New variable.
38812         (close_stdout_set_ignore_EPIPE): New function.
38813         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38814         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38815         failure.
38816         * modules/closeout (Depends-on): Add stdbool.
38817
38818 2008-10-05  Bruno Haible  <bruno@clisp.org>
38819
38820         * modules/accept: New file.
38821         * modules/bind: New file.
38822         * modules/connect: New file.
38823         * modules/getpeername: New file.
38824         * modules/getsockname: New file.
38825         * modules/getsockopt: New file.
38826         * modules/listen: New file.
38827         * modules/recv: New file.
38828         * modules/recvfrom: New file.
38829         * modules/send: New file.
38830         * modules/sendto: New file.
38831         * modules/setsockopt: New file.
38832         * modules/socket: New file.
38833         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38834         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38835         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38836         the particular module is requested. Add a link warning when the
38837         particular module is not requested.
38838         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38839         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38840         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38841         the particular module is requested.
38842         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38843         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38844         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38845         * modules/sys_socket (Depends-on): Add link-warning.
38846         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38847         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38848         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38849         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38850         GL_LINK_WARNING.
38851         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38852         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38853         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38854         * doc/posix-functions/getpeername.texi: Mention the new module
38855         'getpeername'.
38856         * doc/posix-functions/getsockname.texi: Mention the new module
38857         'getsockname'.
38858         * doc/posix-functions/getsockopt.texi: Mention the new module
38859         'getsockopt'.
38860         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38861         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38862         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38863         * doc/posix-functions/send.texi: Mention the new module 'send'.
38864         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38865         * doc/posix-functions/setsockopt.texi: Mention the new module
38866         'setsockopt'.
38867         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38868         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38869         listen, connect, accept.
38870         * modules/select-tests (Depends-on): Likewise.
38871
38872 2008-10-05  Bruno Haible  <bruno@clisp.org>
38873
38874         * lib/winsock.c (strerror): Remove unused #undef.
38875         (rpl_close): Remove unused local variable.
38876
38877         * modules/sys_socket (Depends-on); Add errno.
38878
38879 2008-10-05  Bruno Haible  <bruno@clisp.org>
38880
38881         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38882         (select): Add a link warning when the 'select' module is not used.
38883         * modules/sys_select (Depends-on): Add link-warning.
38884         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38885         Suggested by Paolo Bonzini.
38886
38887 2008-10-05  Jim Meyering  <meyering@redhat.com>
38888
38889         bootstrap: check for LT_INIT more portably
38890         * build-aux/bootstrap: Avoid using grep -E, since it's not
38891         portable enough.  Suggestion from Bruno Haible.
38892
38893 2008-10-05  Bruno Haible  <bruno@clisp.org>
38894
38895         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38896         as being fixed by gnulib.
38897
38898 2008-10-05  Bruno Haible  <bruno@clisp.org>
38899
38900         * modules/select-tests: New file, mostly copied from
38901         modules/sys_select-tests.
38902         * tests/test-select.c: New file, mostly copied from
38903         tests/test-sys_select.c.
38904         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38905         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38906         (Makefile.am): Remove test_sys_select_LDADD.
38907
38908         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38909         to an undefined symbol, for an error message.
38910         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38911         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38912         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38913         winsock-select.c here.
38914         * modules/sys_select (Files): Remove lib/winsock-select.c.
38915         (Depends-on): Remove alloca.
38916         (Makefile.am): Substitute GNULIB_SELECT.
38917         * modules/select: New file.
38918         * doc/posix-functions/select.texi: Update.
38919
38920 2008-10-05  Bruno Haible  <bruno@clisp.org>
38921
38922         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38923         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38924         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38925         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38926         getdtablesize.
38927         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38928         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38929
38930 2008-10-05  Bruno Haible  <bruno@clisp.org>
38931
38932         * modules/getdtablesize-tests: New file.
38933         * tests/test-getdtablesize.c: New file.
38934
38935         New module 'getdtablesize'.
38936         * lib/unistd.in.h (getdtablesize): New declaration.
38937         * lib/getdtablesize.c: New file.
38938         * m4/getdtablesize.m4: New file.
38939         * modules/getdtablesize: New file.
38940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38941         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38942         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38943         HAVE_GETDTABLESIZE.
38944         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38945
38946 2008-10-05  Bruno Haible  <bruno@clisp.org>
38947
38948         * modules/sched (Makefile.am): Fix typo.
38949         Reported by Simon Josefsson.
38950
38951 2008-10-05  Jim Meyering  <meyering@redhat.com>
38952
38953         bootstrap: check for LT_INIT, too
38954         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38955         are deprecated.  Suggestion from Ralf Wildenhues.
38956
38957 2008-10-05  Bruno Haible  <bruno@clisp.org>
38958
38959         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38960         overriding them by ours.
38961         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38962
38963 2008-10-05  Jim Meyering  <meyering@redhat.com>
38964
38965         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38966         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38967         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38968
38969 2008-10-04  Bruno Haible  <bruno@clisp.org>
38970
38971         * modules/dup2 (License): Change to LGPLv2+.
38972         * modules/sleep (License): Likewise.
38973         * modules/perror (License): Likewise.
38974         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38975         Blake.
38976         * modules/signal (License): Likewise.
38977         * modules/sigprocmask (License): Likewise.
38978         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38979         Meyering.
38980
38981 2008-10-04  Bruno Haible  <bruno@clisp.org>
38982
38983         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38984         Reported by Rainer Tammer <tammer@tammer.net>.
38985
38986 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38987             Bruno Haible  <bruno@clisp.org>
38988
38989         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38990         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38991         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38992
38993 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38994
38995         filevercmp: new module
38996         * lib/filevercmp.h: New function filevercmp comparing version strings.
38997         * lib/filevercmp.c: Implementation of filevercmp function.
38998         * modules/filevercmp: Module metadata.
38999         * tests/test-filevercmp.c: Unit test for new module.
39000         * modules/filevercmp-tests: Unit test metadata.
39001         * MODULES.html.sh: Add filevercmp module.
39002
39003 2008-10-03  Bruno Haible  <bruno@clisp.org>
39004
39005         * lib/c-ctype.h: Add comment.
39006         Reported by Jim Meyering.
39007
39008 2008-10-02  Bruno Haible  <bruno@clisp.org>
39009
39010         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39011
39012 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39013
39014         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39015         name of bootstrap.conf accordingly.
39016
39017 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39018
39019         * build-aux/bootstrap: Install git-merge-changelog configuration
39020         items into .gitconfig if needed.
39021
39022 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39023
39024         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39025         git repository, and initialize/update it accordingly.
39026
39027 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39028
39029         * modules/fsync-tests: New file.
39030         * tests/test-fsync.c: New file.
39031
39032         New module 'fsync'.
39033         * lib/fsync.c: New file.
39034         * m4/fsync.m4: New file.
39035         * modules/fsync: New file.
39036         * lib/unistd.in.h (fsync): New declaration.
39037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39038         GNULIB_FSYNC and HAVE_FSYNC.
39039         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39040         * MODULES.html.sh (posix_functions): Add fsync.
39041         * doc/posix-functions/fsync.texi: Mention the new module.
39042
39043 2008-10-02  Jim Meyering  <meyering@redhat.com>
39044
39045         fts.c: sync with similar code from coreutils' remove.c
39046         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39047         Guard also with "#if defined __linux__", since for now at least,
39048         this code is Linux-kernel-specific.
39049
39050 2008-10-02  Jim Meyering  <meyering@redhat.com>
39051
39052         fts: bug fixes
39053         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39054         Include <sys/vfs.h>, not <sys/statfs.h>.
39055
39056         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39057         Include <sys/vfs.h>, not <sys/statfs.h>.
39058
39059 2008-10-01  Bruno Haible  <bruno@clisp.org>
39060
39061         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39062         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39063         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39064         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39065         * doc/posix-functions/posix_spawnp.texi: Likewise.
39066         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39067         whether posix_spawn actually works.
39068         * m4/pipe.m4 (gl_PIPE): Likewise.
39069         * modules/execute (Files): Add m4/posix_spawn.m4.
39070         * modules/pipe (Files): Add m4/posix_spawn.m4.
39071         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39072
39073 2008-10-01  Jim Meyering  <meyering@redhat.com>
39074
39075         remove trailing spaces
39076         * NEWS: Likewise.
39077         * lib/poll.c (poll): Likewise.
39078         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39079         * lib/winsock.c (rpl_close): Likewise.
39080         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39081         * modules/yield: Likewise.
39082         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39083         * tests/test-sys_select.c (connect_to_socket): Likewise.
39084
39085         fts.c: adjust a new interface to be more generally useful
39086         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39087         (fts_build): Adjust caller.
39088
39089 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39090
39091         * modules/cond-tests: New file.
39092         * tests/test-cond.c: New file.
39093
39094 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39095             Bruno Haible  <bruno@clisp.org>
39096
39097         * modules/cond (Dependencies): Add errno, time.
39098         * lib/glthread/cond.h: Include <time.h>.
39099         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39100         across platforms.
39101
39102 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39103             Bruno Haible  <bruno@clisp.org>
39104
39105         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39106
39107 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39108             Bruno Haible  <bruno@clisp.org>
39109
39110         * modules/tls-tests (Depends-on): Add thread, yield.
39111         (configure.ac): Remove all checks.
39112         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39113         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39114         gl_thread_self): Remove definitions. Include glthread/thread.h and
39115         glthread/yield.h instead.
39116         (test_tls): Pass an additional NULL argument to gl_thread_join.
39117
39118 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39119             Bruno Haible  <bruno@clisp.org>
39120
39121         * modules/lock-tests (Depends-on): Add thread, yield.
39122         (configure.ac): Remove all checks.
39123         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39124         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39125         gl_thread_self): Remove definitions. Include glthread/thread.h and
39126         glthread/yield.h instead.
39127         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39128         additional NULL argument to gl_thread_join.
39129
39130 2008-09-30  Bruno Haible  <bruno@clisp.org>
39131
39132         Fix the Win32 implementation of the 'thread' module.
39133         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39134         pointer type.
39135         (gl_thread_self): Invoke gl_thread_self_func.
39136         (gl_thread_self_func): New declaration.
39137         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39138         (do_init_self_key, init_self_key): New functions.
39139         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39140         Remove some fields.
39141         (running_threads, running_lock): Remove variables.
39142         (get_current_thread_handle): New function.
39143         (gl_thread_self_func, wrapper_func, glthread_create_func,
39144         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39145         simplified.
39146
39147 2008-09-30  Bruno Haible  <bruno@clisp.org>
39148
39149         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39150         files.
39151
39152 2008-09-30  Jim Meyering  <meyering@redhat.com>
39153
39154         fts.m4: correct the test for statfs.f_type
39155         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39156         when checking for statfs.f_type.
39157
39158 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39159
39160         tests: avoid some compiler warnings
39161         * tests/test-memchr.c (main): Pass NULL indirectly.
39162         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39163
39164 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39165
39166         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39167         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39168         exactly specified dayshifts.
39169         (dayshift): New rule.
39170         (rel): Add dayshift.
39171         (relative_time_table) [tomorrow, yesterday, today, now]:
39172         Use tDAY_SHIFT in place of tDAY_UNIT.
39173         * tests/test-getdate.c: Add tests for now-disallowed countable
39174         dayshifts, e.g., "4 yesterday ago".
39175
39176 2008-09-29  Bruno Haible  <bruno@clisp.org>
39177
39178         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39179         * tests/test-posix_spawn1.in.sh: Renamed from
39180         tests/test-posix_spawn.in.sh.
39181         * tests/test-posix_spawn2.c: New file.
39182         * tests/test-posix_spawn2.in.sh: New file.
39183         * modules/posix_spawnp-tests (Files): Update.
39184         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39185
39186 2008-09-29  Bruno Haible  <bruno@clisp.org>
39187
39188         Propagate effects of putenv/setenv/unsetenv to child processes.
39189         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39190         * lib/pipe.c (create_pipe): Likewise.
39191
39192 2008-09-29  Bruno Haible  <bruno@clisp.org>
39193
39194         Enable use of shell scripts as executables in mingw.
39195         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39196         run the program as a shell script.
39197         * lib/pipe.c (create_pipe): Likewise.
39198         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39199         resulting array.
39200
39201 2008-09-29  Eric Blake  <ebb9@byu.net>
39202
39203         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39204
39205 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39206
39207         * doc/posix-functions/accept.texi: Update mingw problems.
39208         * doc/posix-functions/bind.texi: Update mingw problems.
39209         * doc/posix-functions/close.texi: Update mingw problems.
39210         * doc/posix-functions/connect.texi: Update mingw problems.
39211         * doc/posix-functions/getpeername.texi: Update mingw problems.
39212         * doc/posix-functions/getsockname.texi: Update mingw problems.
39213         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39214         * doc/posix-functions/ioctl.texi: Update mingw problems.
39215         * doc/posix-functions/listen.texi: Update mingw problems.
39216         * doc/posix-functions/recv.texi: Update mingw problems.
39217         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39218         * doc/posix-functions/select.texi: Update mingw problems.
39219         * doc/posix-functions/send.texi: Update mingw problems.
39220         * doc/posix-functions/sendto.texi: Update mingw problems.
39221         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39222         * doc/posix-functions/socket.texi: Update mingw problems.
39223
39224 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39225             Bruno Haible  <bruno@clisp.org>
39226
39227         * lib/sys_select.in.h: Include sys/time.h.
39228         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39229         * modules/sys_select: Depend on sys_time.
39230         * tests/test-sys_select.c: Test that sys/select.h defines struct
39231         timeval fully.
39232
39233 2008-09-29  Bruno Haible  <bruno@clisp.org>
39234
39235         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39236         * lib/sys_select.in.h: Likewise.
39237
39238 2008-09-29  Bruno Haible  <bruno@clisp.org>
39239
39240         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39241
39242 2008-09-29  Bruno Haible  <bruno@clisp.org>
39243
39244         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39245         Set LIBSOCKET instead of augmenting LIBS.
39246         * modules/sockets (Link): New section.
39247         * modules/sockets-tests (test_sockets_LDADD): New variable.
39248         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39249         * modules/poll-tests (test_poll_LDADD): New variable.
39250         * NEWS: Document the change.
39251
39252 2008-09-29  Bruno Haible  <bruno@clisp.org>
39253
39254         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39255         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39256         ARPA_INET_H directly.
39257         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39258
39259 2008-09-28  Bruno Haible  <bruno@clisp.org>
39260
39261         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39262         from gl_HEADER_SYS_SOCKET.
39263         (gl_HEADER_SYS_SOCKET): Invoke it.
39264         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39265
39266 2008-09-28  Bruno Haible  <bruno@clisp.org>
39267
39268         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39269         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39270         Needed on OSF/1 4.0.
39271
39272 2008-09-28  Bruno Haible  <bruno@clisp.org>
39273
39274         Override open more carefully.
39275         * lib/open.c (orig_open): New function.
39276         (rpl_open): Use orig_open instead of open.
39277         * lib/fcntl.in.h: Add special invocation convention.
39278         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39279         (gl_FUNC_OPEN): Invoke it.
39280
39281         Override freopen more carefully.
39282         * lib/freopen.c (orig_freopen): New function.
39283         (rpl_freopen): Use orig_freopen instead of freopen.
39284         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39285         (gl_FUNC_FREOPEN): Invoke it.
39286
39287         Override fopen more carefully.
39288         * lib/fopen.c (orig_fopen): New function.
39289         (rpl_fopen): Use orig_fopen instead of fopen.
39290         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39291         (gl_FUNC_FOPEN): Invoke it.
39292         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39293
39294 2008-09-28  Bruno Haible  <bruno@clisp.org>
39295
39296         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39297         SIGPIPE.
39298
39299 2008-09-28  Bruno Haible  <bruno@clisp.org>
39300
39301         * tests/test-sigaction.c (handler, main): Disable the check whether
39302         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39303         glibc systems with LinuxThreads.
39304
39305 2008-09-28  Bruno Haible  <bruno@clisp.org>
39306
39307         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39308
39309         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39310         with AIX xlc.
39311         * lib/fcntl.in.h (open): Likewise.
39312         Reported by Rainer Tammer <tammer@tammer.net>.
39313
39314 2008-09-28  Bruno Haible  <bruno@clisp.org>
39315
39316         * modules/posix_spawnp-tests: New file.
39317         * tests/test-posix_spawn.c: New file.
39318         * tests/test-posix_spawn.in.sh: New file.
39319
39320         New module 'posix_spawnp'.
39321         * modules/posix_spawnp: New file.
39322         * lib/spawnp.c: New file, from GNU libc with modifications.
39323         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39324
39325         New module 'posix_spawn'.
39326         * modules/posix_spawn: New file.
39327         * lib/spawn.c: New file, from GNU libc with modifications.
39328         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39329
39330         New module 'posix_spawnattr_destroy'.
39331         * modules/posix_spawnattr_destroy: New file.
39332         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39333         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39334         module.
39335
39336         New module 'posix_spawnattr_setsigmask'.
39337         * modules/posix_spawnattr_setsigmask: New file.
39338         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39339         modifications.
39340         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39341         new module.
39342
39343         New module 'posix_spawnattr_getsigmask'.
39344         * modules/posix_spawnattr_getsigmask: New file.
39345         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39346         modifications.
39347         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39348         new module.
39349
39350         New module 'posix_spawnattr_setsigdefault'.
39351         * modules/posix_spawnattr_setsigdefault: New file.
39352         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39353         modifications.
39354         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39355         new module.
39356
39357         New module 'posix_spawnattr_getsigdefault'.
39358         * modules/posix_spawnattr_getsigdefault: New file.
39359         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39360         modifications.
39361         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39362         new module.
39363
39364         New module 'posix_spawnattr_setschedpolicy'.
39365         * modules/posix_spawnattr_setschedpolicy: New file.
39366         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39367         modifications.
39368         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39369         new module.
39370
39371         New module 'posix_spawnattr_getschedpolicy'.
39372         * modules/posix_spawnattr_getschedpolicy: New file.
39373         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39374         modifications.
39375         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39376         new module.
39377
39378         New module 'posix_spawnattr_setschedparam'.
39379         * modules/posix_spawnattr_setschedparam: New file.
39380         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39381         modifications.
39382         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39383         new module.
39384
39385         New module 'posix_spawnattr_getschedparam'.
39386         * modules/posix_spawnattr_getschedparam: New file.
39387         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39388         modifications.
39389         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39390         new module.
39391
39392         New module 'posix_spawnattr_setpgroup'.
39393         * modules/posix_spawnattr_setpgroup: New file.
39394         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39395         modifications.
39396         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39397         module.
39398
39399         New module 'posix_spawnattr_getpgroup'.
39400         * modules/posix_spawnattr_getpgroup: New file.
39401         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39402         modifications.
39403         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39404         module.
39405
39406         New module 'posix_spawnattr_setflags'.
39407         * modules/posix_spawnattr_setflags: New file.
39408         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39409         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39410         module.
39411
39412         New module 'posix_spawnattr_getflags'.
39413         * modules/posix_spawnattr_getflags: New file.
39414         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39415         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39416         module.
39417
39418         New module 'posix_spawnattr_init'.
39419         * modules/posix_spawnattr_init: New file.
39420         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39421         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39422         module.
39423
39424         New module 'posix_spawn_file_actions_destroy'.
39425         * modules/posix_spawn_file_actions_destroy: New file.
39426         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39427         modifications.
39428         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39429         the new module.
39430
39431         New module 'posix_spawn_file_actions_addopen'.
39432         * modules/posix_spawn_file_actions_addopen: New file.
39433         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39434         modifications.
39435         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39436         the new module.
39437
39438         New module 'posix_spawn_file_actions_adddup2'.
39439         * modules/posix_spawn_file_actions_adddup2: New file.
39440         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39441         modifications.
39442         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39443         the new module.
39444
39445         New module 'posix_spawn_file_actions_addclose'.
39446         * modules/posix_spawn_file_actions_addclose: New file.
39447         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39448         modifications.
39449         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39450         the new module.
39451
39452         New module 'posix_spawn_file_actions_init'.
39453         * modules/posix_spawn_file_actions_init: New file.
39454         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39455         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39456         new module.
39457
39458         New module 'posix_spawn-internal'.
39459         * modules/posix_spawn-internal: New file.
39460         * lib/spawn_int.h: New file, from GNU libc with modifications.
39461         * lib/spawni.c: New file, from GNU libc with modifications.
39462         * m4/posix_spawn.m4: New file.
39463
39464         New module 'spawn'.
39465         * modules/spawn: New file.
39466         * lib/spawn.in.h: New file, from GNU libc with modifications.
39467         * m4/spawn_h.m4: New file.
39468         * doc/posix-headers/spawn.texi: Mention the new module.
39469
39470 2008-09-28  Bruno Haible  <bruno@clisp.org>
39471
39472         * modules/sched-tests: New file.
39473         * tests/test-sched.c: New file.
39474
39475         New module 'sched'.
39476         * modules/sched: New file.
39477         * lib/sched.in.h: New file.
39478         * m4/sched_h.m4: New file.
39479         * doc/posix-headers/sched.texi: Mention the new module.
39480
39481 2008-09-27  Eric Blake  <ebb9@byu.net>
39482
39483         Fix previous patch, and tweak references to $0.
39484         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39485         (func_version, func_gnulib_dir): Don't call this program
39486         gnulib-tool.
39487         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39488         with using $0 in function.
39489         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39490         (func_fatal_error): Reuse the name the user invoked us with.
39491
39492 2008-09-27  Bruno Haible  <bruno@clisp.org>
39493
39494         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39495         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39496         (gl_ICONV_H): Not here.
39497         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39498         instead of assigning ICONV_H directly.
39499
39500         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39502         WCHAR_H directly.
39503
39504 2008-09-27  Bruno Haible  <bruno@clisp.org>
39505
39506         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39507         * modules/arpa_inet (Depends-on): Add link-warning.
39508         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39509         * modules/unistd (Makefile.am): Likewise.
39510
39511 2008-09-26  Bruno Haible  <bruno@clisp.org>
39512
39513         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39514         variables.
39515         (func_version): Essentially copied from gnulib-tool.
39516         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39517         func_readlink): Copied from gnulib-tool.
39518
39519 2008-09-26  Bruno Haible  <bruno@clisp.org>
39520
39521         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39522         invoking git-version-gen.
39523
39524 2008-09-26  Bruno Haible  <bruno@clisp.org>
39525
39526         * posix-modules: Update to directory names changed on 2008-01-19.
39527         Remove commas in output before splitting into words. No more need to
39528         avoid 'ftruncate' since 2007-02-19.
39529
39530 2008-09-26  Bruno Haible  <bruno@clisp.org>
39531
39532         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39533
39534 2008-09-26  Bruno Haible  <bruno@clisp.org>
39535
39536         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39537         * modules/fwriteerror (Depends-on): Add errno.
39538
39539 2008-09-26  Bruno Haible  <bruno@clisp.org>
39540
39541         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39542         * tests/test-vc-list-files-cvs.sh: Likewise.
39543
39544 2008-09-26  Bruno Haible  <bruno@clisp.org>
39545
39546         * doc/posix-headers/sys_resource.texi: Reorder items.
39547
39548 2008-09-26  Jim Meyering  <meyering@redhat.com>
39549
39550         fts: tweak inode comparison function
39551         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39552         inode numbers, as documented.
39553
39554         fts: sort dirent entries on inode number before traversing
39555         This avoids a quadratic, seek-related performance penalty when
39556         operating on a directory containing many entries (measurable at 10k;
39557         3.5 hours at 2 million entries with a cold cache) on certain types
39558         of file systems, including ext3 and ext4, but not tmpfs.
39559         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39560         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39561         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39562         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39563         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39564         (fts_build): Set the stat.st_ino member from D_INO.
39565         If it is likely to be useful, sort dirent entries on inode number.
39566
39567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39568         and the struct statfs.f_type member.
39569         * modules/fts (Depends-on): Add d-ino.
39570
39571 2008-09-26  Bruno Haible  <bruno@clisp.org>
39572
39573         * modules/sigpipe-die (Depends-on): Add sigpipe.
39574
39575         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39576         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39577         and GNULIB_STDIO_H_SIGPIPE are set.
39578         * lib/stdio-write.c: New file.
39579         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39580         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39581         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39582         REPLACE_STDIO_WRITE_FUNCS.
39583         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39584         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39585         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39586         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39587         * modules/stdio (Files): Add lib/stdio-write.c.
39588         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39589         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39590         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39591         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39592         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39593         REPLACE_FPRINTF_POSIX.
39594         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39595         REPLACE_PRINTF_POSIX.
39596         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39597         REPLACE_VFPRINTF_POSIX.
39598         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39599         REPLACE_VPRINTF_POSIX.
39600         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39601         SIGPIPE issue.
39602         * doc/posix-functions/fputc.texi: Likewise.
39603         * doc/posix-functions/fputs.texi: Likewise.
39604         * doc/posix-functions/fwrite.texi: Likewise.
39605         * doc/posix-functions/printf.texi: Likewise.
39606         * doc/posix-functions/putc.texi: Likewise.
39607         * doc/posix-functions/putchar.texi: Likewise.
39608         * doc/posix-functions/puts.texi: Likewise.
39609         * doc/posix-functions/vfprintf.texi: Likewise.
39610         * doc/posix-functions/vprintf.texi: Likewise.
39611
39612         * modules/safe-write (Depends-on): Add write.
39613
39614         * modules/sigpipe-tests: New file.
39615         * tests/test-sigpipe.c: New file.
39616         * tests/test-sigpipe.sh: New file.
39617
39618         * modules/write: New file.
39619         * lib/unistd.in.h: Include <sys/types.h>.
39620         (write): New declaration.
39621         * lib/write.c: New file.
39622         * m4/write.m4: New file.
39623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39624         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39625         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39626         GNULIB_WRITE, REPLACE_WRITE.
39627         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39628         and the SIGPIPE issue.
39629
39630         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39631         (raise): New declaration.
39632         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39633         (ext_signal): New function.
39634         (rpl_raise): New function.
39635         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39636         GNULIB_SIGNAL_H_SIGPIPE.
39637         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39638         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39639
39640         * modules/sigpipe: New file.
39641         * m4/sigpipe.m4: New file.
39642
39643 2008-09-25  Derek Price  <derek@ximbiot.com>
39644             Bruno Haible  <bruno@clisp.org>
39645
39646         * gnulib-tool (func_import): Report all license incompatibilities, not
39647         just the first one.
39648
39649 2008-09-25  Bruno Haible  <bruno@clisp.org>
39650
39651         * gnulib-tool (func_import): When computing the edits, consider not
39652         only the Makefile.ams that exist but also those that will be generated.
39653
39654 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39655
39656         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39657         fixes gnulib-tool --test warning about duplicate dependency.
39658
39659 2008-09-25  Bruno Haible  <bruno@clisp.org>
39660
39661         * gnulib-tool: Don't ask the user to perform edits in the generated
39662         Makefile.ams.
39663         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39664         apply to the Makefile.am being generated.
39665         (func_emit_tests_Makefile_am): Execute edits that apply to the
39666         Makefile.am being generated.
39667         (func_import): Setup list of Makefile.am edits before emitting the
39668         Makefile.ams, not at the end.
39669         (func_create_testdir): Update.
39670         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39671
39672 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39673
39674         * gnulib-tool (func_import): Store the --tests-base option in the
39675         comment in gnulib-cache.m4.
39676
39677 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39678
39679         * NEWS: Document increased portability that sys_select now provides.
39680
39681         * lib/sys_select.in.h: Install select wrapper.
39682         * lib/sys_socket.in.h: Use more descriptive name when there is no
39683         select wrapper.
39684         * lib/winsock-select.c: New.
39685         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39686         Require gl_HEADER_SYS_SOCKET.
39687         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39688         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39689         * tests/test-sys_select.c: Add functional tests.
39690
39691 2008-09-24  Eric Blake  <ebb9@byu.net>
39692
39693         open, fopen: close fd leak in last patch
39694         * lib/open.c (rpl_open): Close fd before returning error.
39695         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39696         * doc/posix-functions/open.texi (open): Document that Irix also
39697         has the bug.
39698         * doc/posix-functions/fopen.texi (fopen): Likewise.
39699         Reported by Paolo Bonzini.
39700
39701 2008-09-24  Bruno Haible  <bruno@clisp.org>
39702
39703         Ensure that a filename ending in a slash cannot be used to access a
39704         non-directory.
39705         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39706         to check whether it's really a directory.
39707         * lib/fopen.c: Include fcntl.h, unistd.h.
39708         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39709         and fdopen().
39710         * modules/fopen (Depends-on): Add unistd.
39711         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39712         * tests/test-fopen.c (main): Likewise.
39713         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39714         * doc/posix-functions/fopen.texi: Likewise.
39715         Reported by Eric Blake.
39716
39717 2008-09-23  Eric Blake  <ebb9@byu.net>
39718
39719         c-stack: avoid compiler optimizations when provoking overflow
39720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39721         recursion harder to optimize, to ensure a stack overflow occurs.
39722         * tests/test-c-stack.c (recurse): Likewise.
39723         Borrowed from libsigsegv.
39724
39725         c-stack: work around Irix sigaltstack bug
39726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39727         whether sigaltstack uses wrong end of stack_t (copied in part from
39728         libsigsegv).
39729         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39730         Irix bug, without requiring an over-allocation.
39731         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39732         bug.
39733
39734         fopen: document mingw bug on directories
39735         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39736         not allowing a stream visiting a directory, even though reading
39737         from such a stream is not portable.
39738
39739 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39740
39741         * lib/poll.c: Rewrite.
39742         * modules/poll: Depend on alloca.
39743
39744 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39745
39746         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39747         instead define prototypes for a full set of wrappers.  Ensure
39748         that Cygwin does not use the compatibility code, which is only
39749         for MinGW.
39750         * lib/winsock.c: New.
39751         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39752         * modules/sys_socket: Add lib/winsock.c.
39753
39754         * modules/poll-tests: Add errno and perror.
39755         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39756
39757 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39758
39759         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39760
39761 2008-09-23  Bruno Haible  <bruno@clisp.org>
39762
39763         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39764         * doc/glibc-functions/*: Likewise.
39765
39766 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39767
39768         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39769         success.
39770
39771 2008-09-22  Eric Blake  <ebb9@byu.net>
39772             Bruno Haible  <bruno@clisp.org>
39773
39774         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39775         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39776         supply %A but mishandle pseudo-NaN.
39777         Reported by Simon Josefsson.
39778
39779 2008-09-21  Bruno Haible  <bruno@clisp.org>
39780
39781         * tests/test-lock.c (main): Tweak skip message.
39782         * tests/test-tls.c (main): Likewise.
39783
39784 2008-09-21  Bruno Haible  <bruno@clisp.org>
39785
39786         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39787         whether 'struct sigaction' has sa_sigaction here...
39788         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39789         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39790
39791 2008-09-21  Bruno Haible  <bruno@clisp.org>
39792
39793         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39794         section.
39795         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39796         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39797         the new section.
39798         (Support for obsolete systems lacking POSIX:2001): New section.
39799         (String handling <string.h>): Move strdup to the new section.
39800         Suggested by Simon Josefsson and Paolo Bonzini.
39801
39802 2008-09-21  Bruno Haible  <bruno@clisp.org>
39803
39804         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39805         exponents in %e and %g results on 'long double'. Needed for mingw's
39806         improved *printf functions.
39807         * tests/test-vasprintf-posix.c (test_function): Likewise.
39808         * tests/test-snprintf-posix.h (test_function): Likewise.
39809         * tests/test-sprintf-posix.h (test_function): Likewise.
39810         Reported by Eric Blake.
39811
39812 2008-09-21  Bruno Haible  <bruno@clisp.org>
39813
39814         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39815         * tests/test-sprintf-posix.h (test_function): Likewise.
39816
39817 2008-09-21  Bruno Haible  <bruno@clisp.org>
39818
39819         * modules/getpass (Depends-on): Add strdup-posix.
39820
39821         New module 'strdup-posix'.
39822         * modules/strdup-posix: New file.
39823         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39824         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39826         REPLACE_STRDUP.
39827         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39828         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39830         strdup-posix.
39831
39832         * modules/strdup (Depends-on): Remove malloc-posix.
39833
39834 2008-09-20  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39837         Wildenhues.
39838
39839 2008-09-20  Bruno Haible  <bruno@clisp.org>
39840
39841         Ensure that wint_t gets defined on IRIX 5.3.
39842         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39843         * lib/wctype.in.h (wint_t): Likewise.
39844         (__wctype_wint_t): Remove type.
39845         (isw*): Use wint_t instead of __wctype_wint_t.
39846         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39847         * modules/wchar (Files): Add m4/wint_t.m4.
39848         (Makefile.am): Substitute HAVE_WINT_T.
39849         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39850         * tests/test-wctype.c: Check that wint_t is defined.
39851         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39852         * doc/posix-headers/wctype.texi: Likewise.
39853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39854
39855 2008-09-18  Bruno Haible  <bruno@clisp.org>
39856
39857         * gnulib-tool (func_exit): Update comment.
39858
39859 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39860
39861         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39862         assumes strdup exists and does not depend on strdup to return
39863         ENOMEM on out of memory conditions.
39864
39865 2008-09-18  Bruno Haible  <bruno@clisp.org>
39866
39867         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39868         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39869         digits for the exponent.
39870
39871 2008-09-18  Jim Meyering  <meyering@redhat.com>
39872             Bruno Haible  <bruno@clisp.org>
39873
39874         * lib/vasnprintf.c (decimal_point_char): Define also if
39875         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39876
39877 2008-09-16  Bruno Haible  <bruno@clisp.org>
39878         and Eric Blake  <ebb9@byu.net>
39879
39880         vasnprintf: support Irix 5.3
39881         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39882         that mishandle long double infinity.
39883         Reported by Tom G. Christensen.
39884
39885 2008-09-16  Bruno Haible  <bruno@clisp.org>
39886
39887         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39888         Solaris 9.
39889         * doc/glibc-functions/alphasort.texi: Likewise.
39890         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39891
39892 2008-09-16  Jim Meyering  <meyering@redhat.com>
39893
39894         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39895         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39896         a umask modification leak out of a subshell.  Otherwise, the
39897         opensolaris /bin/sh would be accepted and thus cause unwarranted
39898         failures in the coreutils test suite.
39899
39900 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39901
39902         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39903         to succeed.
39904
39905 2008-09-16  Jim Meyering  <meyering@redhat.com>
39906
39907         avoid spurious test failure when library is built without ACL support
39908         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39909         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39910         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39911         * tests/test-copy-acl.sh: Likewise.
39912
39913 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39914
39915         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39916         based on character occurrence counts.
39917
39918 2008-09-15  Eric Blake  <ebb9@byu.net>
39919
39920         tests: avoid some compiler warnings
39921         * tests/test-memchr.c (main): Pass NULL indirectly.
39922         * tests/test-closein.c (main): Avoid unused variable.
39923
39924 2008-09-15  Bruno Haible  <bruno@clisp.org>
39925
39926         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39927         are missing on OpenBSD 4.0 individually.
39928         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39929
39930 2008-09-15  Bruno Haible  <bruno@clisp.org>
39931
39932         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39933         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39934         * doc/posix-functions/perror.texi: Likewise.
39935         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39936         is missing.
39937         Reported by Eric Blake.
39938
39939         * lib/errno.in.h: Use replacement values >= 2000.
39940         Reported by Eric Blake.
39941
39942 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39943
39944         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39945         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39946         limit.
39947         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39948         compareseq was aborted.
39949
39950 2008-09-14  Bruno Haible  <bruno@clisp.org>
39951
39952         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39953         yvec_edit_count.
39954         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39955         (fstrcmp_bounded): Simplify result computation accordingly.
39956
39957 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39958
39959         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39960         (fstrcmp): Define in terms of fstrcmp_bounded.
39961         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39962         lower_bound argument.
39963         Return quickly if the result is certainly < lower_bound.
39964         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39965
39966 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39967
39968         * lib/diffseq.h (EARLY_ABORT): New macro.
39969         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39970         evaluates to true.
39971
39972 2008-09-14  Bruno Haible  <bruno@clisp.org>
39973
39974         * modules/perror-tests: New file.
39975         * tests/test-perror.sh: New file.
39976         * tests/test-perror.c: New file.
39977
39978         New module 'perror'.
39979         * lib/stdio.in.h (perror): New declaration.
39980         * lib/perror.c: New file.
39981         * m4/perror.m4: New file.
39982         * modules/perror: New file.
39983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39984         * doc/posix-functions/perror.texi: Mention the perror module.
39985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39986         REPLACE_PERROR.
39987         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39988         REPLACE_PERROR.
39989
39990 2008-09-14  Bruno Haible  <bruno@clisp.org>
39991
39992         * modules/stdio (Makefile.am): Reorder to match the order in
39993         lib/stdio.in.h.
39994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39995
39996 2008-09-13  Bruno Haible  <bruno@clisp.org>
39997
39998         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39999
40000 2008-09-13  Bruno Haible  <bruno@clisp.org>
40001
40002         Extend strerror to cover the added errno values.
40003         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40004         (rpl_strerror): Provide error messages for the added errno values and
40005         for the WSA* values.
40006         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40007         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40008         strerror.
40009         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40010         * modules/strerror (Depends-on): Add errno.
40011         * doc/posix-functions/strerror.texi: Document the change.
40012         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40013         and EOVERFLOW.
40014
40015 2008-09-13  Bruno Haible  <bruno@clisp.org>
40016
40017         * modules/EOVERFLOW: Remove file.
40018         * m4/eoverflow.m4: Remove file.
40019         * modules/EOVERFLOW-tests: Remove file.
40020         * tests/test-EOVERFLOW.c: Remove file.
40021         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40022         * modules/ftell (Depends-on): Likewise.
40023         * modules/getdelim (Depends-on): Likewise.
40024         * modules/getugroups (Depends-on): Likewise.
40025         * modules/poll (Depends-on): Likewise.
40026         * modules/snprintf (Depends-on): Likewise.
40027         * modules/sprintf-posix (Depends-on): Likewise.
40028         * modules/vasnprintf (Depends-on): Likewise.
40029         * modules/vasprintf (Depends-on): Likewise.
40030         * modules/vfprintf-posix (Depends-on): Likewise.
40031         * modules/vsnprintf (Depends-on): Likewise.
40032         * modules/vsprintf-posix (Depends-on): Likewise.
40033         * modules/xvasprintf (Depends-on): Likewise.
40034         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40035         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40036         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40037         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40038         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40039         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40040         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40041         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40042         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40043         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40044         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40045         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40046         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40047         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40048         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40049         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40050         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40051         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40052         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40053         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40054         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40055         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40056         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40057         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40058         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40059         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40060         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40061         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40062         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40063         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40064         * MODULES.html.sh: Remove EOVERFLOW.
40065         * NEWS: Mention the change.
40066
40067 2008-09-13  Bruno Haible  <bruno@clisp.org>
40068
40069         * modules/errno-tests: New file.
40070         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40071
40072         * lib/errno.in.h: New file.
40073         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40074         * modules/errno: New file.
40075         * doc/posix-headers/errno.texi: Update documentation.
40076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40077
40078 2008-09-13  Bruno Haible  <bruno@clisp.org>
40079
40080         * tests/test-poll.c: Use #if for native Windows, rather than testing
40081         __MSVCRT__.
40082
40083 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40084             Bruno Haible  <bruno@clisp.org>
40085
40086         * lib/glob.c: Don't include <pwd.h> on native Windows.
40087         (WINDOWS32): New macro.
40088         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40089
40090 2008-09-13  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40093         (ETIMEDOUT): Remove macro.
40094         (glthread_cond_timedwait_multithreaded): New declaration.
40095         (glthread_cond_timedwait): Use it.
40096         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40097         (glthread_cond_timedwait_multithreaded): New function.
40098
40099 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40100
40101         * modules/poll-tests: Do not check for io.h.
40102         * tests/test-poll.c: Check for __MSVCRT__ instead.
40103
40104 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40105
40106         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40107         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40108         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40109
40110 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40111
40112         * modules/poll-tests: New.
40113         * tests/test-poll.c: New.
40114
40115 2008-09-12  Eric Blake  <ebb9@byu.net>
40116
40117         frexp: test for NetBSD failure on -0.0
40118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40119         not all, bugs from NetBSD 3.0 have been fixed.
40120         * doc/posix-functions/frexp.texi (frexp): Document bug.
40121         Reported by Thomas Klausner.
40122
40123         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40124         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40125         literal -0.0.
40126         Reported by Jonathan C. Patschke <jp@centtech.com>.
40127
40128 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40129
40130         * lib/glthread/cond.h: Use dummy implementation also if
40131         USE_WIN32_THREADS.
40132
40133 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40134
40135         * modules/fnmatch-posix (License): Change to LGPLv2+.
40136         * modules/fnmatch-gnu (License): Likewise.
40137
40138 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40139
40140         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40141
40142 2008-09-11  Jim Meyering  <meyering@redhat.com>
40143
40144         * users.txt: Add gtk-vnc.
40145
40146 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40147
40148         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40149         rotate amounts.
40150
40151         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40152         required for 16-bit and 8-bit rotates.
40153         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40154         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40155         UINT8_MAX instead of hard-coded constants.
40156         Suggested by Paul Eggert.
40157
40158 2008-09-07  Bruno Haible  <bruno@clisp.org>
40159
40160         * tests/test-striconveh.c (main): Check behaviour when converting from
40161         UTF-7.
40162
40163         Make striconveh work better with stateful encodings.
40164         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40165         that iconv does not increment the inptr when returning -1/EINVAL.
40166
40167 2008-09-07  Bruno Haible  <bruno@clisp.org>
40168
40169         * build-aux/config.rpath: Update according to libtool-2.2.6.
40170         * build-aux/config.libpath: Likewise.
40171
40172 2008-09-06  Bruno Haible  <bruno@clisp.org>
40173
40174         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40175         * lib/freadptr.c (freadptr): Likewise.
40176         * lib/freadseek.c (freadptrinc): Likewise.
40177         Reported by Simon Josefsson.
40178
40179 2008-09-06  Bruno Haible  <bruno@clisp.org>
40180
40181         * modules/freadptr (License): Change to LGPLv2+.
40182         * modules/freadseek (License): Likewise.
40183         Suggested by Eric Blake.
40184
40185         * modules/memchr2 (License): Change to LGPLv2+.
40186         Approved by Eric Blake.
40187
40188 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40189             Bruno Haible  <bruno@clisp.org>
40190
40191         Make gnulib-tool work with native 'sed' on AIX.
40192         * gnulib-tool (sed_noop): New variable.
40193         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40194         func_add_or_update, func_create_testdir): Use it to initialize sed
40195         script variables.
40196         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40197
40198 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40199             Bruno Haible  <bruno@clisp.org>
40200
40201         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40202         also works after #include directives.
40203
40204 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40205
40206         getdate.y: reject an out-of-range timezone value
40207         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40208         the range [-24...+24].  When specified with only one or two digits,
40209         * tests/test-getdate.c: Tests for the fix.
40210         * doc/getdate.texi: Document this change.
40211
40212 2008-09-03  Bruno Haible  <bruno@clisp.org>
40213
40214         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40215
40216 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40217
40218         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40219         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40220         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40221         Blake <ebb9@byu.net>.
40222
40223         * tests/test-bitrotate.c: Add more test vectors.
40224
40225 2008-09-02  Eric Blake  <ebb9@byu.net>
40226
40227         vasnprintf-posix: handle large precision via %.*d
40228         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40229         when handling it ourselves.
40230         * tests/test-vasnprintf-posix.c (test_function): Add test.
40231         * tests/test-snprintf-posix.h (test_function): Likewise.
40232         * tests/test-sprintf-posix.h (test_function): Likewise.
40233         * tests/test-vasprintf-posix.c (test_function): Likewise.
40234         Reported by Alain Guibert.
40235
40236 2008-09-01  Eric Blake  <ebb9@byu.net>
40237
40238         c-stack: make configure-time check more robust
40239         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40240         successful sigaction call.
40241         Reported by Tom G. Christensen.
40242
40243 2008-09-01  Bruno Haible  <bruno@clisp.org>
40244
40245         New module 'findprog-lgpl'.
40246         * modules/findprog-lgpl: New file.
40247         * lib/findprog-lgpl.c: New file.
40248         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40249         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40250         to decide whether to use strdup or xstrdup, concatenated_filename or
40251         xconcatenated_filename.
40252
40253 2008-09-01  Bruno Haible  <bruno@clisp.org>
40254
40255         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40256         'xconcat-filename' (GPL).
40257         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40258         (License): Change to LGPLv2+.
40259         * modules/xconcat-filename: New file.
40260         * lib/concat-filename.h (concatenated_filename): Change specification.
40261         (xconcatenated_filename): New declaration.
40262         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40263         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40264         memory situations.
40265         * lib/xconcat-filename.c: New file.
40266         * NEWS: Mention the change.
40267         * lib/findprog.c: Include concat-filename.h, not filename.h.
40268         (find_in_path): Use xconcatenated_filename instead of
40269         concatenated_filename.
40270         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40271         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40272         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40273         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40274         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40275         instead of concatenated_filename.
40276         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40277         (execute_java_class): Use xconcatenated_filename instead of
40278         concatenated_filename.
40279         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40280         * modules/javacomp (Depends-on): Likewise.
40281         * modules/javaexec (Depends-on): Likewise.
40282
40283 2008-09-01  Bruno Haible  <bruno@clisp.org>
40284
40285         Split module 'filename' into 'filename' and 'concat-filename'.
40286         * modules/filename: Keep only lib/filename.h.
40287         (License): Change to LGPLv2+.
40288         * modules/concat-filename: New file, extracted from modules/filename.
40289         * lib/filename.h (concatenated_filename): Remove declaration.
40290         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40291         * lib/concat-filename.c: Include concat-filename.h.
40292         * NEWS: Mention the change.
40293
40294 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40295
40296         * lib/bitrotate.h (rotl8, rotr8): Add.
40297
40298         * modules/bitrotate (configure.ac): Need
40299         AC_REQUIRE([AC_C_INLINE]).
40300         (Description): Mention stdint.h.  Reported by Bruno Haible
40301         <bruno@clisp.org>.
40302
40303         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40304         Paolo Bonzini <bonzini@gnu.org>.
40305
40306 2008-08-31  Bruno Haible  <bruno@clisp.org>
40307
40308         Assume Solaris specific bi-arch conventions on Solaris systems.
40309         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40310         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40311         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40312         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40313         like acl_libdirstem.
40314         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40315         acl_libdirstem.
40316         * NEWS: Mention the change.
40317         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40318
40319 2008-08-31  Jim Meyering  <meyering@redhat.com>
40320
40321         * lib/strftime.h: Add comments describing the two added arguments.
40322
40323         remove duplicate #include directives
40324         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40325         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40326
40327 2008-08-31  Bruno Haible  <bruno@clisp.org>
40328
40329         New module 'sigpipe-die'.
40330         * modules/sigpipe-die: New file.
40331         * lib/sigpipe-die.h: New file.
40332         * lib/sigpipe-die.c: New file.
40333         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40334
40335 2008-08-31  Bruno Haible  <bruno@clisp.org>
40336
40337         Don't override previously installed signal handlers.
40338         * lib/fatal-signal.c (saved_sigactions): New variable.
40339         (uninstall_handlers): Reset the signal to the saved handler, not
40340         to SIG_DFL (except when ignored).
40341         (install_handlers): Save the previous handlers.
40342
40343 2008-08-30  Bruno Haible  <bruno@clisp.org>
40344
40345         * gnulib-tool (func_reset_sigpipe): New function.
40346         (func_get_automake_snippet, func_modules_transitive_closure,
40347         func_import): Invoke it before a join command that reads from stdin,
40348         to avoid "echo: write error: Broken pipe" error messages on stderr.
40349         Reported by Sam Steingold <sds@gnu.org>.
40350
40351 2008-08-30  Bruno Haible  <bruno@clisp.org>
40352
40353         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40354         Code copied from m4/open.m4.
40355         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40356         access and the filename ends in a slash. Code copied from lib/open.c.
40357         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40358         * tests/test-fopen.c (main): Check against bug with trailing slash.
40359
40360 2008-08-29  Bruno Haible  <bruno@clisp.org>
40361
40362         Avoid some "gcc -pedantic" warnings.
40363         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40364         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40365         * lib/dirent.in.h: Likewise.
40366         * lib/fcntl.in.h: Likewise.
40367         * lib/float.in.h: Likewise.
40368         * lib/iconv.in.h: Likewise.
40369         * lib/inttypes.in.h: Likewise.
40370         * lib/locale.in.h: Likewise.
40371         * lib/math.in.h: Likewise.
40372         * lib/netinet_in.in.h: Likewise.
40373         * lib/search.in.h: Likewise.
40374         * lib/signal.in.h: Likewise.
40375         * lib/stdarg.in.h: Likewise.
40376         * lib/stdint.in.h: Likewise.
40377         * lib/stdio.in.h: Likewise.
40378         * lib/stdlib.in.h: Likewise.
40379         * lib/string.in.h: Likewise.
40380         * lib/strings.in.h: Likewise.
40381         * lib/sys_select.in.h: Likewise.
40382         * lib/sys_socket.in.h: Likewise.
40383         * lib/sys_stat.in.h: Likewise.
40384         * lib/sys_time.in.h: Likewise.
40385         * lib/sysexits.in.h: Likewise.
40386         * lib/time.in.h: Likewise.
40387         * lib/unistd.in.h: Likewise.
40388         * lib/wchar.in.h: Likewise.
40389         * lib/wctype.in.h: Likewise.
40390         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40391         * modules/fchdir (Makefile.am): Likewise.
40392         * modules/fcntl (Makefile.am): Likewise.
40393         * modules/float (Makefile.am): Likewise.
40394         * modules/iconv_open (Makefile.am): Likewise.
40395         * modules/inttypes (Makefile.am): Likewise.
40396         * modules/locale (Makefile.am): Likewise.
40397         * modules/math (Makefile.am): Likewise.
40398         * modules/netinet_in (Makefile.am): Likewise.
40399         * modules/search (Makefile.am): Likewise.
40400         * modules/signal (Makefile.am): Likewise.
40401         * modules/stdarg (Makefile.am): Likewise.
40402         * modules/stdint (Makefile.am): Likewise.
40403         * modules/stdio (Makefile.am): Likewise.
40404         * modules/stdlib (Makefile.am): Likewise.
40405         * modules/string (Makefile.am): Likewise.
40406         * modules/strings (Makefile.am): Likewise.
40407         * modules/sys_select (Makefile.am): Likewise.
40408         * modules/sys_socket (Makefile.am): Likewise.
40409         * modules/sys_stat (Makefile.am): Likewise.
40410         * modules/sys_time (Makefile.am): Likewise.
40411         * modules/sysexits (Makefile.am): Likewise.
40412         * modules/time (Makefile.am): Likewise.
40413         * modules/unistd (Makefile.am): Likewise.
40414         * modules/wchar (Makefile.am): Likewise.
40415         * modules/wctype (Makefile.am): Likewise.
40416         Reported by Reuben Thomas <rrt@sc3d.org>.
40417
40418 2008-08-29  Bruno Haible  <bruno@clisp.org>
40419
40420         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40421         any more.
40422
40423 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40424
40425         * MODULES.html.sh (Misc): Add bitrotate.
40426
40427         * modules/bitrotate: New file.
40428
40429         * lib/bitrotate.h: New file.
40430
40431         * modules/bitrotate-tests: New file.
40432
40433         * tests/test-bitrotate.c: New file.
40434
40435         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40436         on the bitrotate module.
40437
40438         * lib/arctwo.c: Use new bitrotate module.
40439
40440 2008-08-29  Jim Meyering  <meyering@redhat.com>
40441
40442         bootstrap: merge changes from coreutils
40443         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40444         of copied files.  Remove a kludge, now that this is fixed.
40445         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40446         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40447         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40448
40449 2008-08-29  Bruno Haible  <bruno@clisp.org>
40450
40451         * MODULES.html.sh: Remove --cvs-urls option.
40452
40453 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40454
40455         maint.mk: adjust to file name change
40456         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40457
40458 2008-08-28  Jim Meyering  <meyering@redhat.com>
40459
40460         * modules/getndelim2 (License): Relicense to LGPLv2+.
40461         Approved by Richard Stallman for the version of 1995, and by
40462         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40463
40464 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40465
40466         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40467         dummy if one is not available.  Do not touch them if
40468         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40469         (getc_maybe_unlocked): New.
40470         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40471
40472 2008-08-26  Eric Blake  <ebb9@byu.net>
40473
40474         doc/INSTALL: resync from autoconf
40475         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40476         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40477         moving...
40478         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40479         * INSTALL: Regenerate.
40480         * INSTALL.ISO: New file.
40481         * INSTALL.UTF-8: Likewise.
40482
40483 2008-08-26  Jim Meyering  <meyering@redhat.com>
40484
40485         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40486         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40487         these definitions conditional, so that they may be overridden, too.
40488
40489 2008-08-26  Bruno Haible  <bruno@clisp.org>
40490
40491         Generate INSTALL file variants with prettier quotes.
40492         * doc/Makefile (INSTALL_PRELUDE): New macro.
40493         (INSTALL): Use it.
40494         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40495
40496 2008-08-26  Bruno Haible  <bruno@clisp.org>
40497
40498         Run makeinfo in an English locale.
40499         * doc/Makefile (MAKEINFO): New variable.
40500
40501 2008-08-26  Bruno Haible  <bruno@clisp.org>
40502
40503         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40504         Suggested by Eric Blake.
40505
40506 2008-08-25  Bruno Haible  <bruno@clisp.org>
40507
40508         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40509
40510 2008-08-25  Eric Blake  <ebb9@byu.net>
40511
40512         c-stack: test that stack overflow can be caught
40513         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40514         that platform allows handling stack overflow; at least OS/2 EMX
40515         has sigaltstack, but crashes before transferring control to
40516         handler on stack overflow.
40517         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40518         check for HAVE_STACK_OVERFLOW_HANDLING.
40519         Reported by Elbert Pol.
40520
40521 2008-08-25  Bruno Haible  <bruno@clisp.org>
40522
40523         * doc/posix-functions/strftime.texi: Fix description of strftime
40524         module.
40525
40526 2008-08-24  Bruno Haible  <bruno@clisp.org>
40527
40528         * tests/uniwidth/test-uc_width2.c: New file.
40529         * tests/uniwidth/test-uc_width2.sh: New file.
40530         * modules/uniwidth/width-tests (Files): Add the new files.
40531         (TESTS): Add uniwidth/test-uc_width2.sh.
40532         (TESTS_ENVIRONMENT): New variable.
40533         (check_PROGRAMS): Add test-uc_width2.
40534         (test_uc_width2_SOURCES): New variable.
40535
40536         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40537         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40538         not 0x00AB.
40539         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40540
40541 2008-08-22  Eric Blake  <ebb9@byu.net>
40542
40543         test-lock, test-tls: mention why a test is skipped
40544         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40545         skipped.
40546         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40547
40548         count-one-bits: relax license
40549         * modules/count-one-bits (License): Relicense to LGPLv2+.
40550         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40551
40552 2008-08-22  Andreas Schwab  <schwab@suse.de>
40553
40554         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40555         Remove spurious space in assignment.
40556
40557 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40558
40559         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40560         Paul Eggert <eggert@CS.UCLA.EDU>.
40561
40562 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40563
40564         * modules/gettext: Add m4/threadlib.m4.
40565
40566 2008-08-19  Eric Blake  <ebb9@byu.net>
40567
40568         test-c-stack: fix compilation failure on FreeBSD 5.0
40569         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40570         headers before <sys/resource.h>.
40571         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40572         the bug.
40573         Reported by Nelson H. F. Beebe.
40574
40575         strverscmp: migrate from "strverscmp.h" to <string.h>
40576         * modules/string (Makefile.am): Add new hooks.
40577         * modules/strverscmp (Files): Remove strverscmp.h.
40578         (Depends-on): Add string.
40579         (configure.ac): Add indicator.
40580         (Include): Mention new header.
40581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40582         defaults.
40583         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40584         results.
40585         * lib/strverscmp.h: Delete.
40586         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40587         * tests/test-strverscmp.c (includes): Adjust client.
40588         * lib/check-version.c (includes): Likewise.
40589         * NEWS: Document the change.
40590
40591         strverscmp: add unit test
40592         * modules/strverscmp-tests: New file.
40593         * tests/test-strverscmp.c: Likewise.
40594
40595 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40596
40597         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40598         regarding Windows crypto stuff, from Mono.
40599
40600 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40601
40602         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40603         if present, for intel RND.  Return error on failures.
40604
40605 2008-08-18  Ben Pfaff  <blp@gnu.org>
40606
40607         gitlog-to-changelog: give better diagnostic for failed pipe-open
40608         * build-aux/gitlog-to-changelog: Improve error message: suggest
40609         that the version of Git may be too old.
40610
40611 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40612
40613         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40614         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40615
40616 2008-08-18  Bruno Haible  <bruno@clisp.org>
40617
40618         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40619         pthread_in_use().
40620
40621 2008-08-18  Bruno Haible  <bruno@clisp.org>
40622
40623         * lib/glthread/threadlib.c: Include <pthread.h>.
40624
40625 2008-08-18  Bruno Haible  <bruno@clisp.org>
40626
40627         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40628         glthread_recursive_lock_* macros.
40629         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40630         Fix syntax error.
40631
40632 2008-08-18  Bruno Haible  <bruno@clisp.org>
40633
40634         * lib/glthread/thread.c: Avoid forcing a context switch right after
40635         thread creation.
40636
40637 2008-08-17  Bruno Haible  <bruno@clisp.org>
40638
40639         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40640         * lib/glthread/thread.h: Provide Win32 specific implementation.
40641         * modules/thread (Files): Add lib/glthread/thread.c.
40642         (Depends-on): Add lock.
40643         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40644
40645 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40646
40647         New module 'yield'.
40648         * modules/yield: New file.
40649         * lib/glthread/yield.h: New file.
40650         * m4/yield.m4: New file.
40651         * MODULES.html.sh (Multithreading): Add yield.
40652
40653 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40654
40655         New module 'thread'.
40656         * modules/thread: New file.
40657         * lib/glthread/thread.h: New file.
40658         * m4/thread.m4: New file.
40659         * MODULES.html.sh (Multithreading): Add thread.
40660
40661 2008-08-17  Bruno Haible  <bruno@clisp.org>
40662
40663         * lib/glthread/lock.h: Include <stdlib.h> always.
40664         * lib/glthread/tls.h: Likewise.
40665         * lib/glthread/cond.h: Likewise.
40666
40667 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40668
40669         New module 'cond'.
40670         * modules/cond: New file.
40671         * lib/glthread/cond.h: New file.
40672         * lib/glthread/cond.c: New file.
40673         * m4/cond.m4: New file.
40674         * MODULES.html.sh (Multithreading): Add cond.
40675
40676 2008-08-16  Eric Blake  <ebb9@byu.net>
40677
40678         c-stack: fix regression on Irix 5.3 from 2008-06-21
40679         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40680         sa_sigaction...
40681         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40682         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40683         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40684         * modules/signal (Makefile.am): Use the value.
40685         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40686         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40687         * doc/posix-headers/signal.texi (signal.h): Document this
40688         portability issue.
40689         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40690         Reported by Tom G. Christensen.
40691
40692 2008-08-17  Bruno Haible  <bruno@clisp.org>
40693
40694         New module 'threadlib'.
40695         * modules/threadlib: New file.
40696         * lib/glthread/threadlib.c: New file, extracted from
40697         lib/glthread/lock.c.
40698         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40699         functions.
40700         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40701         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40702         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40703         macros.
40704         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40705         (gl_DISABLE_THREADS): Remove macro.
40706         * modules/lock (Files): Remove build-aux/config.rpath.
40707         (Depends-on): Remove havelib. Add threadlib.
40708         (configure.ac-early): Remove section.
40709         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40710         * modules/tls (Depends-on): Remove lock. Add threadlib.
40711         (Link): New section, copied from threadlib.
40712         * MODULES.html.sh (Multithreading): Add threadlib.
40713
40714 2008-08-14  Bruno Haible  <bruno@clisp.org>
40715
40716         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40717         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40718         glthread_rwlock_unlock, glthread_rwlock_destroy,
40719         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40720         glthread_recursive_lock_destroy): Define as macros always.
40721         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40722         glthread_lock_lock.
40723         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40724         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40725         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40726         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40727         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40728         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40729         (glthread_recursive_lock_lock_func): Renamed from
40730         glthread_recursive_lock_lock.
40731         (glthread_recursive_lock_unlock_func): Renamed from
40732         glthread_recursive_lock_unlock.
40733         (glthread_recursive_lock_destroy_func): Renamed from
40734         glthread_recursive_lock_destroy.
40735
40736 2008-08-14  Bruno Haible  <bruno@clisp.org>
40737
40738         * lib/glthread/lock.h: Renamed from lib/lock.h.
40739         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40740         * lib/glthread/tls.h: Renamed from lib/tls.h.
40741         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40742         * lib/fstrcmp.c: Update includes.
40743         * lib/strsignal.c: Update includes.
40744         * modules/lock (Files, Makefile.am): Update.
40745         (Include): Change to "glthread/lock.h".
40746         * modules/tls (Files, Makefile.am): Update.
40747         (Include): Change to "glthread/tls.h".
40748         * tests/test-lock.c: Update includes.
40749         * tests/test-tls.c: Update includes.
40750         * NEWS: Mention the renamed header files.
40751
40752 2008-08-11  Jim Meyering  <meyering@redhat.com>
40753
40754         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40755
40756 2008-08-11  Eric Blake  <ebb9@byu.net>
40757
40758         test-c-stack: avoid C99-ism
40759         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40760         before statement.
40761         Reported by Alain Guibert.
40762
40763 2008-08-10  Jim Meyering  <meyering@redhat.com>
40764
40765         ensure that return value of uinttostr et al are not ignored
40766         * lib/inttostr.h (__GNUC_PREREQ): Define.
40767         (__attribute_warn_unused_result__): Define.
40768         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40769
40770 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40771
40772         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40773         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40774
40775 2008-08-07  Jim Meyering  <meyering@redhat.com>
40776
40777         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40778
40779         * modules/mkstemp (License): Relicense under LGPLv2+.
40780         * modules/tempname (License): Likewise.
40781
40782 2008-08-06  Bruno Haible  <bruno@clisp.org>
40783
40784         * lib/poll.c (poll): Further micro-optimization.
40785
40786 2008-08-06  Jim Meyering  <meyering@redhat.com>
40787
40788         inet_pton.c: use locale-independent tolower
40789         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40790         (inet_pton6): Use c_tolower rather than tolower.
40791         * modules/inet_pton (Depends-on): Add c-ctype.
40792
40793 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40794
40795         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40796         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40797
40798 2008-08-06  Jim Meyering  <meyering@redhat.com>
40799
40800         * modules/inet_pton (License): Relicense under LGPLv2+.
40801
40802 2008-08-03  Bruno Haible  <bruno@clisp.org>
40803
40804         Additional non-aborting API for lock and tls.
40805         * lib/lock.h: Include <errno.h>.
40806         (glthread_lock_init): New macro/function.
40807         (gl_lock_init): Define as wrapper around glthread_lock_init.
40808         (glthread_lock_lock): New macro/function.
40809         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40810         (glthread_lock_unlock): New macro/function.
40811         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40812         (glthread_lock_destroy): New macro/function.
40813         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40814         (glthread_rwlock_init): New macro/function.
40815         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40816         (glthread_rwlock_rdlock): New macro/function.
40817         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40818         (glthread_rwlock_wrlock): New macro/function.
40819         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40820         (glthread_rwlock_unlock): New macro/function.
40821         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40822         (glthread_rwlock_destroy): New macro/function.
40823         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40824         (glthread_recursive_lock_init): New macro/function.
40825         (gl_recursive_lock_init): Define as wrapper around
40826         glthread_recursive_lock_init.
40827         (glthread_recursive_lock_lock): New macro/function.
40828         (gl_recursive_lock_lock): Define as wrapper around
40829         glthread_recursive_lock_lock.
40830         (glthread_recursive_lock_unlock): New macro/function.
40831         (gl_recursive_lock_unlock): Define as wrapper around
40832         glthread_recursive_lock_unlock.
40833         (glthread_recursive_lock_destroy): New macro/function.
40834         (gl_recursive_lock_destroy): Define as wrapper around
40835         glthread_recursive_lock_destroy.
40836         (glthread_once): New macro/function.
40837         (gl_once): Define as wrapper around glthread_once.
40838         Update function declarations.
40839         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40840         glthread_rwlock_init. Return error code.
40841         (glthread_rwlock_rdlock_multithreaded): Renamed from
40842         glthread_rwlock_rdlock. Return error code.
40843         (glthread_rwlock_wrlock_multithreaded): Renamed from
40844         glthread_rwlock_wrlock. Return error code.
40845         (glthread_rwlock_unlock_multithreaded): Renamed from
40846         glthread_rwlock_unlock. Return error code.
40847         (glthread_rwlock_destroy_multithreaded): Renamed from
40848         glthread_rwlock_destroy. Return error code.
40849         (glthread_recursive_lock_init_multithreaded): Renamed from
40850         glthread_recursive_lock_init. Return error code.
40851         (glthread_recursive_lock_lock_multithreaded): Renamed from
40852         glthread_recursive_lock_lock. Return error code.
40853         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40854         glthread_recursive_lock_unlock. Return error code.
40855         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40856         glthread_recursive_lock_destroy. Return error code.
40857         (glthread_once_call): Make static.
40858         (glthread_once_multithreaded): Renamed from glthread_once.
40859         * lib/tls.h: Include <errno.h>.
40860         (glthread_tls_key_init): New macro/function.
40861         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40862         (glthread_tls_set): New macro/function.
40863         (gl_tls_set): Define as wrapper around glthread_tls_set.
40864         (glthread_tls_key_destroy): New macro/function.
40865         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40866         Update function declarations.
40867         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40868         glthread_tls_get.
40869         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40870
40871 2008-08-04  Eric Blake  <ebb9@byu.net>
40872
40873         gnumakefile: use space, not TAB, outside of targets
40874         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40875
40876 2008-08-02  Jim Meyering  <meyering@redhat.com>
40877
40878         getdate.y: avoid locale-dependent date parsing failure
40879         In Turkish locales, getdate would fail to recognize keywords
40880         containing a lowercase "i".  The solution is not to rely on
40881         locale-sensitive case-conversion.
40882         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40883         (lookup_word): Use c_toupper in place of toupper.
40884         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40885         Reported by Vefa Bicakci <bicave@superonline.com> in
40886         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40887         * modules/getdate (Depends-on): Add c-ctype.
40888
40889 2008-08-02  Bruno Haible  <bruno@clisp.org>
40890
40891         * gnulib-tool (func_import): When updating or creating a .gitignore
40892         file, prepend each added line with a slash, and ignore leading slashes
40893         from the existing lines.
40894         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40895
40896 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40897
40898         Portability fix for GNU make 3.79.1.
40899         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40900         versions do not understand.
40901
40902 2008-08-01  Bruno Haible  <bruno@clisp.org>
40903
40904         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40905         * tests/test-isnanf.h (zero): New variable.
40906         (main): Avoid literal -0.0f.
40907         * tests/test-isnand.h (zero): New variable.
40908         (main): Avoid literal -0.0.
40909         * tests/test-isnanl.h (zero): New variable.
40910         (main): Avoid literal -0.0L.
40911         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40912         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40913         -0.0, -0.0L.
40914         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40915         (test_signbitd): Avoid literal -0.0.
40916         (test_signbitl): Avoid literal -0.0L.
40917         * tests/test-ceilf1.c (zero): New variable.
40918         (main): Avoid literal -0.0f.
40919         * tests/test-ceill.c (zero): New variable.
40920         (main): Avoid literal -0.0L.
40921         * tests/test-floorf1.c (zero): New variable.
40922         (main): Avoid literal -0.0f.
40923         * tests/test-floorl.c (zero): New variable.
40924         (main): Avoid literal -0.0L.
40925         * tests/test-roundf1.c (zero): New variable.
40926         (main): Avoid literal -0.0f.
40927         * tests/test-round1.c (zero): New variable.
40928         (main): Avoid literal -0.0.
40929         * tests/test-roundl.c (zero): New variable.
40930         (main): Avoid literal -0.0L.
40931         * tests/test-truncf1.c (zero): New variable.
40932         (main): Avoid literal -0.0f.
40933         * tests/test-trunc1.c (zero): New variable.
40934         (main): Avoid literal -0.0.
40935         * tests/test-truncl.c (zero): New variable.
40936         (main): Avoid literal -0.0L.
40937         * tests/test-frexp.c (zero): New variable.
40938         (main): Avoid literal -0.0.
40939         * tests/test-frexpl.c (zero): New variable.
40940         (main): Avoid literal -0.0L.
40941         * tests/test-ldexpl.c (zero): New variable.
40942         (main): Avoid literal -0.0L.
40943         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40944         (zerod, zerol): New variables.
40945         (test_function): Avoid literals -0.0, -0.0L.
40946         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40947         (zerod, zerol): New variables.
40948         (test_function): Avoid literals -0.0, -0.0L.
40949         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40950         (zerod, zerol): New variables.
40951         (test_function): Avoid literals -0.0, -0.0L.
40952         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40953         (zerod, zerol): New variables.
40954         (test_function): Avoid literals -0.0, -0.0L.
40955         * tests/test-strtod.c (zero): New variable.
40956         (main): Avoid literal -0.0.
40957         Reported by Jonathan C. Patschke <jp@centtech.com>.
40958
40959 2008-07-31  Jim Meyering  <meyering@redhat.com>
40960
40961         sha256.h: correct definition of SHA224_DIGEST_SIZE
40962         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40963         Reported by Paulie Pena IV <paulie4@gmail.com>.
40964         Define as 224 / 8, rather than as a literal.
40965         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40966         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40967         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40968
40969 2008-07-31  Bruno Haible  <bruno@clisp.org>
40970
40971         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40972         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40973         Reported by Jonathan Patschke <jp@centtech.com>.
40974
40975 2008-07-31  Bruno Haible  <bruno@clisp.org>
40976
40977         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40978         Reported by Paolo Bonzini <bonzini@gnu.org>.
40979
40980 2008-07-30  Eric Blake  <ebb9@byu.net>
40981
40982         test-strtod: allow compilation without -lm
40983         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40984         Reported by Dennis Clarke <blastwave@gmail.com>.
40985
40986 2008-07-28  Jim Meyering  <meyering@redhat.com>
40987
40988         bootstrap: work also when there are no .po files in po/
40989         * build-aux/bootstrap (update_po_files): Complete the change
40990         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40991
40992 2008-07-27  Jim Meyering  <meyering@redhat.com>
40993
40994         * users.txt: Add zile.
40995
40996 2008-07-26  Ben Pfaff  <blp@gnu.org>
40997
40998         Add missing dependencies on new m4/exponent[fdl].m4 files.
40999         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41000         * modules/isnand-nolibm: Add m4/exponentd.m4.
41001         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41002         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41003         m4/isnan[fdl].m4, because the macros actually used moved.
41004         Reported by Jim Meyering.
41005
41006 2008-07-14  Ben Pfaff  <blp@gnu.org>
41007
41008         Add isinf module.
41009         * lib/isinf.c: New file.
41010         * lib/math.in.h: Define isinf macro if we have decided to replace
41011         it.
41012         * m4/isinf.m4: New file.
41013         * m4/math_h.m4: Initialize and substitute variables for isinf
41014         module.
41015         * modules/isinf: New file.
41016         * modules/isinf-tests: New file.
41017         * modules/math: Add substitutions for new module.
41018         * tests/test-isinf.c: New file.
41019         * doc/posix-functions/isinf.texi: Mention new module.
41020         * MODULES.html.sh: Mention new module.
41021
41022 2008-07-14  Ben Pfaff  <blp@gnu.org>
41023
41024         Factor out some macros for use by additional modules.
41025         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41026         exponentf.m4.
41027         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41028         exponentd.m4.
41029         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41030         file exponentl.m4.
41031         * m4/exponentf.m4: New file.
41032         * m4/exponentd.m4: New file.
41033         * m4/exponentl.m4: New file.
41034         * modules/isnanf: Use new file m4/exponentf.m4.
41035         * modules/isnand: Use new file m4/exponentd.m4.
41036         * modules/isnanl: Use new file m4/exponentl.m4.
41037
41038 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41039
41040         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41041         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41042         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41043         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41044
41045         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41046         readlink on platforms without PATH_MAX.
41047
41048 2008-07-21  Eric Blake  <ebb9@byu.net>
41049
41050         Warn, not fail, on stale version.
41051         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41052
41053         Don't allow installation with stale devel version number.
41054         * top/GNUmakefile (_is-install-target): New macro.
41055         (_curr-ver): Forbid installation with stale version number.
41056
41057 2008-07-20  Bruno Haible  <bruno@clisp.org>
41058
41059         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41060         TESTS_ENVIRONMENT.
41061         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41062
41063 2008-07-20  Bruno Haible  <bruno@clisp.org>
41064
41065         * lib/c-stack.h (c_stack_action): Add documentation.
41066         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41067
41068 2008-07-20  Bruno Haible  <bruno@clisp.org>
41069
41070         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41071         * modules/readlink (License): Likewise.
41072
41073 2008-07-17  Eric Blake  <ebb9@byu.net>
41074
41075         * modules/c-stack (Link): Fix typo.
41076
41077         Make c-stack use libsigsegv, when available.
41078         * modules/c-stack (Depends-on): Add libsigsegv.
41079         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41080         needed.
41081         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41082         (segv_handler, overflow_handler, c_stack_action)
41083         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41084         implementation when libsigsegv is available, but only when using
41085         the library is necessary.
41086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41087         comment, explaining why XSI check fails on Linux.
41088         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41089         * tests/test-c-stack2.sh: Tweak skip message.
41090         * NEWS: Document new link-time requirements.
41091
41092 2008-07-16  Eric Blake  <ebb9@byu.net>
41093
41094         c-stack: Expose false positives when not using libsigsegv.
41095         * modules/c-stack-tests (Files): Expand test.
41096         * tests/test-c-stack.c (main): Add means to conditionally trigger
41097         non-overflow SIGSEGV.
41098         * tests/test-c-stack2.sh: New file.
41099
41100 2008-07-14  Bruno Haible  <bruno@clisp.org>
41101
41102         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41103         Reported by Eric Blake.
41104
41105 2008-07-14  Sam Steingold  <sds@gnu.org>
41106             Bruno Haible  <bruno@clisp.org>
41107
41108         New module libsigsegv.
41109         * modules/libsigsegv: New file.
41110         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41111         modifications.
41112         * MODULES.html.sh (Signal handling): New section.
41113
41114 2008-07-14  Bruno Haible  <bruno@clisp.org>
41115
41116         * modules/unictype/ctype-* (Description): Add the word "function".
41117         Improves the resulting doc in MODULES.html.
41118
41119 2008-07-12  Ben Pfaff  <blp@gnu.org>
41120
41121         Add longlong module.
41122         * modules/longlong: New file.
41123
41124 2008-07-12  Bruno Haible  <bruno@clisp.org>
41125
41126         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41127         to empty.
41128
41129 2008-07-10  Ben Pfaff  <blp@gnu.org>
41130
41131         Add isnan module.
41132         * doc/posix-functions/isnan.texi: Mention new module.
41133         * lib/math.in.h: Define isnan macro if we have decided to replace
41134         it.
41135         * m4/isnan.m4: New file.
41136         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41137         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41138         also.
41139         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41140         redundancy.
41141         * m4/math_h.m4: Initialize and substitute variables for isnan
41142         module.
41143         * modules/isnan: New file.
41144         * modules/isnan-tests: New file.
41145         * modules/math: Add substitutions for new module.
41146         * tests/test-isnan.c: New file.
41147         * MODULES.html.sh: Mention new module.
41148
41149 2008-07-10  Ben Pfaff  <blp@gnu.org>
41150
41151         Add isnanf module.
41152         * lib/isnanf.m4: New file.
41153         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41154         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41155         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41156         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41157         * modules/isnanf: New file.
41158         * modules/isnanf-tests: New file.
41159         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41160         files.
41161         * tests/test-isnanf-nolibm.c: factored most of its contents into
41162         new file tests/test-isnanf.h.
41163         * tests/test-isnanf.h: New file.
41164         * tests/test-isnanf.c: New file.
41165         * MODULES.html.sh: Mention new module.
41166         * doc/glibc-functions/isnanf.texi: Mention new module.
41167
41168 2008-07-10  Ben Pfaff  <blp@gnu.org>
41169
41170         Add isnand module.
41171         * lib/isnand.h: New file.
41172         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41173         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41174         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41175         functionality also.
41176         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41177         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41178         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41179         * modules/isnand: New file.
41180         * modules/isnand-tests: New file.
41181         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41182         files.
41183         * tests/test-isnand-nolibm.c: factored most of its contents into
41184         new file tests/test-isnand.h.
41185         * tests/test-isnand.h: New file.
41186         * tests/test-isnand.c: New file.
41187         * MODULES.html.sh: Mention new module.
41188
41189 2008-07-10  Ben Pfaff  <blp@gnu.org>
41190
41191         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41192         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41193         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41194         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41195         * modules/isnanf-nolibm: Update references to renamed files.
41196         * modules/isnand-nolibm: Likewise.
41197         * modules/isnanf-nolibm-tests: Likewise.
41198         * modules/isnand-nolibm-tests: Likewise.
41199         * lib/frexp.c: Likewise.
41200         * lib/isfinite.c: Likewise.
41201         * lib/signbitd.c: Likewise.
41202         * lib/signbitf.c: Likewise.
41203         * lib/vasnprintf.c: Likewise.
41204         * tests/test-ceilf1.c: Likewise.
41205         * tests/test-ceilf2.c: Likewise.
41206         * tests/test-floorf1.c: Likewise.
41207         * tests/test-floorf2.c: Likewise.
41208         * tests/test-frexp.c: Likewise.
41209         * tests/test-round1.c: Likewise.
41210         * tests/test-round2.c: Likewise.
41211         * tests/test-roundf1.c: Likewise.
41212         * tests/test-strtod.c: Likewise.
41213         * tests/test-trunc1.c: Likewise.
41214         * tests/test-trunc2.c: Likewise.
41215         * tests/test-truncf1.c: Likewise.
41216         * tests/test-truncf2.c: Likewise.
41217         * NEWS: Mention the renamed header files.
41218
41219 2008-07-11  Jim Meyering  <meyering@redhat.com>
41220
41221         vc-list-files: make the last-resort awk code more portable
41222         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41223         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41224         does not support it.
41225
41226 2008-07-10  Eric Blake  <ebb9@byu.net>
41227
41228         Work with tar's bootstrap.
41229         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41230         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41231         an m4 comment.
41232
41233 2008-07-09  Jim Meyering  <meyering@redhat.com>
41234
41235         posix-shell.m4: fix typo that made this test malfunction
41236         * m4/posix-shell.m4: Remove capitalization in variable name.
41237
41238 2008-07-08  Bruno Haible  <bruno@clisp.org>
41239
41240         * m4/onceonly.m4: Update comments.
41241         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41242
41243 2008-07-04  Jim Meyering  <meyering@redhat.com>
41244
41245         * users.txt: Add vc-dwim.
41246         (bison, coreutils): Use the gitweb URL.
41247
41248 2008-07-03  Jim Meyering  <meyering@redhat.com>
41249
41250         * users.txt: Add libffcall.  From Sam Steingold.
41251
41252 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41253
41254         getdate.y: do not ignore TZ with relative day, month or year offset
41255         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41256         relative-date-handling, since otherwise, the latter would clobber the
41257         sole output (an updated Start value) of the tz-handling block.
41258         * tests/test-getdate.c: Tests for the fix
41259
41260 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41261
41262         Recognize 'foo_LIBRARIES += libgnu.a'.
41263         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41264         makefile snippet has already specified an installation location,
41265         also using '+='.
41266
41267 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41268
41269         getdate.y: factor out common actions
41270         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41271         Use them in place of open-coded actions.
41272
41273 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41274
41275         Add self-test for getdate module.
41276         * modules/getdate-tests: New file.
41277         * tests/test-getdate.c: New file.
41278
41279 2008-06-29  Bruno Haible  <bruno@clisp.org>
41280
41281         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41282         .gitignore.
41283         Reported by Sylvain Beucler <beuc@beuc.net>.
41284
41285 2008-06-29  Bruno Haible  <bruno@clisp.org>
41286
41287         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41288         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41289
41290 2008-06-29  Bruno Haible  <bruno@clisp.org>
41291
41292         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41293         EXTRA_DIST.
41294         Reported by Sylvain Beucler <beuc@beuc.net>.
41295
41296 2008-06-26  Jim Meyering  <meyering@redhat.com>
41297
41298         make several modules depend on the "open" module
41299         This provides slightly increased consistency when opening-for-write
41300         the name of a non-directory spelled with a trailing slash.
41301         * modules/chdir-safer: Likewise.
41302         * modules/chown: Likewise.
41303         * modules/clean-temp: Likewise.
41304         * modules/copy-file: Likewise.
41305         * modules/fchdir: Likewise.
41306         * modules/fcntl-safer: Likewise.
41307         * modules/pipe: Likewise.
41308         * modules/utime: Likewise.
41309         Prompted by Eric Blake and Bruno Haible.
41310
41311 2008-06-24  Andreas Schwab  <schwab@suse.de>
41312
41313         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41314         literals can be used as initializers for global variables.
41315
41316 2008-06-23  Eric Blake  <ebb9@byu.net>
41317
41318         Make gnulib-cache.m4 easier to diff.
41319         * gnulib-tool (func_import): Allow newlines when reading cached
41320         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41321
41322 2008-06-23  Bruno Haible  <bruno@clisp.org>
41323
41324         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41325         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41326         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41327         m4/signalblocking.m4.
41328         (gl_PREREQ_SIGACTION): Don't invoke it.
41329         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41330         gl_PREREQ_SIG_HANDLER_H.
41331         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41332         Don't check for sigaction here.
41333
41334 2008-06-23  Bruno Haible  <bruno@clisp.org>
41335
41336         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41337         (install_handlers): Don't set the SA_RESETHAND flag.
41338
41339 2008-06-23  Bruno Haible  <bruno@clisp.org>
41340
41341         * m4/sigaction.m4: Comment fixes.
41342         * lib/signal.in.h: Likewise.
41343
41344 2008-06-23  Eric Blake  <ebb9@byu.net>
41345
41346         Fix typo.
41347         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41348
41349         Avoid SA_ namespace.
41350         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41351         Reported by Ralf Wildenhues.
41352
41353         Avoid test failure due to SA_RESTORER.
41354         * tests/test-sigaction.c (SA_MASK): New macro.
41355         (main): Avoid failing due to extension flags being set.
41356         Reported by Jim Meyering.
41357
41358         Revert use of sig-handler.h in sigprocmask.c.
41359         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41360         it requires the existence of struct sigaction.
41361         * lib/sigprocmask.c (handler_t): Restore typedef.
41362         (rpl_signal, old_handlers): Use local type.
41363
41364 2008-06-22  Bruno Haible  <bruno@clisp.org>
41365
41366         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41367         conditionally.
41368         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41369
41370 2008-06-22  Bruno Haible  <bruno@clisp.org>
41371
41372         * doc/posix-functions/siginterrupt.texi: Move note.
41373
41374         * lib/signal.in.h (SA_RESTART): New macro.
41375         * lib/sigaction.c: Update comment.
41376
41377         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41378
41379         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41380         (gl_PREREQ_SIGPROCMASK): Invoke it.
41381         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41382
41383         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41384
41385         * lib/sigprocmask.c: Update a comment.
41386
41387 2008-06-21  Eric Blake  <ebb9@byu.net>
41388
41389         Use sigaction module rather than signal().
41390         * modules/c-stack (Depends-on): Add sigaction.
41391         * modules/fatal-signal (Depends-on): Likewise.
41392         * modules/nanosleep (Depends-on): Likewise.
41393         * modules/sigprocmask (Files): Add sig-handler.h.
41394         * modules/sigaction (Files): Likewise.
41395         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41396         Eggert.
41397         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41398         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41399         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41400         (init_fatal_signals): Likewise.
41401         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41402         (siginterrupt): Delete fallback.
41403         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41404         instead.
41405         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41406         siginterrupt.
41407
41408         New module sigaction, for mingw.
41409         * modules/sigaction: New module...
41410         * modules/sigaction-tests: ...and its test.
41411         * m4/sigaction.m4: New file.
41412         * lib/sigaction.c: Likewise.
41413         * tests/test-sigaction.c: Likewise.
41414         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41415         * modules/signal (Makefile.am): Likewise.
41416         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41417         needed.
41418         * doc/posix-headers/signal.texi (signal.h): Mention provided
41419         types.
41420         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41421         that sigaction is preferable.
41422         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41423         module.
41424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41425         sigaction.
41426
41427         Improve robustness of sigprocmask by overriding signal.
41428         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41429         is in use.
41430         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41431         (SIGKILL, SIGSTOP): Provide fallbacks.
41432         (rpl_signal): Implement.
41433         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41434         signal can be called inside handlers.
41435
41436         Fix nanosleep module on mingw.
41437         * modules/nanosleep (Depends-on): Add sys_select.
41438         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41439
41440         Fix licensing of sigprocmask.
41441         * modules/raise (License): Relicense as LGPL.
41442
41443 2008-06-21  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41446         result if it contains question marks.
41447         Reported by Michael Geng <linux@michaelgeng.de>.
41448
41449 2008-06-19  Bruno Haible  <bruno@clisp.org>
41450
41451         Fix CVS-ism.
41452         * doc/gnulib.texi: Include updated-stamp.texi.
41453         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41454         (updated-stamp.texi): New rule.
41455         (gnulib.info): Depend on it.
41456         * doc/.gitignore: Add updated-stamp.texi.
41457         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41458
41459 2008-06-19  Bruno Haible  <bruno@clisp.org>
41460
41461         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41462         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41463
41464 2008-06-19  Eric Blake  <ebb9@byu.net>
41465
41466         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41467         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41468         Reported by Stepan Kasal.
41469
41470 2008-06-18  Bruno Haible  <bruno@clisp.org>
41471
41472         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41473         Reported by Eric Blake.
41474
41475 2008-06-18  Eric Blake  <ebb9@byu.net>
41476
41477         Work around cygwin 1.5.25 strsignal bug.
41478         * tests/test-strsignal.c: Allow for const char *.
41479         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41480
41481 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41482
41483         * users.txt: Update URL to article and add author/date
41484         information.
41485
41486 2008-06-17  Bruno Haible  <bruno@clisp.org>
41487
41488         New macro gl_DISABLE_THREADS.
41489         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41490         if the user did not pass --enable-threads or --disable-threads option.
41491         (gl_DISABLE_THREADS): New macro.
41492         Reported by Eric Blake <ebb9@byu.net>.
41493
41494 2008-06-17  Bruno Haible  <bruno@clisp.org>
41495
41496         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41497         when the macro ignores it.
41498         Based on a patch by Eric Blake <ebb9@byu.net>.
41499
41500 2008-06-17  Bruno Haible  <bruno@clisp.org>
41501
41502         * modules/tls (License): Change to LGPLv2+.
41503         Reported by Eric Blake.
41504
41505 2008-06-17  Eric Blake  <ebb9@byu.net>
41506
41507         Simplify c-stack prerequisites.
41508         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41509         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41510         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41511         check.
41512         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41513         <sys/resource.h>.
41514
41515         Move c-stack test into testsuite.
41516         * modules/c-stack-tests: New file.
41517         * lib/c-stack.c [DEBUG]: Move test program...
41518         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41519         fail test if sigaltstack is lacking.
41520         * tests/test-c-stack.sh: New driver file.
41521
41522 2008-06-16  Eric Blake  <ebb9@byu.net>
41523
41524         Use raise module consistently.
41525         * modules/fatal-signal (Depends-on): Add raise.
41526         * modules/sigprocmask (Depends-on): Likewise.
41527         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41528         * lib/sigprocmask.c (sigprocmask): Likewise.
41529         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41530         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41531
41532         Fix compliance bug in sigpending.
41533         * lib/sigprocmask.c (sigpending): Return pending array via
41534         parameter, not return value.
41535
41536 2008-06-14  Eric Blake  <ebb9@byu.net>
41537
41538         Improve obstack-printf test code.
41539         * tests/test-obstack-printf.c (test_function): Fix comment, and
41540         simplify usage of obstack_* in macros.  Add a test for coverage.
41541         Reported by Bruno Haible.
41542
41543 2008-06-14  Bruno Haible  <bruno@clisp.org>
41544
41545         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41546         array size as a constant, not as a const variable.
41547         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41548         AC_USE_SYSTEM_EXTENSIONS.
41549         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41550         Test whether the obstack_printf function actually exists.
41551         * modules/obstack-printf (Depends-on): Add extensions.
41552         (Include): Remove obstack.h.
41553         * modules/obstack-printf-posix (Depends-on): Add extensions.
41554         (Include): Remove obstack.h.
41555
41556 2008-06-13  Eric Blake  <ebb9@byu.net>
41557
41558         Add obstack-printf and obstack-printf-posix modules.
41559         * modules/obstack-printf: New file.
41560         * modules/obstack-printf-posix: Likewise.
41561         * MODULES.html.sh (Misc): Mention them.
41562         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41563         Likewise.
41564         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41565         Likewise.
41566         * modules/stdio (Makefile.am): Accomodate new modules.
41567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41568         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41569         Declare.
41570         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41571         functions.
41572         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41573         (gl_REPLACE_OBSTACK_PRINTF): New macros
41574         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41575         * tests/test-obstack-printf.c: New file.
41576         * modules/obstack-printf-tests: Likewise.
41577         * modules/obstack-printf-posix-tests: Likewise.
41578
41579 2008-06-11  Bruno Haible  <bruno@clisp.org>
41580
41581         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41582         * lib/open.c: Include errno.h.
41583         (open): Fail when attempting to write to a file that has a trailing
41584         slash.
41585         * tests/test-open.c (main): Test against trailing slash bug.
41586         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41587
41588 2008-06-10  Bruno Haible  <bruno@clisp.org>
41589
41590         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41591         for $? to work inside the trap command, with various /bin/sh-s.
41592         * tests/test-vc-list-files-cvs.sh: Likewise.
41593
41594 2008-06-10  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/acl-internal.h: Don't include gettext.h here.
41597         * lib/set-mode-acl.c: Include gettext.h here.
41598         * lib/copy-acl.c: Likewise.
41599
41600 2008-06-10  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41603         * lib/wait-process.c (wait_subprocess): Likewise.
41604         * lib/execute.h (execute): Add termsigp argument.
41605         * lib/execute.c (execute): Likewise.
41606         * lib/csharpcomp.c (compile_csharp_using_pnet,
41607         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41608         * lib/csharpexec.c (execute_csharp_using_pnet,
41609         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41610         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41611         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41612         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41613         is_jikes_present): Update.
41614         * lib/javaexec.c (execute_java_class): Update.
41615         * lib/javaversion.c (execute_and_read_line): Update.
41616         * NEWS: Document the changes.
41617         Reported by Eric Blake.
41618
41619 2008-06-10  Eric Blake  <ebb9@byu.net>
41620
41621         Add missing include.
41622         * tests/test-strstr.c (includes): Add <signal.h>.
41623         * tests/test-strcasestr.c (includes): Likewise.
41624         * tests/test-memmem.c (includes): Likewise.
41625
41626 2008-06-10  Bruno Haible  <bruno@clisp.org>
41627
41628         * lib/wait-process.c (wait_subprocess): Add an assertion.
41629
41630 2008-06-10  Bruno Haible  <bruno@clisp.org>
41631
41632         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41633
41634 2008-06-10  Bruno Haible  <bruno@clisp.org>
41635
41636         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41637         using alarm().
41638         * tests/test-strcasestr.c (main): Likewise.
41639         * tests/test-strstr.c (main): Likewise.
41640
41641 2008-06-09  Bruno Haible  <bruno@clisp.org>
41642
41643         Work around the Solaris 10 ACE ACLs ABI change.
41644         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41645         declare if ACL_NO_TRIVIAL is present.
41646         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41647         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41648         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41649         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41650         define if ACL_NO_TRIVIAL is present.
41651         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41652         and use the current ABI.
41653         (file_has_acl): Use same #if condition as elsewhere.
41654         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41655         in use, and use the current ABI.
41656         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41657         Reported by Jim Meyering.
41658
41659 2008-06-09  Eric Blake  <ebb9@byu.net>
41660
41661         Work around environments that (stupidly) ignore SIGALRM.
41662         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41663         before using alarm().
41664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41665         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41666         Reported by Ian Beckwith <ianb@erislabs.net>.
41667
41668         Produce autobuild blurb earlier in log.
41669         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41670
41671 2008-06-09  Jim Meyering  <meyering@redhat.com>
41672         and OndÅ™ej Vašík  <ovasik@redhat.com>
41673
41674         utimens.c: correct kernel bug work-around
41675         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41676         failure, not success, and the kernel bug we're trying to work
41677         around affects not just the utimensat call, but also the fallback
41678         futimens call.
41679         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41680         not success.
41681         [HAVE_FUTIMENS]: Use the same work-around, here.
41682
41683 2008-06-09  Jim Meyering  <meyering@redhat.com>
41684
41685         add more guards around definition of ACE_-related code
41686         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41687         ALLOW and ACE_OWNER are also defined.
41688
41689 2008-06-08  Bruno Haible  <bruno@clisp.org>
41690
41691         * lib/acl-internal.h: Add me as co-author.
41692         * lib/file-has-acl.c: Likewise.
41693         * lib/set-mode-acl.c: Likewise.
41694         * lib/copy-acl.c: Likewise.
41695
41696 2008-06-08  Bruno Haible  <bruno@clisp.org>
41697
41698         Add support for AIX ACLs.
41699         * lib/acl-internal.h (acl_nontrivial): New declaration.
41700         * lib/file-has-acl.c (acl_nontrivial): New function.
41701         (file_has_acl): Add implementation using AIX 4 ACL API.
41702         * lib/set-mode-acl.c (qset_acl): Likewise.
41703         * lib/copy-acl.c (qcopy_acl): Likewise.
41704
41705 2008-06-08  Bruno Haible  <bruno@clisp.org>
41706
41707         Add support for HP-UX ACLs.
41708         * lib/acl-internal.h (acl_nontrivial): New declaration.
41709         * lib/file-has-acl.c (acl_nontrivial): New function.
41710         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41711         * lib/set-mode-acl.c (qset_acl): Likewise.
41712         * lib/copy-acl.c (qcopy_acl): Likewise.
41713
41714 2008-06-08  Bruno Haible  <bruno@clisp.org>
41715
41716         Add support for Cygwin ACLs.
41717         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41718         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41719         the chmod_or_fchmod call.
41720         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41721
41722 2008-06-08  Bruno Haible  <bruno@clisp.org>
41723
41724         Fix bug with setuid modes in Solaris 10+ code.
41725         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41726         succeeded, when the mode contains some special bits.
41727
41728 2008-06-08  Bruno Haible  <bruno@clisp.org>
41729
41730         Add support for Solaris 7..10 ACLs.
41731         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41732         declarations.
41733         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41734         functions.
41735         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41736         * lib/set-mode-acl.c (qset_acl): Likewise.
41737         * lib/copy-acl.c (qcopy_acl): Likewise.
41738
41739 2008-06-08  Bruno Haible  <bruno@clisp.org>
41740
41741         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41742         declaration.
41743         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41744         (acl_access_nontrivial): Remove MacOS X case.
41745         (file_has_acl): Use acl_extended_nontrivial.
41746         * lib/copy-acl.c (qcopy_acl): Likewise.
41747
41748 2008-06-08  Bruno Haible  <bruno@clisp.org>
41749
41750         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41751
41752 2008-06-08  Jim Meyering  <meyering@redhat.com>
41753
41754         * modules/acl (Maintainer): Add Bruno Haible.
41755
41756 2008-06-07  Bruno Haible  <bruno@clisp.org>
41757
41758         Improve support for Tru64 ACLs.
41759         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41760         ACL on OSF/1.
41761
41762 2008-06-07  Bruno Haible  <bruno@clisp.org>
41763
41764         Add support for MacOS X ACLs.
41765         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41766         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41767         * lib/set-mode-acl.c (qset_acl): Likewise.
41768         * lib/copy-acl.c (qcopy_acl): Likewise.
41769
41770 2008-06-07  Bruno Haible  <bruno@clisp.org>
41771
41772         Fix memory leak introduced on 2008-05-22.
41773         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41774         use.
41775
41776 2008-06-07  Bruno Haible  <bruno@clisp.org>
41777
41778         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41779         to construct an empty ACL.
41780
41781 2008-06-07  Bruno Haible  <bruno@clisp.org>
41782
41783         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41784         precisely.
41785         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41786
41787 2008-06-07  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41790         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41791
41792 2008-06-07  Bruno Haible  <bruno@clisp.org>
41793
41794         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41795         regardless of POSIX.
41796         * doc/posix-functions/_longjmp.texi: Likewise.
41797         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41798         SystemV platform in this case.
41799
41800 2008-06-06  Eric Blake  <ebb9@byu.net>
41801
41802         Document abort() bugs.
41803         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41804
41805         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41806         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41807         sigsetjmp.
41808         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41809         siglongjmp, but only as a macro.
41810         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41811         is obsolete.
41812         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41813
41814         Tweak documentation to cover cygwin argz bugs.
41815         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41816         argz bug fix; no code change needed since no cygwin releases
41817         occurred between the last fix and the bug being tested.
41818         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41819         module and recently fixed cygwin bugs.
41820         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41821         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41822         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41823         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41824         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41825         Likewise.
41826         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41827         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41828         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41829         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41830         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41831         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41832         Likewise.
41833
41834         Avoid gcc warning on cygwin.
41835         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41836         !ACL_NO_TRIVIAL]: Avoid unused variable.
41837
41838 2008-06-05  Eric Blake  <ebb9@byu.net>
41839
41840         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41841         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41842         git-version-gen fails to come up with a version.
41843         Reported by Simon Josefsson.
41844
41845 2008-06-05  Jim Meyering  <meyering@redhat.com>
41846             Paul Eggert  <eggert@cs.ucla.edu>
41847
41848         utimens.c: work around a probable Linux kernel bug
41849         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41850         appears to be a kernel bug that causes utimensat to return 280
41851         instead of 0, indicating success.
41852
41853 2008-06-04  Bruno Haible  <bruno@clisp.org>
41854
41855         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41856         2008-06-01 commit.
41857
41858 2008-06-04  Bruno Haible  <bruno@clisp.org>
41859
41860         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41861         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41862         (file_has_acl): Use it. Save errno afterwards.
41863         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41864
41865 2008-06-03  Bruno Haible  <bruno@clisp.org>
41866
41867         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41868         draft code. Simplify #ifs.
41869         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41870         Put Solaris code after POSIX-draft code. Fix comments regarding
41871         Solaris 10, HP-UX. Mention Cygwin.
41872         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41873
41874 2008-06-03  Eric Blake  <ebb9@byu.net>
41875
41876         Provide fallback for older kernels.
41877         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41878         Provide runtime fallback if kernel lacks support.
41879         Reported by Mike Frysinger.
41880
41881 2008-06-02  Bruno Haible  <bruno@clisp.org>
41882
41883         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41884         it exists.
41885
41886 2008-06-02  Bruno Haible  <bruno@clisp.org>
41887
41888         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41889         * lib/copy-acl.c (qcopy_acl): Update comment.
41890
41891 2008-06-02  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41894         like ACL APIs.
41895
41896 2008-06-02  Bruno Haible  <bruno@clisp.org>
41897
41898         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41899         * tests/test-set-mode-acl.sh: Likewise.
41900         * tests/test-copy-acl.sh: Likewise.
41901         * tests/test-copy-file.sh: Likewise.
41902
41903 2008-06-02  Bruno Haible  <bruno@clisp.org>
41904
41905         * tests/test-file-has-acl.sh: Remove unused code.
41906
41907 2008-06-01  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41910         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41911         messages.
41912         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41913
41914 2008-06-01  Bruno Haible  <bruno@clisp.org>
41915
41916         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41917         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41918         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41919         APIs.
41920         * modules/acl-tests (configure.ac): Remove tests now contained in
41921         m4/acl.m4.
41922
41923 2008-06-02  Jim Meyering  <meyering@redhat.com>
41924
41925         announce-gen: use a better key-server host name
41926         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41927         it may be more consistently reliable.  Suggested by Werner Koch
41928         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41929
41930 2008-06-01  Bruno Haible  <bruno@clisp.org>
41931
41932         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41933         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41934
41935 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41936
41937         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41938
41939 2008-06-01  Bruno Haible  <bruno@clisp.org>
41940
41941         New ACL tests.
41942         * tests/test-file-has-acl.sh: New file.
41943         * tests/test-file-has-acl.c: New file.
41944         * tests/test-set-mode-acl.sh: New file.
41945         * tests/test-set-mode-acl.c: New file.
41946         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41947         * tests/test-copy-acl.c: New file.
41948         * modules/acl-tests: New file, based on modules/copy-file-tests.
41949         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41950         (Depends-on): Add acl-tests.
41951         (configure.ac): Remove checks.
41952         (Makefile.am): Don't create test-sameacls program here any more.
41953
41954 2008-06-01  Bruno Haible  <bruno@clisp.org>
41955
41956         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41957         * tests/test-sameacls.c: Include progname.h.
41958         (main): Invoke set_program_name. Portability fixes for MacOS X,
41959         Solaris, HP-UX.
41960
41961 2008-06-01  Bruno Haible  <bruno@clisp.org>
41962
41963         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41964         function.
41965         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41966
41967 2008-06-01  Bruno Haible  <bruno@clisp.org>
41968
41969         * modules/rpmatch (Depends-on): Add strdup.
41970
41971 2008-06-01  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/pipe.c: Include unistd-safer.h.
41974         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41975         * modules/pipe (Depends-on): Add unistd-safer.
41976
41977 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41978
41979         * modules/autobuild (configure.ac): Call AB_INIT.
41980
41981 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41982
41983         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41984         Suggested by Bruno Haible <bruno@clisp.org>.
41985
41986 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41987
41988         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41989         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41990         <bruno@clisp.org>.
41991
41992 2008-05-29  Eric Blake  <ebb9@byu.net>
41993
41994         Prefer new POSIX 200x interfaces over futimesat.
41995         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41996         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41997         when available.
41998         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41999
42000 2008-05-28  Bruno Haible  <bruno@clisp.org>
42001
42002         * modules/stpcpy (License): Change to LGPLv2+.
42003         Requested by David Lutterkort <dlutter@redhat.com>.
42004
42005 2008-05-27  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42008         current mingw.
42009         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42010
42011 2008-05-27  Bruno Haible  <bruno@clisp.org>
42012
42013         * modules/iconv_open (Link): New section, from module 'iconv'.
42014         * modules/striconv (Link): Likewise.
42015         * modules/striconveh (Link): Likewise.
42016         * modules/xstriconv (Link): Likewise.
42017         * modules/unicodeio (Link): Likewise.
42018         * modules/propername (Link): Likewise.
42019         Reported by Jim Meyering.
42020
42021 2008-05-26  Jim Meyering  <meyering@redhat.com>
42022
42023         sha256: do not artificially restrict buffer length to be < 2^32
42024         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42025         uint32_t to size_t.
42026         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42027         to match.
42028
42029         avoid unaligned access errors, e.g., on sparc
42030         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42031         direct access through a possibly-unaligned uint64* pointer.
42032         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42033         direct access through a possibly-unaligned uint32* pointer.
42034         Prompted by this patch from Tom "spot" Callaway:
42035         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42036
42037         sha512.c: fix typo in comment
42038         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42039
42040 2008-05-25  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42043         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42044         (Makefile.am): Update lib_SOURCES.
42045
42046 2008-05-25  Bruno Haible  <bruno@clisp.org>
42047
42048         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42049
42050 2008-05-25  Jim Meyering  <meyering@redhat.com>
42051
42052         useless-if-before-free: freed expr may have white-space differences
42053         * build-aux/useless-if-before-free: Recognize cases in which the
42054         freed expression differs from the tested one in embedded white
42055         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42056         $1 was used, so we can't make any regexp shy.  Improved tests now
42057         detect this.
42058
42059         useless-if-before-free: accept white space in the expression.
42060         * build-aux/useless-if-before-free: For now, any white space
42061         in the expression must be identical in the free argument.
42062
42063         useless-if-before-free: efficiency tweak
42064         * build-aux/useless-if-before-free: Make the expression-matching
42065         regexp "shy".
42066         Make the *outer* regexp shy, not the expr-matching one.
42067
42068         update code-in-comment to accept cast of free arg
42069         * build-aux/useless-if-before-free: Update regexp.
42070
42071 2008-05-25  Bruno Haible  <bruno@clisp.org>
42072
42073         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42074         * modules/copy-file-tests (Files, Makefile.am): Update.
42075         * tests/test-copy-file.c (func_test_copy): Update.
42076
42077 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42078
42079         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42080
42081 2008-05-23  Bruno Haible  <bruno@clisp.org>
42082
42083         Improve support for ACLs on OSF/1.
42084         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42085         Remove fallback for unknown flavors of ACLs.
42086
42087 2008-05-22  Bruno Haible  <bruno@clisp.org>
42088
42089         Add support for ACLs on OSF/1.
42090         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42091         replacements.
42092         (acl_free_text): New macro fallback.
42093         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42094         acl_free.
42095         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42096         acl_free_text function. Require AC_C_INLINE.
42097
42098 2008-05-22  Bruno Haible  <bruno@clisp.org>
42099
42100         Make copy_acl work on MacOS X 10.5.
42101         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42102         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42103         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42104         If MODE_INSIDE_ACL, don't assume that every system has the same text
42105         representation for ACLs as FreeBSD.
42106         * lib/copy-acl.c (copy_acl): Add support for platforms with
42107         !MODE_INSIDE_ACL.
42108         * lib/file-has-acl.c (file_has_acl): Likewise.
42109         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42110         FreeBSD, MacOS X, or IRIX, respectively.
42111
42112 2008-05-22  Bruno Haible  <bruno@clisp.org>
42113
42114         * lib/acl.h: Don't include <sys/acl.h>.
42115         (GETACLCNT): Move fallback to lib/acl-internal.h.
42116         * lib/acl-internal.h: Include <sys/acl.h> here.
42117         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42118
42119 2008-05-22  Bruno Haible  <bruno@clisp.org>
42120
42121         Split off copy_acl function to separate file.
42122         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42123         * lib/acl.c (copy_acl): Moved function to separate file.
42124         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42125         * modules/acl (Files): Add lib/copy-acl.c.
42126         (Makefiles.am): Augment lib_SOURCES.
42127
42128 2008-05-22  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/copy-file-tests: New file.
42131         * tests/test-copy-file.sh: New file.
42132         * tests/test-copy-file.c: New file.
42133         * tests/test-copy-file-sameacls.c: New file.
42134
42135 2008-05-22  Eric Blake  <ebb9@byu.net>
42136
42137         Avoid gcc warning.
42138         * tests/test-memcmp.c (main): Pass NULL indirectly.
42139
42140 2008-05-21  Bruno Haible  <bruno@clisp.org>
42141
42142         Add reference doc about ACLs.
42143         * doc/acl-resources.txt: New file.
42144         * doc/acl-cygwin.txt: New file.
42145
42146 2008-05-21  Bruno Haible  <bruno@clisp.org>
42147
42148         Avoid one more warning from gcc.
42149         * lib/vasnprintf.c (IF_LINT): Update comments.
42150         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42151
42152 2008-05-21  Jim Meyering  <meyering@redhat.com>
42153
42154         avoid a warning from gcc
42155         * lib/vasnprintf.c (IF_LINT): Define.
42156         (scale10_round_decimal_long_double):
42157         Use it to avoid a "may be used uninitialized" warning.
42158         (scale10_round_decimal_double): Likewise.
42159
42160 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42161
42162         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42163         declared.
42164
42165 2008-05-20  Bruno Haible  <bruno@clisp.org>
42166
42167         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42168         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42169
42170 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42171
42172         * modules/memcmp-tests: New file.
42173         * tests/test-memcmp.c: New file.
42174
42175 2008-05-19  Bruno Haible  <bruno@clisp.org>
42176
42177         * modules/propername (Notice, configure.ac): Put quoted "..." into
42178         --keyword option.
42179         * lib/propername.h: Update comments accordingly.
42180         Reported by Eric Blake.
42181
42182 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42183
42184         * modules/getpass-gnu (Depends-on): Add fseeko.
42185
42186 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42187
42188         * modules/base64-tests: New file.
42189
42190 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42191
42192         * lib/base64.c (base64_decode_ctx): If a decode context structure
42193         was passed in use it to ignore newlines.  If a context structure
42194         was _not_ passed in, continue to treat newlines as garbage (this
42195         is the historical behavior).  Formerly base64_decode.
42196         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42197         takes a decode context structure.
42198         * lib/base64.h (base64_decode): Macro for four-argument calls.
42199         (base64_decode_alloc): Likewise.
42200         * lib/base64.c (base64_decode_ctx): If a decode context structure
42201         was passed in use it to ignore newlines.  If a context structure
42202         was _not_ passed in, continue to treat newlines as garbage (this
42203         is the historical behavior).  Formerly base64_decode.
42204         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42205         takes a decode context structure.
42206         * lib/base64.h (base64_decode): Macro for four-argument calls.
42207         (base64_decode_alloc): Likewise.
42208
42209 2008-05-19  Jim Meyering  <meyering@redhat.com>
42210
42211         avoid a warning from gcc
42212         * lib/trim.c (IF_LINT): Define.
42213         (trim2): Use it to avoid a "may be used uninitialized" warning.
42214
42215         Fix doc typo.
42216         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42217
42218 2008-05-19  Bruno Haible  <bruno@clisp.org>
42219
42220         * doc/glibc-functions/getpass.texi: Document limits of other
42221         implementations.
42222
42223 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42224             Bruno Haible <bruno@clisp.org>
42225
42226         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42227
42228 2008-05-18  Bruno Haible  <bruno@clisp.org>
42229
42230         * modules/propername: New file, from GNU gettext.
42231         * lib/propername.h: New file, from GNU gettext.
42232         * lib/propername.c: New file, from GNU gettext.
42233         * MODULES.html.sh (Internationalization functions): Add propername.
42234
42235 2008-05-16  Jim Meyering  <meyering@redhat.com>
42236             Bruno Haible  <bruno@clisp.org>
42237
42238         Avoid some warnings from "gcc -Wshadow".
42239         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42240
42241 2008-05-15  Eric Blake  <ebb9@byu.net>
42242
42243         Extend previous patch to cygwin 1.7.0.
42244         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42245         fast implementation in cygwin >= 1.7.0.
42246         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42248
42249 2008-05-15  Bruno Haible  <bruno@clisp.org>
42250
42251         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42252         implementation in glibc >= 2.9.
42253         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42255
42256 2008-05-15  Bruno Haible  <bruno@clisp.org>
42257
42258         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42259         (Unicode string functions): Add unilbrk/*.
42260         Reported by Karl Berry.
42261
42262 2008-05-15  Eric Blake  <ebb9@byu.net>
42263
42264         Fix violation of <stdbool.h> replacement in regex.
42265         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42266         * lib/regexec.c (re_search_internal): Likewise.
42267         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42268
42269 2008-05-15  Jim Meyering  <meyering@redhat.com>
42270
42271         avoid distracting test output when git or cvs is not found
42272         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42273         * tests/test-vc-list-files-git.sh: Likewise.
42274
42275 2008-05-15  Eric Blake  <ebb9@byu.net>
42276
42277         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42278         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42279         glibc version.
42280         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42281         * doc/posix-functions/strstr.texi (strstr): Likewise.
42282         * lib/str-two-way.h (MAX): Sychronize with glibc.
42283
42284 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42285
42286         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42287         opr.ctx_type.
42288         (calc_first): Initialize constraint field.
42289         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42290         Fix grammar.
42291         (duplicate_node): Merge constraint field for all node types.
42292         (calc_eclosure_iter): Look at constraint field for all node types.
42293         * lib/regex_internal.c (create_cd_newstate): Don't look at
42294         opr.ctx_type.
42295
42296 2008-05-14  Bruno Haible  <bruno@clisp.org>
42297
42298         Help GCC to do better code generation.
42299         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42300         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42301         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42302         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42303         Declare with attribute 'malloc' if supported.
42304
42305 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42306
42307         use "echo STR|wc -c" rather than unportable "expr length STR"
42308         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42309         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42310
42311 2008-05-14  Jim Meyering  <meyering@redhat.com>
42312
42313         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42314         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42315         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42316         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42317         via Collin Lasse.
42318
42319 2008-05-14  Eric Blake  <ebb9@byu.net>
42320
42321         Avoid quadratic growth in gl_LIBSOURCES.
42322         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42323         Suggested by Bruno Haible.
42324
42325         Test xmemdup0.
42326         * modules/xmemdup0-tests: New file.
42327         * tests/test-xmemdup0.c: Likewise.
42328
42329 2008-05-13  Eric Blake  <ebb9@byu.net>
42330
42331         Split xmemdup0 into its own module.
42332         * modules/xmemdup0: New file.
42333         * lib/xmemdup0.h: Likewise.
42334         * lib/xmemdup0.c: Likewise.
42335         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42336         * lib/xalloc.h (xmemdup0): Remove.
42337         * lib/xmalloc.c (xmemdup0): Likewise.
42338
42339 2008-05-13  Eric Blake  <ebb9@byu.net>
42340             Bruno Haible  <bruno@clisp.org>
42341
42342         Reduce number of forks required during autoconf.
42343         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42344         and gl_LIBSOURCES_DIR.
42345         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42346         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42347         m4_syscmd per file.
42348         <m4_foreach_w>: Move...
42349         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42350
42351 2008-05-13  Eric Blake  <ebb9@byu.net>
42352
42353         * gnulib-tool: Fix various comment typos.
42354
42355 2008-05-12  Bruno Haible  <bruno@clisp.org>
42356
42357         Tailor the linebreaking algorithm.
42358         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42359
42360 2008-05-12  Bruno Haible  <bruno@clisp.org>
42361
42362         Update to Unicode 5.0.0.
42363         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42364         LBP_JV, LBP_JT. Redistribute values.
42365         (unilbrk_table): Change size.
42366         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42367         Unicode TR#14 rev. 22.
42368         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42369         LBP_JV, LBP_JT. Redistribute values.
42370         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42371         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42372         Update.
42373         * lib/unilbrk/lbrkprop1.h: Regenerated.
42374         * lib/unilbrk/lbrkprop2.h: Regenerated.
42375         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42376         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42377         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42378         Likewise.
42379         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42380         Likewise.
42381         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42382         result.
42383         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42384         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42385         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42386         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42387         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42388         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42389
42390 2008-05-11  Bruno Haible  <bruno@clisp.org>
42391
42392         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42393
42394 2008-05-11  Bruno Haible  <bruno@clisp.org>
42395
42396         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42397         * modules/unilbrk/gen-lbrk: New file.
42398
42399 2008-05-11  Bruno Haible  <bruno@clisp.org>
42400
42401         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42402         * m4/sha512.m4 (gl_SHA512): Likewise.
42403
42404 2008-05-11  Jim Meyering  <meyering@redhat.com>
42405
42406         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42407         * modules/crypto/sha256: New file.
42408         * modules/crypto/sha512: Likewise.
42409         * lib/sha256.c: Likewise.
42410         * lib/sha256.h: Likewise.
42411         * lib/sha512.c: Likewise.
42412         * lib/sha512.h: Likewise.
42413         * lib/u64.h: Likewise.
42414         * m4/sha256.m4: Likewise.
42415         * m4/sha512.m4: Likewise.
42416         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42417
42418 2008-05-10  Bruno Haible  <bruno@clisp.org>
42419
42420         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42421         (Input/Output <stdio.h>): Add xprintf.
42422         (Signal handling <signal.h>): Add strsignal.
42423         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42424         (Core language properties): Add func.
42425         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42426         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42427         strings.
42428         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42429         (Input/output): New section.
42430         (File system functions): Add openat-die, stat-macros.
42431         (Networking functions): Add sockets.
42432         (Unicode string functions): Add unictype/*.
42433         (Support for building libraries and executables): Add gperf.
42434         (Support for building documentation): Add agpl-3.0.
42435         (Misc): Add nocrash.
42436
42437 2008-05-10  Bruno Haible  <bruno@clisp.org>
42438
42439         * modules/unictype/gen-ctype: New file.
42440
42441 2008-05-10  Jim Meyering  <meyering@redhat.com>
42442
42443         Make chdir-safer.c more efficient on a system with no symlinks.
42444         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42445         also if ELOOP is zero.  Suggested by Bruno Haible.
42446
42447         Make chdir-safer.c slightly safer.
42448         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42449         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42450
42451         Avoid compile failure on systems without ELOOP (like mingw).
42452         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42453         Reported by Bruno Haible.
42454
42455 2008-05-10  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42458         (is_utf8_encoding): Use a case-insensitive comparison.
42459         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42460         streq.
42461
42462 2008-05-10  Bruno Haible  <bruno@clisp.org>
42463
42464         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42465         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42466         * lib/unilbrk/ulc-common.h (iconv_string_length,
42467         iconv_string_keeping_offsets): Remove declarations.
42468         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42469         Don't include <iconv.h>, streq.h, xsize.h.
42470         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42471         conversion.
42472         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42473         <iconv.h>, streq.h, xsize.h.
42474         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42475         conversion.
42476         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42477         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42478         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42479         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42480
42481 2008-05-10  Bruno Haible  <bruno@clisp.org>
42482
42483         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42484         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42485
42486         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42487         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42488
42489         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42490         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42491
42492         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42493         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42494
42495         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42496         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42497
42498         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42499         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42500
42501         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42502         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42503
42504         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42505         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42506
42507 2008-05-10  Bruno Haible  <bruno@clisp.org>
42508
42509         Split up 'linebreak' module.
42510         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42511         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42512         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42513         modifications.
42514         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42515         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42516         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42517         lib/linebreak.c.
42518         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42519         lib/linebreak.c.
42520         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42521         lib/linebreak.c.
42522         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42523         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42524         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42525         lib/linebreak.c.
42526         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42527         lib/linebreak.c.
42528         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42529         lib/linebreak.c.
42530         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42531         lib/linebreak.c.
42532         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42533         lib/linebreak.c.
42534         * modules/unilbrk/base: New file.
42535         * modules/unilbrk/tables: New file.
42536         * modules/unilbrk/u8-possible-linebreaks: New file.
42537         * modules/unilbrk/u16-possible-linebreaks: New file.
42538         * modules/unilbrk/u32-possible-linebreaks: New file.
42539         * modules/unilbrk/ulc-common: New file.
42540         * modules/unilbrk/ulc-possible-linebreaks: New file.
42541         * modules/unilbrk/u8-width-linebreaks: New file.
42542         * modules/unilbrk/u16-width-linebreaks: New file.
42543         * modules/unilbrk/u32-width-linebreaks: New file.
42544         * modules/unilbrk/ulc-width-linebreaks: New file.
42545         * lib/linebreak.h: Remove file.
42546         * lib/linebreak.c: Remove file.
42547         * m4/linebreak.m4: Remove file.
42548         * modules/linebreak: Remove file.
42549         * NEWS: Mention the changes.
42550
42551 2008-05-09  Eric Blake  <ebb9@byu.net>
42552
42553         Add xmemdup0.
42554         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42555         implementation.
42556         * lib/xmalloc.c (xmemdup0): New C implementation.
42557
42558 2008-05-08  Bruno Haible  <bruno@clisp.org>
42559
42560         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42561
42562 2008-05-07  Eric Blake  <ebb9@byu.net>
42563
42564         Support cross-compilation of <wctype.h>.
42565         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42566         AC_CACHE_CHECK.
42567
42568 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42569
42570         * build-aux/vc-list-files: Add support for bzr.
42571
42572 2008-05-03  Jim Meyering  <meyering@redhat.com>
42573
42574         avoid failed assertion with tight malloc
42575         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42576
42577 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42578
42579         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42580         are needed from arpa/inet.h.
42581         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42582         Reported by Bruno Haible.
42583
42584 2008-05-02  Jim Meyering  <meyering@redhat.com>
42585
42586         avoid compilation error on FreeBSD 6
42587         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42588
42589 2008-05-01  Jim Meyering  <meyering@redhat.com>
42590
42591         useless-if-before-free: correct --help's exit status description
42592         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42593         for one or more matches, etc.  Reported by Bruno Haible.
42594
42595         vc-list-files: make the stand-alone gnulib test work
42596         * modules/vc-list-files-tests (configure.ac):
42597         Define and AC_SUBST abs_aux_dir.
42598         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42599         $(abs_top_srcdir) to each script and having each of them
42600         duplicate the work of setting PATH, set PATH here, using
42601         the new variable, abs_aux_dir instead.
42602         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42603         * tests/test-vc-list-files-git.sh: Likewise.
42604         Reported by Bruno Haible.
42605
42606 2008-05-01  Bruno Haible  <bruno@clisp.org>
42607
42608         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42609         reallocation. Rename 'done' to 'found_delimiter'.
42610
42611 2008-05-01  Jim Meyering  <meyering@redhat.com>
42612
42613         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42614         * build-aux/vc-list-files: Use `...`, not $(...).
42615
42616 2008-04-30  Jim Meyering  <meyering@redhat.com>
42617
42618         add tests for vc-list-files
42619         * modules/vc-list-files-tests: New module.
42620         * tests/test-vc-list-files-cvs.sh: New file.
42621         * tests/test-vc-list-files-git.sh: New file.
42622
42623         avoid a warning from gcc
42624         * lib/getndelim2.c (IF_LINT): Define.
42625         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42626
42627         vc-list-files: work properly with build-aux/cvsu, too
42628         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42629         to all cvs-based clauses.
42630
42631         vc-list-files: work properly in the CVS+awk case, too
42632         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42633
42634         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42635         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42636         take more than one file argument, so .  Add quotes, just in case $dir
42637         ever contains a shell meta-character.  Prompted by Soren Hansen in
42638         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42639
42640 2008-04-29  Eric Blake  <ebb9@byu.net>
42641
42642         Optimize getndelim2 to use block operations when possible.
42643         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42644         freadseek, and memchr2.
42645         * lib/getndelim2.c (getndelim2): Use them for block reads.
42646
42647 2008-04-29  Bruno Haible  <bruno@clisp.org>
42648
42649         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42650         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42651         * modules/inet_ntop (Depends-on): Add extensions.
42652         * modules/inet_pton (Depends-on): Likewise.
42653         Reported by Simon Josefsson.
42654
42655 2008-04-29  Jim Meyering  <meyering@redhat.com>
42656
42657         When the is more than one match in a block, match all of them.
42658         * build-aux/useless-if-before-free: Iterate through each block
42659         until there are no more matches.
42660
42661         Fix broken useless-if-before-free script.
42662         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42663         the expression to match cast of argument to free-like function.
42664
42665 2008-04-29  Eric Blake  <ebb9@byu.net>
42666
42667         Use new header.
42668         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42669
42670 2008-04-29  Jim Meyering  <meyering@redhat.com>
42671
42672         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42673         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42674         by gnulib to exist and to declare e.g., inet_ntop.
42675         Don't include "inet_ntop.h", now removed.
42676
42677         * m4/arpa_inet_h.m4: Remove trailing blanks.
42678
42679 2008-04-29  Eric Blake  <ebb9@byu.net>
42680
42681         Silence valgrind on safe reads beyond potential array bounds.
42682         * lib/rawmemchr.valgrind: New file.
42683         * lib/strchrnul.valgrind: Likewise.
42684         * modules/rawmemchr (Files): Distribute new file.
42685         * modules/strchrnul (Files): Likewise.
42686         Suggested by Bruno Haible.
42687
42688 2008-04-29  Bruno Haible  <bruno@clisp.org>
42689
42690         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42691         (inet_ntop, inet_pton): Change portability warning's wording.
42692         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42693         Invoke gl_CHECK_NEXT_HEADERS.
42694         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42695         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42696         set ARPA_INET_H.
42697         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42698         * modules/arpa_inet (Description): No longer only for systems that
42699         lack it.
42700         (Depends-on): Add include_next.
42701         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42702         HAVE_ARPA_INET_H.
42703
42704 2008-04-29  Jim Meyering  <meyering@redhat.com>
42705
42706         * modules/mkdir (License): Re-license as LGPLv2+.
42707
42708 2008-04-29  Bruno Haible  <bruno@clisp.org>
42709
42710         * modules/rawmemchr (Maintainer): Set to Eric.
42711         * modules/strchrnul (Maintainer): Likewise.
42712
42713 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42714
42715         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42716         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42717
42718         * modules/arpa_inet (arpa/inet.h): Use them.
42719
42720 2008-04-28  Eric Blake  <ebb9@byu.net>
42721
42722         Test getndelim2.
42723         * modules/getndelim2-tests: New file.
42724         * tests/test-getndelim2.c: Likewise.
42725         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42726         stream.
42727         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42728
42729         * MODULES.html.sh: Document new module.
42730
42731 2008-04-20  Bruno Haible  <bruno@clisp.org>
42732
42733         * lib/c-stack.c (die): Use raise.
42734         * modules/c-stack (Depends-on): Add raise.
42735
42736 2008-04-28  Bruno Haible  <bruno@clisp.org>
42737
42738         Expect rpmatch to be declared.
42739         * lib/yesno.c (rpmatch): Remove declaration.
42740
42741         Declare rpmatch.
42742         * lib/stdlib.in.h (rpmatch): New declaration.
42743         * lib/rpmatch.c: Include <stdlib.h> first.
42744         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42745         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42747         HAVE_RPMATCH.
42748         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42749         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42750         (Include): Set to <stdlib.h>.
42751         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42752         HAVE_RPMATCH.
42753         * NEWS: Document the change.
42754
42755 2008-04-28  Bruno Haible  <bruno@clisp.org>
42756
42757         Change rpmatch to use nl_langinfo when appropriate.
42758         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42759         (N_): New macro.
42760         (localized_pattern): New function/macro.
42761         (try): Remove match, nomatch arguments. Copy the pattern into safe
42762         memory before caching it.
42763         (rpmatch): Use localized_pattern. Add translator comments.
42764         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42765         Suggested by Eric Blake.
42766         * modules/rpmatch (Depends-on): Add stdbool.
42767
42768 2008-04-28  Eric Blake  <ebb9@byu.net>
42769
42770         Add rawmemchr module, matching glibc.
42771         * modules/string (Makefile.am): New indicator.
42772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42773         * lib/string.in.h (rawmemchr): Declare when appropriate.
42774         * modules/rawmemchr: New file.
42775         * m4/rawmemchr.m4: Likewise.
42776         * lib/rawmemchr.c: Likewise.
42777         * modules/rawmemchr-tests: Likewise.
42778         * tests/test-rawmemchr.c: Likewise.
42779         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42780         module.
42781         * modules/strchrnul (Depends-on): Add rawmemchr.
42782         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42783
42784         Whitespace cleanup.
42785         * tests/test-strchrnul.c: Reindent.
42786         * lib/strchrnul.c: Likewise.
42787
42788         Optimize and test strchrnul.
42789         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42790         * modules/strchrnul-tests: New file.
42791         * tests/test-strchrnul.c: Likewise.
42792
42793         Remove intprops dependency.
42794         * modules/memchr (Depends-on): Remove intprops.
42795         * modules/memrchr (Depends-on): Likewise.
42796         * modules/memchr2 (Depends-on): Likewise.
42797         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42798         * lib/memrchr.c (__memrchr): Likewise.
42799         * lib/memrchr2.c (memchr2): Likewise.
42800         Reported by Simon Josefsson.
42801
42802 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42803
42804         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42805         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42806
42807 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42808
42809         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42810
42811         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42812
42813         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42814
42815         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42816         declarations.
42817         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42818
42819         * m4/inet_pton.m4: Don't check for header files.
42820
42821         * m4/inet_ntop.m4: Don't check for header files.
42822
42823 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42824
42825         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42826         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42827         trigger for cygwin).
42828         Reported by Bruno Haible  <bruno@clisp.org>.
42829
42830 2008-04-28  Bruno Haible  <bruno@clisp.org>
42831
42832         * doc/posix-functions/strdup.texi: Mention mingw problem.
42833
42834 2008-04-27  Bruno Haible  <bruno@clisp.org>
42835
42836         * modules/stat-time-tests (Depends-on): Add sleep.
42837         * tests/test-stat-time.c (force_unlink): New function.
42838         (cleanup): Use it.
42839         (test_mtime): Remove the ctime related tests.
42840         (test_ctime): New function, containing the ctime related tests.
42841         (main): Call test_ctime, except on native Windows platforms.
42842
42843 2008-04-27  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/rpmatch.c (rpmatch): Add some comments.
42846         Reported by James Youngman <jay@gnu.org>.
42847
42848 2008-04-27  Bruno Haible  <bruno@clisp.org>
42849
42850         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42851         quiet NaNs.
42852
42853 2008-04-27  Bruno Haible  <bruno@clisp.org>
42854
42855         Make test-yesno.sh work on mingw.
42856         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42857         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42858         (main): Set stdin to binary mode.
42859         * modules/yesno-tests (Depends-on): Add binary-io.
42860
42861 2008-04-27  Bruno Haible  <bruno@clisp.org>
42862
42863         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42864         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42865         argument that lie outside the IEEE 854 domain.
42866         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42867         (gl_ISFINITE): Use it.
42868         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42869
42870 2008-04-27  Bruno Haible  <bruno@clisp.org>
42871
42872         Allow local renaming in config.h.
42873         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42874
42875 2008-04-27  Bruno Haible  <bruno@clisp.org>
42876
42877         * lib/memchr.c (__memchr): Change type of 'i'.
42878         * lib/memchr2.c (memchr2): Likewise.
42879
42880 2008-04-26  Eric Blake  <ebb9@byu.net>
42881         and Bruno Haible  <bruno@clisp.org>
42882
42883         Optimize and test memrchr.
42884         * modules/memrchr (Depends-on): Add intprops.
42885         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42886         * modules/memrchr-tests: New file.
42887         * tests/test-memrchr.c: New file.
42888
42889 2008-04-26  Bruno Haible  <bruno@clisp.org>
42890
42891         Add tentative support for DragonFly BSD.
42892         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42893         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42894         fp.
42895         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42896         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42897         * lib/fpurge.c (fpurge): Likewise.
42898         * lib/freadable.c (freaadable): Likewise.
42899         * lib/freadahead.c (freadahead): Likewise.
42900         * lib/freading.c (freading): Likewise.
42901         * lib/freadptr.c (freadptr): Likewise.
42902         * lib/freadseek.c (freadptrinc): Likewise.
42903         * lib/fseeko.c (fseeko): Likewise.
42904         * lib/fseterr.c (fseterr): Likewise.
42905         * lib/fwritable.c (fwritable): Likewise.
42906         * lib/fwriting.c (fwriting): Likewise.
42907
42908 2008-04-26  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/stdio-impl.h: New file.
42911         * lib/fbufmode.c: Include stdio-impl.h.
42912         (fbufmode): Use fp_, remove redundant #defines.
42913         * lib/fflush.c: Include stdio-impl.h.
42914         (clear_ungetc_buffer): Remove redundant #defines.
42915         * lib/fpurge.c: Include stdio-impl.h.
42916         (fpurge): Remove redundant #defines.
42917         * lib/freadable.c: Include stdio-impl.h.
42918         (freadable): Remove redundant #defines.
42919         * lib/freadahead.c: Include stdio-impl.h.
42920         (freadahead): Remove redundant #defines.
42921         * lib/freading.c: Include stdio-impl.h.
42922         (freading): Remove redundant #defines.
42923         * lib/freadptr.c: Include stdio-impl.h.
42924         (freadptr): Remove redundant #defines.
42925         * lib/freadseek.c: Include stdio-impl.h.
42926         (freadptrinc): Remove redundant #defines.
42927         * lib/fseeko.c: Include stdio-impl.h.
42928         (rpl_fseeko): Remove redundant #defines.
42929         * lib/fseterr.c: Include stdio-impl.h.
42930         (fseterr): Remove redundant #defines.
42931         * lib/fwritable.c: Include stdio-impl.h.
42932         (fwritable: Remove redundant #defines.
42933         * lib/fwriting.c: Include stdio-impl.h.
42934         (fwriting): Remove redundant #defines.
42935         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42936         * modules/fflush (Files): Likewise.
42937         * modules/fpurge (Files): Likewise.
42938         * modules/freadable (Files): Likewise.
42939         * modules/freadahead (Files): Likewise.
42940         * modules/freading (Files): Likewise.
42941         * modules/freadptr (Files): Likewise.
42942         * modules/freadseek (Files): Likewise.
42943         * modules/fseeko (Files): Likewise.
42944         * modules/fseterr (Files): Likewise.
42945         * modules/fwritable (Files): Likewise.
42946         * modules/fwriting (Files): Likewise.
42947
42948 2008-04-26  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42951         restore_seek_optimization, update_fpos_cache): New functions, extracted
42952         from rpl_fflush.
42953         (rpl_fflush): Use them.
42954         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42955         (gl_REPLACE_FFLUSH): Use it.
42956
42957 2008-04-26  Bruno Haible  <bruno@clisp.org>
42958
42959         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42960         on Solaris.
42961         * tests/test-xstrtoimax.sh: Likewise.
42962         * tests/test-xstrtoumax.sh: Likewise.
42963         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42964
42965 2008-04-26  Bruno Haible  <bruno@clisp.org>
42966
42967         * modules/memchr-tests: New file.
42968         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42969
42970 2008-04-26  Eric Blake  <ebb9@byu.net>
42971             Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/memchr.c: Include intprops.h.
42974         (__memchr): Optimize parallel detection of matching bytes. Rename local
42975         variables. Add explanatory comments.
42976
42977 2008-04-26  Bruno Haible  <bruno@clisp.org>
42978
42979         Fix module 'memchr', broken since 2000-10-28.
42980         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42981
42982 2008-04-26  Bruno Haible  <bruno@clisp.org>
42983
42984         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42985         comments.
42986
42987 2008-04-25  Eric Blake  <ebb9@byu.net>
42988
42989         Use native fstatat on cygwin 1.7.0.
42990         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42991         first.
42992
42993 2008-04-23  Eric Blake  <ebb9@byu.net>
42994
42995         Improve memchr2 performance.
42996         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42997         NUL bytes.
42998         * modules/memchr2 (Depends-on): Use intprops.h.
42999
43000 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43001
43002         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43003         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43004         <blp@cs.stanford.edu>.
43005
43006 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43007
43008         * lib/arpa_inet.in.h: New file.
43009
43010         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43011         (Makefile.am): Sed in substitute header file.
43012
43013         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43014         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43015
43016         * modules/inet_ntop (configure.ac): Use
43017         gl_ARPA_INET_MODULE_INDICATOR.
43018
43019         * modules/inet_pton (configure.ac): Use
43020         gl_ARPA_INET_MODULE_INDICATOR.
43021
43022 2008-04-22  Jim Meyering  <meyering@redhat.com>
43023
43024         * modules/verify (License): Re-license as LGPLv2+.
43025
43026 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43027
43028         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43029         parameter to void* as per POSIX standard (MinGW uses char*).
43030
43031 2008-04-21  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43034         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43035         Define to replacements if REPLACE_ISWCNTRL is 1.
43036         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43037         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43038         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43039         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43040         what it fixes.
43041         * doc/posix-functions/iswalpha.texi: Likewise.
43042         * doc/posix-functions/iswblank.texi: Likewise.
43043         * doc/posix-functions/iswcntrl.texi: Likewise.
43044         * doc/posix-functions/iswdigit.texi: Likewise.
43045         * doc/posix-functions/iswgraph.texi: Likewise.
43046         * doc/posix-functions/iswlower.texi: Likewise.
43047         * doc/posix-functions/iswprint.texi: Likewise.
43048         * doc/posix-functions/iswpunct.texi: Likewise.
43049         * doc/posix-functions/iswspace.texi: Likewise.
43050         * doc/posix-functions/iswupper.texi: Likewise.
43051         * doc/posix-functions/iswxdigit.texi: Likewise.
43052         Reported by Alain Guibert.
43053
43054 2008-04-21  Bruno Haible  <bruno@clisp.org>
43055
43056         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43057         Patch by Alain Guibert.
43058
43059 2008-04-21  Bruno Haible  <bruno@clisp.org>
43060
43061         Fix test failures on mingw.
43062         * tests/test-xstrtol.c (print_no_progname): New function.
43063         (main): Install it in error_print_progname hook.
43064         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43065         * tests/test-xstrtoimax.sh: Likewise.
43066         * tests/test-xstrtoumax.sh: Likewise.
43067
43068 2008-04-21  Bruno Haible  <bruno@clisp.org>
43069
43070         Fix test failure on mingw.
43071         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43072
43073 2008-04-21  Bruno Haible  <bruno@clisp.org>
43074
43075         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43076         Actually assign a value.
43077
43078 2008-04-20  Bruno Haible  <bruno@clisp.org>
43079
43080         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43081         take 2.
43082         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43083         'canonicalize-lgpl' module is also used.
43084         * lib/canonicalize-lgpl.c: Undo last change.
43085         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43086
43087 2008-04-20  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43090         config.h. Provide _mkdir based fallback for mingw.
43091         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43092         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43093         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43094         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43095         rather than defining mkdir in config.h.
43096         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43097         (gl_SYS_STAT_H_DEFAULTS): New macro.
43098         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43099         HAVE_IO_H any more.
43100         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43101         HAVE_DECL_MKDIR and HAVE_IO_H.
43102
43103 2008-04-20  Bruno Haible  <bruno@clisp.org>
43104
43105         * lib/isapipe.c: Port to native Windows platforms.
43106
43107 2008-04-20  Bruno Haible  <bruno@clisp.org>
43108
43109         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43110
43111 2008-04-21  Eric Blake  <ebb9@byu.net>
43112
43113         Work around preprocessors that don't handle UINTMAX_MAX.
43114         * lib/memchr2.c (memchr2): Avoid embedded #if.
43115         Reported by Alain Guibert, fix suggested by Bruno Haible.
43116
43117 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43118
43119         * doc/posix-functions/strftime.texi (strftime): Explain better
43120         Windows incompatibility.  Suggested by Micah Cowan
43121         <micah@cowan.name>.
43122
43123 2008-04-20  Bruno Haible  <bruno@clisp.org>
43124
43125         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43126         unistr/u8-mblen.
43127
43128 2008-04-20  Bruno Haible  <bruno@clisp.org>
43129
43130         Fix test failure on platforms with non-GNU iconv.
43131         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43132         (U_TO_U8): Use it, rather than u16_to_u8.
43133         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43134         units at the end of the input string.
43135         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43136
43137 2008-04-20  Bruno Haible  <bruno@clisp.org>
43138
43139         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43140         when the resulting length is 0.
43141         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43142
43143 2008-04-20  Bruno Haible  <bruno@clisp.org>
43144
43145         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43146         works.
43147         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43148
43149 2008-04-20  Bruno Haible  <bruno@clisp.org>
43150
43151         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43152         * modules/tsearch-tests (configure.ac): Test for initstate function.
43153
43154 2008-04-20  Bruno Haible  <bruno@clisp.org>
43155
43156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43157         for nlink_t if missing.
43158         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43159
43160 2008-04-19  Bruno Haible  <bruno@clisp.org>
43161
43162         Work around snprintf bug on Linux libc5.
43163         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43165         gl_SNPRINTF_SIZE1.
43166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43167         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43168         that test failed.
43169         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43170         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43171         * modules/snprintf (Files): Add m4/printf.m4.
43172         * modules/vsnprintf (Files): Likewise.
43173         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43174         * doc/posix-functions/vsnprintf.texi: Likewise.
43175
43176 2008-04-19  Bruno Haible  <bruno@clisp.org>
43177
43178         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43179         from 0.0058 to less than 10^-7.
43180
43181 2008-04-19  Bruno Haible  <bruno@clisp.org>
43182
43183         Fix rounding when a precision is given.
43184         * lib/vasnprintf.c (is_borderline): New function.
43185         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43186         9...9x.
43187         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43188         %e, %g.
43189         * tests/test-vasprintf-posix.c (test_function): Likewise.
43190         * tests/test-snprintf-posix.h (test_function): Likewise.
43191         * tests/test-sprintf-posix.h (test_function): Likewise.
43192         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43193         * tests/test-printf-posix.h (test_function): Likewise.
43194         * tests/test-printf-posix.output: Update.
43195         Reported by John Darrington <john@darrington.wattle.id.au> via
43196         Ben Pfaff <blp@cs.stanford.edu>.
43197
43198 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43199
43200         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43201         Suggested by Bruno Haible <bruno@clisp.org>.
43202
43203 2008-04-17  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43206         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43207         implementation.
43208         Patch by Bruce Merry <bmerry@gmail.com>.
43209
43210 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43211
43212         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43213         doesn't work under Windows.
43214
43215 2008-04-16  Bruno Haible  <bruno@clisp.org>
43216
43217         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43218         New macros.
43219         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43220         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43221         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43222         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43223         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43224         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43225         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43226         macros.
43227         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43228         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43229         Northern Sotho, Uighur.
43230
43231 2008-04-16  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43234         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43235         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43236         Reported by Daniel Bergström <daniel@octocode.com>.
43237
43238 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43239             Bruno Haible  <bruno@clisp.org>
43240
43241         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43242         function.
43243         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43244         New functions, mostly extracted from gl_locale_name_default.
43245         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43246
43247 2008-04-16  Eric Blake  <ebb9@byu.net>
43248
43249         Adjust strtod detection to catch glibc 2.7 bug.
43250         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43251         Reported by John Gatewood Ham.
43252
43253 2008-04-16  Bruno Haible  <bruno@clisp.org>
43254
43255         Add tentative support for Linux libc5.
43256         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43257         * lib/fpurge.c (fpurge): Likewise.
43258         * lib/freadable.c (freadable): Likewise.
43259         * lib/freadahead.c (freadahead): Likewise.
43260         * lib/freading.c (freading): Likewise.
43261         * lib/freadptr.c (freadptr): Likewise.
43262         * lib/freadseek.c (freadptrinc): Likewise.
43263         * lib/fseeko.c (rpl_fseeko): Likewise.
43264         * lib/fseterr.c (fseterr): Likewise.
43265         * lib/fwritable.c (fwritable): Likewise.
43266         * lib/fwriting.c (fwriting): Likewise.
43267         Reported by Alain Guibert <alguibert+bts@free.fr>.
43268
43269 2008-04-15  Bruno Haible  <bruno@clisp.org>
43270
43271         * modules/mathl (configure.ac): Define module indicator.
43272
43273 2008-04-15  Bruno Haible  <bruno@clisp.org>
43274
43275         * lib/logl.c (logl): Remove unused variables.
43276
43277 2008-04-15  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43280         fails.
43281
43282 2008-04-15  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/trim.c (trim2): Fix argument of isspace() macro.
43285
43286 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43287
43288         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43289         to 0.
43290         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43291
43292 2008-04-14  Bruno Haible  <bruno@clisp.org>
43293
43294         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43295         AC_LANG_PROGRAM argument.
43296         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43297         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43299         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43300         * m4/math_h.m4 (gl_MATH_H): Likewise.
43301         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43302         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43303         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43304         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43305         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43306         * m4/regex.m4 (gl_REGEX): Likewise.
43307         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43308         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43310         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43311         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43312         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43313         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43315
43316 2008-04-14  Jim Meyering  <meyering@redhat.com>
43317
43318         test-strtod: fix typos: s/abs/fabs/
43319         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43320
43321 2008-04-13  Bruno Haible  <bruno@clisp.org>
43322
43323         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43324         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43325         module is also used and while not building the reloc-wrapper.
43326
43327 2008-04-13  Bruno Haible  <bruno@clisp.org>
43328
43329         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43330
43331 2008-04-13  Bruno Haible  <bruno@clisp.org>
43332
43333         Fix AIX compilation failure introduced on 2008-04-02.
43334         * tests/test-frexp.c (exp): Undefine before redefining.
43335         * tests/test-frexpl.c (exp): Likewise.
43336
43337 2008-04-13  Bruno Haible  <bruno@clisp.org>
43338
43339         Work around a HP-UX stdio bug.
43340         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43341         * tests/test-ftello.c (main): Likewise.
43342         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43343         * doc/posix-functions/ftello.texi: Likewise.
43344
43345 2008-04-13  Bruno Haible  <bruno@clisp.org>
43346
43347         Make test-signbit pass on HP-UX/hppa.
43348         * tests/test-signbit.c (minus_zerol): New variable.
43349         (test_signbitl): Use it.
43350
43351 2008-04-13  Bruno Haible  <bruno@clisp.org>
43352
43353         Make truncl work on OSF/1 4.0.
43354         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43355         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43356         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43358         HAVE_DECL_TRUNCL.
43359         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43360         HAVE_DECL_TRUNCL.
43361         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43362
43363 2008-04-13  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43366
43367 2008-04-13  Bruno Haible  <bruno@clisp.org>
43368
43369         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43370         expression, so as to avoid HP-UX 11 cc compiler bug.
43371
43372 2008-04-13  Bruno Haible  <bruno@clisp.org>
43373
43374         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43375
43376 2008-04-13  Bruno Haible  <bruno@clisp.org>
43377
43378         * lib/git-merge-changelog.c: Remove empty declaration outside of
43379         functions.
43380
43381 2008-04-13  Bruno Haible  <bruno@clisp.org>
43382
43383         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43384
43385 2008-04-13  Bruno Haible  <bruno@clisp.org>
43386
43387         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43388         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43389         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43390         also if it exists but lacks definitions of the SHUT_* macros.
43391         * modules/sys_socket (Description): Update.
43392         Reported by Elbert Pol <e.pol@chello.nl>.
43393
43394 2008-04-13  Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/localcharset.c (OS2): Don't redefine if already defined.
43397         Reported by Elbert Pol <e.pol@chello.nl>.
43398
43399 2008-04-13  Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/binary-io.h [__EMX__]: Include <io.h>.
43402         Reported by Elbert Pol <e.pol@chello.nl>.
43403
43404 2008-04-12  Bruno Haible  <bruno@clisp.org>
43405
43406         * lib/fpucw.h: Enable the definitions also for x86_64.
43407         Needed for NetBSD/x86_64.
43408         Reported by Thomas Klausner <tk@giga.or.at>.
43409
43410 2008-04-12  Bruno Haible  <bruno@clisp.org>
43411
43412         * tests/test-strtod.c: Include isnand.h.
43413         (main): Use isnand instead of isnan.
43414         Reported by Jim Meyering.
43415
43416 2008-04-12  Bruno Haible  <bruno@clisp.org>
43417
43418         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43419         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43420
43421 2008-04-12  Jim Meyering  <meyering@redhat.com>
43422
43423         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43424
43425 2008-04-12  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43428         Reported by Elbert Pol <e.pol@chello.nl>.
43429
43430 2008-04-12  Eric Blake  <ebb9@byu.net>
43431
43432         Work around Solaris 10 math.h bug.
43433         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43434         (gl_MATH_H_DEFAULTS): Set up default.
43435         * modules/math (Makefile.am): Replace new indicators.
43436         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43437         * tests/test-math.c (main): Test this.
43438         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43439         * doc/posix-headers/math.texi (math.h): Mention bug.
43440         Reported by Nelson H. F. Beebe and Jim Meyering.
43441
43442 2008-04-11  Bruno Haible  <bruno@clisp.org>
43443
43444         Adapt to future versions of Apple GCC.
43445         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43446         Reported by Peter O'Gorman <peter@pogma.com>.
43447
43448 2008-04-11  Bruno Haible  <bruno@clisp.org>
43449
43450         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43451
43452 2008-04-11  Bruno Haible  <bruno@clisp.org>
43453
43454         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43455
43456         * modules/getaddrinfo-tests (Makefile.am): Define
43457         test_getaddrinfo_LDADD.
43458
43459 2008-04-11  Bruno Haible  <bruno@clisp.org>
43460
43461         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43462         (init): Fix syntax error.
43463         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43464         is declared.
43465
43466 2008-04-11  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43469         * modules/glob (Depends-on): Add stdbool.
43470
43471 2008-04-11  Bruno Haible  <bruno@clisp.org>
43472
43473         * lib/trim.c: Include <string.h>.
43474
43475 2008-04-11  Eric Blake  <ebb9@byu.net>
43476
43477         Avoid compile failure on OS/2.
43478         * lib/regex_internal.h (internal_function): Disable optimization
43479         on OS/2 (__EMX__), where it caused compiler error.
43480         Reported by Elbert Pol.
43481
43482 2008-04-11  Bruno Haible  <bruno@clisp.org>
43483
43484         Flush the standard error stream before aborting. Needed on mingw.
43485         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43486         * tests/test-array_list.c (ASSERT): Likewise.
43487         * tests/test-array_oset.c (ASSERT): Likewise.
43488         * tests/test-avltree_list.c (ASSERT): Likewise.
43489         * tests/test-avltree_oset.c (ASSERT): Likewise.
43490         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43491         * tests/test-binary-io.c (ASSERT): Likewise.
43492         * tests/test-byteswap.c (ASSERT): Likewise.
43493         * tests/test-c-ctype.c (ASSERT): Likewise.
43494         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43495         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43496         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43497         * tests/test-c-strstr.c (ASSERT): Likewise.
43498         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43499         * tests/test-canonicalize.c (ASSERT): Likewise.
43500         * tests/test-carray_list.c (ASSERT): Likewise.
43501         * tests/test-ceilf1.c (ASSERT): Likewise.
43502         * tests/test-ceilf2.c (ASSERT): Likewise.
43503         * tests/test-ceill.c (ASSERT): Likewise.
43504         * tests/test-count-one-bits.c (ASSERT): Likewise.
43505         * tests/test-fbufmode.c (ASSERT): Likewise.
43506         * tests/test-fflush2.c (ASSERT): Likewise.
43507         * tests/test-floorf1.c (ASSERT): Likewise.
43508         * tests/test-floorf2.c (ASSERT): Likewise.
43509         * tests/test-floorl.c (ASSERT): Likewise.
43510         * tests/test-fopen.c (ASSERT): Likewise.
43511         * tests/test-fpending.c (ASSERT): Likewise.
43512         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43513         * tests/test-fpurge.c (ASSERT): Likewise.
43514         * tests/test-freadable.c (ASSERT): Likewise.
43515         * tests/test-freadahead.c (ASSERT): Likewise.
43516         * tests/test-freading.c (ASSERT): Likewise.
43517         * tests/test-freadptr.c (ASSERT): Likewise.
43518         * tests/test-freadptr2.c (ASSERT): Likewise.
43519         * tests/test-freadseek.c (ASSERT): Likewise.
43520         * tests/test-freopen.c (ASSERT): Likewise.
43521         * tests/test-frexp.c (ASSERT): Likewise.
43522         * tests/test-frexpl.c (ASSERT): Likewise.
43523         * tests/test-fseek.c (ASSERT): Likewise.
43524         * tests/test-fseeko.c (ASSERT): Likewise.
43525         * tests/test-fstrcmp.c (ASSERT): Likewise.
43526         * tests/test-ftell.c (ASSERT): Likewise.
43527         * tests/test-ftello.c (ASSERT): Likewise.
43528         * tests/test-func.c (ASSERT): Likewise.
43529         * tests/test-fwritable.c (ASSERT): Likewise.
43530         * tests/test-fwriting.c (ASSERT): Likewise.
43531         * tests/test-getdelim.c (ASSERT): Likewise.
43532         * tests/test-getline.c (ASSERT): Likewise.
43533         * tests/test-i-ring.c (ASSERT): Likewise.
43534         * tests/test-iconv-utf.c (ASSERT): Likewise.
43535         * tests/test-iconv.c (ASSERT): Likewise.
43536         * tests/test-isfinite.c (ASSERT): Likewise.
43537         * tests/test-isnand.c (ASSERT): Likewise.
43538         * tests/test-isnanf.c (ASSERT): Likewise.
43539         * tests/test-isnanl.h (ASSERT): Likewise.
43540         * tests/test-ldexpl.c (ASSERT): Likewise.
43541         * tests/test-linked_list.c (ASSERT): Likewise.
43542         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43543         * tests/test-localename.c (ASSERT): Likewise.
43544         * tests/test-lseek.c (ASSERT): Likewise.
43545         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43546         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43547         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43548         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43549         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43550         * tests/test-mbschr.c (ASSERT): Likewise.
43551         * tests/test-mbscspn.c (ASSERT): Likewise.
43552         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43553         * tests/test-mbspbrk.c (ASSERT): Likewise.
43554         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43555         * tests/test-mbsrchr.c (ASSERT): Likewise.
43556         * tests/test-mbsspn.c (ASSERT): Likewise.
43557         * tests/test-mbsstr1.c (ASSERT): Likewise.
43558         * tests/test-mbsstr2.c (ASSERT): Likewise.
43559         * tests/test-mbsstr3.c (ASSERT): Likewise.
43560         * tests/test-memchr2.c (ASSERT): Likewise.
43561         * tests/test-memmem.c (ASSERT): Likewise.
43562         * tests/test-open.c (ASSERT): Likewise.
43563         * tests/test-printf-frexp.c (ASSERT): Likewise.
43564         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43565         * tests/test-printf-posix.c (ASSERT): Likewise.
43566         * tests/test-quotearg.c (ASSERT): Likewise.
43567         * tests/test-rbtree_list.c (ASSERT): Likewise.
43568         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43569         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43570         * tests/test-round1.c (ASSERT): Likewise.
43571         * tests/test-roundf1.c (ASSERT): Likewise.
43572         * tests/test-roundl.c (ASSERT): Likewise.
43573         * tests/test-signbit.c (ASSERT): Likewise.
43574         * tests/test-sleep.c (ASSERT): Likewise.
43575         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43576         * tests/test-snprintf.c (ASSERT): Likewise.
43577         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43578         * tests/test-stat-time.c (ASSERT): Likewise.
43579         * tests/test-strcasestr.c (ASSERT): Likewise.
43580         * tests/test-strerror.c (ASSERT): Likewise.
43581         * tests/test-striconv.c (ASSERT): Likewise.
43582         * tests/test-striconveh.c (ASSERT): Likewise.
43583         * tests/test-striconveha.c (ASSERT): Likewise.
43584         * tests/test-strsignal.c (ASSERT): Likewise.
43585         * tests/test-strstr.c (ASSERT): Likewise.
43586         * tests/test-strtod.c (ASSERT): Likewise.
43587         * tests/test-trunc1.c (ASSERT): Likewise.
43588         * tests/test-trunc2.c (ASSERT): Likewise.
43589         * tests/test-truncf1.c (ASSERT): Likewise.
43590         * tests/test-truncf2.c (ASSERT): Likewise.
43591         * tests/test-truncl.c (ASSERT): Likewise.
43592         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43593         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43594         * tests/test-vasnprintf.c (ASSERT): Likewise.
43595         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43596         * tests/test-vasprintf.c (ASSERT): Likewise.
43597         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43598         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43599         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43600         * tests/test-vsnprintf.c (ASSERT): Likewise.
43601         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43602         * tests/test-wcwidth.c (ASSERT): Likewise.
43603         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43604         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43605         * tests/test-xvasprintf.c (ASSERT): Likewise.
43606         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43607         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43608         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43609         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43610         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43611         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43612         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43613         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43614         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43615         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43616         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43617         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43618         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43619         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43620         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43621         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43622         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43623         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43624         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43625         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43626         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43627         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43628         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43629         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43630         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43631         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43632         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43633         * tests/unictype/test-combining.c (ASSERT): Likewise.
43634         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43635         * tests/unictype/test-digit.c (ASSERT): Likewise.
43636         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43637         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43638         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43639         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43640         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43641         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43642         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43643         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43644         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43645         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43646         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43647         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43648         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43649         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43650         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43651         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43652         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43653         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43654         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43655         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43656         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43657         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43658         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43659         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43660         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43661         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43662         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43663         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43664         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43665         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43666         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43667         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43668         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43669         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43670         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43671         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43672         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43673         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43674         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43675         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43676         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43677         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43678         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43679         Reported by Eric Blake.
43680
43681 2008-04-11  Bruno Haible  <bruno@clisp.org>
43682
43683         * lib/wchar.in.h: Tweak comment.
43684
43685 2008-04-11  Bruno Haible  <bruno@clisp.org>
43686
43687         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43688         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43689         gl_COMMON.
43690         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43691
43692 2008-04-11  Bruno Haible  <bruno@clisp.org>
43693
43694         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43695
43696 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43697
43698         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43699         of attempting to use non-existing /dev/*random.  Based on patch
43700         from Adam Strzelecki <ono@java.pl> in
43701         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43702
43703 2008-04-08  Bruno Haible  <bruno@clisp.org>
43704
43705         Add tentative support for emx+gcc.
43706         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43707         * lib/fpurge.c (fpurge): Likewise.
43708         * lib/freadable.c (freadable): Likewise.
43709         * lib/freadahead.c (freadahead): Likewise.
43710         * lib/freading.c (freading): Likewise.
43711         * lib/freadptr.c (freadptr): Likewise.
43712         * lib/freadseek.c (freadptrinc): Likewise.
43713         * lib/fseeko.c (rpl_fseeko): Likewise.
43714         * lib/fseterr.c (fseterr): Likewise.
43715         * lib/fwritable.c (fwritable): Likewise.
43716         * lib/fwriting.c (fwriting): Likewise.
43717         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43718
43719 2008-04-09  Eric Blake  <ebb9@byu.net>
43720
43721         Avoid some autoconf warnings.
43722         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43723         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43724         * m4/afs.m4 (gl_AFS): Likewise.
43725         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43726         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43727         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43728         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43729         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43730         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43731         (AC_CHECK_DECLS_ONCE): Likewise.
43732         Rename file...
43733         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43734         gnulib-tool requires autoconf 2.59 or better.
43735         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43736
43737 2008-04-08  Eric Blake  <ebb9@byu.net>
43738
43739         Use 'git describe --match' if present (added in git 1.5.5).
43740         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43741         if possible.
43742
43743 2008-04-08  Bruno Haible  <bruno@clisp.org>
43744
43745         Add tentative support for OpenServer.
43746         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43747         _ptr, _cnt.
43748         * lib/fpurge.c (fpurge): Likewise.
43749         * lib/freadable.c (freadable): Likewise.
43750         * lib/freadahead.c (freadahead): Likewise.
43751         * lib/freading.c (freading): Likewise.
43752         * lib/freadptr.c (freadptr): Likewise.
43753         * lib/freadseek.c (freadptrinc): Likewise.
43754         * lib/fseeko.c (rpl_fseeko): Likewise.
43755         * lib/fseterr.c (fseterr): Likewise.
43756         * lib/fwritable.c (fwritable): Likewise.
43757         * lib/fwriting.c (fwriting): Likewise.
43758         Reported by Roger Cornelius <rac@tenzing.org> and
43759         Brian K. White <brian@aljex.com>.
43760
43761 2008-04-06  Jim Meyering  <meyering@redhat.com>
43762
43763         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43764
43765 2008-04-06  Bruno Haible  <bruno@clisp.org>
43766
43767         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43768         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43769         * tests/test-printf-posix.sh: Likewise.
43770         * tests/test-vfprintf-posix.sh: Likewise.
43771         * tests/test-vprintf-posix.sh: Likewise.
43772         * tests/test-xprintf-posix.sh: Likewise.
43773
43774 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43775
43776         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43777         hide error from 'ls', needed on OS/2.
43778         Report by Elbert Pol <elbert.pol@gmail.com>.
43779
43780 2008-04-04  Eric Blake  <ebb9@byu.net>
43781
43782         Make test-fseeko.c failures meaningful.
43783         * tests/test-fseeko.c: Print line number on failure.
43784         * tests/test-fseek.c: Likewise.
43785         Reported by Nelson H. F. Beebe.
43786
43787         Improve strtod bug detection check.
43788         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43789         required for Solaris 10.
43790         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43791
43792 2008-04-04  Bruno Haible  <bruno@clisp.org>
43793
43794         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43795         by m4/setenv.m4.
43796
43797 2008-04-03  Eric Blake  <ebb9@byu.net>
43798
43799         Ensure sane .version contents.
43800         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43801         version string.
43802         * build-aux/git-version-gen: Improve documentation.
43803
43804         Make GNU make output nicer.
43805         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43806         MAKECMDGOALS to enforce message for all command line targets.  Set
43807         srcdir for use in maint.mk.
43808
43809         Another maintainer tweak.
43810         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43811         a target that regenerates version.
43812
43813 2008-04-03  Jim Meyering  <meyering@redhat.com>
43814
43815         vc-list-files: don't cause coreutils "make po-check" failure
43816         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43817
43818 2008-04-03  Eric Blake  <ebb9@byu.net>
43819
43820         Allow VPATH usage of vc-list-files.
43821         * build-aux/vc-list-files (scriptversion): Add timestamp.
43822         (options): Add --help, --version, -C.
43823         (CVS): Support installed cvsu.
43824
43825 2008-04-02  Bruno Haible  <bruno@clisp.org>
43826
43827         Avoid some "statement with no effect" warnings from gcc.
43828         * tests/test-wctype.c (main): Explicitly ignore unused values.
43829         Reported by Jim Meyering.
43830
43831 2008-04-02  Jim Meyering  <meyering@redhat.com>
43832
43833         Avoid some warnings from "gcc -Wshadow".
43834         * tests/test-frexp.c (exp): Define to a different identifier.
43835         * tests/test-frexpl.c (exp): Likewise.
43836
43837 2008-04-03  Jim Meyering  <meyering@redhat.com>
43838
43839         bootstrap: remove dangling *.[ch] symlinks from lib
43840         * build-aux/bootstrap [dangling symlink removal]: Move find's
43841         -depth option to precede all others, to avoid a warning.
43842         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43843
43844 2008-04-02  Bruno Haible  <bruno@clisp.org>
43845
43846         Avoid some warnings from "gcc -Wshadow".
43847         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43848         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43849         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43850         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43851         Reported by Jim Meyering.
43852
43853 2008-04-01  Bruno Haible  <bruno@clisp.org>
43854
43855         Fix test to work on IRIX 6.5 with cc.
43856         * tests/test-math.c (numeric_equal): New function.
43857         (main): Use it.
43858
43859 2008-04-01  Bruno Haible  <bruno@clisp.org>
43860
43861         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43862
43863 2008-04-01  Bruno Haible  <bruno@clisp.org>
43864
43865         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43866         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43867         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43868         (Depends-on): Remove math.
43869
43870         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43871         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43872         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43873         (Depends-on): Remove math.
43874
43875         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43876         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43877         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43878         (Depends-on): Remove math.
43879         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43880         (Depends-on): Remove math.
43881
43882         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43883         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43884         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43885         (Depends-on): Remove math.
43886         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43887         (Depends-on): Remove math.
43888
43889         * tests/test-round1.c: Include nan.h.
43890         (main): Use NaNd instead of NAN.
43891         * modules/round-tests (Files): Add tests/nan.h.
43892
43893         * tests/test-trunc1.c: Include nan.h.
43894         (main): Use NaNd instead of NAN.
43895         * modules/trunc-tests (Files): Add tests/nan.h.
43896
43897         * tests/test-roundf1.c: Include nan.h.
43898         (main): Use NaNf instead of NAN.
43899         * modules/roundf-tests (Files): Add tests/nan.h.
43900
43901         * tests/test-truncf1.c: Include nan.h.
43902         (main): Use NaNf instead of NAN.
43903         * modules/truncf-tests (Files): Add tests/nan.h.
43904
43905         * tests/test-ceilf1.c: Include nan.h.
43906         (main): Use NaNf instead of NAN.
43907         * modules/ceilf-tests (Files): Add tests/nan.h.
43908
43909         * tests/test-floorf1.c: Include nan.h.
43910         (main): Use NaNf instead of NAN.
43911         * modules/floorf-tests (Files): Add tests/nan.h.
43912
43913         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43914         (main): Use NaNf instead of NAN.
43915         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43916
43917         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43918         (main): Use NaNd instead of NAN.
43919         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43920
43921         * tests/test-frexp.c: Include nan.h.
43922         (main): Use NaNd instead of NAN.
43923         * modules/frexp-tests (Files): Add tests/nan.h.
43924
43925         * lib/isnan.c: Don't include <math.h>.
43926         (FUNC): Don't use NAN macro.
43927         * modules/isnand-nolibm (Depends-on): Remove math.
43928         * modules/isnanf-nolibm (Depends-on): Remove math.
43929         * modules/isnanl (Depends-on): Remove math.
43930         * modules/isnanl-nolibm (Depends-on): Remove math.
43931
43932         * tests/nan.h: New file.
43933
43934 2008-04-01  Eric Blake  <ebb9@byu.net>
43935
43936         Fix typos.
43937         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43938         values to be the right type.
43939
43940         For now, cater to gnulib strtod inaccuracies.
43941         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43942         fractional results.  While not as nice from a QoI perspective, it
43943         is a quicker patch than correctly implementing decimal to binary
43944         rounding.
43945
43946 2008-03-31  Eric Blake  <ebb9@byu.net>
43947
43948         Guarantee a definition of NAN.
43949         * lib/math.in.h (NAN): Define if missing.
43950         * tests/test-math.c (main): Test it.
43951         * doc/posix-headers/math.texi (math.h): Document this.
43952         * lib/isnan.c (rpl_isnand): Use it.
43953         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43954         * tests/test-floorf1.c (NaN): Likewise.
43955         * tests/test-frexp.c (NaN): Likewise.
43956         * tests/test-isnand.c (NaN): Likewise.
43957         * tests/test-isnanf.c (NaN): Likewise.
43958         * tests/test-round1.c (NaN): Likewise.
43959         * tests/test-roundf1.c (NaN): Likewise.
43960         * tests/test-snprintf-posix.h (NaN): Likewise.
43961         * tests/test-sprintf-posix.h (NaN): Likewise.
43962         * tests/test-trunc1.c (NaN): Likewise.
43963         * tests/test-truncf1.c (NaN): Likewise.
43964         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43965         * tests/test-vasprintf-posix.c (NaN): Likewise.
43966         * modules/isnand-nolibm (Depends-on): Add math.
43967         * modules/isnanf-nolibm (Depends-on): Likewise.
43968         * modules/isnanl (Depends-on): Likewise.
43969         * modules/isnanl-nolibm (Depends-on): Likewise.
43970         * modules/snprintf-posix-tests (Depends-on): Likewise.
43971         * modules/sprintf-posix-tests (Depends-on): Likewise.
43972         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43973         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43974         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43975         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43976
43977 2008-03-31  Bruno Haible  <bruno@clisp.org>
43978
43979         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43980         * doc/posix-functions/strtod.texi: Likewise.
43981
43982 2008-03-31  Bruno Haible  <bruno@clisp.org>
43983
43984         * tests/test-strtod.c (main): Don't use C99 syntax.
43985
43986 2008-03-31  Bruno Haible  <bruno@clisp.org>
43987
43988         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43989         Reported by Eric Blake.
43990
43991 2008-03-31  Jim Meyering  <meyering@redhat.com>
43992
43993         Don't compare actual signbit return values.
43994         * tests/test-strtod.c (main): Rather, compare only their
43995         zero/non-zero nature.
43996
43997 2008-03-31  Eric Blake  <ebb9@byu.net>
43998
43999         More strtod documentation.
44000         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44001         failures as distinct bugs.
44002
44003 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44004
44005         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44006         Problem reported by Erik Benada in
44007         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44008
44009 2008-03-30  Bruno Haible  <bruno@clisp.org>
44010
44011         * tests/test-strtod.c: Add comments about which assertion fails on which
44012         platform.
44013         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44014
44015 2008-03-30  Eric Blake  <ebb9@byu.net>
44016
44017         Test signbit behavior on zeros.
44018         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44019         (test_signbitd, test_signbitl): Likewise.
44020
44021         More strtod touchups.
44022         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44023         sign of negative underflow, for now.  Use .5, not .1.
44024         * doc/posix-functions/strtod.texi (strtod): Mention these
44025         limitations.
44026         Reported by Jim Meyering.
44027
44028 2008-03-30  Bruno Haible  <bruno@clisp.org>
44029
44030         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44031         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44032
44033 2008-03-30  Bruno Haible  <bruno@clisp.org>
44034
44035         Avoid failure when attempting to return empty iconv results on some
44036         platforms.
44037         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44038         allocation, don't report ENOMEM when the resulting string is empty.
44039
44040 2008-03-30  Bruno Haible  <bruno@clisp.org>
44041
44042         Fix buffer overrun.
44043         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44044         Don't consider the width for tmp_length. Check count against tmp_length
44045         before doing the padding. Ensure enough allocation during padding.
44046
44047 2008-03-30  Eric Blake  <ebb9@byu.net>
44048
44049         strtod touchups.
44050         * lib/strtod.c (strtod): Avoid compiler warnings.
44051         Reported by Jim Meyering.
44052
44053 2008-03-30  Bruno Haible  <bruno@clisp.org>
44054
44055         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44056         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44057         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44058         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44059         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44060         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44061         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44062         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44063
44064         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44065         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44066         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44067         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44068         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44069         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44070         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44071         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44072
44073         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44074         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44075         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44076         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44077         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44078         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44079         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44080         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44081
44082         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44083         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44084
44085         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44086         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44087
44088         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44089         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44090
44091         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44092         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44093         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44094
44095         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44096         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44097         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44098
44099         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44101         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44102
44103         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44105         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44106
44107         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44108         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44110         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44111         (Depends-on): Add EOVERFLOW.
44112         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44113         (Depends-on): Add EOVERFLOW.
44114         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44115         (Depends-on): Add EOVERFLOW.
44116         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44117         (Depends-on): Add EOVERFLOW.
44118         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44119         (Depends-on): Add EOVERFLOW.
44120         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44121         (Depends-on): Add EOVERFLOW.
44122         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44123         (Depends-on): Add EOVERFLOW.
44124         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44125         (Depends-on): Add EOVERFLOW.
44126
44127         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44129         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44130
44131         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44132         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44133         * modules/snprintf (Depends-on): Add EOVERFLOW.
44134
44135         * lib/poll.c (EOVERFLOW): Remove fallback.
44136         * modules/poll (Depends-on): Add EOVERFLOW.
44137
44138         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44139         * modules/getugroups (Depends-on): Add EOVERFLOW.
44140
44141         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44142         * modules/getdelim (Depends-on): Add EOVERFLOW.
44143
44144         * lib/ftell.c (EOVERFLOW): Remove fallback.
44145         * modules/ftell (Depends-on): Add EOVERFLOW.
44146
44147         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44149         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44150
44151         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44152
44153         * modules/EOVERFLOW-tests: New file.
44154         * tests/test-EOVERFLOW.c: New file.
44155
44156         * modules/EOVERFLOW: New file.
44157         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44158
44159 2008-03-30  Bruno Haible  <bruno@clisp.org>
44160
44161         Fix bug introduced on 2007-06-10.
44162         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44163         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44164
44165 2008-03-30  Bruno Haible  <bruno@clisp.org>
44166
44167         Improve freadseek's efficiency after ungetc.
44168         * lib/freadseek.c: Include freadahead.h.
44169         (freadptrinc): New function, extracted from freadseek.
44170         (freadseek): Use it in a loop. Use freadahead to determine the number
44171         of loop iterations.
44172         * modules/freadseek (Depends-on): Add freadahead.
44173         (configure.ac): Require AC_C_INLINE.
44174
44175 2008-03-30  Bruno Haible  <bruno@clisp.org>
44176
44177         * lib/freadseek.c (freadseek): Don't ignore the return value of
44178         freadptr.
44179
44180 2008-03-29  Eric Blake  <ebb9@byu.net>
44181
44182         Add hex float support.
44183         * modules/strtod (Depends-on): Add c-ctype.
44184         (Link): Mention POW_LIB.
44185         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44186         whitespace between 'e' and exponent.
44187         * tests/test-strtod.c (main): Enable hex float tests.
44188         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44189         now provides.
44190
44191         Document various strtod bugs, with some fixes.
44192         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44193         "-0x", "inf", "nan", and hex constants.
44194         * doc/posix-functions/atof.texi (atof): Likewise.
44195         * modules/stdlib (Makefile.am): Support strtod.
44196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44197         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44198         detect additional strtod bugs.
44199         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44200         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44201         bool where appropriate.  Parse 'inf' and 'nan'.
44202         * tests/test-strtod.c: New file.
44203         * modules/strtod (Depends-on): Add stdbool, stdlib.
44204         (configure.ac): Turn on module indicator.
44205         * modules/strtod-tests: New module.
44206
44207 2008-03-29  Eric Blake  <ebb9@byu.net>
44208
44209         Fix ftell on mingw.
44210         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44211         * modules/ftell-tests (Depends-on): Add binary-io.
44212         * modules/ftello-tests (Depends-on): Likewise.
44213         * tests/test-ftell.c (main): Enhance test to cover behavior after
44214         ungetc.  Enforce binary mode.
44215         * tests/test-ftello.c (main): Likewise.
44216
44217         Pass test-freadseek on cygwin.
44218         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44219         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44220         ungetc buffer.
44221
44222         * tests/test-fflush2.c (main): Fix typo.
44223
44224 2008-03-29  Bruno Haible  <bruno@clisp.org>
44225
44226         * tests/test-fflush2.c (main): Temporarily disable the contents of
44227         this test.
44228         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44229         Reported by Eric Blake.
44230
44231 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44232
44233         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44234         (GC_SHA224_DIGEST_SIZE): Add.
44235
44236         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44237         (gc_hash_digest_length): Likewise.
44238         (gc_hash_buffer): Likewise.
44239
44240 2008-03-25  Bruno Haible  <bruno@clisp.org>
44241
44242         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44243         detail which gettext release to use.
44244         Reported by Simon Josefsson.
44245
44246 2008-03-26  Jim Meyering  <meyering@redhat.com>
44247
44248         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44249         * modules/gnumakefile (clean-GNUmakefile): Also, use
44250         test ... && ... || : syntax rather than if-then ... fi.
44251
44252         gnumakefile: Don't double-quote-expand $(VPATH) value.
44253         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44254
44255 2008-03-24  Eric Blake  <ebb9@byu.net>
44256
44257         Alter GNUmakefile to install into top directory.
44258         * modules/maintainer-makefile: Split, and add dependency...
44259         * modules/gnumakefile: to this new module.
44260         * build-aux/GNUmakefile: Move...
44261         * top/GNUmakefile: ...here.
44262         * build-aux/maint.mk: Move...
44263         * top/maint.mk: ...here.
44264         * MODULES.html.sh (Support for maintaining...): Document new
44265         module.
44266
44267 2008-03-23  Bruno Haible  <bruno@clisp.org>
44268
44269         * gnulib-tool: New options --vc-files, --no-vc-files.
44270         (func_usage): Document them.
44271         (vc_files): New variable.
44272         (func_import): Consider vc_files.
44273         (func_create_testdir): Set vc_files to empty.
44274         Suggested by Jim Meyering and Karl Berry.
44275
44276 2008-03-23  Bruno Haible  <bruno@clisp.org>
44277
44278         Fix regex compilation error on HP-UX 11.
44279         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44280         * modules/regex (Files): Add m4/mbstate_t.m4.
44281         Reported by Ton Voon <ton.voon@altinity.com>.
44282
44283 2008-03-23  Bruno Haible  <bruno@clisp.org>
44284
44285         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44286
44287 2008-03-23  Eric Blake  <ebb9@byu.net>
44288             Bruno Haible  <bruno@clisp.org>
44289
44290         Install files from top/ in the destination directory.
44291         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44292         augmentation also for the files from top/.
44293         (func_import, func_create_testdir): Rewrite file names:
44294         top/filename -> filename.
44295
44296 2008-03-23  Bruno Haible  <bruno@clisp.org>
44297
44298         Tweak "gnulib --version" output.
44299         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44300
44301 2008-03-23  Bruno Haible  <bruno@clisp.org>
44302
44303         Tweak "gnulib --version" output.
44304         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44305         rather than contents of ChangeLog, when possible.
44306
44307 2008-03-21  Eric Blake  <ebb9@byu.net>
44308
44309         More --version tweaks.
44310         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44311         date of last ChangeLog entry.
44312
44313 2008-03-21  Jim Meyering  <meyering@redhat.com>
44314
44315         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44316
44317 2008-03-20  Eric Blake  <ebb9@byu.net>
44318
44319         VPATH fix.
44320         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44321
44322 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44323
44324         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44325         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44326
44327 2008-03-20  Eric Blake  <ebb9@byu.net>
44328
44329         Sync GNUmakefile with coreutils.
44330         * build-aux/GNUmakefile (have-Makefile): Rename...
44331         (_have-Makefile): ...to this, for namespace consideration.
44332         (GNUmakefile.cfg): Include, if present.
44333         (_autoreconf): Define a default.
44334         (_is-dist-target): New rule for rebuilds to pick up intra-release
44335         version.
44336         (maint-cfg.mk): Rename...
44337         (cfg.mk): ...to this.
44338
44339 2008-03-18  Jim Meyering  <meyering@redhat.com>
44340
44341         New script and module: mktempd
44342         * MODULES.html.sh (maint+release support): Add mktempd.
44343         * build-aux/mktempd: New file.
44344         * modules/mktempd: New file.
44345
44346 2008-03-15  Jim Meyering  <meyering@redhat.com>
44347
44348         Undo last change.
44349         * lib/sha1.c, lib/md5.c: 63 != ~63.
44350         Reported by Andreas Schwab.
44351
44352         sha1.c, md5.c: Hoist a redundant expression.
44353         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44354         "ctx->buflen" only once, before calling *_process_block.
44355         * lib/md5.c (md5_process_bytes): Likewise.
44356
44357 2008-03-14  Eric Blake  <ebb9@byu.net>
44358
44359         Bump copyright year in files generated by gnulib-tool.
44360         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44361         gnulib-tool, rather than hard-coding it.
44362
44363         Fix 'gnulib-tool --version' output to work with git.
44364         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44365         (startup): ...here.
44366         (func_version): Use it to invoke git-version-gen, rather than
44367         relying on CVS keyword expansion.  Modernize wording.
44368         (cvsdatestamp, last_checkin_date, version): Kill unused
44369         variables.
44370
44371 2008-03-12  Jim Meyering  <meyering@redhat.com>
44372
44373         Recognize optional cast of the argument to free.
44374         * build-aux/useless-if-before-free: Update regexps.
44375
44376         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44377
44378 2008-03-11  Bruno Haible  <bruno@clisp.org>
44379
44380         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44381         by a single package.
44382         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44383         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44384         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44385         Reported by Sam Steingold <sds@gnu.org>.
44386
44387 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44388
44389         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44390         repositories.
44391
44392 2008-03-11  Bruno Haible  <bruno@clisp.org>
44393
44394         Avoid conflicts between local macro definitions.
44395         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44396         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44397
44398 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44399             Bruno Haible  <bruno@clisp.org>
44400
44401         Make va_copy work with some version of xlc on AIX 5.1.
44402         * lib/stdarg.in.h: New file.
44403         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44404         On AIX, use a <stdarg.h> file substitute.
44405         * modules/stdarg (Files): Add lib/stdarg.in.h.
44406         (Depends-on): Add include_next.
44407         (Makefile.am): Build a stdarg.h substitute if requested.
44408         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44409
44410 2008-03-10  Bruno Haible  <bruno@clisp.org>
44411
44412         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44413         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44414         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44415
44416 2008-03-10  Bruno Haible  <bruno@clisp.org>
44417
44418         * modules/stdlib (Depends-on): Add include_next, remove
44419         absolute-header.
44420
44421 2008-03-09  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/freadahead.h (freadahead): Document more precisely.
44424         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44425         the sum of both buffer sizes.
44426         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44427         * NEWS: Document the change.
44428
44429 2008-03-09  Bruno Haible  <bruno@clisp.org>
44430
44431         Extend freadptr to return also the buffer size.
44432         * lib/freadptr.h (freadptr): Add sizep argument.
44433         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44434         (freadptr): Add sizep argument. Determine buffer size like freadahead
44435         does.
44436         * tests/test-freadptr.c: Don't include freadahead.h.
44437         (main): Adapt for new calling convention of freadptr.
44438         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44439         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44440         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44441         tests/test-freadptr2.sh.
44442         (Depends): Remove freadahead.
44443         (TESTS): Add test-freadptr2.sh.
44444         (check_PROGRAMS): Add test-freadptr2.
44445
44446 2008-03-09  Bruno Haible  <bruno@clisp.org>
44447
44448         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44449         Report and solution by Simon Josefsson.
44450
44451 2008-03-06  Bruno Haible  <bruno@clisp.org>
44452
44453         Make fflush after ungetc work on BSD platforms.
44454         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44455         * tests/test-fflush2.c: New file.
44456         * tests/test-fflush2.sh: New file.
44457         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44458         tests/test-fflush2.c.
44459         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44460         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44461
44462 2008-03-06  Eric Blake  <ebb9@byu.net>
44463
44464         Likewise for ftello.
44465         * modules/ftello (Dependencies): Add extensions.
44466         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44467
44468 2008-03-06  Bruno Haible  <bruno@clisp.org>
44469
44470         * modules/fseeko (Dependencies): Add extensions.
44471         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44472         Needed on glibc systems.
44473
44474 2008-03-06  Bruno Haible  <bruno@clisp.org>
44475
44476         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44477         email address.
44478         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44479
44480 2008-03-06  Bruno Haible  <bruno@clisp.org>
44481
44482         * users.txt: Add libgnupdf.
44483
44484 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44485
44486         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44487         (Header File Substitutes, Function Substitutes,
44488         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44489         (Build robot for gnulib): Fix typo.
44490
44491 2008-03-06  Bruno Haible  <bruno@clisp.org>
44492
44493         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44494         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44495
44496 2008-03-06  Bruno Haible  <bruno@clisp.org>
44497
44498         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44499         * doc/gnulib.texi: Include it.
44500
44501 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44502
44503         * modules/func (License): Change license to unlimited; there was
44504         no LGPL parts in the module anyway.
44505
44506 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44507
44508         * modules/__func__: Renamed to modules/func.
44509         * modules/__func__-tests: Renamed to modules/func-tests.
44510         * tests/test-__func__.c: Renamed to tests/test-func.c.
44511         * m4/__func__.m4: Renamed to m4/func.m4.
44512         * doc/gnulib.texi (__func__): Section renamed to func.
44513         Suggested by Eric Blake <ebb9@byu.net>.
44514
44515 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44516
44517         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44518         about __func__.  Make example self-contained.  Suggested by Eric
44519         Blake <ebb9@byu.net>.
44520
44521         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44522         Suggested by Eric Blake <ebb9@byu.net>.
44523
44524 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44525
44526         * modules/__func__: New file.
44527         * modules/__func__-tests: New file.
44528         * tests/test-__func__.c: New file.
44529         * m4/__func__.m4: New file.
44530         * doc/gnulib.texi (__func__): Document __func__ module.
44531
44532 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44533
44534         * modules/byteswap (License): Re-license as LGPLv2+.
44535
44536 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44537
44538         * doc/Makefile: Add pdf target.
44539
44540 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44541
44542         * modules/inline (License): Use 'unlimited', since there are only
44543         *.m4 files in this module.
44544
44545 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44546             Bruno Haible  <bruno@clisp.org>
44547
44548         Add support for HP C 7.1 on OpenVMS 8.3.
44549         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44550
44551 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44552
44553         Update VMS specifics.
44554         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44555
44556 2008-03-02  Jim Meyering  <meyering@redhat.com>
44557
44558         Remove the last dependency on the "free" module.
44559         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44560         Reported by Bob Proulx.
44561
44562         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44563
44564         Remove useless "if" tests before free.  Deprecate "free" module.
44565         * doc/posix-functions/free.texi: Mention that this
44566         module is no longer useful.
44567         * modules/free (Notice): Say this module is obsolete.
44568         * modules/readutmp (Depends-on): Remove free.
44569         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44570         * lib/putenv.c (putenv): Likewise.
44571         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44572         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44573         * tests/test-c-strcasestr.c (main): Likewise.
44574         * tests/test-c-strstr.c (main): Likewise.
44575         * tests/test-mbscasestr1.c (main): Likewise.
44576         * tests/test-mbscasestr2.c (main): Likewise.
44577         * tests/test-mbsstr1.c (main): Likewise.
44578         * tests/test-mbsstr2.c (main): Likewise.
44579         * tests/test-memmem.c (main): Likewise.
44580         * tests/test-strcasestr.c (main): Likewise.
44581         * tests/test-striconv.c (main): Likewise.
44582         * tests/test-striconveh.c (main): Likewise.
44583         * tests/test-striconveha.c (main): Likewise.
44584         * tests/test-strstr.c (main): Likewise.
44585
44586         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44587
44588         bootstrap: sync from coreutils again
44589         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44590
44591 2008-03-01  Jim Meyering  <meyering@redhat.com>
44592
44593         bootstrap: sync from coreutils
44594         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44595         also when the target doesn't exist.
44596
44597 2008-03-01  Eric Blake  <ebb9@byu.net>
44598
44599         Fix bugs in last patch.
44600         * lib/memchr2.c (memchr2): Fix typo.
44601         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44602         extension.
44603         Reported by Bruce Korb.
44604
44605         New module 'memchr2'.
44606         * modules/memchr2: New file.
44607         * modules/memchr2-tests: Likewise.
44608         * lib/memchr2.h: Likewise.
44609         * lib/memchr2.c: Likewise, based on memchr.c.
44610         * tests/test-memchr2.c: New test.
44611         * MODULES.html.sh (String handling): Add memchr2.
44612
44613 2008-02-29  Bruno Haible  <bruno@clisp.org>
44614
44615         * modules/freadseek-tests: New file.
44616         * tests/test-freadseek.sh: New file.
44617         * tests/test-freadseek.c: New file.
44618
44619         New module 'freadseek'.
44620         * modules/freadseek: New file.
44621         * lib/freadseek.h: New file.
44622         * lib/freadseek.c: New file.
44623         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44624
44625 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44626
44627         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44628         wydawca.
44629
44630         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44631         program_invocation_name and program_invocation_short_name are
44632         present.
44633
44634 2008-02-28  Bruno Haible  <bruno@clisp.org>
44635
44636         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44637         * tests/test-freadptr.sh: Also test non-seekable stdin.
44638
44639 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44640
44641         * build-aux/bootstrap (source_base, m4_base)
44642         (doc_base, tests_base): New variables.
44643         (gnulib_tool_options): Do not hardcode base directories, use
44644         the above variables instead.
44645
44646 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44647
44648         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44649
44650 2008-02-28  Bruno Haible  <bruno@clisp.org>
44651
44652         * modules/freadptr-tests: New file.
44653         * tests/test-freadptr.sh: New file.
44654         * tests/test-freadptr.c: New file.
44655
44656         New module 'freadptr'.
44657         * modules/freadptr: New file.
44658         * lib/freadptr.h: New file.
44659         * lib/freadptr.c: New file.
44660         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44661
44662 2008-02-26  Karl Berry  <karl@freefriends.org>
44663
44664         Sync from Libtool:
44665         * libltdl/argz.c (argz_add, argz_count): New functions.
44666         * libltdl/argz.in.h: Declare them.
44667         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44668
44669 2008-02-22  Bruno Haible  <bruno@clisp.org>
44670
44671         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44672         is a pointer type.  Needed for HP-UX 10.
44673         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44674         * doc/posix-functions/gmtime_r.texi: Likewise.
44675         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44676
44677 2008-02-24  Bruno Haible  <bruno@clisp.org>
44678
44679         * modules/environ-tests: New file.
44680         * tests/test-environ.c: New file.
44681
44682         New module 'environ'.
44683         * modules/environ: New file.
44684         * lib/unistd.in.h (environ): New declaration.
44685         * m4/environ.m4: New file.
44686         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44687         after use.
44688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44689         HAVE_DECL_ENVIRON.
44690         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44691         HAVE_DECL_ENVIRON.
44692         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44693         wrong claim that 'environ' is missing on some systems.
44694         * modules/execute (Depends-on): Add environ.
44695         * lib/execute.c (environ): Remove fallback declaration.
44696         * modules/pipe (Depends-on): Add environ.
44697         * lib/pipe.c (environ): Remove fallback declaration.
44698         * modules/setenv (Depends-on): Add environ.
44699         * lib/setenv.c (environ): Remove fallback declaration.
44700         * modules/unsetenv (Depends-on): Add environ.
44701         * lib/unsetenv.c (environ): Remove fallback declaration.
44702         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44703         m4/environ.m4.
44704         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44705         (gl_PREREQ_UNSETENV): Likewise.
44706
44707 2008-02-24  Bruno Haible  <bruno@clisp.org>
44708
44709         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44710
44711 2008-02-20  Bob Proulx  <bob@proulx.com>
44712
44713         Enable use of older two part flavor 'git describe'.
44714         * build-aux/git-version-gen: If using the older two part flavor of
44715         git version then recreate the third part now present in the
44716         newer three part flavor of git describe.
44717
44718 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44719
44720         * lib/fts.c (fts_build): Typo correction to comment.
44721
44722 2008-02-17  Bruno Haible  <bruno@clisp.org>
44723
44724         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44725         generating no-op conflicts.
44726
44727 2008-02-17  Bruno Haible  <bruno@clisp.org>
44728
44729         Speed up by 10%.
44730         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44731         result_entries, rather than an index-based loop.
44732
44733 2008-02-17  Bruno Haible  <bruno@clisp.org>
44734
44735         Speed up by 25%.
44736         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44737         'hashcode_cached'.
44738         (entry_create): New function.
44739         (entry_hashcode): Use the cached hashcode if possible.
44740         (read_changelog_file, try_split_merged_entry): Use entry_create.
44741
44742 2008-02-17  Bruno Haible  <bruno@clisp.org>
44743
44744         Speed up from O(n^2) to O(n) for long ChangeLog files.
44745         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44746         (read_changelog_file): Change implementation of entries_reversed list
44747         to rbtreehash.
44748         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44749
44750 2008-02-17  Bruno Haible  <bruno@clisp.org>
44751
44752         New option --split-merged-entry.
44753         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44754         (find_paragraph_end, try_split_merged_entry): New functions.
44755         (long_options): Add option --split-merged-entry.
44756         (usage): Document option --split-merged-entry.
44757         (main): Implement option --split-merged-entry.
44758         Reported by Eric Blake.
44759
44760 2008-02-17  Bruno Haible  <bruno@clisp.org>
44761
44762         * lib/git-merge-changelog.c: Include c-strstr.h.
44763         (main): Support the "git pull --rebase" situation.
44764         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44765         Reported by Eric Blake.
44766
44767 2008-02-16  Eric Blake  <ebb9@byu.net>
44768
44769         Avoid doubling \ in common case of "c-maybe" quoting style.
44770         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44771         eliding outer quotes.
44772         * lib/quotearg.h: Document this.
44773         * tests/test-quotearg.c (result_strings, inputs, results_g)
44774         (flag_results, locale_results): Test it by adding a new string to
44775         each test group.
44776         (compare_strings): Test new string.
44777
44778 2008-02-13  Eric Blake  <ebb9@byu.net>
44779
44780         Avoid trigraph quoting in default output.
44781         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44782         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44783         unless explicitly requested.
44784         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44785
44786 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44787
44788         Don't rely on signed integer overflowing to negative value.
44789         * lib/getugroups.c (getugroups): Include <limits.h>.
44790         Instead, compare against INT_MAX, and increment only if the test passes.
44791
44792 2008-02-13  Jim Meyering  <meyering@redhat.com>
44793         and Eric Blake  <ebb9@byu.net>
44794
44795         Avoid shadowing warning and compile errors on Linux.
44796         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44797         forwarding macros on Linux.
44798         (dcgettext): Define a stub, for Linux.
44799         (results_g, main): Avoid warnings.
44800
44801 2008-02-12  Eric Blake  <ebb9@byu.net>
44802
44803         Silence warning in last patch.
44804         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44805
44806         Quotearg part 4: add tests, fix c-maybe colon quoting.
44807         * lib/quotearg.h: Improve documentation.
44808         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44809         escapes when adding outer quotes.  When quoting trigraphs, use
44810         valid C notation.  When quoting NUL, omit extra characters if next
44811         character is not digit.  Alter prototype.
44812         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44813         callers.
44814         * modules/quotearg-tests: New module.
44815         * tests/test-quotearg.c: New test.
44816
44817 2008-02-07  Eric Blake  <ebb9@byu.net>
44818
44819         Quotearg part 3: add flag to control outer quote elision.
44820         * lib/quotearg.h (c_maybe_quoting_style): New style.
44821         (enum quoting_flags): Better documentation of flags.
44822         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44823         c-maybe style.
44824         (quotearg_buffer_restyled): Handle new flag to elide outer
44825         quotes.
44826
44827         Quotearg part 2: add flag that can control NUL elision.
44828         * lib/quotearg.h (set_quoting_flags): New prototype.
44829         * lib/quotearg.c (struct quoting_options): Add flag field.
44830         (set_quoting_flags): New function.
44831         (quotearg_buffer_restyled): Add flags parameter.
44832         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44833         (quotearg_n_options): Set the flag, since length cannot be
44834         returned.
44835         (quoting_options_from_style): Default flags correctly.
44836
44837         Quotearg part 1: more wrappers, restore quotearg_char state.
44838         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44839         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44840         (quotearg_colon_mem): New wrappers.
44841         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44842         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44843         functions.
44844         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44845         (quotearg_colon_mem): New functions.
44846
44847 2008-02-11  Bruno Haible  <bruno@clisp.org>
44848
44849         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44850         library in the current directory: it does not work with parallel make.
44851         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44852
44853 2008-02-11  Bruno Haible  <bruno@clisp.org>
44854
44855         * .gitattributes: New file.
44856
44857 2008-02-11  Jim Meyering  <meyering@redhat.com>
44858
44859         useless-if-before-free: Fix reversed exit values.
44860         * build-aux/useless-if-before-free: Use correct values
44861         for EXIT_MATCH and EXIT_NO_MATCH.
44862
44863         * build-aux/useless-if-before-free: Close stdout carefully.
44864
44865 2008-02-10  Bruno Haible  <bruno@clisp.org>
44866
44867         New module 'git-merge-changelog'.
44868         * modules/git-merge-changelog: New file.
44869         * lib/git-merge-changelog.c: New file.
44870
44871 2008-02-10  Jim Meyering  <meyering@redhat.com>
44872
44873         useless-if-before-free: New option: --list (-l).
44874
44875         useless-if-before-free: Don't exit immediately upon open failure.
44876         * build-aux/useless-if-before-free: Exit 2 for errors.
44877         Upon failure to open a file, don't exit immediately.
44878         Rather, just warn and continue with any remaining files.
44879
44880 2008-02-10  Bruno Haible  <bruno@clisp.org>
44881
44882         New abstract list operation 'node_set_value'.
44883         * lib/gl_list.h (gl_list_node_set_value): New function.
44884         (struct gl_list_implementation): New field node_set_value.
44885         * lib/gl_list.c (gl_list_node_set_value): New function.
44886         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44887         (gl_array_list_implementation): Update.
44888         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44889         (gl_carray_list_implementation): Update.
44890         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44891         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44892         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44893         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44894         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44895         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44896         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44897         Update.
44898         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44899         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44900         (gl_sublist_list_implementation): Update.
44901
44902 2008-02-10  Bruno Haible  <bruno@clisp.org>
44903
44904         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44905         Needed when ELEMENT is #defined to 'some_type *'.
44906
44907 2008-02-10  Jim Meyering  <meyering@redhat.com>
44908
44909         New script and module: useless-if-before-free
44910         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44911         * build-aux/useless-if-before-free: New file.
44912         * modules/useless-if-before-free: New file.
44913
44914         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44915
44916         xstrtol_error: Fix typo.
44917         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44918         s/exit_failure/exit_status/.
44919
44920 2008-02-09  Jim Meyering  <meyering@redhat.com>
44921
44922         New script and module: gitlog-to-changelog
44923         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44924         * modules/gitlog-to-changelog: New file.
44925         * build-aux/gitlog-to-changelog: New file.
44926
44927 2008-02-08  Jim Meyering  <meyering@redhat.com>
44928
44929         Avoid two "parameter unused" warnings.
44930         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44931         Mark "st" as used.
44932
44933         Use "git COMMAND", not "git-COMMAND".
44934         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44935         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44936         * build-aux/git-version-gen: Use "git status", not "git-status".
44937
44938 2008-02-07  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44941         Avoids a crash on Windows Vista.
44942         Reported by Adam Strzelecki <ono@java.pl> via
44943         Simon Josefsson <simon@josefsson.org>.
44944
44945 2008-02-06  Bruno Haible  <bruno@clisp.org>
44946
44947         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44948         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44949         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44951         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44952         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44953         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44954         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44955         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44956         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44957         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44961         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44962         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44963         left-adjust flag.
44964         * tests/test-snprintf-posix.h (test_function): Likewise.
44965         * tests/test-sprintf-posix.h (test_function): Likewise.
44966         * tests/test-vasprintf-posix.c (test_function): Likewise.
44967         * doc/posix-functions/fprintf.texi: Update.
44968         * doc/posix-functions/printf.texi: Update.
44969         * doc/posix-functions/snprintf.texi: Update.
44970         * doc/posix-functions/sprintf.texi: Update.
44971         * doc/posix-functions/vfprintf.texi: Update.
44972         * doc/posix-functions/vprintf.texi: Update.
44973         * doc/posix-functions/vsnprintf.texi: Update.
44974         * doc/posix-functions/vsprintf.texi: Update.
44975         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44976
44977 2008-02-06  Bruno Haible  <bruno@clisp.org>
44978
44979         Fix bug introduced on 2008-01-26.
44980         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44981
44982 2008-02-06  Bruno Haible  <bruno@clisp.org>
44983
44984         Fix bug introduced on 2007-06-10.
44985         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44986         !NEED_PRINTF_FLAG_ZERO.
44987
44988 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44989
44990         getloadavg: use libperfstat on AIX5
44991         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44992
44993 2008-02-03  Bruno Haible  <bruno@clisp.org>
44994
44995         * lib/diffseq.h: Add comments about required #includes.
44996         Reported by Michael Biggs <gnulib@doubleplum.net>.
44997
44998 2008-02-01  Bruno Haible  <bruno@clisp.org>
44999
45000         * users.txt: Add gnuit.
45001
45002 2008-01-31  Bruno Haible  <bruno@clisp.org>
45003
45004         * lib/md4.c (set_uint32): Mark as inline.
45005         * lib/md5.c (set_uint32): Likewise.
45006         * lib/sha1.c (set_uint32): Likewise.
45007         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45008         * m4/md5.m4 (gl_MD5): Likewise.
45009         * m4/sha1.m4 (gl_SHA1): Likewise.
45010
45011 2008-01-31  Jim Meyering  <meyering@redhat.com>
45012
45013         Use "sizeof VAR", rather than a literal "4".
45014         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45015         * lib/md4.c (md4_read_ctx): Likewise.
45016         * lib/sha1.c (sha1_read_ctx): Likewise.
45017
45018 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45019
45020         * tests/test-sha1.c: New file, based on test-md5.c.
45021
45022         * modules/crypto/sha1-tests: New file.
45023
45024 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45025
45026         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45027
45028 2008-01-31  Jim Meyering  <meyering@redhat.com>
45029
45030         Prefer "sizeof v" over the equivalent "4".
45031         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45032         * lib/md5.c (set_uint32): Likewise.
45033         * lib/sha1.c (set_uint32): Likewise.
45034
45035 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45036
45037         * lib/sha1.c (set_uint32): Mark function as static.
45038
45039 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45040
45041         md2: clarify comments to say that alignment is not required.
45042         * lib/md2.h: Remove warning about alignment in comment.
45043         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45044         never been required.
45045
45046 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45047
45048         md4: adapt alignment constraint fix from sha1.
45049         * lib/md4.c (set_uint32): New function, from sha1.c
45050         (md4_read_ctx): Use it.
45051         (md4_finish_ctx): Doc fix.
45052         * lib/md4.h: Doc fix.
45053
45054 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45055
45056         md5: adapt alignment constraint fix from sha1.
45057         * lib/md5.c (set_uint32): New function, from sha1.c
45058         (md5_read_ctx): Use it.
45059         (md5_finish_ctx): Doc fix.
45060         * lib/md5.h: Doc fix.
45061
45062 2008-01-30  Peter Palfrader  <weasel@debian.org>
45063
45064         sha1: remove the result buffer alignment constraint
45065         * lib/sha1.c (set_uint32): New function.
45066         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45067         constraint.
45068         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45069         * lib/sha1.h: Likewise.
45070
45071 2008-01-30  Andreas Schwab  <schwab@suse.de>
45072             Bruno Haible  <bruno@clisp.org>
45073
45074         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45075         correct definition of LDBL_MIN_EXP.
45076
45077 2008-01-30  Karl Berry  <karl@gnu.org>
45078
45079         * config/srclist-update: try to preserve x bit on updates.
45080         * config/srclistvars.sh: update for karl.
45081
45082 2008-01-29  Jim Meyering  <meyering@redhat.com>
45083
45084         vasnprintf.c: Avoid warning about unused label
45085         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45086         "overflow" label definition and associated code with the
45087         same cpp condition that guards the sole use of that label.
45088
45089 2008-01-26  Bruno Haible  <bruno@clisp.org>
45090
45091         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45092         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45093         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45094         * lib/isnanl-nolibm.h (isnanl): Likewise.
45095         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45096
45097 2008-01-26  Bruno Haible  <bruno@clisp.org>
45098
45099         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45100         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45101
45102 2008-01-26  Bruno Haible  <bruno@clisp.org>
45103
45104         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45105         GCC >= 4.0 built-in.
45106         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45107
45108 2008-01-26  Bruno Haible  <bruno@clisp.org>
45109
45110         Rename isnan, applicable to 'double' only, to isnand.
45111         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45112         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45113         (configure.ac): Update.
45114         (Include): Replace "isnan.h" with "isnand.h".
45115         * m4/isnand.m4: Renamed from m4/isnan.m4.
45116         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45117         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45118         instead of isnan.c.
45119         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45120         instead of HAVE_ISNAN_IN_LIBC.
45121         (isnand): Renamed from isnan.
45122         * lib/isnand.c: New file.
45123         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45124         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45125         (Makefile.am): Update.
45126         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45127         Include isnand.h instead of isnan.h.
45128         (main): Test isnand instead of isnan.
45129         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45130         isnan-nolibm.
45131         * modules/frexp (Depends-on): Likewise.
45132         * modules/frexp-tests (Depends-on): Likewise.
45133         * modules/frexp-nolibm (Depends-on): Likewise.
45134         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45135         * modules/isfinite (Depends-on): Likewise.
45136         * modules/round-tests (Depends-on): Likewise.
45137         * modules/signbit (Depends-on): Likewise.
45138         * modules/signbit-tests (Depends-on): Likewise.
45139         * modules/snprintf-posix (Depends-on): Likewise.
45140         * modules/sprintf-posix (Depends-on): Likewise.
45141         * modules/trunc-tests (Depends-on): Likewise.
45142         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45143         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45144         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45145         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45146         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45147         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45148         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45149         * modules/vasnprintf-posix (Depends-on): Likewise.
45150         * modules/vasprintf-posix (Depends-on): Likewise.
45151         * modules/vfprintf-posix (Depends-on): Likewise.
45152         * modules/vsnprintf-posix (Depends-on): Likewise.
45153         * modules/vsprintf-posix (Depends-on): Likewise.
45154         * lib/frexp.c: Include isnand.h instead of isnan.h.
45155         (ISNAN): Set to isnand instead of isnan.
45156         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45157         (gl_isfinited): Use isnand instead of isnan.
45158         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45159         (gl_signbitd): Use isnand instead of isnan.
45160         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45161         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45162         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45163         (main): Use isnand instead of isnan.
45164         * tests/test-round1.c: Include isnand.h.
45165         (main): Use isnand instead of isnan.
45166         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45167         (ISNAN): Set to isnand instead of isnan.
45168         * tests/test-trunc1.c: Include isnand.h.
45169         (main): Use isnand instead of isnan.
45170         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45171         (equal): Use isnand instead of isnan.
45172         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45173         isnand-nolibm.
45174         * NEWS: Mention the change.
45175
45176 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45177             Bruno Haible  <bruno@clisp.org>
45178
45179         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45180         the GCC builtins for signbits are present and set
45181         REPLACE_SIGNBIT_USING_GCC if so.
45182         * lib/math.in.h (signbit): Define using GCC builtins if
45183         REPLACE_SIGNBIT_USING_GCC is set.
45184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45185         REPLACE_SIGNBIT_USING_GCC.
45186         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45187
45188 2008-01-25  Jim Meyering  <meyering@redhat.com>
45189
45190         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45191         * lib/poll.c: Include <config.h>, not "config.h".
45192         * tests/test-getaddrinfo.c: Likewise.
45193
45194 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45195
45196         * modules/sockets-tests: New file.
45197
45198 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45199
45200         * modules/sockets: New module, can be used to call WSA_Startup and
45201         WSA_Cleanup when needed.
45202
45203         * lib/sockets.h, lib/sockets.c: New files.
45204
45205         * m4/sockets.m4: New file.
45206
45207         * tests/test-sockets.c: New file.
45208
45209 2008-01-19  Bruno Haible  <bruno@clisp.org>
45210
45211         * doc/posix-headers: Renamed from doc/headers.
45212         * doc/posix-functions: Renamed from doc/functions.
45213         * doc/gnulib.texi: Update.
45214
45215 2008-01-19  Bruno Haible  <bruno@clisp.org>
45216
45217         * doc/glibc-functions/strcasestr.texi: Include contents of
45218         doc/functions/strcasestr.texi, fixing the list of platforms.
45219         * doc/functions/strcasestr.texi: Remove file.
45220
45221 2008-01-19  Bruno Haible  <bruno@clisp.org>
45222
45223         * doc/glibc-functions/memmem.texi: Include contents of
45224         doc/functions/memmem.texi.
45225         * doc/functions/memmem.texi: Remove file.
45226
45227 2008-01-18  Bruno Haible  <bruno@clisp.org>
45228
45229         * doc/glibc-functions/*.texi: New files.
45230         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45231         to use the new files.
45232
45233 2008-01-17  Bruno Haible  <bruno@clisp.org>
45234
45235         * tests/test-gethostname.c (main): Fix printf statement.
45236
45237 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45238
45239         * modules/gethostname-tests: New file.
45240
45241         * tests/test-gethostname.c: New file.
45242
45243 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45244
45245         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45246         used by the UNAME case.  Reported by Bruno Haible
45247         <bruno@clisp.org>.
45248
45249 2008-01-17  Eric Blake  <ebb9@byu.net>
45250
45251         Convert c-strcasestr to be more efficient.
45252         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45253         (Depends-on): Add c-strcase, remove malloca, strnlen.
45254         * tests/test-c-strcasestr.c (main): Enhance test.
45255         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45256
45257 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45258
45259         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45260         Use it in creating po/Makevars.
45261
45262 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45263
45264         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45265         Applications that requires it should initialize libgcrypt
45266         manually.
45267
45268 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45269
45270         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45271
45272 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45273
45274         Fix problem with getdate on mingw32 reported by Simon Josefsson
45275         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45276         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45277         tzname", when deciding whether to declare tzname.
45278         * lib/strftime.c (tzname): Likewise.
45279
45280 2008-01-15  Bruno Haible  <bruno@clisp.org>
45281
45282         Work around a MacOS X 10.5 bug in frexpl().
45283         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45284         * doc/functions/frexpl.texi: Document the bug.
45285         Reported by Elias Pipping <pipping@gentoo.org>.
45286
45287 2008-01-14  Eric Blake  <ebb9@byu.net>
45288
45289         Touch up previous patch.
45290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45291         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45292
45293         Convert strcasestr module to use Two-Way algorithm.
45294         * modules/strcasestr-simple: New module, based on the old
45295         strcasestr, but with Two-Way rather than KMP.
45296         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45297         * lib/string.in.h (rpl_strcasestr): Declare.
45298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45299         performance.
45300         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45301         * modules/string (Makefile.am): Support strcasestr.
45302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45303         * modules/strcasestr-tests (Depends-on): Check for alarm.
45304         * tests/test-strcasestr.c: Augment test.
45305         * lib/str-two-way.h: Clean up stray macro.
45306         * NEWS: Document new module.
45307         * MODULES.html.sh (string handling): Likewise.
45308         * doc/functions/strcasestr.texi: New file.
45309         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45310         here, since it is not a POSIX function.
45311
45312 2008-01-14  Colin Watson  <cjwatson@debian.org>
45313             Bruno Haible  <bruno@clisp.org>
45314
45315         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45316         works fine; if not, set REPLACE_STRSIGNAL.
45317         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45319         REPLACE_STRSIGNAL.
45320         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45321         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45322         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45323
45324 2008-01-14  Bruno Haible  <bruno@clisp.org>
45325
45326         * modules/strsignal (Include): Change to <string.h>.
45327
45328 2008-01-14  Colin Watson  <cjwatson@debian.org>
45329
45330         * modules/argp (Notice): Add a notice recommending to change
45331         XGETTEXT_OPTIONS.
45332         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45333
45334 2008-01-13  Colin Watson  <cjwatson@debian.org>
45335
45336         * modules/strsignal-tests: New file.
45337         * tests/test-strsignal.c: New file.
45338
45339         * lib/strsignal.c: New file, from glibc with modifications.
45340         * lib/siglist.h: New file, from glibc with modifications.
45341         * lib/string.in.h (strsignal): New declaration.
45342         * m4/strsignal.m4: New file.
45343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45344         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45345         * modules/strsignal: New file.
45346         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45347         HAVE_DECL_STRSIGNAL.
45348
45349 2008-01-13  Bruno Haible  <bruno@clisp.org>
45350
45351         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45352         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45353         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45354         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45355
45356 2008-01-13  Bruno Haible  <bruno@clisp.org>
45357
45358         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45359         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45360         * lib/argp.h (__attribute__): Likewise.
45361         * lib/c-stack.c (__attribute__): Likewise.
45362         * lib/error.h (__attribute__): Likewise.
45363         * lib/fts.c (__attribute__): Likewise.
45364         * lib/openat.h (__attribute__): Likewise.
45365         * lib/stdio.in.h (__attribute__): Likewise.
45366         * lib/string.in.h (__attribute__): Likewise.
45367         * lib/utimens.c (__attribute__): Likewise.
45368         * lib/vasnprintf.h (__attribute__): Likewise.
45369         * lib/xalloc.h (__attribute__): Likewise.
45370         * lib/xprintf.h (__attribute__): Likewise.
45371         * lib/xstrtol.h (__attribute__): Likewise.
45372         * lib/xvasprintf.h (__attribute__): Likewise.
45373
45374 2008-01-12  Bruno Haible  <bruno@clisp.org>
45375
45376         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45377         * doc/glibc-headers/a.out.texi: New file.
45378         * doc/glibc-headers/aliases.texi: New file.
45379         * doc/glibc-headers/alloca.texi: New file.
45380         * doc/glibc-headers/ar.texi: New file.
45381         * doc/glibc-headers/argp.texi: New file.
45382         * doc/glibc-headers/argz.texi: New file.
45383         * doc/glibc-headers/byteswap.texi: New file.
45384         * doc/glibc-headers/crypt.texi: New file.
45385         * doc/glibc-headers/endian.texi: New file.
45386         * doc/glibc-headers/envz.texi: New file.
45387         * doc/glibc-headers/err.texi: New file.
45388         * doc/glibc-headers/error.texi: New file.
45389         * doc/glibc-headers/execinfo.texi: New file.
45390         * doc/glibc-headers/fpu_control.texi: New file.
45391         * doc/glibc-headers/fstab.texi: New file.
45392         * doc/glibc-headers/fts.texi: New file.
45393         * doc/glibc-headers/getopt.texi: New file.
45394         * doc/glibc-headers/ieee754.texi: New file.
45395         * doc/glibc-headers/ifaddrs.texi: New file.
45396         * doc/glibc-headers/libintl.texi: New file.
45397         * doc/glibc-headers/mcheck.texi: New file.
45398         * doc/glibc-headers/mntent.texi: New file.
45399         * doc/glibc-headers/obstack.texi: New file.
45400         * doc/glibc-headers/paths.texi: New file.
45401         * doc/glibc-headers/printf.texi: New file.
45402         * doc/glibc-headers/pty.texi: New file.
45403         * doc/glibc-headers/resolv.texi: New file.
45404         * doc/glibc-headers/shadow.texi: New file.
45405         * doc/glibc-headers/sysexits.texi: New file.
45406         * doc/glibc-headers/ttyent.texi: New file.
45407
45408 2008-01-12  Jim Meyering  <meyering@redhat.com>
45409
45410         announce-gen: emit Gnulib's git-based version string.
45411         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45412         New option --gnulib-version=V, where V is expected to be
45413         the output of running git describe in the gnulib directory.
45414         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45415         not useful, and plan to stop publishing an xdelta file with each
45416         coreutils release.
45417
45418         * build-aux/announce-gen: Also check for lzma-compressed files.
45419
45420 2008-01-11  Bruno Haible  <bruno@clisp.org>
45421
45422         * tests/test-memmem.c (main): Increase maximum allowed time.
45423         * tests/test-strstr.c (main): Likewise.
45424
45425 2008-01-11  Bruno Haible  <bruno@clisp.org>
45426
45427         * doc/functions/memmem.texi: Add more precisions about platforms.
45428         * doc/functions/strstr.texi: Likewise.
45429
45430 2008-01-10  Eric Blake  <ebb9@byu.net>
45431
45432         * m4/strstr.m4: Delete cruft from copy-n-paste.
45433         Reported by Bruno Haible.
45434
45435 2008-01-10  Bruno Haible  <bruno@clisp.org>
45436
45437         Make c-strstr rely on strstr.
45438         * lib/c-strstr.c: Don't include str-kmp.h.
45439         (c_strstr): Define in terms of strstr.
45440         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45441         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45442
45443 2008-01-10  Bruno Haible  <bruno@clisp.org>
45444
45445         * doc/gnulib.texi (String Functions in C Locale): New section.
45446         * doc/c-ctype.texi: New file.
45447         * doc/c-strcase.texi: New file.
45448         * doc/c-strcaseeq.texi: New file.
45449         * doc/c-strcasestr.texi: New file.
45450         * doc/c-strstr.texi: New file.
45451         * doc/c-strtod.texi: New file.
45452         * doc/c-strtold.texi: New file.
45453
45454 2008-01-10  Eric Blake  <ebb9@byu.net>
45455
45456         * lib/relocatable.h: Fix a comment.
45457
45458 2008-01-10  Eric Blake  <ebb9@byu.net>
45459
45460         Share two-way algorithm.
45461         * lib/str-two-way.h: New file, merged from...
45462         * lib/memmem.c: ...here...
45463         * lib/strstr.c: ...and here.
45464         * modules/memmem (Files): Use it.
45465         * modules/strstr (Files): Likewise.
45466
45467         Avoid quadratic strstr implementations.
45468         * lib/strstr.c: New file.
45469         * m4/strstr.m4: Likewise.
45470         * modules/strstr: Likewise.
45471         * modules/strstr-tests: Likewise.
45472         * tests/test-strstr.c: Likewise.
45473         * lib/string.in.h (rpl_strstr): Declare.
45474         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45476         * modules/string (Makefile.am): Likewise.
45477         * MODULES.html.sh (string handling): Mention new module.
45478         * doc/functions/strstr.texi (strstr): Document the bug.
45479
45480 2008-01-10  Bruno Haible  <bruno@clisp.org>
45481
45482         * lib/relocatable.h (relocate): State whether result is freshly
45483         allocated or not.
45484         * lib/relocatable.c (relocate): Return a freshly allocated string
45485         instead of a pointer to a privately held string.
45486         Reported by Sylvain Beucler <beuc@gnu.org>.
45487
45488 2008-01-10  Colin Watson  <cjwatson@debian.org>
45489
45490         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45491         s/S_ISNLK/S_ISLNK/.
45492
45493 2008-01-09  Bruno Haible  <bruno@clisp.org>
45494
45495         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45496         and other files.
45497         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45498         if it's only a guess.
45499         * modules/memmem: Simplify by depending on memmem-simple.
45500
45501 2008-01-09  Bruno Haible  <bruno@clisp.org>
45502
45503         Work around OpenBSD 4.0 tdelete() bug.
45504         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45505         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45506         macros and don't redefine the enum values.
45507         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45508         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45509         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45510
45511 2008-01-09  Bruno Haible  <bruno@clisp.org>
45512
45513         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45514         (main): Don't perform the tests if setlocale did not install a UTF-8
45515         locale. Needed on OpenBSD 4.0.
45516         * modules/wcwidth-tests (Depends-on): Add localcharset.
45517
45518 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45519
45520         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45521         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45522         * NEWS: announce this.
45523         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45524
45525 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45526         and Eric Blake  <ebb9@byu.net>
45527
45528         Add memmem-simple module.
45529         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45530         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45531         * modules/memmem-simple: New file.
45532         * modules/memmem (Description): Tweak.
45533         * MODULES.html.sh (string handling): Mention new module.
45534         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45535         addressed by memmem-simple.
45536         * NEWS: Document the difference.
45537
45538 2008-01-09  Eric Blake  <ebb9@byu.net>
45539
45540         Give gcc some memmem optimization hints.
45541         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45542         (strcasestr): Declare as pure.
45543         * modules/memmem (Maintainer): Claim my implementation.
45544
45545 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45546
45547         Support AIX 6.1 and higher.
45548         * build-aux/config.libpath: Likewise.
45549         * build-aux/config.rpath: Likewise.
45550
45551 2008-01-08  Jim Meyering  <meyering@redhat.com>
45552             Bruno Haible  <bruno@clisp.org>
45553
45554         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45555         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45556         Reported by Peter Fales in
45557         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45558
45559 2008-01-08  Bruno Haible  <bruno@clisp.org>
45560
45561         * modules/unictype/category-of (Depends-on): Add
45562         unictype/category-none.
45563         * modules/unictype/category-and-tests (Depends-on): Add
45564         unictype/category-{L,N,Lu,Nd}.
45565         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45566         * modules/unictype/category-or-tests (Depends-on): Add
45567         unictype/category-{L,N}.
45568         * modules/unictype/category-name-tests (Depends-on): Add
45569         unictype/category-{Z,Nl}.
45570         Reported by Simon Josefsson.
45571
45572 2008-01-08  Bruno Haible  <bruno@clisp.org>
45573
45574         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45575         convention better.
45576         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45577         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45578         Reported by Peter Miller <millerp@canb.auug.org.au>.
45579
45580 2008-01-08  Eric Blake  <ebb9@byu.net>
45581
45582         Rewrite memmem to guarantee linear complexity without malloc.
45583         * lib/memmem.c (memmem): Use Two-Way rather than
45584         Knuth-Morris-Pratt, to allow O(1) space usage.
45585         (critical_factorization, two_way_short_needle)
45586         (two_way_long_needle): New functions.
45587         (knuth_morris_pratt): Delete.
45588         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45589         Add stdint.
45590         * tests/test-memmem.c (main): Add tests for periodic needle and
45591         sublinear performance.
45592         * doc/functions/memmem.texi (memmem): Document other deficiencies
45593         in cygwin and older glibc.
45594
45595 2008-01-08  Bruno Haible  <bruno@clisp.org>
45596
45597         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45598         augmentation.
45599
45600 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45601
45602         Add a configure time option: --disable-acl.
45603         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45604         AC_ARG_ENABLE(acl).
45605
45606 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45607
45608         * tests/test-localename.c: Don't include obsolete "setenv.h".
45609
45610         * modules/localename-tests (Depends-on): Need unsetenv.
45611
45612 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45613
45614         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45615
45616 2008-01-06  Colin Watson  <cjwatson@debian.org>
45617
45618         * users.txt: Add man-db.
45619
45620 2008-01-07  Bruno Haible  <bruno@clisp.org>
45621
45622         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45623         previous section name.
45624
45625 2008-01-07  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/progname.c (set_program_name): Don't strip off a leading
45628         "lt-" prefix outside a .libs directory.
45629         Suggested by Paul Eggert.
45630
45631 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45632             Bruno Haible  <bruno@clisp.org>
45633
45634         Improve memory cleanup in 'relocatable' module.
45635         * lib/relocatable.h (compute_curr_prefix): Change return type to
45636         'char *'.
45637         * lib/relocatable.c (compute_curr_prefix): Change return type to
45638         'char *'. Free curr_installdir after use.
45639         (relocate): Free curr_prefix_better after use.
45640         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45641
45642 2008-01-01  Bruno Haible  <bruno@clisp.org>
45643
45644         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45645         failure on older glibc systems.
45646         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45647
45648 2008-01-05  Eric Blake  <ebb9@byu.net>
45649
45650         Avoid quadratic system memmem.
45651         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45652         Reported by Ralf Wildenhues.
45653
45654         Fix memmem test for mingw.
45655         * modules/memmem-tests (configure.ac): Check for alarm.
45656         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45657         it.
45658         * doc/functions/memmem.texi: New file.
45659         * doc/gnulib.texi (Function Substitutes): Add memmem.
45660         Reported by Bruno Haible.
45661
45662 2008-01-04  Bruno Haible  <bruno@clisp.org>
45663
45664         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45665         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45666         gl_HEADER_STRING_H_DEFAULTS.
45667
45668 2008-01-04  Eric Blake  <ebb9@byu.net>
45669
45670         Shorten duration of memmem test.
45671         * tests/test-memmem.c (main): Use alarm to declare failure if test
45672         is taking too long.
45673         Reported by Ralf Wildenhues.
45674
45675 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45676
45677         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45678         string, needed by strerror.
45679
45680 2008-01-03  Colin Watson  <cjwatson@debian.org>
45681             Bruno Haible  <bruno@clisp.org>
45682
45683         * doc/gnulib-tool.texi (Localization): New section.
45684
45685 2008-01-02  Bruno Haible  <bruno@clisp.org>
45686
45687         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45688         variables to 'unsigned char *' type.
45689         Reported by Paul Eggert.
45690
45691 2008-01-02  Jim Meyering  <jim@meyering.net>
45692
45693         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45694
45695 2007-12-31  Jim Meyering  <jim@meyering.net>
45696
45697         Avoid use of private FTS type name.
45698         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45699
45700 2007-12-30  Karl Berry  <karl@gnu.org>
45701
45702         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45703         work around defect in Texinfo and/or the standalone Info browser.
45704
45705 2007-12-30  Bruno Haible  <bruno@clisp.org>
45706
45707         Unify 5 copies of the KMP code.
45708         * lib/str-kmp.h: New file.
45709         * lib/c-strcasestr.c: Include str-kmp.h.
45710         (knuth_morris_pratt): Remove function.
45711         (c_strcasestr): Update.
45712         * lib/c-strstr.c: Include str-kmp.h.
45713         (knuth_morris_pratt): Remove function.
45714         (c_strcasestr): Update.
45715         * lib/mbscasestr.c: Include str-kmp.h.
45716         (knuth_morris_pratt_unibyte): Remove function.
45717         * lib/mbsstr.c: Include str-kmp.h.
45718         (knuth_morris_pratt_unibyte): Remove function.
45719         * lib/strcasestr.c: Include str-kmp.h.
45720         (knuth_morris_pratt): Remove function.
45721         (strcasestr): Update.
45722         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45723         * modules/c-strstr (Files): Likewise.
45724         * modules/mbscasestr (Files): Likewise.
45725         * modules/mbsstr (Files): Likewise.
45726         * modules/strcasestr (Files): Likewise.
45727         Suggested by Paul Eggert.
45728
45729 2007-12-30  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45732         defined.
45733
45734 2007-12-30  Bruno Haible  <bruno@clisp.org>
45735
45736         * lib/xmalloca.h: Include xalloc.h.
45737         (xnmalloca): New macro.
45738
45739 2007-12-30  Bruno Haible  <bruno@clisp.org>
45740
45741         * lib/malloca.h (nmalloca): New macro.
45742         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45743         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45744         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45745         knuth_morris_pratt_multibyte): Likewise.
45746         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45747         knuth_morris_pratt_multibyte): Likewise.
45748         * lib/memmem.c (knuth_morris_pratt): Likewise.
45749         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45750
45751 2007-12-25  Bruno Haible  <bruno@clisp.org>
45752
45753         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45754         * lib/glob.c: Don't include openat.h.
45755         (link_exists2_p): Add back the code that deals with the
45756         !GLOB_ALTDIRFUNC case.
45757         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45758         let it do the filename concatenation.
45759         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45760         * modules/glob (Depends-on): Remove openat.
45761
45762 2007-12-31  Bruno Haible  <bruno@clisp.org>
45763
45764         * modules/dirfd (License): Change to LGPLv2+.
45765         Approved by Jim Meyering.
45766
45767 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45768
45769         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45770         when multiplying M by sizeof (size_t).
45771
45772 2007-12-10  Martin Lambers  <marlam@marlam.de>
45773
45774         Override getpagesize on mingw.
45775         * lib/getpagesize.c: New file.
45776         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45777         * modules/getpagesize (Files): Add lib/getpagesize.c.
45778         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45780         REPLACE_GETPAGESIZE.
45781         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45782
45783 2007-12-25  Bruno Haible  <bruno@clisp.org>
45784
45785         * modules/localcharset (Notice): New field.
45786         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45787         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45788
45789 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45790             Bruno Haible  <bruno@clisp.org>
45791
45792         Avoid using the syntax symbol() in formatted documentation.
45793         * MODULES.html.sh (func_module): When replacing symbol() with a
45794         hyperlink, remove the parentheses. Show an error if some remain.
45795         Recognize and render the '...' syntax.
45796         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45797         Rework. Add paragraph about GCC's inlining.
45798         * doc/alloca.texi: Likewise.
45799         * doc/error.texi: Remove parentheses from symbol reference.
45800         * doc/gnulib-intro.texi: Likewise.
45801         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45802         * modules/fnmatch (Description): Reword to say "the ... function".
45803         * modules/full-read (Description): Likewise.
45804         * modules/full-write (Description): Likewise.
45805         * modules/safe-read (Description): Likewise.
45806         * modules/safe-write (Description): Likewise.
45807         * modules/strchrnul (Description): Likewise.
45808         * modules/trim (Description): Likewise.
45809         * modules/error (Description): Remove parentheses from symbol
45810         references.
45811         * modules/verror (Description): Likewise.
45812         Reported by Karl Berry.
45813
45814 2007-12-25  Bruno Haible  <bruno@clisp.org>
45815
45816         Fixup after 2007-10-16 commit.
45817         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45818
45819 2007-12-24  Bruno Haible  <bruno@clisp.org>
45820
45821         Make --enable-relocatable work with DESTDIR.
45822         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45823         to compute installdir from destprog.
45824         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45825         also set the RELOC_DESTDIR variable.
45826         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45827
45828 2007-12-24  Bruno Haible  <bruno@clisp.org>
45829
45830         Fix link error due to xalloc_die().
45831         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45832         of xreadlink.
45833         * lib/relocwrapper.c: Update comments.
45834         * build-aux/install-reloc: Remove xreadlink.c from file list.
45835         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45836         xreadlink.c.
45837         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45838
45839 2007-12-24  Bruno Haible  <bruno@clisp.org>
45840
45841         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45842         * lib/setenv.h: Remove file.
45843         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45844         lib/setenv.h.
45845         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45846         (Depends-on): Add stdlib.
45847         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45848         gl_FUNC_UNSETENV.
45849         (Include): Replace setenv.h with <stdlib.h>.
45850         * modules/unsetenv: New file.
45851         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45852         * lib/unsetenv.c: Include <stdlib.h> first.
45853         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45854         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45855         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45856         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45857         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45858         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45860         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45861         * doc/functions/unsetenv.texi: Update.
45862         * modules/xsetenv (Depends-on): Add unsetenv.
45863         * modules/getdate (Depends-on): Likewise.
45864         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45865         * lib/xsetenv.c: Don't include setenv.h.
45866         * lib/getdate.y: Likewise.
45867         * lib/relocwrapper.c: Likewise.
45868         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45869         (Depends-on): Add stdlib.
45870         * NEWS: Mention the changes.
45871         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45872
45873 2007-12-23  Bruno Haible  <bruno@clisp.org>
45874
45875         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45876         indentation.
45877
45878 2007-12-23  Bruno Haible  <bruno@clisp.org>
45879
45880         * lib/c-strcasestr.c: Add more comments.
45881         * lib/c-strstr.c: Likewise.
45882         * lib/mbscasestr.c: Likewise.
45883         * lib/mbsstr.c: Likewise.
45884         * lib/strcasestr.c: Likewise.
45885         * lib/memmem.c: Likewise.
45886
45887 2007-12-23  Bruno Haible  <bruno@clisp.org>
45888
45889         * tests/test-memmem.c: Include <string.h> first.
45890
45891 2007-12-22  Bruno Haible  <bruno@clisp.org>
45892
45893         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45894         the contents of $testsbase.
45895         Reported by Ralf Wildenhues.
45896
45897 2007-12-22  Bruno Haible  <bruno@clisp.org>
45898
45899         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45900         two variables local_ldadd_before, local_ldadd_last.
45901
45902 2007-12-20  Eric Blake  <ebb9@byu.net>
45903
45904         Work around circular library issue when cross-compiling.
45905         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45906         that progname.o does not need to pull in rpl_memcmp.
45907
45908 2007-12-19  Eric Blake  <ebb9@byu.net>
45909
45910         Fix memmem to avoid O(n^2) worst-case complexity.
45911         * lib/memmem.c (knuth_morris_pratt): New function.
45912         (memmem): Use it if first few naive iterations fail.
45913         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45914         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45915         * modules/memchr (License): Likewise.
45916         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45917         malloca.
45918         * tests/test-memmem.c: Rewrite, borrowing ideas from
45919         test-mbsstr1.c; the old version wouldn't even compile!
45920         * modules/memmem-tests: New file.
45921         * lib/string.in.h (rpl_memmem): Add declaration.
45922         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45924         REPLACE_MEMMEM.
45925
45926 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45927
45928         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45929         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45930         before any system include files, and undef after them all.  This
45931         should fix a problem on VMS reported by John E. Malmberg in
45932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45933
45934 2007-12-17  Eric Blake  <ebb9@byu.net>
45935
45936         Revert addition of verify, for BSD/OS.
45937         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45938         can't handle large files, for the sake of obsolete platforms.
45939         * modules/fseeko (Depends-on): Remove verify.
45940         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45941         * doc/functions/ftello.texi (ftello): Likewise.
45942         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45943         Reported by Larry Jones.
45944
45945 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45946
45947         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45948         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45949
45950 2007-12-17  Jim Meyering  <meyering@redhat.com>
45951
45952         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45953         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45954         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45955         * modules/getcwd (Depends-on): Add openat.
45956         Reported by Petr Salinger.
45957
45958 2007-12-17  Bruno Haible  <bruno@clisp.org>
45959
45960         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45961         avoid a segmentation fault of the configure test on x86_64 systems.
45962
45963 2007-12-15  Jim Meyering  <meyering@redhat.com>
45964
45965         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45966
45967 2007-12-13  Eric Blake  <ebb9@byu.net>
45968
45969         Another fseek test.
45970         * tests/test-fseek.c (main): Also test ungetc handling.
45971         * tests/test-fseeko.c (main): Likewise.
45972         * modules/fseeko (Depends-on): Add verify.
45973         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45974         large.
45975         Reported by Larry Jones.
45976
45977         Fix fseeko on mingw.
45978         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45979         seek.
45980
45981         Beef up fseek tests.
45982         * tests/test-fseek.c (main): Also test eof handling.
45983         * tests/test-fseeko.c (main): Likewise.
45984         Reported by Larry Jones.
45985
45986 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45987
45988         Fix fseeko on BSD-based platforms.
45989         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45990         successful seek.
45991
45992 2007-12-12  Eric Blake  <ebb9@byu.net>
45993
45994         Allow circular dependency of separate libtests.a
45995         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45996         when use_libtests.
45997
45998 2007-12-11  Eric Blake  <ebb9@byu.net>
45999
46000         Fix bug with -0.0L in previous patch.
46001         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46002         * tests/test-isnan.c (main): Also test on zeroes.
46003         * tests/test-isnanf.c (main): Likewise.
46004         * tests/test-isnanl.h (main): Likewise.
46005
46006         Detect pseudo-denormals on x86 even when cross-compiling.
46007         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46008         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46009         invalid bit patterns that happen to satisfy ==.
46010
46011         Avoid link failures with separate libtests.a.
46012         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46013         last, to satisfy circular dependencies.
46014
46015 2007-12-11  Eric Blake  <ebb9@byu.net>
46016         and Bruno Haible  <bruno@clisp.org>
46017
46018         Fix OpenBSD 4.0 <float.h> handling of long double.
46019         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46020         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46021         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46022
46023 2007-12-11  Jim Meyering  <meyering@redhat.com>
46024
46025         * users.txt: Add libvirt.
46026
46027         Support versions of autoconf prior to 2.59c.
46028         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46029         if it is not already defined.
46030
46031 2007-12-09  Bruno Haible  <bruno@clisp.org>
46032
46033         Let 'gnulib-tool --import' collect sources needed for the tests in
46034         tests/ rather than in lib/.
46035         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46036         argument. If true, add rules to generate libtests.a, and put libtests.a
46037         into $(LDADD). Consider source files in subdirectories and set
46038         uses_subdirs.
46039         (func_emit_initmacro_start, func_emit_initmacro_end,
46040         func_emit_initmacro_done): Pass all arguments explicitly.
46041         (func_import): Determine two module lists main_modules,
46042         testsrelated_modules. Determine use_libtests. Determine two variables
46043         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46044         instead of just sed_transform_lib_file. Determine two variables
46045         main_files and testsrelated_files. Compute 'files' as the union of
46046         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46047         func_add_or_update. In the generated gnulib-comp.m4, collect the
46048         object files for tests/ in different variables than those for lib/.
46049         Substitute LIBTESTS_LIBDEPS.
46050         (func_create_testdir): Combine the uses_subdirs results from
46051         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46052
46053 2007-12-09  Bruno Haible  <bruno@clisp.org>
46054
46055         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46056         the build-aux directory.
46057
46058 2007-12-09  Bruno Haible  <bruno@clisp.org>
46059
46060         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46061         introduced on 2006-09-09.
46062
46063 2007-12-07  Jim Meyering  <meyering@redhat.com>
46064
46065         Let these macros work also with autoconf-2.59.
46066         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46067         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46068         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46069
46070 2007-12-06  Jim Meyering  <meyering@redhat.com>
46071
46072         Avoid a configure-time syntax error in gl_FUNC_ACL.
46073         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46074         function in each branch, before testing the cache variable.
46075
46076 2007-12-04  Eric Blake  <ebb9@byu.net>
46077
46078         Make scripts executable.
46079         * build-aux/config.guess: Add execute permissions.
46080         * build-aux/config.sub: Likewise.
46081         * build-aux/gendocs.sh: Likewise.
46082
46083         Fix frexp on mingw.
46084         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46085         cross-compiling.
46086         * doc/functions/frexp.texi (frexp): Document the bug.
46087
46088         Make cygwin fseeko check more reliable.
46089         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46090         version numbers, rather than unrelated feature check.
46091         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46092         * doc/functions/ftello.texi (ftello): Likewise.
46093         Reported by Bruno Haible.
46094
46095         * m4/strerror.m4: Bump version number.
46096
46097 2007-12-03  Bruno Haible  <bruno@clisp.org>
46098
46099         * doc/functions/mprotect.texi: Mention the mingw problem.
46100
46101 2007-12-03  Eric Blake  <ebb9@byu.net>
46102
46103         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46104         REPLACE_STRERROR is initialized before this macro.
46105
46106 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46107
46108         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46109         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46110         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46111         put -lsec in even for programs other than 'ls'.  This fixes a problem
46112         for gettext reported by Bruno Haible in
46113         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46114         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46115         Add support for Solaris 10.  This isn't efficient, but should get the
46116         job done for now.
46117
46118 2007-12-03  James Youngman  <jay@gnu.org>
46119
46120         * doc/regexprops-generic.texi: change "an close-group" to "a
46121         close-group" and "illegal" to "not allowed".
46122
46123 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46124
46125         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46126         pr_byname.h. Needed for the rare case when the maintainer has done
46127         "make maintainer-clean" in the source directory and then attempts a
46128         build outside the source directory.
46129         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46130         scripts_byname.h.
46131
46132 2007-12-02  Martin Lambers <marlam@marlam.de>
46133             Bruno Haible  <bruno@clisp.org>
46134
46135         * lib/getpagesize.h: Remove file.
46136         * lib/unistd.in.h: Include declaration of getpagesize here.
46137         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46138         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46139         HAVE_SYS_PARAM_H.
46140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46141         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46142         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46143         (Depends-on): Add unistd.
46144         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46145         (Include): Use <unistd.h> instead of getpagesize.h.
46146         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46147         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46148         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46149         gl_GETPAGESIZE invocation, already handled by module dependency.
46150         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46151
46152 2007-12-02  Bruno Haible  <bruno@clisp.org>
46153
46154         * modules/strings-tests: New file.
46155         * tests/test-strings.c: New file.
46156
46157         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46158         * lib/strings.in.h: New file.
46159         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46160         * m4/strings_h.m4: New file.
46161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46162         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46163         * modules/strings: New file.
46164         * modules/string (Makefile.am): Update.
46165         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46166         Reported by Karl Berry.
46167
46168 2007-12-01  Eric Blake  <ebb9@byu.net>
46169
46170         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46171         accomodate fix in cygwin 1.5.25.
46172
46173 2007-12-01  Jim Meyering  <meyering@redhat.com>
46174
46175         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46176         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46177         that would inhibit utf8-optimization of a regexp containing line-
46178         or buffer-anchors, e.g., `^', `$'.
46179
46180 2007-11-30  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46183         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46184         glthread_recursive_lock_init.
46185         * lib/lock.c (glthread_recursive_lock_init)
46186         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46187         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46188
46189 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46190
46191         New function qset_acl, like set_acl but with syscall semantics.
46192         * lib/acl.h (qset_acl): New decl.
46193         * lib/acl.c (qset_acl): New function.
46194         (set_acl): Use new function.  Use more-consistent diagnostics.
46195
46196 2007-11-28  Jim Meyering  <meyering@redhat.com>
46197
46198         * modules/physmem (License): Change from GPL to LGPLv2+.
46199
46200 2007-11-26  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46203         'long double' type has excess precision.
46204         Reported by Jim Meyering in
46205         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46206
46207 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46208
46209         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46210         Sync from <http://gnu.org/licenses>.
46211         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46212         with license text from same location.
46213         * doc/maintain.texi, doc/standards.texi:  Sync from
46214         <http://savannah.gnu.org/projects/gnustandards>.
46215
46216 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46217         and Jim Meyering  <meyering@redhat.com>
46218
46219         Adjust getdate' grammar to accept a slightly more regular language.
46220         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46221         Before, the former was rejected.
46222         * lib/getdate.y (digits_to_date_time): New function, factored
46223         out of ...
46224         (number): ...here.  Just call digits_to_date_time.
46225         (hybrid): New non-terminal to handle an <unsigned number,
46226         signed relative offset> sequence consistently.
46227
46228 2007-11-18  Jim Meyering  <meyering@redhat.com>
46229
46230         Pull my changes from coreutils:
46231         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46232         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46233         use of $gnulib_tool_option_extras, so that it's separated from the
46234         preceding argument.
46235
46236         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46237         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46238         parent destination directories before copying a file into place.
46239
46240 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46241
46242         bootstrap: work also with 4-argument variant of AC_INIT
46243         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46244
46245 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46246
46247         Port test-getaddrinfo to Solaris.
46248         Problem reported by Bruno Haible in
46249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46250         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46251         explanation of setting 'hints'.
46252         Don't reject an implementation merely because it returns EAI_SERVICE.
46253         (EAI_SERVICE): Define to 0 if not defined.
46254
46255 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46256
46257         The license of gnu-make and posix-shell is now "GPLed build tool".
46258         * modules/gnu-make (License): Likewise.
46259         * modules/posix-shell (License): Likewise.
46260
46261         New module posix-shell, for determining a POSIX shell
46262         or perhaps something that is close enough to a POSIX shell.
46263         * m4/posix-shell.m4: New file.
46264         * modules/posix-shell: New file.
46265
46266         * MODULES.html.sh: Mention new module.
46267
46268         New module gnu-make, for determining whether we're using GNU Make.
46269         * m4/gnu-make.m4: New file.
46270         * modules/gnu-make: New file.
46271         * MODULES.html.sh: Mention new module.
46272
46273 2007-11-14  Jim Meyering  <meyering@redhat.com>
46274
46275         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46276         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46277         use this macro to create a function _definition_.
46278         Remove useless "#undef ARGMATCH_DIE".
46279
46280 2007-11-14  Bruno Haible  <bruno@clisp.org>
46281
46282         * lib/config.charset: Update for OpenBSD 4.1.
46283         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46284
46285 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46286
46287         Document 64-bit #if problems in stdint.texi.
46288         * doc/headers/stdint.texi (stdint.h): Mention problems with
46289         64-bit-#if, and how to work around them.
46290
46291         Don't insist on 'long long int' support in the preprocessor.  It
46292         breaks too many things.  For example, PRIdMAX still uses a 'long
46293         long int' format with the latest Sun compiler, even though
46294         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46295         preprocessor problem.  This causes the latest coreutils to dump
46296         core on Solaris 10 sparc with the Sun C compiler.
46297         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46298         the troublesome expressions at configure-time, not at #if-time.
46299         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46300         preprocessor.
46301         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46302         compile-time C checks, done at 'configure'-time.
46303         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46304         * modules/inttypes (Makefile): Substitute the new symbols that
46305         gl_INTTYPES_H now generates.
46306         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46307
46308 2007-11-12  Bruno Haible  <bruno@clisp.org>
46309
46310         Tests for Unicode character classification functions.
46311
46312         * modules/unictype/bidicategory-byname-tests: New file.
46313         * modules/unictype/bidicategory-name-tests: New file.
46314         * modules/unictype/bidicategory-of-tests: New file.
46315         * modules/unictype/bidicategory-test-tests: New file.
46316         * modules/unictype/block-list-tests: New file.
46317         * modules/unictype/block-of-tests: New file.
46318         * modules/unictype/block-test-tests: New file.
46319         * modules/unictype/category-C-tests: New file.
46320         * modules/unictype/category-Cc-tests: New file.
46321         * modules/unictype/category-Cf-tests: New file.
46322         * modules/unictype/category-Cn-tests: New file.
46323         * modules/unictype/category-Co-tests: New file.
46324         * modules/unictype/category-Cs-tests: New file.
46325         * modules/unictype/category-L-tests: New file.
46326         * modules/unictype/category-Ll-tests: New file.
46327         * modules/unictype/category-Lm-tests: New file.
46328         * modules/unictype/category-Lo-tests: New file.
46329         * modules/unictype/category-Lt-tests: New file.
46330         * modules/unictype/category-Lu-tests: New file.
46331         * modules/unictype/category-M-tests: New file.
46332         * modules/unictype/category-Mc-tests: New file.
46333         * modules/unictype/category-Me-tests: New file.
46334         * modules/unictype/category-Mn-tests: New file.
46335         * modules/unictype/category-N-tests: New file.
46336         * modules/unictype/category-Nd-tests: New file.
46337         * modules/unictype/category-Nl-tests: New file.
46338         * modules/unictype/category-No-tests: New file.
46339         * modules/unictype/category-P-tests: New file.
46340         * modules/unictype/category-Pc-tests: New file.
46341         * modules/unictype/category-Pd-tests: New file.
46342         * modules/unictype/category-Pe-tests: New file.
46343         * modules/unictype/category-Pf-tests: New file.
46344         * modules/unictype/category-Pi-tests: New file.
46345         * modules/unictype/category-Po-tests: New file.
46346         * modules/unictype/category-Ps-tests: New file.
46347         * modules/unictype/category-S-tests: New file.
46348         * modules/unictype/category-Sc-tests: New file.
46349         * modules/unictype/category-Sk-tests: New file.
46350         * modules/unictype/category-Sm-tests: New file.
46351         * modules/unictype/category-So-tests: New file.
46352         * modules/unictype/category-Z-tests: New file.
46353         * modules/unictype/category-Zl-tests: New file.
46354         * modules/unictype/category-Zp-tests: New file.
46355         * modules/unictype/category-Zs-tests: New file.
46356         * modules/unictype/category-and-not-tests: New file.
46357         * modules/unictype/category-and-tests: New file.
46358         * modules/unictype/category-byname-tests: New file.
46359         * modules/unictype/category-name-tests: New file.
46360         * modules/unictype/category-none-tests: New file.
46361         * modules/unictype/category-of-tests: New file.
46362         * modules/unictype/category-or-tests: New file.
46363         * modules/unictype/category-test-withtable-tests: New file.
46364         * modules/unictype/combining-class-tests: New file.
46365         * modules/unictype/ctype-alnum-tests: New file.
46366         * modules/unictype/ctype-alpha-tests: New file.
46367         * modules/unictype/ctype-blank-tests: New file.
46368         * modules/unictype/ctype-cntrl-tests: New file.
46369         * modules/unictype/ctype-digit-tests: New file.
46370         * modules/unictype/ctype-graph-tests: New file.
46371         * modules/unictype/ctype-lower-tests: New file.
46372         * modules/unictype/ctype-print-tests: New file.
46373         * modules/unictype/ctype-punct-tests: New file.
46374         * modules/unictype/ctype-space-tests: New file.
46375         * modules/unictype/ctype-upper-tests: New file.
46376         * modules/unictype/ctype-xdigit-tests: New file.
46377         * modules/unictype/decimal-digit-tests: New file.
46378         * modules/unictype/digit-tests: New file.
46379         * modules/unictype/mirror-tests: New file.
46380         * modules/unictype/numeric-tests: New file.
46381         * modules/unictype/property-alphabetic-tests: New file.
46382         * modules/unictype/property-ascii-hex-digit-tests: New file.
46383         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46384         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46385         * modules/unictype/property-bidi-block-separator-tests: New file.
46386         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46387         * modules/unictype/property-bidi-common-separator-tests: New file.
46388         * modules/unictype/property-bidi-control-tests: New file.
46389         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46390         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46391         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46392         * modules/unictype/property-bidi-european-digit-tests: New file.
46393         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46394         * modules/unictype/property-bidi-left-to-right-tests: New file.
46395         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46396         * modules/unictype/property-bidi-other-neutral-tests: New file.
46397         * modules/unictype/property-bidi-pdf-tests: New file.
46398         * modules/unictype/property-bidi-segment-separator-tests: New file.
46399         * modules/unictype/property-bidi-whitespace-tests: New file.
46400         * modules/unictype/property-byname-tests: New file.
46401         * modules/unictype/property-combining-tests: New file.
46402         * modules/unictype/property-composite-tests: New file.
46403         * modules/unictype/property-currency-symbol-tests: New file.
46404         * modules/unictype/property-dash-tests: New file.
46405         * modules/unictype/property-decimal-digit-tests: New file.
46406         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46407         * modules/unictype/property-deprecated-tests: New file.
46408         * modules/unictype/property-diacritic-tests: New file.
46409         * modules/unictype/property-extender-tests: New file.
46410         * modules/unictype/property-format-control-tests: New file.
46411         * modules/unictype/property-grapheme-base-tests: New file.
46412         * modules/unictype/property-grapheme-extend-tests: New file.
46413         * modules/unictype/property-grapheme-link-tests: New file.
46414         * modules/unictype/property-hex-digit-tests: New file.
46415         * modules/unictype/property-hyphen-tests: New file.
46416         * modules/unictype/property-id-continue-tests: New file.
46417         * modules/unictype/property-id-start-tests: New file.
46418         * modules/unictype/property-ideographic-tests: New file.
46419         * modules/unictype/property-ids-binary-operator-tests: New file.
46420         * modules/unictype/property-ids-trinary-operator-tests: New file.
46421         * modules/unictype/property-ignorable-control-tests: New file.
46422         * modules/unictype/property-iso-control-tests: New file.
46423         * modules/unictype/property-join-control-tests: New file.
46424         * modules/unictype/property-left-of-pair-tests: New file.
46425         * modules/unictype/property-line-separator-tests: New file.
46426         * modules/unictype/property-logical-order-exception-tests: New file.
46427         * modules/unictype/property-lowercase-tests: New file.
46428         * modules/unictype/property-math-tests: New file.
46429         * modules/unictype/property-non-break-tests: New file.
46430         * modules/unictype/property-not-a-character-tests: New file.
46431         * modules/unictype/property-numeric-tests: New file.
46432         * modules/unictype/property-other-alphabetic-tests: New file.
46433         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46434         * modules/unictype/property-other-grapheme-extend-tests: New file.
46435         * modules/unictype/property-other-id-continue-tests: New file.
46436         * modules/unictype/property-other-id-start-tests: New file.
46437         * modules/unictype/property-other-lowercase-tests: New file.
46438         * modules/unictype/property-other-math-tests: New file.
46439         * modules/unictype/property-other-uppercase-tests: New file.
46440         * modules/unictype/property-paired-punctuation-tests: New file.
46441         * modules/unictype/property-paragraph-separator-tests: New file.
46442         * modules/unictype/property-pattern-syntax-tests: New file.
46443         * modules/unictype/property-pattern-white-space-tests: New file.
46444         * modules/unictype/property-private-use-tests: New file.
46445         * modules/unictype/property-punctuation-tests: New file.
46446         * modules/unictype/property-quotation-mark-tests: New file.
46447         * modules/unictype/property-radical-tests: New file.
46448         * modules/unictype/property-sentence-terminal-tests: New file.
46449         * modules/unictype/property-soft-dotted-tests: New file.
46450         * modules/unictype/property-space-tests: New file.
46451         * modules/unictype/property-terminal-punctuation-tests: New file.
46452         * modules/unictype/property-test-tests: New file.
46453         * modules/unictype/property-titlecase-tests: New file.
46454         * modules/unictype/property-unassigned-code-value-tests: New file.
46455         * modules/unictype/property-unified-ideograph-tests: New file.
46456         * modules/unictype/property-uppercase-tests: New file.
46457         * modules/unictype/property-variation-selector-tests: New file.
46458         * modules/unictype/property-white-space-tests: New file.
46459         * modules/unictype/property-xid-continue-tests: New file.
46460         * modules/unictype/property-xid-start-tests: New file.
46461         * modules/unictype/property-zero-width-tests: New file.
46462         * modules/unictype/scripts-tests: New file.
46463         * modules/unictype/syntax-c-ident-tests: New file.
46464         * modules/unictype/syntax-c-whitespace-tests: New file.
46465         * modules/unictype/syntax-java-ident-tests: New file.
46466         * modules/unictype/syntax-java-whitespace-tests: New file.
46467         * tests/unictype/test-bidi_byname.c: New file.
46468         * tests/unictype/test-bidi_name.c: New file.
46469         * tests/unictype/test-bidi_of.c: New file.
46470         * tests/unictype/test-bidi_test.c: New file.
46471         * tests/unictype/test-block_list.c: New file.
46472         * tests/unictype/test-block_of.c: New file.
46473         * tests/unictype/test-block_test.c: New file.
46474         * tests/unictype/test-categ_and.c: New file.
46475         * tests/unictype/test-categ_and_not.c: New file.
46476         * tests/unictype/test-categ_byname.c: New file.
46477         * tests/unictype/test-categ_name.c: New file.
46478         * tests/unictype/test-categ_none.c: New file.
46479         * tests/unictype/test-categ_of.c: New file.
46480         * tests/unictype/test-categ_or.c: New file.
46481         * tests/unictype/test-categ_test_withtable.c: New file.
46482         * tests/unictype/test-combining.c: New file.
46483         * tests/unictype/test-decdigit.c: New file.
46484         * tests/unictype/test-digit.c: New file.
46485         * tests/unictype/test-mirror.c: New file.
46486         * tests/unictype/test-numeric.c: New file.
46487         * tests/unictype/test-pr_byname.c: New file.
46488         * tests/unictype/test-pr_test.c: New file.
46489         * tests/unictype/test-predicate-part1.h: New file.
46490         * tests/unictype/test-predicate-part2.h: New file.
46491         * tests/unictype/test-scripts.c: New file.
46492         * tests/unictype/test-sy_c_ident.c: New file.
46493         * tests/unictype/test-sy_java_ident.c: New file.
46494
46495         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46496         for Unicode 5.0.0.
46497         * tests/unictype/test-categ_Cc.c: Likewise.
46498         * tests/unictype/test-categ_Cf.c: Likewise.
46499         * tests/unictype/test-categ_Cn.c: Likewise.
46500         * tests/unictype/test-categ_Co.c: Likewise.
46501         * tests/unictype/test-categ_Cs.c: Likewise.
46502         * tests/unictype/test-categ_L.c: Likewise.
46503         * tests/unictype/test-categ_Ll.c: Likewise.
46504         * tests/unictype/test-categ_Lm.c: Likewise.
46505         * tests/unictype/test-categ_Lo.c: Likewise.
46506         * tests/unictype/test-categ_Lt.c: Likewise.
46507         * tests/unictype/test-categ_Lu.c: Likewise.
46508         * tests/unictype/test-categ_M.c: Likewise.
46509         * tests/unictype/test-categ_Mc.c: Likewise.
46510         * tests/unictype/test-categ_Me.c: Likewise.
46511         * tests/unictype/test-categ_Mn.c: Likewise.
46512         * tests/unictype/test-categ_N.c: Likewise.
46513         * tests/unictype/test-categ_Nd.c: Likewise.
46514         * tests/unictype/test-categ_Nl.c: Likewise.
46515         * tests/unictype/test-categ_No.c: Likewise.
46516         * tests/unictype/test-categ_P.c: Likewise.
46517         * tests/unictype/test-categ_Pc.c: Likewise.
46518         * tests/unictype/test-categ_Pd.c: Likewise.
46519         * tests/unictype/test-categ_Pe.c: Likewise.
46520         * tests/unictype/test-categ_Pf.c: Likewise.
46521         * tests/unictype/test-categ_Pi.c: Likewise.
46522         * tests/unictype/test-categ_Po.c: Likewise.
46523         * tests/unictype/test-categ_Ps.c: Likewise.
46524         * tests/unictype/test-categ_S.c: Likewise.
46525         * tests/unictype/test-categ_Sc.c: Likewise.
46526         * tests/unictype/test-categ_Sk.c: Likewise.
46527         * tests/unictype/test-categ_Sm.c: Likewise.
46528         * tests/unictype/test-categ_So.c: Likewise.
46529         * tests/unictype/test-categ_Z.c: Likewise.
46530         * tests/unictype/test-categ_Zl.c: Likewise.
46531         * tests/unictype/test-categ_Zp.c: Likewise.
46532         * tests/unictype/test-categ_Zs.c: Likewise.
46533         * tests/unictype/test-ctype_alnum.c: Likewise.
46534         * tests/unictype/test-ctype_alpha.c: Likewise.
46535         * tests/unictype/test-ctype_blank.c: Likewise.
46536         * tests/unictype/test-ctype_cntrl.c: Likewise.
46537         * tests/unictype/test-ctype_digit.c: Likewise.
46538         * tests/unictype/test-ctype_graph.c: Likewise.
46539         * tests/unictype/test-ctype_lower.c: Likewise.
46540         * tests/unictype/test-ctype_print.c: Likewise.
46541         * tests/unictype/test-ctype_punct.c: Likewise.
46542         * tests/unictype/test-ctype_space.c: Likewise.
46543         * tests/unictype/test-ctype_upper.c: Likewise.
46544         * tests/unictype/test-ctype_xdigit.c: Likewise.
46545         * tests/unictype/test-decdigit.h: Likewise.
46546         * tests/unictype/test-digit.h: Likewise.
46547         * tests/unictype/test-numeric.h: Likewise.
46548         * tests/unictype/test-pr_alphabetic.c: Likewise.
46549         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46550         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46551         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46552         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46553         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46554         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46555         * tests/unictype/test-pr_bidi_control.c: Likewise.
46556         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46557         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46558         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46559         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46560         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46561         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46562         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46563         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46564         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46565         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46566         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46567         * tests/unictype/test-pr_combining.c: Likewise.
46568         * tests/unictype/test-pr_composite.c: Likewise.
46569         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46570         * tests/unictype/test-pr_dash.c: Likewise.
46571         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46572         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46573         * tests/unictype/test-pr_deprecated.c: Likewise.
46574         * tests/unictype/test-pr_diacritic.c: Likewise.
46575         * tests/unictype/test-pr_extender.c: Likewise.
46576         * tests/unictype/test-pr_format_control.c: Likewise.
46577         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46578         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46579         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46580         * tests/unictype/test-pr_hex_digit.c: Likewise.
46581         * tests/unictype/test-pr_hyphen.c: Likewise.
46582         * tests/unictype/test-pr_id_continue.c: Likewise.
46583         * tests/unictype/test-pr_id_start.c: Likewise.
46584         * tests/unictype/test-pr_ideographic.c: Likewise.
46585         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46586         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46587         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46588         * tests/unictype/test-pr_iso_control.c: Likewise.
46589         * tests/unictype/test-pr_join_control.c: Likewise.
46590         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46591         * tests/unictype/test-pr_line_separator.c: Likewise.
46592         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46593         * tests/unictype/test-pr_lowercase.c: Likewise.
46594         * tests/unictype/test-pr_math.c: Likewise.
46595         * tests/unictype/test-pr_non_break.c: Likewise.
46596         * tests/unictype/test-pr_not_a_character.c: Likewise.
46597         * tests/unictype/test-pr_numeric.c: Likewise.
46598         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46599         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46600         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46601         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46602         * tests/unictype/test-pr_other_id_start.c: Likewise.
46603         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46604         * tests/unictype/test-pr_other_math.c: Likewise.
46605         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46606         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46607         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46608         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46609         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46610         * tests/unictype/test-pr_private_use.c: Likewise.
46611         * tests/unictype/test-pr_punctuation.c: Likewise.
46612         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46613         * tests/unictype/test-pr_radical.c: Likewise.
46614         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46615         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46616         * tests/unictype/test-pr_space.c: Likewise.
46617         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46618         * tests/unictype/test-pr_titlecase.c: Likewise.
46619         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46620         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46621         * tests/unictype/test-pr_uppercase.c: Likewise.
46622         * tests/unictype/test-pr_variation_selector.c: Likewise.
46623         * tests/unictype/test-pr_white_space.c: Likewise.
46624         * tests/unictype/test-pr_xid_continue.c: Likewise.
46625         * tests/unictype/test-pr_xid_start.c: Likewise.
46626         * tests/unictype/test-pr_zero_width.c: Likewise.
46627         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46628         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46629
46630 2007-11-12  Bruno Haible  <bruno@clisp.org>
46631
46632         Unicode character classification functions.
46633         * lib/unictype.h: New file.
46634         * modules/unictype/base: New file.
46635         * modules/unictype/category-L: New file.
46636         * modules/unictype/category-Lu: New file.
46637         * modules/unictype/category-Ll: New file.
46638         * modules/unictype/category-Lt: New file.
46639         * modules/unictype/category-Lm: New file.
46640         * modules/unictype/category-Lo: New file.
46641         * modules/unictype/category-M: New file.
46642         * modules/unictype/category-Mn: New file.
46643         * modules/unictype/category-Mc: New file.
46644         * modules/unictype/category-Me: New file.
46645         * modules/unictype/category-N: New file.
46646         * modules/unictype/category-Nd: New file.
46647         * modules/unictype/category-Nl: New file.
46648         * modules/unictype/category-No: New file.
46649         * modules/unictype/category-P: New file.
46650         * modules/unictype/category-Pc: New file.
46651         * modules/unictype/category-Pd: New file.
46652         * modules/unictype/category-Ps: New file.
46653         * modules/unictype/category-Pe: New file.
46654         * modules/unictype/category-Pi: New file.
46655         * modules/unictype/category-Pf: New file.
46656         * modules/unictype/category-Po: New file.
46657         * modules/unictype/category-S: New file.
46658         * modules/unictype/category-Sm: New file.
46659         * modules/unictype/category-Sc: New file.
46660         * modules/unictype/category-Sk: New file.
46661         * modules/unictype/category-So: New file.
46662         * modules/unictype/category-Z: New file.
46663         * modules/unictype/category-Zs: New file.
46664         * modules/unictype/category-Zl: New file.
46665         * modules/unictype/category-Zp: New file.
46666         * modules/unictype/category-C: New file.
46667         * modules/unictype/category-Cc: New file.
46668         * modules/unictype/category-Cf: New file.
46669         * modules/unictype/category-Cs: New file.
46670         * modules/unictype/category-Co: New file.
46671         * modules/unictype/category-Cn: New file.
46672         * modules/unictype/category-or: New file.
46673         * modules/unictype/category-of: New file.
46674         * modules/unictype/category-test: New file.
46675         * modules/unictype/category-test-withtable: New file.
46676         * modules/unictype/category-byname: New file.
46677         * modules/unictype/category-none: New file.
46678         * modules/unictype/category-and: New file.
46679         * modules/unictype/category-and-not: New file.
46680         * modules/unictype/category-name: New file.
46681         * modules/unictype/combining-class: New file.
46682         * modules/unictype/category-all: New file.
46683         * modules/unictype/bidicategory-all: New file.
46684         * modules/unictype/bidicategory-byname: New file.
46685         * modules/unictype/bidicategory-name: New file.
46686         * modules/unictype/bidicategory-of: New file.
46687         * modules/unictype/bidicategory-test: New file.
46688         * modules/unictype/decimal-digit: New file.
46689         * modules/unictype/digit: New file.
46690         * modules/unictype/numeric: New file.
46691         * modules/unictype/mirror: New file.
46692         * modules/unictype/property-white-space: New file.
46693         * modules/unictype/property-alphabetic: New file.
46694         * modules/unictype/property-other-alphabetic: New file.
46695         * modules/unictype/property-not-a-character: New file.
46696         * modules/unictype/property-default-ignorable-code-point: New file.
46697         * modules/unictype/property-other-default-ignorable-code-point: New
46698         file.
46699         * modules/unictype/property-deprecated: New file.
46700         * modules/unictype/property-logical-order-exception: New file.
46701         * modules/unictype/property-variation-selector: New file.
46702         * modules/unictype/property-private-use: New file.
46703         * modules/unictype/property-unassigned-code-value: New file.
46704         * modules/unictype/property-uppercase: New file.
46705         * modules/unictype/property-other-uppercase: New file.
46706         * modules/unictype/property-lowercase: New file.
46707         * modules/unictype/property-other-lowercase: New file.
46708         * modules/unictype/property-titlecase: New file.
46709         * modules/unictype/property-soft-dotted: New file.
46710         * modules/unictype/property-id-start: New file.
46711         * modules/unictype/property-other-id-start: New file.
46712         * modules/unictype/property-id-continue: New file.
46713         * modules/unictype/property-other-id-continue: New file.
46714         * modules/unictype/property-xid-start: New file.
46715         * modules/unictype/property-xid-continue: New file.
46716         * modules/unictype/property-pattern-white-space: New file.
46717         * modules/unictype/property-pattern-syntax: New file.
46718         * modules/unictype/property-join-control: New file.
46719         * modules/unictype/property-grapheme-base: New file.
46720         * modules/unictype/property-grapheme-extend: New file.
46721         * modules/unictype/property-other-grapheme-extend: New file.
46722         * modules/unictype/property-grapheme-link: New file.
46723         * modules/unictype/property-bidi-control: New file.
46724         * modules/unictype/property-bidi-left-to-right: New file.
46725         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46726         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46727         * modules/unictype/property-bidi-european-digit: New file.
46728         * modules/unictype/property-bidi-eur-num-separator: New file.
46729         * modules/unictype/property-bidi-eur-num-terminator: New file.
46730         * modules/unictype/property-bidi-arabic-digit: New file.
46731         * modules/unictype/property-bidi-common-separator: New file.
46732         * modules/unictype/property-bidi-block-separator: New file.
46733         * modules/unictype/property-bidi-segment-separator: New file.
46734         * modules/unictype/property-bidi-whitespace: New file.
46735         * modules/unictype/property-bidi-non-spacing-mark: New file.
46736         * modules/unictype/property-bidi-boundary-neutral: New file.
46737         * modules/unictype/property-bidi-pdf: New file.
46738         * modules/unictype/property-bidi-embedding-or-override: New file.
46739         * modules/unictype/property-bidi-other-neutral: New file.
46740         * modules/unictype/property-hex-digit: New file.
46741         * modules/unictype/property-ascii-hex-digit: New file.
46742         * modules/unictype/property-ideographic: New file.
46743         * modules/unictype/property-unified-ideograph: New file.
46744         * modules/unictype/property-radical: New file.
46745         * modules/unictype/property-ids-binary-operator: New file.
46746         * modules/unictype/property-ids-trinary-operator: New file.
46747         * modules/unictype/property-zero-width: New file.
46748         * modules/unictype/property-space: New file.
46749         * modules/unictype/property-non-break: New file.
46750         * modules/unictype/property-iso-control: New file.
46751         * modules/unictype/property-format-control: New file.
46752         * modules/unictype/property-dash: New file.
46753         * modules/unictype/property-hyphen: New file.
46754         * modules/unictype/property-punctuation: New file.
46755         * modules/unictype/property-line-separator: New file.
46756         * modules/unictype/property-paragraph-separator: New file.
46757         * modules/unictype/property-quotation-mark: New file.
46758         * modules/unictype/property-sentence-terminal: New file.
46759         * modules/unictype/property-terminal-punctuation: New file.
46760         * modules/unictype/property-currency-symbol: New file.
46761         * modules/unictype/property-math: New file.
46762         * modules/unictype/property-other-math: New file.
46763         * modules/unictype/property-paired-punctuation: New file.
46764         * modules/unictype/property-left-of-pair: New file.
46765         * modules/unictype/property-combining: New file.
46766         * modules/unictype/property-composite: New file.
46767         * modules/unictype/property-decimal-digit: New file.
46768         * modules/unictype/property-numeric: New file.
46769         * modules/unictype/property-diacritic: New file.
46770         * modules/unictype/property-extender: New file.
46771         * modules/unictype/property-ignorable-control: New file.
46772         * modules/unictype/property-test: New file.
46773         * modules/unictype/property-byname: New file.
46774         * modules/unictype/property-all: New file.
46775         * modules/unictype/scripts: New file.
46776         * modules/unictype/scripts-all: New file.
46777         * modules/unictype/block-of: New file.
46778         * modules/unictype/block-test: New file.
46779         * modules/unictype/block-list: New file.
46780         * modules/unictype/block-all: New file.
46781         * modules/unictype/syntax-c-whitespace: New file.
46782         * modules/unictype/syntax-java-whitespace: New file.
46783         * modules/unictype/syntax-c-ident: New file.
46784         * modules/unictype/syntax-java-ident: New file.
46785         * modules/unictype/ctype-alnum: New file.
46786         * modules/unictype/ctype-alpha: New file.
46787         * modules/unictype/ctype-cntrl: New file.
46788         * modules/unictype/ctype-digit: New file.
46789         * modules/unictype/ctype-graph: New file.
46790         * modules/unictype/ctype-lower: New file.
46791         * modules/unictype/ctype-print: New file.
46792         * modules/unictype/ctype-punct: New file.
46793         * modules/unictype/ctype-space: New file.
46794         * modules/unictype/ctype-upper: New file.
46795         * modules/unictype/ctype-xdigit: New file.
46796         * modules/unictype/ctype-blank: New file.
46797         * lib/unictype/bidi_byname.c: New file.
46798         * lib/unictype/bidi_name.c: New file.
46799         * lib/unictype/bidi_of.c: New file.
46800         * lib/unictype/bidi_test.c: New file.
46801         * lib/unictype/bitmap.h: New file.
46802         * lib/unictype/block_test.c: New file.
46803         * lib/unictype/blocks.c: New file.
46804         * lib/unictype/categ_C.c: New file.
46805         * lib/unictype/categ_Cc.c: New file.
46806         * lib/unictype/categ_Cf.c: New file.
46807         * lib/unictype/categ_Cn.c: New file.
46808         * lib/unictype/categ_Co.c: New file.
46809         * lib/unictype/categ_Cs.c: New file.
46810         * lib/unictype/categ_L.c: New file.
46811         * lib/unictype/categ_Ll.c: New file.
46812         * lib/unictype/categ_Lm.c: New file.
46813         * lib/unictype/categ_Lo.c: New file.
46814         * lib/unictype/categ_Lt.c: New file.
46815         * lib/unictype/categ_Lu.c: New file.
46816         * lib/unictype/categ_M.c: New file.
46817         * lib/unictype/categ_Mc.c: New file.
46818         * lib/unictype/categ_Me.c: New file.
46819         * lib/unictype/categ_Mn.c: New file.
46820         * lib/unictype/categ_N.c: New file.
46821         * lib/unictype/categ_Nd.c: New file.
46822         * lib/unictype/categ_Nl.c: New file.
46823         * lib/unictype/categ_No.c: New file.
46824         * lib/unictype/categ_P.c: New file.
46825         * lib/unictype/categ_Pc.c: New file.
46826         * lib/unictype/categ_Pd.c: New file.
46827         * lib/unictype/categ_Pe.c: New file.
46828         * lib/unictype/categ_Pf.c: New file.
46829         * lib/unictype/categ_Pi.c: New file.
46830         * lib/unictype/categ_Po.c: New file.
46831         * lib/unictype/categ_Ps.c: New file.
46832         * lib/unictype/categ_S.c: New file.
46833         * lib/unictype/categ_Sc.c: New file.
46834         * lib/unictype/categ_Sk.c: New file.
46835         * lib/unictype/categ_Sm.c: New file.
46836         * lib/unictype/categ_So.c: New file.
46837         * lib/unictype/categ_Z.c: New file.
46838         * lib/unictype/categ_Zl.c: New file.
46839         * lib/unictype/categ_Zp.c: New file.
46840         * lib/unictype/categ_Zs.c: New file.
46841         * lib/unictype/categ_and.c: New file.
46842         * lib/unictype/categ_and_not.c: New file.
46843         * lib/unictype/categ_byname.c: New file.
46844         * lib/unictype/categ_name.c: New file.
46845         * lib/unictype/categ_none.c: New file.
46846         * lib/unictype/categ_of.c: New file.
46847         * lib/unictype/categ_or.c: New file.
46848         * lib/unictype/categ_test.c: New file.
46849         * lib/unictype/combining.c: New file.
46850         * lib/unictype/ctype_alnum.c: New file.
46851         * lib/unictype/ctype_alpha.c: New file.
46852         * lib/unictype/ctype_blank.c: New file.
46853         * lib/unictype/ctype_cntrl.c: New file.
46854         * lib/unictype/ctype_digit.c: New file.
46855         * lib/unictype/ctype_graph.c: New file.
46856         * lib/unictype/ctype_lower.c: New file.
46857         * lib/unictype/ctype_print.c: New file.
46858         * lib/unictype/ctype_punct.c: New file.
46859         * lib/unictype/ctype_space.c: New file.
46860         * lib/unictype/ctype_upper.c: New file.
46861         * lib/unictype/ctype_xdigit.c: New file.
46862         * lib/unictype/decdigit.c: New file.
46863         * lib/unictype/digit.c: New file.
46864         * lib/unictype/identsyntaxmap.h: New file.
46865         * lib/unictype/mirror.c: New file.
46866         * lib/unictype/numeric.c: New file.
46867         * lib/unictype/pr_alphabetic.c: New file.
46868         * lib/unictype/pr_ascii_hex_digit.c: New file.
46869         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46870         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46871         * lib/unictype/pr_bidi_block_separator.c: New file.
46872         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46873         * lib/unictype/pr_bidi_common_separator.c: New file.
46874         * lib/unictype/pr_bidi_control.c: New file.
46875         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46876         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46877         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46878         * lib/unictype/pr_bidi_european_digit.c: New file.
46879         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46880         * lib/unictype/pr_bidi_left_to_right.c: New file.
46881         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46882         * lib/unictype/pr_bidi_other_neutral.c: New file.
46883         * lib/unictype/pr_bidi_pdf.c: New file.
46884         * lib/unictype/pr_bidi_segment_separator.c: New file.
46885         * lib/unictype/pr_bidi_whitespace.c: New file.
46886         * lib/unictype/pr_byname.c: New file.
46887         * lib/unictype/pr_byname.gperf: New file.
46888         * lib/unictype/pr_combining.c: New file.
46889         * lib/unictype/pr_composite.c: New file.
46890         * lib/unictype/pr_currency_symbol.c: New file.
46891         * lib/unictype/pr_dash.c: New file.
46892         * lib/unictype/pr_decimal_digit.c: New file.
46893         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46894         * lib/unictype/pr_deprecated.c: New file.
46895         * lib/unictype/pr_diacritic.c: New file.
46896         * lib/unictype/pr_extender.c: New file.
46897         * lib/unictype/pr_format_control.c: New file.
46898         * lib/unictype/pr_grapheme_base.c: New file.
46899         * lib/unictype/pr_grapheme_extend.c: New file.
46900         * lib/unictype/pr_grapheme_link.c: New file.
46901         * lib/unictype/pr_hex_digit.c: New file.
46902         * lib/unictype/pr_hyphen.c: New file.
46903         * lib/unictype/pr_id_continue.c: New file.
46904         * lib/unictype/pr_id_start.c: New file.
46905         * lib/unictype/pr_ideographic.c: New file.
46906         * lib/unictype/pr_ids_binary_operator.c: New file.
46907         * lib/unictype/pr_ids_trinary_operator.c: New file.
46908         * lib/unictype/pr_ignorable_control.c: New file.
46909         * lib/unictype/pr_iso_control.c: New file.
46910         * lib/unictype/pr_join_control.c: New file.
46911         * lib/unictype/pr_left_of_pair.c: New file.
46912         * lib/unictype/pr_line_separator.c: New file.
46913         * lib/unictype/pr_logical_order_exception.c: New file.
46914         * lib/unictype/pr_lowercase.c: New file.
46915         * lib/unictype/pr_math.c: New file.
46916         * lib/unictype/pr_non_break.c: New file.
46917         * lib/unictype/pr_not_a_character.c: New file.
46918         * lib/unictype/pr_numeric.c: New file.
46919         * lib/unictype/pr_other_alphabetic.c: New file.
46920         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46921         * lib/unictype/pr_other_grapheme_extend.c: New file.
46922         * lib/unictype/pr_other_id_continue.c: New file.
46923         * lib/unictype/pr_other_id_start.c: New file.
46924         * lib/unictype/pr_other_lowercase.c: New file.
46925         * lib/unictype/pr_other_math.c: New file.
46926         * lib/unictype/pr_other_uppercase.c: New file.
46927         * lib/unictype/pr_paired_punctuation.c: New file.
46928         * lib/unictype/pr_paragraph_separator.c: New file.
46929         * lib/unictype/pr_pattern_syntax.c: New file.
46930         * lib/unictype/pr_pattern_white_space.c: New file.
46931         * lib/unictype/pr_private_use.c: New file.
46932         * lib/unictype/pr_punctuation.c: New file.
46933         * lib/unictype/pr_quotation_mark.c: New file.
46934         * lib/unictype/pr_radical.c: New file.
46935         * lib/unictype/pr_sentence_terminal.c: New file.
46936         * lib/unictype/pr_soft_dotted.c: New file.
46937         * lib/unictype/pr_space.c: New file.
46938         * lib/unictype/pr_terminal_punctuation.c: New file.
46939         * lib/unictype/pr_test.c: New file.
46940         * lib/unictype/pr_titlecase.c: New file.
46941         * lib/unictype/pr_unassigned_code_value.c: New file.
46942         * lib/unictype/pr_unified_ideograph.c: New file.
46943         * lib/unictype/pr_uppercase.c: New file.
46944         * lib/unictype/pr_variation_selector.c: New file.
46945         * lib/unictype/pr_white_space.c: New file.
46946         * lib/unictype/pr_xid_continue.c: New file.
46947         * lib/unictype/pr_xid_start.c: New file.
46948         * lib/unictype/pr_zero_width.c: New file.
46949         * lib/unictype/scripts.c: New file.
46950         * lib/unictype/sy_c_ident.c: New file.
46951         * lib/unictype/sy_c_whitespace.c: New file.
46952         * lib/unictype/sy_java_ident.c: New file.
46953         * lib/unictype/sy_java_whitespace.c: New file.
46954
46955         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46956         Unicode 5.0.0.
46957         * lib/unictype/blocks.h: Likewise.
46958         * lib/unictype/categ_C.h: Likewise.
46959         * lib/unictype/categ_Cc.h: Likewise.
46960         * lib/unictype/categ_Cf.h: Likewise.
46961         * lib/unictype/categ_Cn.h: Likewise.
46962         * lib/unictype/categ_Co.h: Likewise.
46963         * lib/unictype/categ_Cs.h: Likewise.
46964         * lib/unictype/categ_L.h: Likewise.
46965         * lib/unictype/categ_Ll.h: Likewise.
46966         * lib/unictype/categ_Lm.h: Likewise.
46967         * lib/unictype/categ_Lo.h: Likewise.
46968         * lib/unictype/categ_Lt.h: Likewise.
46969         * lib/unictype/categ_Lu.h: Likewise.
46970         * lib/unictype/categ_M.h: Likewise.
46971         * lib/unictype/categ_Mc.h: Likewise.
46972         * lib/unictype/categ_Me.h: Likewise.
46973         * lib/unictype/categ_Mn.h: Likewise.
46974         * lib/unictype/categ_N.h: Likewise.
46975         * lib/unictype/categ_Nd.h: Likewise.
46976         * lib/unictype/categ_Nl.h: Likewise.
46977         * lib/unictype/categ_No.h: Likewise.
46978         * lib/unictype/categ_P.h: Likewise.
46979         * lib/unictype/categ_Pc.h: Likewise.
46980         * lib/unictype/categ_Pd.h: Likewise.
46981         * lib/unictype/categ_Pe.h: Likewise.
46982         * lib/unictype/categ_Pf.h: Likewise.
46983         * lib/unictype/categ_Pi.h: Likewise.
46984         * lib/unictype/categ_Po.h: Likewise.
46985         * lib/unictype/categ_Ps.h: Likewise.
46986         * lib/unictype/categ_S.h: Likewise.
46987         * lib/unictype/categ_Sc.h: Likewise.
46988         * lib/unictype/categ_Sk.h: Likewise.
46989         * lib/unictype/categ_Sm.h: Likewise.
46990         * lib/unictype/categ_So.h: Likewise.
46991         * lib/unictype/categ_Z.h: Likewise.
46992         * lib/unictype/categ_Zl.h: Likewise.
46993         * lib/unictype/categ_Zp.h: Likewise.
46994         * lib/unictype/categ_Zs.h: Likewise.
46995         * lib/unictype/categ_of.h: Likewise.
46996         * lib/unictype/combining.h: Likewise.
46997         * lib/unictype/ctype_alnum.h: Likewise.
46998         * lib/unictype/ctype_alpha.h: Likewise.
46999         * lib/unictype/ctype_blank.h: Likewise.
47000         * lib/unictype/ctype_cntrl.h: Likewise.
47001         * lib/unictype/ctype_digit.h: Likewise.
47002         * lib/unictype/ctype_graph.h: Likewise.
47003         * lib/unictype/ctype_lower.h: Likewise.
47004         * lib/unictype/ctype_print.h: Likewise.
47005         * lib/unictype/ctype_punct.h: Likewise.
47006         * lib/unictype/ctype_space.h: Likewise.
47007         * lib/unictype/ctype_upper.h: Likewise.
47008         * lib/unictype/ctype_xdigit.h: Likewise.
47009         * lib/unictype/decdigit.h: Likewise.
47010         * lib/unictype/digit.h: Likewise.
47011         * lib/unictype/mirror.h: Likewise.
47012         * lib/unictype/numeric.h: Likewise.
47013         * lib/unictype/pr_alphabetic.h: Likewise.
47014         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47015         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47016         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47017         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47018         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47019         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47020         * lib/unictype/pr_bidi_control.h: Likewise.
47021         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47022         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47023         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47024         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47025         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47026         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47027         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47028         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47029         * lib/unictype/pr_bidi_pdf.h: Likewise.
47030         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47031         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47032         * lib/unictype/pr_combining.h: Likewise.
47033         * lib/unictype/pr_composite.h: Likewise.
47034         * lib/unictype/pr_currency_symbol.h: Likewise.
47035         * lib/unictype/pr_dash.h: Likewise.
47036         * lib/unictype/pr_decimal_digit.h: Likewise.
47037         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47038         * lib/unictype/pr_deprecated.h: Likewise.
47039         * lib/unictype/pr_diacritic.h: Likewise.
47040         * lib/unictype/pr_extender.h: Likewise.
47041         * lib/unictype/pr_format_control.h: Likewise.
47042         * lib/unictype/pr_grapheme_base.h: Likewise.
47043         * lib/unictype/pr_grapheme_extend.h: Likewise.
47044         * lib/unictype/pr_grapheme_link.h: Likewise.
47045         * lib/unictype/pr_hex_digit.h: Likewise.
47046         * lib/unictype/pr_hyphen.h: Likewise.
47047         * lib/unictype/pr_id_continue.h: Likewise.
47048         * lib/unictype/pr_id_start.h: Likewise.
47049         * lib/unictype/pr_ideographic.h: Likewise.
47050         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47051         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47052         * lib/unictype/pr_ignorable_control.h: Likewise.
47053         * lib/unictype/pr_iso_control.h: Likewise.
47054         * lib/unictype/pr_join_control.h: Likewise.
47055         * lib/unictype/pr_left_of_pair.h: Likewise.
47056         * lib/unictype/pr_line_separator.h: Likewise.
47057         * lib/unictype/pr_logical_order_exception.h: Likewise.
47058         * lib/unictype/pr_lowercase.h: Likewise.
47059         * lib/unictype/pr_math.h: Likewise.
47060         * lib/unictype/pr_non_break.h: Likewise.
47061         * lib/unictype/pr_not_a_character.h: Likewise.
47062         * lib/unictype/pr_numeric.h: Likewise.
47063         * lib/unictype/pr_other_alphabetic.h: Likewise.
47064         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47065         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47066         * lib/unictype/pr_other_id_continue.h: Likewise.
47067         * lib/unictype/pr_other_id_start.h: Likewise.
47068         * lib/unictype/pr_other_lowercase.h: Likewise.
47069         * lib/unictype/pr_other_math.h: Likewise.
47070         * lib/unictype/pr_other_uppercase.h: Likewise.
47071         * lib/unictype/pr_paired_punctuation.h: Likewise.
47072         * lib/unictype/pr_paragraph_separator.h: Likewise.
47073         * lib/unictype/pr_pattern_syntax.h: Likewise.
47074         * lib/unictype/pr_pattern_white_space.h: Likewise.
47075         * lib/unictype/pr_private_use.h: Likewise.
47076         * lib/unictype/pr_punctuation.h: Likewise.
47077         * lib/unictype/pr_quotation_mark.h: Likewise.
47078         * lib/unictype/pr_radical.h: Likewise.
47079         * lib/unictype/pr_sentence_terminal.h: Likewise.
47080         * lib/unictype/pr_soft_dotted.h: Likewise.
47081         * lib/unictype/pr_space.h: Likewise.
47082         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47083         * lib/unictype/pr_titlecase.h: Likewise.
47084         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47085         * lib/unictype/pr_unified_ideograph.h: Likewise.
47086         * lib/unictype/pr_uppercase.h: Likewise.
47087         * lib/unictype/pr_variation_selector.h: Likewise.
47088         * lib/unictype/pr_white_space.h: Likewise.
47089         * lib/unictype/pr_xid_continue.h: Likewise.
47090         * lib/unictype/pr_xid_start.h: Likewise.
47091         * lib/unictype/pr_zero_width.h: Likewise.
47092         * lib/unictype/scripts.h: Likewise.
47093         * lib/unictype/scripts_byname.gperf: Likewise.
47094         * lib/unictype/sy_c_ident.h: Likewise.
47095         * lib/unictype/sy_c_whitespace.h: Likewise.
47096         * lib/unictype/sy_java_ident.h: Likewise.
47097         * lib/unictype/sy_java_whitespace.h: Likewise.
47098
47099         * lib/unictype/Makefile: New file.
47100         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47101         glibc.
47102         * lib/unictype/3level.h: New file, copied from glibc.
47103         * lib/unictype/3levelbit.h: New file.
47104
47105 2007-11-11  Bruno Haible  <bruno@clisp.org>
47106
47107         * modules/gperf: New file.
47108         * modules/iconv_open (Depends-on): Add it.
47109         (Makefile.am): Remove the GPERF definition.
47110
47111 2007-11-11  Bruno Haible  <bruno@clisp.org>
47112
47113         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47114         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47115
47116 2007-11-11  Bruno Haible  <bruno@clisp.org>
47117
47118         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47119         (usage): Remove function.
47120
47121 2007-11-11  Bruno Haible  <bruno@clisp.org>
47122
47123         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47124         gl_FUNC_CEILF_LIBS.
47125         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47126         gl_FUNC_CEIL_LIBS.
47127         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47128         gl_FUNC_CEILL_LIBS.
47129         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47130         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47131         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47132
47133 2007-11-11  Bruno Haible  <bruno@clisp.org>
47134
47135         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47136         roundf were declared but do not exist on functions.
47137         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47138         roundl were declared but do not exist on functions.
47139         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47140         HAVE_FLOORL_AND_CEILL, respectively.
47141         Needed for Sun C on Solaris 10.
47142
47143 2007-11-11  Bruno Haible  <bruno@clisp.org>
47144
47145         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47146         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47147         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47148         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47149         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47150         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47151         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47152         HAVE_DECL_ROUNDF.
47153         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47154         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47156         of HAVE_DECL_ROUND*.
47157         * modules/math (Makefile.am): Update.
47158
47159 2007-11-10  Bruno Haible  <bruno@clisp.org>
47160
47161         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47162         ptrdiff_t as m4/intl.m4.
47163
47164 2007-11-10  Jim Meyering  <meyering@redhat.com>
47165
47166         Avoid link failure for the argmatch test.
47167         * tests/test-argmatch.c (usage): Define function to avoid a link
47168         failure: argmatch_die requires a usage function.
47169
47170 2007-11-09  Bruno Haible  <bruno@clisp.org>
47171
47172         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47173         * doc/functions/vsnprintf.texi: Likewise.
47174         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47175         with a size argument < 2.
47176
47177 2007-11-09  Bruno Haible  <bruno@clisp.org>
47178
47179         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47180         buffer. Fixes an inefficiency introduced on 2007-11-03.
47181
47182 2007-11-09  Bruno Haible  <bruno@clisp.org>
47183
47184         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47185         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47186
47187 2007-11-08  Jim Meyering  <meyering@redhat.com>
47188
47189         Change cache variable name prefix "jm_" to "gl_" everywhere.
47190         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47191         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47192         * m4/uptime.m4: s/gl_/jm_/
47193
47194 2007-11-07  Bruno Haible  <bruno@clisp.org>
47195
47196         Update to GNU gettext 0.17.
47197         * m4/intl.m4: Update to GNU gettext 0.17.
47198         * m4/po.m4: Likewise.
47199         * modules/gettext (Files): Remove m4/ulonglong.m4.
47200         (configure.ac): Require gettext infrastructure from version 0.17.
47201
47202 2007-11-06  Bruno Haible  <bruno@clisp.org>
47203
47204         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47205         symbolic values are not defined in a public header.
47206         * lib/freadable.c (freadable) [QNX]: Likewise.
47207         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47208         * lib/freading.c (freading) [QNX]: Likewise.
47209         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47210         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47211         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47212         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47213         Reported by Alain Magloire.
47214
47215         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47216
47217 2007-11-05  Bruno Haible  <bruno@clisp.org>
47218
47219         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47220         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47221         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47222         Reported by Eric Blake.
47223
47224 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47225             Bruno Haible  <bruno@clisp.org>
47226
47227         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47228         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47229         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47230         (malloc): Undefine also before including <stdlib.h>.
47231         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47232         Needed on OSF/1 4.0.
47233
47234 2007-11-05  Jim Meyering  <meyering@redhat.com>
47235
47236         git-version-gen: sync from coreutils.
47237         * build-aux/git-version-gen: Add comments.
47238         Change the first '-' to '.' in the snapshot version string,
47239         e.g., 6.9-377-08144 -> 6.9.377-08144
47240         Remove first parameter.
47241         Don't declare a version "-dirty" merely because a time
47242         stamp has changed.
47243
47244 2007-11-04  Bruno Haible  <bruno@clisp.org>
47245
47246         * lib/lock.h: Protect all macro definitions containing an 'if'
47247         statement through a "do { ... } while (0)".
47248         * lib/tls.h: Likewise.
47249
47250 2007-11-04  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47253
47254 2007-11-04  Bruno Haible  <bruno@clisp.org>
47255
47256         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47257         * modules/fprintf-posix (Depends-on): Add nocrash.
47258         * modules/snprintf-posix (Depends-on): Likewise.
47259         * modules/sprintf-posix (Depends-on): Likewise.
47260         * modules/vasnprintf-posix (Depends-on): Likewise.
47261         * modules/vasprintf-posix (Depends-on): Likewise.
47262         * modules/vfprintf-posix (Depends-on): Likewise.
47263         * modules/vsnprintf-posix (Depends-on): Likewise.
47264         * modules/vsprintf-posix (Depends-on): Likewise.
47265         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47266         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47267         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47268         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47269         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47270         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47271         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47272
47273 2007-11-04  Bruno Haible  <bruno@clisp.org>
47274
47275         * modules/nocrash: New file.
47276         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47277         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47278
47279 2007-11-04  Bruno Haible  <bruno@clisp.org>
47280
47281         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47282         precision handling.
47283         * tests/test-vasprintf-posix.c (test_function): Likewise.
47284         * tests/test-snprintf-posix.h (test_function): Likewise.
47285         * tests/test-sprintf-posix.h (test_function): Likewise.
47286
47287         Fix *printf behaviour for large precisions on mingw and BeOS.
47288         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47289         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47291         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47292         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47293         gl_PRINTF_PRECISION and test its result. Invoke
47294         gl_PREREQ_VASNPRINTF_PRECISION.
47295         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47296         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47297         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47299         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47300         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47301         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47302         * doc/functions/fprintf.texi: Update.
47303         * doc/functions/printf.texi: Update.
47304         * doc/functions/snprintf.texi: Update.
47305         * doc/functions/sprintf.texi: Update.
47306         * doc/functions/vfprintf.texi: Update.
47307         * doc/functions/vprintf.texi: Update.
47308         * doc/functions/vsnprintf.texi: Update.
47309         * doc/functions/vsprintf.texi: Update.
47310
47311 2007-11-04  Bruno Haible  <bruno@clisp.org>
47312
47313         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47314
47315 2007-11-04  Bruno Haible  <bruno@clisp.org>
47316
47317         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47318         Reported by Sylvain Beucler <beuc@gnu.org>.
47319
47320 2007-11-03  Bruno Haible  <bruno@clisp.org>
47321
47322         * tests/test-fprintf-posix2.sh: New file.
47323         * tests/test-fprintf-posix2.c: New file.
47324         * modules/fprintf-posix-tests (Files): Add them.
47325         (TESTS): Add test-fprintf-posix2.sh.
47326         (configure.ac): Check for getrlimit and setrlimit.
47327         (check_PROGRAMS): Add test-fprintf-posix2.
47328
47329         * tests/test-printf-posix2.sh: New file.
47330         * tests/test-printf-posix2.c: New file.
47331         * modules/printf-posix-tests (Files): Add them.
47332         (TESTS): Add test-printf-posix2.sh.
47333         (configure.ac): Check for getrlimit and setrlimit.
47334         (check_PROGRAMS): Add test-printf-posix2.
47335
47336         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47337         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47338         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47339         (decode_double): New function, copied from decode_long_double.
47340         (scale10_round_decimal_decoded): New function, extracted from
47341         scale10_round_decimal_long_double.
47342         (scale10_round_decimal_long_double): Use it.
47343         (scale10_round_decimal_double): New function.
47344         (floorlog10): New function.
47345         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47347         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47348         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47349         gl_PRINTF_ENOMEM and test its result. Invoke
47350         gl_PREREQ_VASNPRINTF_ENOMEM.
47351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47352         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47353         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47354         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47355         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47356         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47357         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47358         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47359         * modules/snprintf-posix (Depends-on): Likewise.
47360         * modules/sprintf-posix (Depends-on): Likewise.
47361         * modules/vasnprintf-posix (Depends-on): Likewise.
47362         * modules/vasprintf-posix (Depends-on): Likewise.
47363         * modules/vfprintf-posix (Depends-on): Likewise.
47364         * modules/vsnprintf-posix (Depends-on): Likewise.
47365         * modules/vsprintf-posix (Depends-on): Likewise.
47366         * doc/functions/fprintf.texi: Update.
47367         * doc/functions/printf.texi: Update.
47368         * doc/functions/snprintf.texi: Update.
47369         * doc/functions/sprintf.texi: Update.
47370         * doc/functions/vfprintf.texi: Update.
47371         * doc/functions/vprintf.texi: Update.
47372         * doc/functions/vsnprintf.texi: Update.
47373         * doc/functions/vsprintf.texi: Update.
47374
47375 2007-11-03  Bruno Haible  <bruno@clisp.org>
47376
47377         * modules/frexp-nolibm-tests: New file.
47378
47379         * modules/frexp-nolibm: New file.
47380         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47381
47382 2007-11-03  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47385         value is C99 compliant.
47386         Needed for OSF/1 5.1.
47387
47388 2007-11-03  Bruno Haible  <bruno@clisp.org>
47389
47390         Fix out-of-memory handling of vasnprintf.
47391         * lib/printf-parse.c: Include <errno.h>.
47392         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47393         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47394         is already set.
47395
47396 2007-11-02  Eric Blake  <ebb9@byu.net>
47397
47398         Fix tests on cygwin.
47399         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47400
47401 2007-11-01  Bruno Haible  <bruno@clisp.org>
47402
47403         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47404         warning.
47405         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47406         needed for POSIX compatibility.
47407
47408 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47409
47410         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47411         for compatibility with GNU.
47412
47413 2007-11-01  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47416         (putenv): Renamed from rpl_putenv. Change argument type from
47417         'const char *' to 'char *'.
47418         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47419         of defining putenv in config.h, just set REPLACE_PUTENV.
47420         * modules/putenv (Depends-on): Add stdlib.
47421         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47422         (Include): Use <stdlib.h>.
47423         * lib/stdlib.in.h (putenv): New declaration.
47424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47425         REPLACE_PUTENV.
47426         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47427         REPLACE_PUTENV.
47428         Needed for MacOS X 10.5.0.
47429         Reported by Peter O'Gorman <peter@pogma.com>.
47430
47431 2007-11-01  Jim Meyering  <meyering@redhat.com>
47432
47433         Treat an empty date string exactly like "0".
47434         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47435         if the remaining date string (to be parsed) is empty, use "0".
47436         Reported by Mischa Molhoek and discussed in this thread:
47437         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47438
47439 2007-10-31  Bruno Haible  <bruno@clisp.org>
47440
47441         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47442         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47443         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47444         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47445         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47446         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47447
47448 2007-10-31  Bruno Haible  <bruno@clisp.org>
47449
47450         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47451         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47452         (AC_TYPE_LONG_LONG_INT): Use it.
47453         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47454         it as well.
47455         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47456         to m4/longlong.m4.
47457         * modules/stdint (Files): Remove m4/ulonglong.m4.
47458         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47459         m4/ulonglong.m4.
47460         * modules/strtoumax (Files): Likewise.
47461
47462 2007-10-30  Bruno Haible  <bruno@clisp.org>
47463
47464         * modules/xvasprintf-posix: New file.
47465         Suggested by Eric Blake.
47466
47467 2007-10-30  Bruno Haible  <bruno@clisp.org>
47468
47469         * modules/xprintf-posix-tests: New file.
47470         * tests/test-xprintf-posix.sh: New file.
47471         * tests/test-xprintf-posix.c: New file.
47472         * tests/test-xfprintf-posix.c: New file.
47473
47474         * modules/xprintf-posix: New file.
47475
47476 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47477
47478         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47479         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47480         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47481
47482 2007-10-29  Bruno Haible  <bruno@clisp.org>
47483
47484         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47485         contain the special marker '_cv_'.
47486         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47487         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47488         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47489         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47490         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47491         Reported by Ralf Wildenhues.
47492
47493 2007-10-29  Bruno Haible  <bruno@clisp.org>
47494
47495         * gnulib-tool (func_import): When --lgpl is not specified, set
47496         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47497         GPLv3.
47498         Reported by Simon Josefsson.
47499
47500 2007-10-28  Bruno Haible  <bruno@clisp.org>
47501
47502         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47503         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47504         HAVE_DECL_ISFINITE.
47505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47506         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47507         HAVE_DECL_ISFINITE.
47508
47509 2007-10-28  Bruno Haible  <bruno@clisp.org>
47510
47511         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47512         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47513
47514 2007-10-28  Bruno Haible  <bruno@clisp.org>
47515
47516         Fix link errors with Sun C 5.0 on Solaris 10.
47517         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47518         function is declared but not present in the compiler's libm.
47519         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47520         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47521         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47522         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47523         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47524         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47525         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47527         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47528         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47529         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47530         HAVE_DECL_FLOORL.
47531
47532 2007-10-28  Bruno Haible  <bruno@clisp.org>
47533
47534         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47535         gl_FUNC_FLOORL. Cache the result.
47536         (gl_FUNC_FLOORL): Use it.
47537         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47538         gl_FUNC_CEILL. Cache the result.
47539         (gl_FUNC_CEILL): Use it.
47540
47541         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47542         gl_FUNC_FLOOR. Cache the result.
47543         (gl_FUNC_FLOOR): Use it.
47544         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47545         gl_FUNC_CEIL. Cache the result.
47546         (gl_FUNC_CEIL): Use it.
47547
47548         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47549         gl_FUNC_FLOORF. Cache the result.
47550         (gl_FUNC_FLOORF): Use it.
47551         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47552         gl_FUNC_CEILF. Cache the result.
47553         (gl_FUNC_CEILF): Use it.
47554
47555 2007-10-28  Bruno Haible  <bruno@clisp.org>
47556
47557         * gnulib-tool: Allow specifying the LGPL version number through
47558         --lgpl=2 or --lgpl=3.
47559         (func_usage): Document --lgpl with argument.
47560         Handle --lgpl=... arguments.
47561         (func_import): Recognize also gl_LGPL calls with an argument. When
47562         --lgpl=2 is used and the module's license is just LGPL, report an
47563         error. Set sed_transform_lib_file according to the lgpl variable. In
47564         the generated files, use --lgpl or gl_LGPL invocations with argument,
47565         if necessary.
47566         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47567         an LGPv2+ license.
47568         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47569         gl_LGPL macro.
47570
47571 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47572             Bruno Haible  <bruno@clisp.org>
47573
47574         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47575         (u16_uctomb_aux): Likewise.
47576         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47577         !HAVE_INLINE.
47578         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47579
47580 2007-10-28  Bruno Haible  <bruno@clisp.org>
47581
47582         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47583         Invoke AM_GETTEXT_OPTION if it exists.
47584         * modules/vasprintf: Likewise.
47585         * modules/verror: Likewise.
47586         * modules/xprintf: Likewise.
47587         * modules/xvasprintf: Likewise.
47588
47589 2007-10-27  Ben Pfaff  <blp@gnu.org>
47590
47591         * lib/math.in.h: Define isfinite macro and prototypes for
47592         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47593         implementations.
47594         * m4/math_h.m4: New substitutions for isfinite module.
47595         * lib/isfinite.c: New file.
47596         * m4/isfinite.m4: New file.
47597         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47598         * modules/isfinite: New file.
47599         * modules/isfinite-tests: New file.
47600         * tests/tests-isfinite.c: New file.
47601         * doc/functions/isfinite.texi: Mention isfinite module.
47602         * MODULES.html.sh: Mention new module.
47603
47604 2007-10-27  Ben Pfaff  <blp@gnu.org>
47605
47606         Ralf Wildenhues reported that Tru64 4.0D declares the round
47607         functions but does not have definitions.
47608         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47609         cannot be found in any library, set the output variable to
47610         "missing" instead of "".
47611         * m4/round.m4: Also use our substitute if we cannot find round in
47612         any library, even if it is declared.
47613         * m4/roundf.m4: Likewise for roundf.
47614         * m4/roundl.m4: Likewise for roundl.
47615         * lib/math.in.h: Undefine roundf, round, roundl before defining
47616         their replacements, to allow for hypothetical systems where these
47617         may be defined as macros but not available in libraries.
47618
47619 2007-10-27  Bruno Haible  <bruno@clisp.org>
47620
47621         * doc/gnulib.texi: Invoke @firstparagraphindent.
47622         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47623         changes in gnulib.
47624         (Source changes): New section.
47625
47626 2007-10-26  Bruno Haible  <bruno@clisp.org>
47627
47628         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47629         borrowed from autoconf.
47630
47631 2007-10-26  Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47634         strerror returned the empty string. Needed on HP-UX 11.00.
47635
47636 2007-10-24  Micah Cowan  <micah@cowan.name>
47637
47638         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47639         * build-aux/bootstrap: Remove support for now-unnecessary option,
47640         --cvs-user, and envvars CVS_USER, CVS_RSH.
47641
47642 2007-10-24  Jim Meyering  <meyering@redhat.com>
47643
47644         Avoid diagnostics from sha1sum when there is no cached checksum.
47645         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47646         if the po.s1 file hasn't been created yet.
47647
47648         * build-aux/bootstrap: Sync from coreutils:
47649         2007-10-24  Jim Meyering  <meyering@redhat.com>
47650         Get gnulib from the git repository, not from an obsolete cvs one.
47651         * build-aux/bootstrap: Suggestion from Micah Cowan.
47652         2007-10-04  Jim Meyering  <jim@meyering.net>
47653         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47654         (update_po_files): Work also when there are no .po files in po/.
47655
47656 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47657
47658         * README: Append ".git" to git and cg examples.
47659         Problem reported by Benoit Sigoure.
47660
47661 2007-10-23  Micah Cowan  <micah@cowan.name>
47662
47663         * users.txt: Add wget.
47664
47665 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47666
47667         Fix linking of some unistdio tests on FreeBSD.
47668         * modules/unistdio/u16-vsnprintf-tests
47669         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47670         * modules/unistdio/u16-vsprintf-tests
47671         (test_u16_vsnprintf1_LDADD): Likewise.
47672         * modules/unistdio/u32-vsnprintf-tests
47673         (test_u32_vsnprintf1_LDADD): Likewise.
47674         * modules/unistdio/u32-vsprintf-tests
47675         (test_u32_vsprintf1_LDADD): Likewise.
47676         * modules/unistdio/u8-vsnprintf-tests
47677         (test_u8_vsnprintf1_LDADD): Likewise.
47678         * modules/unistdio/u8-vsprintf-tests
47679         (test_u8_vsprintf1_LDADD): Likewise.
47680         * modules/unistdio/ulc-vsnprintf-tests
47681         (test_ulc_vsnprintf1_LDADD): Likewise.
47682         * modules/unistdio/ulc-vsprintf-tests
47683         (test_ulc_vsprintf1_LDADD): Likewise.
47684
47685         Fix linking of some uniconv tests on FreeBSD.
47686         * modules/uniconv/u16-conv-from-enc-tests
47687         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47688         * modules/uniconv/u16-conv-to-enc-tests
47689         (test_u16_conv_to_enc_LDADD): Likewise.
47690         * modules/uniconv/u16-strconv-from-enc-tests
47691         (test_u16_strconv_from_enc_LDADD): Likewise.
47692         * modules/uniconv/u16-strconv-to-enc-tests
47693         (test_u16_strconv_to_enc_LDADD): Likewise.
47694         * modules/uniconv/u32-conv-from-enc-tests
47695         (test_u32_conv_from_enc_LDADD): Likewise.
47696         * modules/uniconv/u32-conv-to-enc-tests
47697         (test_u32_conv_to_enc_LDADD): Likewise.
47698         * modules/uniconv/u32-strconv-from-enc-tests
47699         (test_u32_strconv_from_enc_LDADD): Likewise.
47700         * modules/uniconv/u32-strconv-to-enc-tests
47701         (test_u32_strconv_to_enc_LDADD): Likewise.
47702         * modules/uniconv/u8-conv-from-enc-tests
47703         (test_u8_conv_from_enc_LDADD): Likewise.
47704         * modules/uniconv/u8-conv-to-enc-tests
47705         (test_u8_conv_to_enc_LDADD): Likewise.
47706         * modules/uniconv/u8-strconv-from-enc-tests
47707         (test_u8_strconv_from_enc_LDADD): Likewise.
47708         * modules/uniconv/u8-strconv-to-enc-tests
47709         (test_u8_strconv_to_enc_LDADD): Likewise.
47710
47711 2007-10-22  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47714         size.
47715
47716 2007-10-22  Eric Blake  <ebb9@byu.net>
47717
47718         Tweak x*printf documentation.
47719         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47720         variable name and comments.
47721         Suggested by Bruno Haible.
47722
47723 2007-10-22  Bruno Haible  <bruno@clisp.org>
47724
47725         * lib/acl.c (copy_acl): Fix file name in comment.
47726
47727 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47728
47729         Fix Tru64 problem with stdbool.h.
47730         * lib/stdbool.in.h (false, true):
47731         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47732         Don't declare as an enum in this situation; it runs afoul of Tru64.
47733         Problem reported by Steven M. Schweda in
47734         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47735
47736 2007-10-22  Eric Blake  <ebb9@byu.net>
47737
47738         Also wrap vf?printf.
47739         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47740         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47741         (xvprintf, xvfprintf): New functions.
47742
47743 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47744
47745         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47746         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47747
47748         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47749         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47750
47751 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47752
47753         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47754         by Bruno Haible.
47755
47756 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47757
47758         * lib/getloadavg.c
47759         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47760         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47761
47762         * tests/test-i-ring.c: Work for C89.
47763
47764 2007-10-22  Bruno Haible  <bruno@clisp.org>
47765
47766         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47767         -1u, in preprocessor expression, so that we don't test for the bug
47768         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47770
47771 2007-10-22  Eric Blake  <ebb9@byu.net>
47772
47773         * tests/test-yesno.sh: Silence stderr during test.
47774
47775 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47776
47777         * modules/crypto/gc-camellia: New file.
47778
47779         * m4/gc-camellia.m4: New file.
47780
47781         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47782
47783         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47784
47785 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47786
47787         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47788         --help to stdout.  Reported by sms@antinode.org (Steven
47789         M. Schweda).
47790
47791 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47792
47793         * users.txt: Fix link to libksba.
47794
47795 2007-10-21  Ben Pfaff  <blp@gnu.org>
47796
47797         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47798         round.c roundf implementation that depends on floorf and ceilf to
47799         be tested unconditionally.
47800
47801 2007-10-21  Ben Pfaff  <blp@gnu.org>
47802
47803         * m4/check-libm-func.m4: Removed.
47804         * m4/check-math-lib.m4: New file.
47805         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47806         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47807         definition and lack of AC_LIBOBJ([roundf]).
47808         * m4/roundl.m4: Ditto, and similarly for roundl.
47809         * modules/round: Reference new m4 file.
47810         * modules/roundf: Ditto.
47811         * modules/roundl: Ditto.
47812         * tests/test-round2.c (main): Use ROUND instead of round.
47813         Bug report from Bruno Haible.
47814
47815 2007-10-21  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47818         context.
47819
47820 2007-10-21  Bruno Haible  <bruno@clisp.org>
47821
47822         * tests/test-wcwidth.c (main): Allow negative result for some control
47823         characters.
47824
47825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47826         Needed on OSF/1 5.1.
47827
47828 2007-10-21  Bruno Haible  <bruno@clisp.org>
47829
47830         * tests/test-floorf1.c: Include isnanf.h.
47831         (main): Use isnanf() instead of isnan().
47832         * tests/test-ceilf1.c: Include isnanf.h.
47833         (main): Use isnanf() instead of isnan().
47834         * tests/test-truncf1.c: Include isnanf.h.
47835         (main): Use isnanf() instead of isnan().
47836         * tests/test-roundf1.c: Include isnanf.h.
47837         (main): Use isnanf() instead of isnan().
47838
47839 2007-10-21  Eric Blake  <ebb9@byu.net>
47840
47841         * users.txt: Update URL for m4.
47842
47843 2007-10-21  Bruno Haible  <bruno@clisp.org>
47844
47845         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47846
47847 2007-10-21  Bruno Haible  <bruno@clisp.org>
47848
47849         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47850         Git's management files if the CVS files are not present.
47851
47852 2007-10-20  Bruno Haible  <bruno@clisp.org>
47853
47854         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47855         gcc-3.4.x.
47856
47857 2007-10-20  Ben Pfaff  <blp@gnu.org>
47858
47859         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47860         implementations.
47861         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47862         * lib/round.c: New file.
47863         * lib/roundf.c: New file.
47864         * lib/roundl.c: New file.
47865         * m4/round.m4: New file.
47866         * m4/roundf.m4: New file.
47867         * m4/roundl.m4: New file.
47868         * m4/check-libm-func-m4: New file.
47869         * modules/math: Replace round, roundf, roundl related @VARS@ in
47870         math.in.h.
47871         * modules/round: New file.
47872         * modules/round-tests: New file.
47873         * modules/roundf: New file.
47874         * modules/roundf-tests: New file.
47875         * modules/roundl: New file.
47876         * modules/roundl-tests: New file.
47877         * tests/test-round1.c: New file.
47878         * tests/test-round2.c: New file.
47879         * tests/test-roundf1.c: New file.
47880         * tests/test-roundf2.c: New file.
47881         * tests/test-roundl.c: New file.
47882         * doc/functions/round.texi: Mention round module.
47883         * doc/functions/roundf.texi: Mention roundf module.
47884         * doc/functions/roundl.texi: Mention roundl module.
47885         * MODULES.html.sh: Mention new modules.
47886         Thanks to Bruno Haible for suggestions.
47887
47888 2007-10-20  Jim Meyering  <meyering@redhat.com>
47889
47890         * lib/xprintf.c: Include <config.h> unconditionally.
47891
47892         Change xprintf's license to GPL.
47893         * modules/xprintf (License): s/LGPL/GPL/, since this module
47894         depends on modules (exit and exitfail) which are GPL.
47895         Suggestion from Bruno Haible.
47896
47897         xprintf fixes.
47898         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47899         Use a clearer diagnostic.
47900         Patch from Bruno Haible.
47901
47902 2007-10-20  Bruno Haible  <bruno@clisp.org>
47903
47904         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47905         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47906         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47907
47908 2007-10-20  Bruno Haible  <bruno@clisp.org>
47909
47910         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47911         precision in the comparison result > x - 1 or similar.
47912         * tests/test-ceilf2.c (correct_result_p): Likewise.
47913         * tests/test-truncf2.c (correct_result_p): Likewise.
47914         * tests/test-trunc2.c (correct_result_p): Likewise.
47915         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47916
47917 2007-10-20  Bruno Haible  <bruno@clisp.org>
47918
47919         * modules/ceil: New file.
47920         * m4/ceil.m4: New file.
47921         * doc/functions/ceil.texi: Mention the 'ceil' module.
47922
47923 2007-10-20  Bruno Haible  <bruno@clisp.org>
47924
47925         * modules/floor: New file.
47926         * m4/floor.m4: New file.
47927         * doc/functions/floor.texi: Mention the 'floor' module.
47928
47929 2007-10-20  Bruno Haible  <bruno@clisp.org>
47930
47931         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47932         of %a.
47933         * modules/floorf-tests (Depends-on): Likewise.
47934         * modules/truncf-tests (Depends-on): Likewise.
47935         * modules/trunc-tests (Depends-on): Likewise.
47936         Reported by Ben Pfaff.
47937
47938 2007-10-19  Jim Meyering  <meyering@redhat.com>
47939
47940         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47941         Don't bother testing specific errno values.  Just test ferror.
47942
47943         New module: xprintf
47944         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47945
47946 2007-10-19  Bruno Haible  <bruno@clisp.org>
47947
47948         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47949         syntax.
47950         * modules/javaexec (Makefile.am): Likewise.
47951         * modules/relocatable-prog (Makefile.am): Likewise.
47952         Suggested by Jim Meyering.
47953
47954 2007-10-18  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47957         Reported by Jim Meyering.
47958
47959 2007-10-18  Eric Blake  <ebb9@byu.net>
47960
47961         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47962
47963 2007-10-18  Bruno Haible  <bruno@clisp.org>
47964
47965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47966         the format string into writable memory. Needed in Fortify conditions.
47967
47968 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47969             Bruno Haible  <bruno@clisp.org>
47970
47971         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47972         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47973         * modules/trim (Depends-on): Add mbchar.
47974         (configure.ac): Add gl_FUNC_MBRTOWC.
47975         (Makefile.am): Augment lib_SOURCES.
47976
47977 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47978
47979         Modify glob.c to use fstatat and dirfd, to simplify it.
47980         Suggested by Eric Blake.
47981         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47982         Don't include <stdbool.h>; not used.
47983         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47984         (link_exists_p): Simplify implementation, since we can now assume
47985         dirfd and fstatat.
47986         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47987
47988 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47989
47990         * gnulib-tool (func_get_dependencies): Fix sed script to
47991         match only tests.
47992
47993 2007-10-17  Bruno Haible  <bruno@clisp.org>
47994
47995         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47996         allow locale names without encoding suffix.
47997         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47998         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47999
48000 2007-10-16  Bruno Haible  <bruno@clisp.org>
48001
48002         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48003         * lib/getgroups.c (getgroups): Likewise.
48004         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48005
48006 2007-10-16  Bruno Haible  <bruno@clisp.org>
48007
48008         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48009         * modules/malloc-posix (License): Likewise.
48010         * modules/realloc-posix (License): Likewise.
48011         * modules/calloc-posix (License): Likewise.
48012         * modules/intprops (License): Change from GPL to LGPL, with
48013         Paul Eggert's approval.
48014
48015 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48016
48017         Merge glibc changes into lib/glob.c.
48018
48019         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48020         2007-10-15 04:59:03 UTC.  Here are the changes:
48021
48022         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48023
48024         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48025
48026         * lib/glob.c: Add some branch prediction throughout.
48027
48028         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48029
48030         [BZ #5103]
48031         * lib/glob.c (glob): Recognize patterns starting \/.
48032
48033         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48034
48035         [BZ #3996]
48036         * lib/glob.c (attribute_hidden): Define if not defined.
48037         (glob): Unescape dirname, filename or username when needed and not
48038         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48039         is NULL.  Handle unescaped [ in pattern without closing ].
48040         Don't pass GLOB_CHECK down to recursive glob for directories.
48041         (__glob_pattern_type): New function.
48042         (__glob_pattern_p): Implement using __glob_pattern_type.
48043         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48044         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48045         Remove unreachable code.
48046
48047         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48048
48049         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48050         explain why there are no leaks.
48051
48052         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48053
48054         [BZ #3253]
48055         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48056         time, rather allocate increasingly bigger arrays of pointers, if
48057         possible with alloca, if too large with malloc.
48058
48059 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48060
48061         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48062         Problem reported by H.Merijn Brand in
48063         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48064         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48065         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48066
48067 2007-10-15  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48070         with explicit rpl_ prefix.
48071         * lib/fopen.c (fopen): Likewise.
48072         * lib/freopen.c (freopen): Likewise.
48073         * lib/iconv.c (iconv): Likewise.
48074         * lib/iconv_close.c (iconv_close): Likewise.
48075
48076 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48077
48078         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48079
48080 2007-10-15  Bruno Haible  <bruno@clisp.org>
48081
48082         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48083         <stddef.h> instead of <stdlib.h> since we only need NULL.
48084         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48085
48086 2007-10-15  Bruno Haible  <bruno@clisp.org>
48087
48088         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48089         Replace paragraph talking about LIBOBJS.
48090         Reported by Colin Watson <cjwatson@debian.org>.
48091
48092 2007-10-15  Bruno Haible  <bruno@clisp.org>
48093
48094         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48095         <stdlib.h> before using NULL.
48096
48097 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48098
48099         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48100         Reported by Albert Chin <china@thewrittenword.com>.
48101
48102 2007-10-14  Bruno Haible  <bruno@clisp.org>
48103
48104         * modules/iconv_open-utf-tests: New file.
48105         * tests/test-iconv-utf.c: New file.
48106
48107         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48108         * modules/iconv_open-utf: New file.
48109         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48110         (iconv, iconv_close): New declarations.
48111         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48112         be defined.
48113         (iconv_open): Add special handling of conversion between UTF-8 and
48114         UTF-{16,32}{BE,LE}.
48115         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48116         * lib/iconv_close.c: New file.
48117         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48118         gl_FUNC_ICONV_OPEN.
48119         (gl_FUNC_ICONV_OPEN): Use it.
48120         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48121         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48122         and REPLACE_ICONV_UTF.
48123         * modules/iconv_open (Depends-on): Add c-strcase.
48124         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48125         ICONV_CONST.
48126         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48127
48128 2007-10-13  Albert Chin  <china@thewrittenword.com>
48129             Bruno Haible  <bruno@clisp.org>
48130
48131         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48132         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48133
48134 2007-10-13  Bruno Haible  <bruno@clisp.org>
48135
48136         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48137         defined, use the ISO C99 inline semantics.
48138         * lib/argp.h (ARGP_EI): Likewise.
48139
48140 2007-10-13  Bruno Haible  <bruno@clisp.org>
48141
48142         Handle 'inline' change in gcc 4.3.0.
48143         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48144         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48145         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48146         argp_fmtstream_point): Disable 'extern' declaration if the function
48147         definition is going to be provided inline.
48148         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48149         semantics, not the ISO C99 inline semantics.
48150         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48151         'extern' declaration if the function definition is going to be provided
48152         inline.
48153         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48154         the GNU C inline semantics, not the ISO C99 inline semantics. With
48155         GCC 4.2, avoid a warning.
48156
48157 2007-10-13  Bruno Haible  <bruno@clisp.org>
48158
48159         * lib/freading.h (freading): Enable the use of __freading for
48160         glibc >= 2.7.
48161         * lib/freading.c (freading): Likewise.
48162
48163 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48164
48165         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48166         "warning: C99 inline functions are not supported; using GNU89".
48167
48168 2007-10-12  Bruno Haible  <bruno@clisp.org>
48169
48170         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48171         of 2.
48172         * tests/test-ceilf2.c: New file.
48173         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48174
48175         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48176         * modules/ceilf-tests: Update.
48177
48178 2007-10-12  Bruno Haible  <bruno@clisp.org>
48179
48180         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48181         of 2.
48182         * tests/test-floorf2.c: New file.
48183         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48184
48185         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48186         * modules/floorf-tests: Update.
48187
48188 2007-10-12  Bruno Haible  <bruno@clisp.org>
48189
48190         * tests/test-trunc2.c: New file.
48191         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48192
48193         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48194         * modules/trunc-tests: Update.
48195
48196 2007-10-12  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48199         of 2.
48200         * tests/test-truncf2.c: New file.
48201         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48202
48203         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48204         * modules/truncf-tests: Update.
48205
48206 2007-10-11  Eric Blake  <ebb9@byu.net>
48207
48208         Don't claim strerror is broken on Interix.
48209         * doc/functions/strerror.texi (strerror): Known broken systems are
48210         now Solaris 8, and not Interix.
48211         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48212         Interix on cross-compile.
48213         Reported by Martin Koeppe in
48214         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48215
48216 2007-10-11  Bruno Haible  <bruno@clisp.org>
48217
48218         * modules/i-ring-tests: New file.
48219         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48220         instead of assert.
48221
48222 2007-10-11  Bruno Haible  <bruno@clisp.org>
48223
48224         * modules/filenamecat-tests: New file.
48225         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48226         * lib/filenamecat.c: Remove test code.
48227
48228 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48229
48230         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48231
48232         * lib/strerror.c: Include <string.h> always, to test interface,
48233         and to remove the need for the dummy.
48234         Include intprops.h to compute width instead of doing it ourselves
48235         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48236         (strerror): Define it to return NULL if there's no system strerror.
48237         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48238         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48239         ancient pre-strerror Unix systems well any more.  Saying "unknown
48240         system error" is enough.
48241         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48242         simpler strerror.c implementation.
48243         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48244         Simplify the tests to reflect the simpler strerror implementation.
48245         * modules/strerror (Depends-on): Add intprops.
48246
48247 2007-10-09  Eric Blake  <ebb9@byu.net>
48248
48249         Silence test-fpending.
48250         * modules/fpending-tests (Files): Add wrapper script.
48251         * tests/test-fpending.sh: New file.
48252
48253 2007-10-09  Bruno Haible  <bruno@clisp.org>
48254
48255         * MODULES.html.sh (func_module): Don't create a hyperlink for
48256         function names like 'printf_frexp'.
48257         (Misc): Add crc, memxor.
48258         (Characteristics of floating types): New section.
48259         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48260         isnanf-nolibm, signbit, trunc, truncf, truncl.
48261         (Enhancements for ISO C 99 functions): New subsection Input/output.
48262         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48263         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48264         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48265         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48266         (Enhancements for POSIX:2001 functions): Add chdir-long.
48267         (File system functions): Add areadlink, chdir-safer, read-file.
48268         Remove cycle-check.
48269         (File system as inode set): New section.
48270         (Date and time): Add gethrxtime.
48271         (Multithreading): Add openmp.
48272         (Internationalization functions): Add localename.
48273         (Unicode string functions): Add unistr/u*-mbsnlen.
48274         (Support for maintaining and releasing projects): Add git-version-gen.
48275         (Lone files): Remove directories.
48276
48277 2007-10-08  Ben Pfaff  <blp@gnu.org>
48278
48279         * lib/xmalloca.h: Fix typo in comment.
48280
48281 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48284         when avoiding problems with integer overflow.  Use a portable test
48285         instead.
48286
48287 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48288
48289         * modules/dummy (License): Change to LGPLv2+.
48290         * modules/float (License): Likewise
48291         * modules/realloc (License): Likewise
48292         * modules/stdlib (License): Likewise
48293
48294 2007-10-07  Bruno Haible  <bruno@clisp.org>
48295
48296         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48297         * floor.c (TWO_MANT_DIG): Likewise.
48298         * ceil.c (TWO_MANT_DIG): Likewise.
48299         Reported by Ben Pfaff.
48300
48301 2007-10-07  Bruno Haible  <bruno@clisp.org>
48302
48303         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48304         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48305         * lib/frexp.c (FUNC): Likewise.
48306         * lib/printf-frexp.h (printf_frexp): Likewise.
48307         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48308         * lib/printf-frexp.c (FUNC): Likewise.
48309         Suggested by Jim Meyering.
48310
48311 2007-10-07  Jim Meyering  <meyering@redhat.com>
48312
48313         Make xnanosleep's integer overflow test more robust.
48314         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48315         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48316
48317 2007-10-07  Bruno Haible  <bruno@clisp.org>
48318
48319         * NEWS: Mention the license change.
48320
48321         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48322         abbreviations in the modules files.
48323
48324         Change copyright notice from GPLv2+ to GPLv3+.
48325         * README: Change copyright notice.
48326         * MODULES.html.sh: Likewise.
48327         * build-aux/bootstrap.conf: Likewise.
48328         * build-aux/config.libpath: Likewise.
48329         * build-aux/csharpcomp.sh.in: Likewise.
48330         * build-aux/csharpexec.sh.in: Likewise.
48331         * build-aux/install-reloc: Likewise.
48332         * build-aux/javacomp.sh.in: Likewise.
48333         * build-aux/javaexec.sh.in: Likewise.
48334         * build-aux/ldd.sh.in: Likewise.
48335         * build-aux/reloc-ldflags: Likewise.
48336         * build-aux/relocatable.sh.in: Likewise.
48337         * build-aux/x-to-1.in: Likewise.
48338         * check-module: Likewise.
48339         * config/srclistvars.sh: Likewise.
48340         * gnulib-tool: Likewise.
48341         * lib/acl-internal.h: Likewise.
48342         * lib/acl.c: Likewise.
48343         * lib/acl.h: Likewise.
48344         * lib/acl_entries.c: Likewise.
48345         * lib/areadlink-with-size.c: Likewise.
48346         * lib/areadlink.c: Likewise.
48347         * lib/areadlink.h: Likewise.
48348         * lib/argmatch.c: Likewise.
48349         * lib/argmatch.h: Likewise.
48350         * lib/argp-ba.c: Likewise.
48351         * lib/argp-eexst.c: Likewise.
48352         * lib/argp-fmtstream.c: Likewise.
48353         * lib/argp-fmtstream.h: Likewise.
48354         * lib/argp-fs-xinl.c: Likewise.
48355         * lib/argp-help.c: Likewise.
48356         * lib/argp-namefrob.h: Likewise.
48357         * lib/argp-parse.c: Likewise.
48358         * lib/argp-pin.c: Likewise.
48359         * lib/argp-pv.c: Likewise.
48360         * lib/argp-pvh.c: Likewise.
48361         * lib/argp-xinl.c: Likewise.
48362         * lib/argp.h: Likewise.
48363         * lib/at-func.c: Likewise.
48364         * lib/atanl.c: Likewise.
48365         * lib/backupfile.c: Likewise.
48366         * lib/backupfile.h: Likewise.
48367         * lib/basename.c: Likewise.
48368         * lib/binary-io.h: Likewise.
48369         * lib/byteswap.in.h: Likewise.
48370         * lib/c-stack.c: Likewise.
48371         * lib/c-stack.h: Likewise.
48372         * lib/c-strcasestr.c: Likewise.
48373         * lib/c-strcasestr.h: Likewise.
48374         * lib/c-strstr.c: Likewise.
48375         * lib/c-strstr.h: Likewise.
48376         * lib/c-strtod.c: Likewise.
48377         * lib/calloc.c: Likewise.
48378         * lib/canon-host.c: Likewise.
48379         * lib/canon-host.h: Likewise.
48380         * lib/canonicalize-lgpl.c: Likewise.
48381         * lib/canonicalize.c: Likewise.
48382         * lib/canonicalize.h: Likewise.
48383         * lib/ceil.c: Likewise.
48384         * lib/ceilf.c: Likewise.
48385         * lib/ceill.c: Likewise.
48386         * lib/chdir-long.c: Likewise.
48387         * lib/chdir-long.h: Likewise.
48388         * lib/chdir-safer.c: Likewise.
48389         * lib/chdir-safer.h: Likewise.
48390         * lib/chown.c: Likewise.
48391         * lib/classpath.c: Likewise.
48392         * lib/classpath.h: Likewise.
48393         * lib/clean-temp.c: Likewise.
48394         * lib/clean-temp.h: Likewise.
48395         * lib/cloexec.c: Likewise.
48396         * lib/close-stream.c: Likewise.
48397         * lib/closein.c: Likewise.
48398         * lib/closein.h: Likewise.
48399         * lib/closeout.c: Likewise.
48400         * lib/closeout.h: Likewise.
48401         * lib/concat-filename.c: Likewise.
48402         * lib/copy-file.c: Likewise.
48403         * lib/copy-file.h: Likewise.
48404         * lib/count-one-bits.h: Likewise.
48405         * lib/crc.c: Likewise.
48406         * lib/crc.h: Likewise.
48407         * lib/creat-safer.c: Likewise.
48408         * lib/csharpcomp.c: Likewise.
48409         * lib/csharpcomp.h: Likewise.
48410         * lib/csharpexec.c: Likewise.
48411         * lib/csharpexec.h: Likewise.
48412         * lib/cycle-check.c: Likewise.
48413         * lib/cycle-check.h: Likewise.
48414         * lib/diacrit.c: Likewise.
48415         * lib/diacrit.h: Likewise.
48416         * lib/diffseq.h: Likewise.
48417         * lib/dirchownmod.c: Likewise.
48418         * lib/dirent.in.h: Likewise.
48419         * lib/dirfd.c: Likewise.
48420         * lib/dirfd.h: Likewise.
48421         * lib/dirname.c: Likewise.
48422         * lib/dirname.h: Likewise.
48423         * lib/dummy.c: Likewise.
48424         * lib/dup-safer.c: Likewise.
48425         * lib/dup2.c: Likewise.
48426         * lib/eealloc.h: Likewise.
48427         * lib/error.c: Likewise.
48428         * lib/error.h: Likewise.
48429         * lib/euidaccess.c: Likewise.
48430         * lib/exclude.c: Likewise.
48431         * lib/exclude.h: Likewise.
48432         * lib/execute.c: Likewise.
48433         * lib/execute.h: Likewise.
48434         * lib/exitfail.c: Likewise.
48435         * lib/exitfail.h: Likewise.
48436         * lib/expl.c: Likewise.
48437         * lib/fatal-signal.c: Likewise.
48438         * lib/fatal-signal.h: Likewise.
48439         * lib/fbufmode.c: Likewise.
48440         * lib/fbufmode.h: Likewise.
48441         * lib/fchdir.c: Likewise.
48442         * lib/fchmodat.c: Likewise.
48443         * lib/fchownat.c: Likewise.
48444         * lib/fcntl--.h: Likewise.
48445         * lib/fcntl-safer.h: Likewise.
48446         * lib/fcntl.in.h: Likewise.
48447         * lib/fd-safer.c: Likewise.
48448         * lib/fflush.c: Likewise.
48449         * lib/file-has-acl.c: Likewise.
48450         * lib/file-set.c: Likewise.
48451         * lib/file-type.c: Likewise.
48452         * lib/file-type.h: Likewise.
48453         * lib/fileblocks.c: Likewise.
48454         * lib/filemode.c: Likewise.
48455         * lib/filemode.h: Likewise.
48456         * lib/filename.h: Likewise.
48457         * lib/filenamecat.c: Likewise.
48458         * lib/filenamecat.h: Likewise.
48459         * lib/findprog.c: Likewise.
48460         * lib/findprog.h: Likewise.
48461         * lib/float.in.h: Likewise.
48462         * lib/floor.c: Likewise.
48463         * lib/floorf.c: Likewise.
48464         * lib/floorl.c: Likewise.
48465         * lib/fopen-safer.c: Likewise.
48466         * lib/fopen.c: Likewise.
48467         * lib/fpending.c: Likewise.
48468         * lib/fpending.h: Likewise.
48469         * lib/fprintf.c: Likewise.
48470         * lib/fprintftime.h: Likewise.
48471         * lib/fpucw.h: Likewise.
48472         * lib/fpurge.c: Likewise.
48473         * lib/fpurge.h: Likewise.
48474         * lib/freadable.c: Likewise.
48475         * lib/freadable.h: Likewise.
48476         * lib/freadahead.c: Likewise.
48477         * lib/freadahead.h: Likewise.
48478         * lib/freading.c: Likewise.
48479         * lib/freading.h: Likewise.
48480         * lib/free.c: Likewise.
48481         * lib/freopen.c: Likewise.
48482         * lib/frexp.c: Likewise.
48483         * lib/frexpl.c: Likewise.
48484         * lib/fseek.c: Likewise.
48485         * lib/fseterr.c: Likewise.
48486         * lib/fseterr.h: Likewise.
48487         * lib/fstatat.c: Likewise.
48488         * lib/fstrcmp.c: Likewise.
48489         * lib/fstrcmp.h: Likewise.
48490         * lib/fsusage.c: Likewise.
48491         * lib/fsusage.h: Likewise.
48492         * lib/ftell.c: Likewise.
48493         * lib/ftello.c: Likewise.
48494         * lib/fts-cycle.c: Likewise.
48495         * lib/fts.c: Likewise.
48496         * lib/fts_.h: Likewise.
48497         * lib/full-read.c: Likewise.
48498         * lib/full-read.h: Likewise.
48499         * lib/full-write.c: Likewise.
48500         * lib/full-write.h: Likewise.
48501         * lib/fwritable.c: Likewise.
48502         * lib/fwritable.h: Likewise.
48503         * lib/fwriteerror.c: Likewise.
48504         * lib/fwriteerror.h: Likewise.
48505         * lib/fwriting.c: Likewise.
48506         * lib/fwriting.h: Likewise.
48507         * lib/gcd.c: Likewise.
48508         * lib/gcd.h: Likewise.
48509         * lib/getcwd.c: Likewise.
48510         * lib/getdate.h: Likewise.
48511         * lib/getdate.y: Likewise.
48512         * lib/getdomainname.c: Likewise.
48513         * lib/getdomainname.h: Likewise.
48514         * lib/getgroups.c: Likewise.
48515         * lib/gethostname.c: Likewise.
48516         * lib/gethrxtime.c: Likewise.
48517         * lib/gethrxtime.h: Likewise.
48518         * lib/getloadavg.c: Likewise.
48519         * lib/getndelim2.c: Likewise.
48520         * lib/getndelim2.h: Likewise.
48521         * lib/getnline.c: Likewise.
48522         * lib/getnline.h: Likewise.
48523         * lib/getopt.c: Likewise.
48524         * lib/getopt.in.h: Likewise.
48525         * lib/getopt1.c: Likewise.
48526         * lib/getopt_int.h: Likewise.
48527         * lib/getpagesize.h: Likewise.
48528         * lib/getsubopt.c: Likewise.
48529         * lib/gettime.c: Likewise.
48530         * lib/getugroups.c: Likewise.
48531         * lib/getugroups.h: Likewise.
48532         * lib/getusershell.c: Likewise.
48533         * lib/gl_anyavltree_list1.h: Likewise.
48534         * lib/gl_anyavltree_list2.h: Likewise.
48535         * lib/gl_anyhash_list1.h: Likewise.
48536         * lib/gl_anyhash_list2.h: Likewise.
48537         * lib/gl_anylinked_list1.h: Likewise.
48538         * lib/gl_anylinked_list2.h: Likewise.
48539         * lib/gl_anyrbtree_list1.h: Likewise.
48540         * lib/gl_anyrbtree_list2.h: Likewise.
48541         * lib/gl_anytree_list1.h: Likewise.
48542         * lib/gl_anytree_list2.h: Likewise.
48543         * lib/gl_anytree_oset.h: Likewise.
48544         * lib/gl_anytreehash_list1.h: Likewise.
48545         * lib/gl_anytreehash_list2.h: Likewise.
48546         * lib/gl_array_list.c: Likewise.
48547         * lib/gl_array_list.h: Likewise.
48548         * lib/gl_array_oset.c: Likewise.
48549         * lib/gl_array_oset.h: Likewise.
48550         * lib/gl_avltree_list.c: Likewise.
48551         * lib/gl_avltree_list.h: Likewise.
48552         * lib/gl_avltree_oset.c: Likewise.
48553         * lib/gl_avltree_oset.h: Likewise.
48554         * lib/gl_avltreehash_list.c: Likewise.
48555         * lib/gl_avltreehash_list.h: Likewise.
48556         * lib/gl_carray_list.c: Likewise.
48557         * lib/gl_carray_list.h: Likewise.
48558         * lib/gl_linked_list.c: Likewise.
48559         * lib/gl_linked_list.h: Likewise.
48560         * lib/gl_linkedhash_list.c: Likewise.
48561         * lib/gl_linkedhash_list.h: Likewise.
48562         * lib/gl_list.c: Likewise.
48563         * lib/gl_list.h: Likewise.
48564         * lib/gl_oset.c: Likewise.
48565         * lib/gl_oset.h: Likewise.
48566         * lib/gl_rbtree_list.c: Likewise.
48567         * lib/gl_rbtree_list.h: Likewise.
48568         * lib/gl_rbtree_oset.c: Likewise.
48569         * lib/gl_rbtree_oset.h: Likewise.
48570         * lib/gl_rbtreehash_list.c: Likewise.
48571         * lib/gl_rbtreehash_list.h: Likewise.
48572         * lib/gl_sublist.c: Likewise.
48573         * lib/gl_sublist.h: Likewise.
48574         * lib/group-member.c: Likewise.
48575         * lib/group-member.h: Likewise.
48576         * lib/hard-locale.c: Likewise.
48577         * lib/hard-locale.h: Likewise.
48578         * lib/hash-pjw.c: Likewise.
48579         * lib/hash-pjw.h: Likewise.
48580         * lib/hash-triple.c: Likewise.
48581         * lib/hash.c: Likewise.
48582         * lib/hash.h: Likewise.
48583         * lib/human.c: Likewise.
48584         * lib/human.h: Likewise.
48585         * lib/i-ring.c: Likewise.
48586         * lib/i-ring.h: Likewise.
48587         * lib/idcache.c: Likewise.
48588         * lib/imaxabs.c: Likewise.
48589         * lib/imaxdiv.c: Likewise.
48590         * lib/inet_pton.c: Likewise.
48591         * lib/inet_pton.h: Likewise.
48592         * lib/intprops.h: Likewise.
48593         * lib/inttostr.c: Likewise.
48594         * lib/inttostr.h: Likewise.
48595         * lib/inttypes.in.h: Likewise.
48596         * lib/isapipe.c: Likewise.
48597         * lib/isdir.c: Likewise.
48598         * lib/isnan.c: Likewise.
48599         * lib/isnan.h: Likewise.
48600         * lib/isnanf.c: Likewise.
48601         * lib/isnanf.h: Likewise.
48602         * lib/isnanl-nolibm.h: Likewise.
48603         * lib/isnanl.c: Likewise.
48604         * lib/isnanl.h: Likewise.
48605         * lib/javacomp.c: Likewise.
48606         * lib/javacomp.h: Likewise.
48607         * lib/javaexec.c: Likewise.
48608         * lib/javaexec.h: Likewise.
48609         * lib/javaversion.c: Likewise.
48610         * lib/javaversion.h: Likewise.
48611         * lib/javaversion.java: Likewise.
48612         * lib/lbrkprop.h: Likewise.
48613         * lib/lchmod.h: Likewise.
48614         * lib/lchown.c: Likewise.
48615         * lib/ldexpl.c: Likewise.
48616         * lib/linebreak.c: Likewise.
48617         * lib/linebreak.h: Likewise.
48618         * lib/linebuffer.c: Likewise.
48619         * lib/linebuffer.h: Likewise.
48620         * lib/locale.in.h: Likewise.
48621         * lib/logl.c: Likewise.
48622         * lib/long-options.c: Likewise.
48623         * lib/long-options.h: Likewise.
48624         * lib/lstat.c: Likewise.
48625         * lib/lstat.h: Likewise.
48626         * lib/math.in.h: Likewise.
48627         * lib/mbchar.c: Likewise.
48628         * lib/mbchar.h: Likewise.
48629         * lib/mbfile.h: Likewise.
48630         * lib/mbiter.h: Likewise.
48631         * lib/mbscasecmp.c: Likewise.
48632         * lib/mbscasestr.c: Likewise.
48633         * lib/mbschr.c: Likewise.
48634         * lib/mbscspn.c: Likewise.
48635         * lib/mbslen.c: Likewise.
48636         * lib/mbsncasecmp.c: Likewise.
48637         * lib/mbsnlen.c: Likewise.
48638         * lib/mbspbrk.c: Likewise.
48639         * lib/mbspcasecmp.c: Likewise.
48640         * lib/mbsrchr.c: Likewise.
48641         * lib/mbssep.c: Likewise.
48642         * lib/mbsspn.c: Likewise.
48643         * lib/mbsstr.c: Likewise.
48644         * lib/mbstok_r.c: Likewise.
48645         * lib/mbswidth.c: Likewise.
48646         * lib/mbswidth.h: Likewise.
48647         * lib/mbuiter.h: Likewise.
48648         * lib/memcasecmp.c: Likewise.
48649         * lib/memcasecmp.h: Likewise.
48650         * lib/memchr.c: Likewise.
48651         * lib/memcmp.c: Likewise.
48652         * lib/memcoll.c: Likewise.
48653         * lib/memcoll.h: Likewise.
48654         * lib/memcpy.c: Likewise.
48655         * lib/memrchr.c: Likewise.
48656         * lib/mkancesdirs.c: Likewise.
48657         * lib/mkdir-p.c: Likewise.
48658         * lib/mkdir-p.h: Likewise.
48659         * lib/mkdir.c: Likewise.
48660         * lib/mkdirat.c: Likewise.
48661         * lib/mkdtemp.c: Likewise.
48662         * lib/mkstemp-safer.c: Likewise.
48663         * lib/mkstemp.c: Likewise.
48664         * lib/modechange.c: Likewise.
48665         * lib/modechange.h: Likewise.
48666         * lib/mountlist.c: Likewise.
48667         * lib/mountlist.h: Likewise.
48668         * lib/mpsort.c: Likewise.
48669         * lib/nanosleep.c: Likewise.
48670         * lib/obstack.c: Likewise.
48671         * lib/obstack.h: Likewise.
48672         * lib/open-safer.c: Likewise.
48673         * lib/open.c: Likewise.
48674         * lib/openat-die.c: Likewise.
48675         * lib/openat-priv.h: Likewise.
48676         * lib/openat-proc.c: Likewise.
48677         * lib/openat.c: Likewise.
48678         * lib/openat.h: Likewise.
48679         * lib/pagealign_alloc.c: Likewise.
48680         * lib/pagealign_alloc.h: Likewise.
48681         * lib/physmem.c: Likewise.
48682         * lib/physmem.h: Likewise.
48683         * lib/pipe-safer.c: Likewise.
48684         * lib/pipe.c: Likewise.
48685         * lib/pipe.h: Likewise.
48686         * lib/posixtm.c: Likewise.
48687         * lib/posixtm.h: Likewise.
48688         * lib/posixver.c: Likewise.
48689         * lib/printf-frexp.c: Likewise.
48690         * lib/printf-frexp.h: Likewise.
48691         * lib/printf-frexpl.c: Likewise.
48692         * lib/printf-frexpl.h: Likewise.
48693         * lib/printf.c: Likewise.
48694         * lib/progname.c: Likewise.
48695         * lib/progname.h: Likewise.
48696         * lib/progreloc.c: Likewise.
48697         * lib/putenv.c: Likewise.
48698         * lib/quote.c: Likewise.
48699         * lib/quote.h: Likewise.
48700         * lib/quotearg.c: Likewise.
48701         * lib/quotearg.h: Likewise.
48702         * lib/raise.c: Likewise.
48703         * lib/readline.c: Likewise.
48704         * lib/readline.h: Likewise.
48705         * lib/readlink.c: Likewise.
48706         * lib/readtokens.c: Likewise.
48707         * lib/readtokens.h: Likewise.
48708         * lib/readtokens0.c: Likewise.
48709         * lib/readtokens0.h: Likewise.
48710         * lib/readutmp.c: Likewise.
48711         * lib/readutmp.h: Likewise.
48712         * lib/realloc.c: Likewise.
48713         * lib/relocwrapper.c: Likewise.
48714         * lib/rename-dest-slash.c: Likewise.
48715         * lib/rename.c: Likewise.
48716         * lib/rmdir.c: Likewise.
48717         * lib/rpmatch.c: Likewise.
48718         * lib/safe-read.c: Likewise.
48719         * lib/safe-read.h: Likewise.
48720         * lib/safe-write.c: Likewise.
48721         * lib/safe-write.h: Likewise.
48722         * lib/same-inode.h: Likewise.
48723         * lib/same.c: Likewise.
48724         * lib/same.h: Likewise.
48725         * lib/save-cwd.c: Likewise.
48726         * lib/save-cwd.h: Likewise.
48727         * lib/savedir.c: Likewise.
48728         * lib/savedir.h: Likewise.
48729         * lib/savewd.c: Likewise.
48730         * lib/savewd.h: Likewise.
48731         * lib/search.in.h: Likewise.
48732         * lib/setenv.c: Likewise.
48733         * lib/setenv.h: Likewise.
48734         * lib/settime.c: Likewise.
48735         * lib/sh-quote.c: Likewise.
48736         * lib/sh-quote.h: Likewise.
48737         * lib/sig2str.c: Likewise.
48738         * lib/sig2str.h: Likewise.
48739         * lib/signal.in.h: Likewise.
48740         * lib/signbitd.c: Likewise.
48741         * lib/signbitf.c: Likewise.
48742         * lib/signbitl.c: Likewise.
48743         * lib/sigprocmask.c: Likewise.
48744         * lib/sincosl.c: Likewise.
48745         * lib/sleep.c: Likewise.
48746         * lib/sprintf.c: Likewise.
48747         * lib/sqrtl.c: Likewise.
48748         * lib/stat-time.h: Likewise.
48749         * lib/stdio--.h: Likewise.
48750         * lib/stdio-safer.h: Likewise.
48751         * lib/stdlib--.h: Likewise.
48752         * lib/stdlib-safer.h: Likewise.
48753         * lib/stdlib.in.h: Likewise.
48754         * lib/stpcpy.c: Likewise.
48755         * lib/stpncpy.c: Likewise.
48756         * lib/strchrnul.c: Likewise.
48757         * lib/strcspn.c: Likewise.
48758         * lib/strerror.c: Likewise.
48759         * lib/strftime.c: Likewise.
48760         * lib/strftime.h: Likewise.
48761         * lib/striconveh.c: Likewise.
48762         * lib/striconveh.h: Likewise.
48763         * lib/striconveha.c: Likewise.
48764         * lib/striconveha.h: Likewise.
48765         * lib/stripslash.c: Likewise.
48766         * lib/strnlen1.c: Likewise.
48767         * lib/strnlen1.h: Likewise.
48768         * lib/strtod.c: Likewise.
48769         * lib/strtoimax.c: Likewise.
48770         * lib/strtok_r.c: Likewise.
48771         * lib/strtol.c: Likewise.
48772         * lib/strtoll.c: Likewise.
48773         * lib/strtoul.c: Likewise.
48774         * lib/strtoull.c: Likewise.
48775         * lib/sysexits.in.h: Likewise.
48776         * lib/tempname.c: Likewise.
48777         * lib/tempname.h: Likewise.
48778         * lib/timespec.h: Likewise.
48779         * lib/tls.c: Likewise.
48780         * lib/tls.h: Likewise.
48781         * lib/tmpdir.c: Likewise.
48782         * lib/tmpdir.h: Likewise.
48783         * lib/tmpfile-safer.c: Likewise.
48784         * lib/tmpfile.c: Likewise.
48785         * lib/trigl.c: Likewise.
48786         * lib/trigl.h: Likewise.
48787         * lib/trim.c: Likewise.
48788         * lib/trim.h: Likewise.
48789         * lib/trunc.c: Likewise.
48790         * lib/truncf.c: Likewise.
48791         * lib/truncl.c: Likewise.
48792         * lib/tsearch.c: Likewise.
48793         * lib/unicodeio.c: Likewise.
48794         * lib/unicodeio.h: Likewise.
48795         * lib/unistd--.h: Likewise.
48796         * lib/unistd-safer.h: Likewise.
48797         * lib/unistdio/ulc-fprintf.c: Likewise.
48798         * lib/unistdio/ulc-vfprintf.c: Likewise.
48799         * lib/unlinkdir.c: Likewise.
48800         * lib/unlinkdir.h: Likewise.
48801         * lib/unlocked-io.h: Likewise.
48802         * lib/unsetenv.c: Likewise.
48803         * lib/userspec.c: Likewise.
48804         * lib/utime.c: Likewise.
48805         * lib/utimecmp.c: Likewise.
48806         * lib/utimecmp.h: Likewise.
48807         * lib/utimens.c: Likewise.
48808         * lib/verify.h: Likewise.
48809         * lib/verror.c: Likewise.
48810         * lib/verror.h: Likewise.
48811         * lib/version-etc-fsf.c: Likewise.
48812         * lib/version-etc.c: Likewise.
48813         * lib/version-etc.h: Likewise.
48814         * lib/vfprintf.c: Likewise.
48815         * lib/vprintf.c: Likewise.
48816         * lib/vsprintf.c: Likewise.
48817         * lib/w32spawn.h: Likewise.
48818         * lib/wait-process.c: Likewise.
48819         * lib/wait-process.h: Likewise.
48820         * lib/wcwidth.c: Likewise.
48821         * lib/write-any-file.c: Likewise.
48822         * lib/xalloc-die.c: Likewise.
48823         * lib/xalloc.h: Likewise.
48824         * lib/xasprintf.c: Likewise.
48825         * lib/xgetcwd.c: Likewise.
48826         * lib/xgetcwd.h: Likewise.
48827         * lib/xgetdomainname.c: Likewise.
48828         * lib/xgetdomainname.h: Likewise.
48829         * lib/xgethostname.c: Likewise.
48830         * lib/xmalloc.c: Likewise.
48831         * lib/xmalloca.c: Likewise.
48832         * lib/xmalloca.h: Likewise.
48833         * lib/xmemcoll.c: Likewise.
48834         * lib/xnanosleep.c: Likewise.
48835         * lib/xreadlink.c: Likewise.
48836         * lib/xreadlink.h: Likewise.
48837         * lib/xsetenv.c: Likewise.
48838         * lib/xsetenv.h: Likewise.
48839         * lib/xstriconv.c: Likewise.
48840         * lib/xstriconv.h: Likewise.
48841         * lib/xstrndup.c: Likewise.
48842         * lib/xstrndup.h: Likewise.
48843         * lib/xstrtod.c: Likewise.
48844         * lib/xstrtod.h: Likewise.
48845         * lib/xstrtol-error.c: Likewise.
48846         * lib/xstrtol.c: Likewise.
48847         * lib/xstrtol.h: Likewise.
48848         * lib/xtime.h: Likewise.
48849         * lib/xvasprintf.c: Likewise.
48850         * lib/xvasprintf.h: Likewise.
48851         * lib/yesno.c: Likewise.
48852         * lib/yesno.h: Likewise.
48853         * posix-modules: Likewise.
48854         * tests/test-alloca-opt.c: Likewise.
48855         * tests/test-arcfour.c: Likewise.
48856         * tests/test-arctwo.c: Likewise.
48857         * tests/test-argmatch.c: Likewise.
48858         * tests/test-argp-2.sh: Likewise.
48859         * tests/test-argp.c: Likewise.
48860         * tests/test-arpa_inet.c: Likewise.
48861         * tests/test-array_list.c: Likewise.
48862         * tests/test-array_oset.c: Likewise.
48863         * tests/test-atexit.c: Likewise.
48864         * tests/test-avltree_list.c: Likewise.
48865         * tests/test-avltree_oset.c: Likewise.
48866         * tests/test-avltreehash_list.c: Likewise.
48867         * tests/test-base64.c: Likewise.
48868         * tests/test-binary-io.c: Likewise.
48869         * tests/test-byteswap.c: Likewise.
48870         * tests/test-c-ctype.c: Likewise.
48871         * tests/test-c-strcasecmp.c: Likewise.
48872         * tests/test-c-strcasestr.c: Likewise.
48873         * tests/test-c-strncasecmp.c: Likewise.
48874         * tests/test-c-strstr.c: Likewise.
48875         * tests/test-canonicalize-lgpl.c: Likewise.
48876         * tests/test-canonicalize.c: Likewise.
48877         * tests/test-carray_list.c: Likewise.
48878         * tests/test-ceilf.c: Likewise.
48879         * tests/test-ceill.c: Likewise.
48880         * tests/test-count-one-bits.c: Likewise.
48881         * tests/test-crc.c: Likewise.
48882         * tests/test-dirname.c: Likewise.
48883         * tests/test-fbufmode.c: Likewise.
48884         * tests/test-fcntl.c: Likewise.
48885         * tests/test-fflush.c: Likewise.
48886         * tests/test-floorf.c: Likewise.
48887         * tests/test-floorl.c: Likewise.
48888         * tests/test-fopen.c: Likewise.
48889         * tests/test-fprintf-posix.c: Likewise.
48890         * tests/test-fprintf-posix.h: Likewise.
48891         * tests/test-fpurge.c: Likewise.
48892         * tests/test-freadable.c: Likewise.
48893         * tests/test-freadahead.c: Likewise.
48894         * tests/test-freading.c: Likewise.
48895         * tests/test-freopen.c: Likewise.
48896         * tests/test-frexp.c: Likewise.
48897         * tests/test-frexpl.c: Likewise.
48898         * tests/test-fseek.c: Likewise.
48899         * tests/test-fseeko.c: Likewise.
48900         * tests/test-fseterr.c: Likewise.
48901         * tests/test-fstrcmp.c: Likewise.
48902         * tests/test-ftell.c: Likewise.
48903         * tests/test-ftello.c: Likewise.
48904         * tests/test-fwritable.c: Likewise.
48905         * tests/test-fwriting.c: Likewise.
48906         * tests/test-getaddrinfo.c: Likewise.
48907         * tests/test-getpass.c: Likewise.
48908         * tests/test-gettimeofday.c: Likewise.
48909         * tests/test-hmac-md5.c: Likewise.
48910         * tests/test-hmac-sha1.c: Likewise.
48911         * tests/test-iconv.c: Likewise.
48912         * tests/test-iconvme.c: Likewise.
48913         * tests/test-inttypes.c: Likewise.
48914         * tests/test-isnan.c: Likewise.
48915         * tests/test-isnanf.c: Likewise.
48916         * tests/test-isnanl-nolibm.c: Likewise.
48917         * tests/test-isnanl.c: Likewise.
48918         * tests/test-isnanl.h: Likewise.
48919         * tests/test-ldexpl.c: Likewise.
48920         * tests/test-linked_list.c: Likewise.
48921         * tests/test-linkedhash_list.c: Likewise.
48922         * tests/test-locale.c: Likewise.
48923         * tests/test-localename.c: Likewise.
48924         * tests/test-lock.c: Likewise.
48925         * tests/test-lseek.c: Likewise.
48926         * tests/test-malloca.c: Likewise.
48927         * tests/test-math.c: Likewise.
48928         * tests/test-mbscasecmp.c: Likewise.
48929         * tests/test-mbscasestr1.c: Likewise.
48930         * tests/test-mbscasestr2.c: Likewise.
48931         * tests/test-mbscasestr3.c: Likewise.
48932         * tests/test-mbscasestr4.c: Likewise.
48933         * tests/test-mbschr.c: Likewise.
48934         * tests/test-mbscspn.c: Likewise.
48935         * tests/test-mbsncasecmp.c: Likewise.
48936         * tests/test-mbspbrk.c: Likewise.
48937         * tests/test-mbspcasecmp.c: Likewise.
48938         * tests/test-mbsrchr.c: Likewise.
48939         * tests/test-mbsspn.c: Likewise.
48940         * tests/test-mbsstr1.c: Likewise.
48941         * tests/test-mbsstr2.c: Likewise.
48942         * tests/test-mbsstr3.c: Likewise.
48943         * tests/test-md5.c: Likewise.
48944         * tests/test-memmem.c: Likewise.
48945         * tests/test-netinet_in.c: Likewise.
48946         * tests/test-open.c: Likewise.
48947         * tests/test-printf-frexp.c: Likewise.
48948         * tests/test-printf-frexpl.c: Likewise.
48949         * tests/test-printf-posix.c: Likewise.
48950         * tests/test-printf-posix.h: Likewise.
48951         * tests/test-rbtree_list.c: Likewise.
48952         * tests/test-rbtree_oset.c: Likewise.
48953         * tests/test-rbtreehash_list.c: Likewise.
48954         * tests/test-read-file.c: Likewise.
48955         * tests/test-rijndael.c: Likewise.
48956         * tests/test-search.c: Likewise.
48957         * tests/test-signbit.c: Likewise.
48958         * tests/test-sleep.c: Likewise.
48959         * tests/test-snprintf-posix.c: Likewise.
48960         * tests/test-snprintf-posix.h: Likewise.
48961         * tests/test-snprintf.c: Likewise.
48962         * tests/test-sprintf-posix.c: Likewise.
48963         * tests/test-sprintf-posix.h: Likewise.
48964         * tests/test-stat-time.c: Likewise.
48965         * tests/test-stdbool.c: Likewise.
48966         * tests/test-stdint.c: Likewise.
48967         * tests/test-stdio.c: Likewise.
48968         * tests/test-stdlib.c: Likewise.
48969         * tests/test-stpncpy.c: Likewise.
48970         * tests/test-strcasestr.c: Likewise.
48971         * tests/test-striconv.c: Likewise.
48972         * tests/test-striconveh.c: Likewise.
48973         * tests/test-striconveha.c: Likewise.
48974         * tests/test-string.c: Likewise.
48975         * tests/test-sys_select.c: Likewise.
48976         * tests/test-sys_socket.c: Likewise.
48977         * tests/test-sys_stat.c: Likewise.
48978         * tests/test-sys_time.c: Likewise.
48979         * tests/test-sysexits.c: Likewise.
48980         * tests/test-time.c: Likewise.
48981         * tests/test-tls.c: Likewise.
48982         * tests/test-trunc.c: Likewise.
48983         * tests/test-truncf.c: Likewise.
48984         * tests/test-truncl.c: Likewise.
48985         * tests/test-unistd.c: Likewise.
48986         * tests/test-vasnprintf-posix.c: Likewise.
48987         * tests/test-vasnprintf-posix2.c: Likewise.
48988         * tests/test-vasnprintf.c: Likewise.
48989         * tests/test-vasprintf-posix.c: Likewise.
48990         * tests/test-vasprintf.c: Likewise.
48991         * tests/test-verify.c: Likewise.
48992         * tests/test-vfprintf-posix.c: Likewise.
48993         * tests/test-vprintf-posix.c: Likewise.
48994         * tests/test-vsnprintf-posix.c: Likewise.
48995         * tests/test-vsnprintf.c: Likewise.
48996         * tests/test-vsprintf-posix.c: Likewise.
48997         * tests/test-wchar.c: Likewise.
48998         * tests/test-wctype.c: Likewise.
48999         * tests/test-wcwidth.c: Likewise.
49000         * tests/test-xstrtol.c: Likewise.
49001         * tests/test-xvasprintf.c: Likewise.
49002         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49003         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49004         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49005         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49006         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49007         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49008         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49009         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49010         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49011         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49012         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49013         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49014         * tests/uniname/test-uninames.c: Likewise.
49015         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49016         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49017         * tests/unistdio/test-u16-printf1.h: Likewise.
49018         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49019         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49020         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49021         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49022         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49023         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49024         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49025         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49026         * tests/unistdio/test-u32-printf1.h: Likewise.
49027         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49028         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49029         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49030         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49031         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49032         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49033         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49034         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49035         * tests/unistdio/test-u8-printf1.h: Likewise.
49036         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49037         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49038         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49039         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49040         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49041         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49042         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49043         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49044         * tests/unistdio/test-ulc-printf1.h: Likewise.
49045         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49046         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49047         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49048         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49049         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49050         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49051         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49052         * tests/uniwidth/test-u16-width.c: Likewise.
49053         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49054         * tests/uniwidth/test-u32-width.c: Likewise.
49055         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49056         * tests/uniwidth/test-u8-width.c: Likewise.
49057         * tests/uniwidth/test-uc_width.c: Likewise.
49058         * config/srclist-update: Likewise.
49059         (fixlicense): Update to GPLv3+.
49060
49061         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49062         * tests/test-tsearch.c: Change copyright notice.
49063
49064         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49065         * lib/c-strcaseeq.h: Change copyright notice.
49066         * lib/streq.h: Likewise.
49067         * lib/uniconv.h: Likewise.
49068         * lib/uniconv/u-conv-from-enc.h: Likewise.
49069         * lib/uniconv/u-conv-to-enc.h: Likewise.
49070         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49071         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49072         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49073         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49074         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49075         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49076         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49077         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49078         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49079         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49080         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49081         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49082         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49083         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49084         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49085         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49086         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49087         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49088         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49089         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49090         * lib/uniname.h: Likewise.
49091         * lib/uniname/uniname.c: Likewise.
49092         * lib/unistdio.h: Likewise.
49093         * lib/unistdio/u-asnprintf.h: Likewise.
49094         * lib/unistdio/u-asprintf.h: Likewise.
49095         * lib/unistdio/u-printf-args.c: Likewise.
49096         * lib/unistdio/u-printf-args.h: Likewise.
49097         * lib/unistdio/u-printf-parse.h: Likewise.
49098         * lib/unistdio/u-snprintf.h: Likewise.
49099         * lib/unistdio/u-sprintf.h: Likewise.
49100         * lib/unistdio/u-vasprintf.h: Likewise.
49101         * lib/unistdio/u-vsnprintf.h: Likewise.
49102         * lib/unistdio/u-vsprintf.h: Likewise.
49103         * lib/unistdio/u16-asnprintf.c: Likewise.
49104         * lib/unistdio/u16-asprintf.c: Likewise.
49105         * lib/unistdio/u16-printf-parse.c: Likewise.
49106         * lib/unistdio/u16-snprintf.c: Likewise.
49107         * lib/unistdio/u16-sprintf.c: Likewise.
49108         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49109         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49110         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49111         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49112         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49113         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49114         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49115         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49116         * lib/unistdio/u16-vasnprintf.c: Likewise.
49117         * lib/unistdio/u16-vasprintf.c: Likewise.
49118         * lib/unistdio/u16-vsnprintf.c: Likewise.
49119         * lib/unistdio/u16-vsprintf.c: Likewise.
49120         * lib/unistdio/u32-asnprintf.c: Likewise.
49121         * lib/unistdio/u32-asprintf.c: Likewise.
49122         * lib/unistdio/u32-printf-parse.c: Likewise.
49123         * lib/unistdio/u32-snprintf.c: Likewise.
49124         * lib/unistdio/u32-sprintf.c: Likewise.
49125         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49126         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49127         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49128         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49129         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49130         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49131         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49132         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49133         * lib/unistdio/u32-vasnprintf.c: Likewise.
49134         * lib/unistdio/u32-vasprintf.c: Likewise.
49135         * lib/unistdio/u32-vsnprintf.c: Likewise.
49136         * lib/unistdio/u32-vsprintf.c: Likewise.
49137         * lib/unistdio/u8-asnprintf.c: Likewise.
49138         * lib/unistdio/u8-asprintf.c: Likewise.
49139         * lib/unistdio/u8-printf-parse.c: Likewise.
49140         * lib/unistdio/u8-snprintf.c: Likewise.
49141         * lib/unistdio/u8-sprintf.c: Likewise.
49142         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49143         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49144         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49145         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49146         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49147         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49148         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49149         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49150         * lib/unistdio/u8-vasnprintf.c: Likewise.
49151         * lib/unistdio/u8-vasprintf.c: Likewise.
49152         * lib/unistdio/u8-vsnprintf.c: Likewise.
49153         * lib/unistdio/u8-vsprintf.c: Likewise.
49154         * lib/unistdio/ulc-asnprintf.c: Likewise.
49155         * lib/unistdio/ulc-asprintf.c: Likewise.
49156         * lib/unistdio/ulc-printf-parse.c: Likewise.
49157         * lib/unistdio/ulc-snprintf.c: Likewise.
49158         * lib/unistdio/ulc-sprintf.c: Likewise.
49159         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49160         * lib/unistdio/ulc-vasprintf.c: Likewise.
49161         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49162         * lib/unistdio/ulc-vsprintf.c: Likewise.
49163         * lib/unistr.h: Likewise.
49164         * lib/unistr/u-cpy-alloc.h: Likewise.
49165         * lib/unistr/u-cpy.h: Likewise.
49166         * lib/unistr/u-endswith.h: Likewise.
49167         * lib/unistr/u-move.h: Likewise.
49168         * lib/unistr/u-set.h: Likewise.
49169         * lib/unistr/u-startswith.h: Likewise.
49170         * lib/unistr/u-stpcpy.h: Likewise.
49171         * lib/unistr/u-stpncpy.h: Likewise.
49172         * lib/unistr/u-strcat.h: Likewise.
49173         * lib/unistr/u-strcpy.h: Likewise.
49174         * lib/unistr/u-strcspn.h: Likewise.
49175         * lib/unistr/u-strdup.h: Likewise.
49176         * lib/unistr/u-strlen.h: Likewise.
49177         * lib/unistr/u-strncat.h: Likewise.
49178         * lib/unistr/u-strncpy.h: Likewise.
49179         * lib/unistr/u-strnlen.h: Likewise.
49180         * lib/unistr/u-strpbrk.h: Likewise.
49181         * lib/unistr/u-strspn.h: Likewise.
49182         * lib/unistr/u-strstr.h: Likewise.
49183         * lib/unistr/u-strtok.h: Likewise.
49184         * lib/unistr/u16-check.c: Likewise.
49185         * lib/unistr/u16-chr.c: Likewise.
49186         * lib/unistr/u16-cmp.c: Likewise.
49187         * lib/unistr/u16-cpy-alloc.c: Likewise.
49188         * lib/unistr/u16-cpy.c: Likewise.
49189         * lib/unistr/u16-endswith.c: Likewise.
49190         * lib/unistr/u16-mblen.c: Likewise.
49191         * lib/unistr/u16-mbsnlen.c: Likewise.
49192         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49193         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49194         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49195         * lib/unistr/u16-mbtouc.c: Likewise.
49196         * lib/unistr/u16-mbtoucr.c: Likewise.
49197         * lib/unistr/u16-move.c: Likewise.
49198         * lib/unistr/u16-next.c: Likewise.
49199         * lib/unistr/u16-prev.c: Likewise.
49200         * lib/unistr/u16-set.c: Likewise.
49201         * lib/unistr/u16-startswith.c: Likewise.
49202         * lib/unistr/u16-stpcpy.c: Likewise.
49203         * lib/unistr/u16-stpncpy.c: Likewise.
49204         * lib/unistr/u16-strcat.c: Likewise.
49205         * lib/unistr/u16-strchr.c: Likewise.
49206         * lib/unistr/u16-strcmp.c: Likewise.
49207         * lib/unistr/u16-strcpy.c: Likewise.
49208         * lib/unistr/u16-strcspn.c: Likewise.
49209         * lib/unistr/u16-strdup.c: Likewise.
49210         * lib/unistr/u16-strlen.c: Likewise.
49211         * lib/unistr/u16-strmblen.c: Likewise.
49212         * lib/unistr/u16-strmbtouc.c: Likewise.
49213         * lib/unistr/u16-strncat.c: Likewise.
49214         * lib/unistr/u16-strncmp.c: Likewise.
49215         * lib/unistr/u16-strncpy.c: Likewise.
49216         * lib/unistr/u16-strnlen.c: Likewise.
49217         * lib/unistr/u16-strpbrk.c: Likewise.
49218         * lib/unistr/u16-strrchr.c: Likewise.
49219         * lib/unistr/u16-strspn.c: Likewise.
49220         * lib/unistr/u16-strstr.c: Likewise.
49221         * lib/unistr/u16-strtok.c: Likewise.
49222         * lib/unistr/u16-to-u32.c: Likewise.
49223         * lib/unistr/u16-to-u8.c: Likewise.
49224         * lib/unistr/u16-uctomb-aux.c: Likewise.
49225         * lib/unistr/u16-uctomb.c: Likewise.
49226         * lib/unistr/u32-check.c: Likewise.
49227         * lib/unistr/u32-chr.c: Likewise.
49228         * lib/unistr/u32-cmp.c: Likewise.
49229         * lib/unistr/u32-cpy-alloc.c: Likewise.
49230         * lib/unistr/u32-cpy.c: Likewise.
49231         * lib/unistr/u32-endswith.c: Likewise.
49232         * lib/unistr/u32-mblen.c: Likewise.
49233         * lib/unistr/u32-mbsnlen.c: Likewise.
49234         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49235         * lib/unistr/u32-mbtouc.c: Likewise.
49236         * lib/unistr/u32-mbtoucr.c: Likewise.
49237         * lib/unistr/u32-move.c: Likewise.
49238         * lib/unistr/u32-next.c: Likewise.
49239         * lib/unistr/u32-prev.c: Likewise.
49240         * lib/unistr/u32-set.c: Likewise.
49241         * lib/unistr/u32-startswith.c: Likewise.
49242         * lib/unistr/u32-stpcpy.c: Likewise.
49243         * lib/unistr/u32-stpncpy.c: Likewise.
49244         * lib/unistr/u32-strcat.c: Likewise.
49245         * lib/unistr/u32-strchr.c: Likewise.
49246         * lib/unistr/u32-strcmp.c: Likewise.
49247         * lib/unistr/u32-strcpy.c: Likewise.
49248         * lib/unistr/u32-strcspn.c: Likewise.
49249         * lib/unistr/u32-strdup.c: Likewise.
49250         * lib/unistr/u32-strlen.c: Likewise.
49251         * lib/unistr/u32-strmblen.c: Likewise.
49252         * lib/unistr/u32-strmbtouc.c: Likewise.
49253         * lib/unistr/u32-strncat.c: Likewise.
49254         * lib/unistr/u32-strncmp.c: Likewise.
49255         * lib/unistr/u32-strncpy.c: Likewise.
49256         * lib/unistr/u32-strnlen.c: Likewise.
49257         * lib/unistr/u32-strpbrk.c: Likewise.
49258         * lib/unistr/u32-strrchr.c: Likewise.
49259         * lib/unistr/u32-strspn.c: Likewise.
49260         * lib/unistr/u32-strstr.c: Likewise.
49261         * lib/unistr/u32-strtok.c: Likewise.
49262         * lib/unistr/u32-to-u16.c: Likewise.
49263         * lib/unistr/u32-to-u8.c: Likewise.
49264         * lib/unistr/u32-uctomb.c: Likewise.
49265         * lib/unistr/u8-check.c: Likewise.
49266         * lib/unistr/u8-chr.c: Likewise.
49267         * lib/unistr/u8-cmp.c: Likewise.
49268         * lib/unistr/u8-cpy-alloc.c: Likewise.
49269         * lib/unistr/u8-cpy.c: Likewise.
49270         * lib/unistr/u8-endswith.c: Likewise.
49271         * lib/unistr/u8-mblen.c: Likewise.
49272         * lib/unistr/u8-mbsnlen.c: Likewise.
49273         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49274         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49275         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49276         * lib/unistr/u8-mbtouc.c: Likewise.
49277         * lib/unistr/u8-mbtoucr.c: Likewise.
49278         * lib/unistr/u8-move.c: Likewise.
49279         * lib/unistr/u8-next.c: Likewise.
49280         * lib/unistr/u8-prev.c: Likewise.
49281         * lib/unistr/u8-set.c: Likewise.
49282         * lib/unistr/u8-startswith.c: Likewise.
49283         * lib/unistr/u8-stpcpy.c: Likewise.
49284         * lib/unistr/u8-stpncpy.c: Likewise.
49285         * lib/unistr/u8-strcat.c: Likewise.
49286         * lib/unistr/u8-strchr.c: Likewise.
49287         * lib/unistr/u8-strcmp.c: Likewise.
49288         * lib/unistr/u8-strcpy.c: Likewise.
49289         * lib/unistr/u8-strcspn.c: Likewise.
49290         * lib/unistr/u8-strdup.c: Likewise.
49291         * lib/unistr/u8-strlen.c: Likewise.
49292         * lib/unistr/u8-strmblen.c: Likewise.
49293         * lib/unistr/u8-strmbtouc.c: Likewise.
49294         * lib/unistr/u8-strncat.c: Likewise.
49295         * lib/unistr/u8-strncmp.c: Likewise.
49296         * lib/unistr/u8-strncpy.c: Likewise.
49297         * lib/unistr/u8-strnlen.c: Likewise.
49298         * lib/unistr/u8-strpbrk.c: Likewise.
49299         * lib/unistr/u8-strrchr.c: Likewise.
49300         * lib/unistr/u8-strspn.c: Likewise.
49301         * lib/unistr/u8-strstr.c: Likewise.
49302         * lib/unistr/u8-strtok.c: Likewise.
49303         * lib/unistr/u8-to-u16.c: Likewise.
49304         * lib/unistr/u8-to-u32.c: Likewise.
49305         * lib/unistr/u8-uctomb-aux.c: Likewise.
49306         * lib/unistr/u8-uctomb.c: Likewise.
49307         * lib/unitypes.h: Likewise.
49308         * lib/uniwidth.h: Likewise.
49309         * lib/uniwidth/cjk.h: Likewise.
49310         * lib/uniwidth/u16-strwidth.c: Likewise.
49311         * lib/uniwidth/u16-width.c: Likewise.
49312         * lib/uniwidth/u32-strwidth.c: Likewise.
49313         * lib/uniwidth/u32-width.c: Likewise.
49314         * lib/uniwidth/u8-strwidth.c: Likewise.
49315         * lib/uniwidth/u8-width.c: Likewise.
49316         * lib/uniwidth/width.c: Likewise.
49317
49318 2007-10-07  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49321         The file is still under LGPL (see modules/inttypes).
49322
49323 2007-10-06  Bruno Haible  <bruno@clisp.org>
49324
49325         * modules/trunc (Dependencies): Add 'extensions'.
49326         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49327         Reported by Ben Pfaff <blp@gnu.org>.
49328
49329 2007-10-06  Bruno Haible  <bruno@clisp.org>
49330
49331         * modules/freopen-tests: New file.
49332         * tests/test-freopen.c: New file.
49333
49334         * modules/fopen-tests: New file.
49335         * tests/test-fopen.c: New file.
49336
49337         * modules/fopen: New file.
49338         * lib/fopen.c: New file.
49339         * m4/fopen.m4: New file.
49340         * modules/freopen: New file.
49341         * lib/freopen.c: New file.
49342         * m4/freopen.m4: New file.
49343         * lib/stdio.in.h (fopen, freopen): New declarations.
49344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49345         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49346         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49347         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49348         * doc/functions/fopen.texi: Mention the 'fopen' module.
49349         * doc/functions/freopen.texi: Mention the 'freopen' module.
49350
49351 2007-10-06  Bruno Haible  <bruno@clisp.org>
49352
49353         * modules/open-tests: New file.
49354         * tests/test-open.c: New file.
49355
49356         * modules/open: New file.
49357         * lib/open.c: New file.
49358         * m4/open.m4: New file.
49359         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49360         lib/open.c does.
49361         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49362         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49363         macros.
49364         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49365         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49366         REPLACE_OPEN.
49367         * doc/functions/open.texi: Mention the 'open' module.
49368
49369 2007-10-04  Bruno Haible  <bruno@clisp.org>
49370
49371         * modules/ceill-tests: New file.
49372         * tests/test-ceill.c: New file.
49373
49374         * modules/ceill: New file.
49375         * lib/ceill.c: Replace entire file.
49376         * m4/ceill.m4: New file.
49377         * lib/math.in.h (ceill): Replace declaration.
49378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49379         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49380         * doc/functions/ceill.texi: Mention the 'ceill' module.
49381         * modules/mathl (Files): Remove lib/ceill.c.
49382         (Depends-on): Add ceill.
49383
49384 2007-10-04  Bruno Haible  <bruno@clisp.org>
49385
49386         * modules/ceilf-tests: New file.
49387         * tests/test-ceilf.c: New file.
49388
49389         * modules/ceilf: New file.
49390         * lib/ceil.c: New file.
49391         * lib/ceilf.c: New file.
49392         * m4/ceilf.m4: New file.
49393         * lib/math.in.h (ceilf): New declaration.
49394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49395         HAVE_DECL_CEILF.
49396         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49397         HAVE_DECL_CEILF.
49398         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49399
49400 2007-10-04  Bruno Haible  <bruno@clisp.org>
49401
49402         * modules/floorl-tests: New file.
49403         * tests/test-floorl.c: New file.
49404
49405         * modules/floorl: New file.
49406         * lib/floorl.c: Replace entire file.
49407         * m4/floorl.m4: New file.
49408         * lib/math.in.h (floorl): Replace declaration.
49409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49410         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49411         * doc/functions/floorl.texi: Mention the 'floorl' module.
49412         * modules/mathl (Files): Remove lib/floorl.c.
49413         (Depends-on): Add floorl.
49414
49415 2007-10-04  Bruno Haible  <bruno@clisp.org>
49416
49417         * modules/floorf-tests: New file.
49418         * tests/test-floorf.c: New file.
49419
49420         * modules/floorf: New file.
49421         * lib/floor.c: New file.
49422         * lib/floorf.c: New file.
49423         * m4/floorf.m4: New file.
49424         * lib/math.in.h (floorf): New declaration.
49425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49426         HAVE_DECL_FLOORF.
49427         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49428         HAVE_DECL_FLOORF.
49429         * doc/functions/floorf.texi: Mention the 'floorf' module.
49430
49431 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49432             Bruno Haible  <bruno@clisp.org>
49433
49434         Advertise for the Git server instead of the CVS server.
49435         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49436         repository instead of the CVS one.
49437         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49438         about all VCS systems generically.
49439         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49440
49441 2007-10-04  Bruno Haible  <bruno@clisp.org>
49442
49443         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49444         means.
49445         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49446
49447 2007-10-04  Bruno Haible  <bruno@clisp.org>
49448
49449         * modules/truncl-tests: New file.
49450         * tests/test-truncl.c: New file.
49451
49452         * modules/truncl: New file.
49453         * lib/truncl.c: New file.
49454         * m4/truncl.m4: New file.
49455         * lib/math.in.h (truncl): New declaration.
49456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49457         HAVE_DECL_TRUNCL.
49458         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49459         HAVE_DECL_TRUNCL.
49460         * doc/functions/truncl.texi: Mention the 'truncl' module.
49461
49462 2007-10-04  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/truncf-tests: New file.
49465         * tests/test-truncf.c: New file.
49466
49467         * modules/truncf: New file.
49468         * lib/trunc.c: Make paramerizable through USE_* macros.
49469         * lib/truncf.c: New file.
49470         * m4/truncf.m4: New file.
49471         * lib/math.in.h (truncf): New declaration.
49472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49473         HAVE_DECL_TRUNCF.
49474         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49475         HAVE_DECL_TRUNCF.
49476         * doc/functions/truncf.texi: Mention the 'truncf' module.
49477
49478 2007-10-03  Bruno Haible  <bruno@clisp.org>
49479
49480         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49481         augmentation also for tests modules.
49482         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49483         * modules/atexit-tests (Makefile.am): Likewise.
49484         * modules/binary-io-tests (Makefile.am): Likewise.
49485         * modules/c-strcase-tests (Makefile.am): Likewise.
49486         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49487         * modules/canonicalize-tests (Makefile.am): Likewise.
49488         * modules/closein-tests (Makefile.am): Likewise.
49489         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49490         * modules/freadahead-tests (Makefile.am): Likewise.
49491         * modules/fseek-tests (Makefile.am): Likewise.
49492         * modules/fseeko-tests (Makefile.am): Likewise.
49493         * modules/ftell-tests (Makefile.am): Likewise.
49494         * modules/ftello-tests (Makefile.am): Likewise.
49495         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49496         * modules/isnanl-tests (Makefile.am): Likewise.
49497         * modules/lseek-tests (Makefile.am): Likewise.
49498         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49499         * modules/mbscasestr-tests (Makefile.am): Likewise.
49500         * modules/mbschr-tests (Makefile.am): Likewise.
49501         * modules/mbscspn-tests (Makefile.am): Likewise.
49502         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49503         * modules/mbspbrk-tests (Makefile.am): Likewise.
49504         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49505         * modules/mbsrchr-tests (Makefile.am): Likewise.
49506         * modules/mbsspn-tests (Makefile.am): Likewise.
49507         * modules/mbsstr-tests (Makefile.am): Likewise.
49508         * modules/printf-posix-tests (Makefile.am): Likewise.
49509         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49510         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49511         * modules/tsearch-tests (Makefile.am): Likewise.
49512         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49513         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49514         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49515         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49516         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49517         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49518         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49519         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49520         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49521         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49522         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49523         * modules/xstrtol-tests (Makefile.am): Likewise.
49524         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49525         * modules/yesno-tests (Makefile.am): Likewise.
49526
49527 2007-10-03  Bruno Haible  <bruno@clisp.org>
49528
49529         * modules/trunc-tests: New file.
49530         * tests/test-trunc.c: New file.
49531
49532         * modules/trunc: New file.
49533         * lib/trunc.c: New file.
49534         * m4/trunc.m4: New file.
49535         * lib/math.in.h (trunc): New declaration.
49536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49537         HAVE_DECL_TRUNC.
49538         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49539         HAVE_DECL_TRUNC.
49540         * doc/functions/trunc.texi: Mention the 'trunc' module.
49541
49542 2007-10-03  Bruno Haible  <bruno@clisp.org>
49543
49544         * tests/test-fpending.c: New file, mostly copied
49545         from coreutils/lib/t-fpending.c.
49546         * modules/fpending-tests: New file.
49547
49548 2007-10-03  Bruno Haible  <bruno@clisp.org>
49549
49550         Port the stdio extensions to QNX (untested).
49551         * lib/fseterr.c (fseterr): Add support for QNX.
49552         * lib/fbufmode.c (fbufmode): Likewise.
49553         * lib/freadable.c (freadable): Likewise.
49554         * lib/fwritable.c (fwritable): Likewise.
49555         * lib/freading.c (freading): Likewise.
49556         * lib/fwriting.c (fwriting): Likewise.
49557         * lib/freadahead.c (freadahed): Likewise.
49558         * lib/fpurge.c (fpurge): Likewise.
49559         * lib/fseeko.c (rpl_fseeko): Likewise.
49560
49561 2007-10-03  Bruno Haible  <bruno@clisp.org>
49562             Jim Meyering  <jim@meyering.net>
49563             Eric Blake  <ebb9@byu.net>
49564
49565         * doc/relocatable.texi: Use @command instead of @program.
49566
49567 2007-10-02  Jim Meyering  <jim@meyering.net>
49568
49569         Perform one more "_.h" -> ".in.h" substitution.
49570         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49571         instead of unistd_.h here, too.
49572
49573 2007-10-01  Bruno Haible  <bruno@clisp.org>
49574
49575         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49576         Needed for the alloca-opt module.
49577
49578 2007-09-30  Bruno Haible  <bruno@clisp.org>
49579
49580         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49581         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49582         alloca_.h.
49583         * lib/argz.in.h: Renamed from lib/argz_.h.
49584         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49585         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49586         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49587         byteswap_.h.
49588         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49589         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49590         dirent_.h.
49591         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49592         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49593         fcntl_.h.
49594         * lib/float.in.h: Renamed from lib/float_.h.
49595         * modules/float (Files, Makefile.am): Use float.in.h instead of
49596         float_.h.
49597         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49598         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49599         fnmatch_.h.
49600         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49601         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49602         getopt_.h.
49603         * lib/glob.in.h: Renamed from lib/glob_.h.
49604         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49605         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49606         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49607         iconv_.h.
49608         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49609         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49610         inttypes_.h.
49611         * lib/locale.in.h: Renamed from lib/locale_.h.
49612         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49613         locale_.h.
49614         * lib/math.in.h: Renamed from lib/math_.h.
49615         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49616         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49617         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49618         of netinet_in_.h. Add dependency.
49619         * lib/poll.in.h: Renamed from lib/poll_.h.
49620         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49621         * lib/search.in.h: Renamed from lib/search_.h.
49622         * modules/search (Files, Makefile.am): Use search.in.h instead of
49623         search_.h.
49624         * lib/signal.in.h: Renamed from lib/signal_.h.
49625         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49626         _signal.h.
49627         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49628         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49629         stdbool_.h.
49630         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49631         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49632         stdint_.h.
49633         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49634         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49635         stdio_.h.
49636         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49637         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49638         stdlib_.h.
49639         * lib/string.in.h: Renamed from lib/string_.h.
49640         * modules/string (Files, Makefile.am): Use string.in.h instead of
49641         string_.h.
49642         * doc/gnulib-tool.texi (Initial import): Update.
49643         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49644         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49645         of sys_select_.h. Add dependency.
49646         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49647         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49648         of sys_socket_.h.
49649         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49650         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49651         sys_stat_.h.
49652         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49653         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49654         sys_time_.h.
49655         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49656         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49657         sysexits_.h.
49658         * lib/time.in.h: Renamed from lib/time_.h.
49659         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49660         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49661         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49662         unistd_.h.
49663         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49664         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49665         wchar_.h.
49666         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49667         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49668         wctype_.h.
49669         * build-aux/bootstrap (slurp): Update.
49670         * lib/.cppi-disable: Update.
49671
49672 2007-09-30  Bruno Haible  <bruno@clisp.org>
49673
49674         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49675         Needed on BeOS.
49676
49677 2007-09-30  Bruno Haible  <bruno@clisp.org>
49678
49679         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49680
49681 2007-09-29  Bruno Haible  <bruno@clisp.org>
49682
49683         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49684
49685 2007-09-29  Bruno Haible  <bruno@clisp.org>
49686
49687         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49688         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49689         * build-aux/install-reloc: Compile also areadlink.c.
49690         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49691
49692 2007-09-29  Bruno Haible  <bruno@clisp.org>
49693
49694         * gnulib-tool (func_emit_initmacro_done): Indentation.
49695
49696 2007-09-29  Bruno Haible  <bruno@clisp.org>
49697
49698         * README: Add CVS checkout update instructions.
49699         Info from Bob Proulx <bob@proulx.com>.
49700
49701 2007-09-28  Eric Blake  <ebb9@byu.net>
49702
49703         Provide move-if-change.
49704         * build-aux/move-if-change: New file, based on best practice
49705         rather than any canonical upstream location.
49706
49707 2007-09-28  Jim Meyering  <jim@meyering.net>
49708
49709         Fix canonicalize loop-detection corner case.
49710         Do not attempt to stat the symlink values stored via seen_triple.
49711         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49712         on linux-2.6.18, (but not 2.6.22).
49713         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49714         triple_compare.  The former compares dev,ino,filename, while the latter
49715         would actually stat dirname(filename) when dev and ino were equal.
49716         * lib/hash-triple.c: Install <string.h>.
49717         (STREQ): Define.
49718         (triple_compare_ino_str): New function.
49719         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49720
49721 2007-09-28  Eric Blake  <ebb9@byu.net>
49722
49723         Enforce that AC_REPLACE_FUNCS files exist.
49724         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49725         override check for typos.
49726
49727         Fix test-closein on Solaris 10.
49728         * tests/test-closein.c (main): Don't assume stdin can be inherited
49729         closed on all systems.
49730         * tests/test-closein.sh: Likewise.
49731         Reported by Piotr Tarnowski.
49732
49733 2007-09-28  Jim Meyering  <jim@meyering.net>
49734
49735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49736
49737 2007-09-27  Jim Meyering  <jim@meyering.net>
49738
49739         canonicalize: Avoid a false-positive cycle failure.
49740         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49741         Sort.  Remove cycle-check.
49742         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49743         not cycle-check.h.
49744         (seen_triple): New function.
49745         (canonicalize_filename_mode): Use it instead of cycle-check.
49746         * tests/test-canonicalize.c: Add a test for this bug.
49747         * tests/test-canonicalize.sh: Set up and run the test.
49748
49749         New module, file-set, from coreutils.
49750         * modules/file-set: Define it.
49751         * lib/file-set.c, lib/file-set.h: Implement.
49752
49753         New module, hash-triple, from coreutils.
49754         * modules/hash-triple: Define it.
49755         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49756
49757 2007-09-25  Eric Blake  <ebb9@byu.net>
49758
49759         Fix strerror on Interix.
49760         * lib/string_.h (strerror): Declare replacement.
49761         * doc/functions/strerror.texi (strerror): Document the Interix
49762         shortcoming.
49763         * modules/string (Makefile.am): Support new hooks.
49764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49765         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49766         gl_FUNC_STRERROR_SEPARATE.
49767         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49768         * lib/strerror.c (rpl_strerror): Provide replacement.
49769         * modules/strerror (Depends-on): Add string.
49770         (configure.ac): Detect use of module.
49771         * tests/test-strerror.c: New file.
49772         * modules/strerror-tests: New test module.
49773         * modules/argp (Depends-on): Add strerror.
49774         * modules/error (Depends-on): Likewise.
49775         Reported by Martin Koeppe.
49776
49777 2007-09-24  Bruno Haible  <bruno@clisp.org>
49778
49779         * README: Update git instructions.
49780
49781 2007-09-24  Eric Blake  <ebb9@byu.net>
49782
49783         Revert fpending breakage from 2007-09-08.
49784         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49785         __fpending.c.
49786
49787 2007-09-24  Jim Meyering  <jim@meyering.net>
49788
49789         filenamecat.c: Add a test.
49790         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49791         showing how the function works when DIR is the empty string.
49792
49793 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49794
49795         * tests/test-canonicalize.sh: Turn on executable bit.
49796
49797 2007-09-19  Eric Blake  <ebb9@byu.net>
49798
49799         * README: Update CVS instructions.
49800
49801 2007-09-18  Bruno Haible  <bruno@clisp.org>
49802
49803         * modules/areadlink: New file.
49804         * lib/areadlink.h (areadlink): New declaration.
49805         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49806
49807 2007-09-17  Jim Meyering  <jim@meyering.net>
49808
49809         * lib/savewd.c (ESTALE) [!defined]: Define.
49810         Reported to be required on Interix by Martin Koeppe.
49811
49812 2007-09-17  Bruno Haible  <bruno@clisp.org>
49813
49814         * gnulib-tool (func_version): Use $version.
49815
49816 2007-09-16  Bruno Haible  <bruno@clisp.org>
49817
49818         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49819         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49820         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49821         Reported by Greg Schafer <gschafer@zip.com.au>.
49822
49823 2007-09-15  Bruno Haible  <bruno@clisp.org>
49824
49825         * gnulib-tool (sed): Try a little harder to make bash understand the
49826         alias.
49827         Reported by Bruce Korb <bruce.korb@gmail.com>.
49828
49829 2007-09-13  Eric Blake  <ebb9@byu.net>
49830
49831         * ChangeLog: Remove conflict markers.
49832
49833 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49834
49835         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49836         Reported by Bruno Haible <bruno@clisp.org>.
49837
49838 2007-09-12  Bruno Haible  <bruno@clisp.org>
49839
49840         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49841         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49842         is not defined.
49843
49844 2007-09-12  Eric Blake  <ebb9@byu.net>
49845
49846         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49847         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49848         Autoconf definition.
49849         * modules/euidaccess (Depends-on): Add extensions, for
49850         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49851         * modules/fnmatch (Depends-on): Likewise.
49852         * modules/getaddrinfo (Depends-on): Likewise.
49853         * modules/getdelim (Depends-on): Likewise.
49854         * modules/getline (Depends-on): Likewise.
49855         * modules/getsubopt (Depends-on): Likewise.
49856         * modules/gettext (Depends-on): Likewise.
49857         * modules/group-member (Depends-on): Likewise.
49858         * modules/mbchar (Depends-on): Likewise.
49859         * modules/memmem (Depends-on): Likewise.
49860         * modules/mempcpy (Depends-on): Likewise.
49861         * modules/memrchr (Depends-on): Likewise.
49862         * modules/pagealign_alloc (Depends-on): Likewise.
49863         * modules/readutmp (Depends-on): Likewise.
49864         * modules/stpcpy (Depends-on): Likewise.
49865         * modules/stpncpy (Depends-on): Likewise.
49866         * modules/strchrnul (Depends-on): Likewise.
49867         * modules/strndup (Depends-on): Likewise.
49868         * modules/strsep (Depends-on): Likewise.
49869         * modules/strverscmp (Depends-on): Likewise.
49870         * modules/vasprintf (Depends-on): Likewise.
49871         * modules/wcwidth (Depends-on): Likewise.
49872         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49873         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49874         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49875         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49876         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49877         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49878         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49879         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49880         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49881         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49882         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49883         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49885         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49886         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49887         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49888         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49889         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49891         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49892         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49893         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49894         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49895         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49896         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49898         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49899         so that lock.m4 can be used in gettext without extensions module.
49900
49901 2007-09-11  Bruno Haible  <bruno@clisp.org>
49902
49903         * m4/isc-posix.m4: Remove file.
49904         Suggested by Eric Blake.
49905
49906 2007-09-11  Eric Blake  <ebb9@byu.net>
49907
49908         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49909
49910 2007-09-10  Bruno Haible  <bruno@clisp.org>
49911
49912         * posix-modules: Fix typo in error message.
49913         Reported by Matt <mkraai@beckman.com>.
49914
49915 2007-09-09  Bruno Haible  <bruno@clisp.org>
49916
49917         * doc/functions/getdelim.texi: Update list of platforms lacking the
49918         function.
49919         * doc/functions/getline.texi: Likewise.
49920
49921 2007-09-09  Jim Meyering  <jim@meyering.net>
49922
49923         * lib/hash.c (hash_initialize): Detect calloc failure.
49924         Reported by Bruno Haible.
49925
49926 2007-09-09  Bruno Haible  <bruno@clisp.org>
49927
49928         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49929         malloc or realloc fails.
49930
49931 2007-09-09  Bruno Haible  <bruno@clisp.org>
49932
49933         * modules/getcwd (Depends-on): Add malloc-posix.
49934         * modules/glob (Depends-on): Likewise.
49935         * modules/putenv (Depends-on): Likewise.
49936         * modules/strdup (Depends-on): Likewise.
49937         * modules/getdelim (Depends-on): Add realloc-posix.
49938         * modules/read-file (Depends-on): Likewise.
49939
49940 2007-09-09  Bruno Haible  <bruno@clisp.org>
49941
49942         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49943         (gl_FUNC_MALLOC_POSIX): Require it.
49944         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49945         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49946         * modules/realloc (Files): Add m4/malloc.m4.
49947         * modules/calloc (Files): Likewise.
49948
49949 2007-09-09  Bruno Haible  <bruno@clisp.org>
49950
49951         * modules/malloc-posix: New file.
49952         * modules/malloc (Depends-on): Add malloc-posix.
49953         * lib/malloc.c: Include errno.h.
49954         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49955         and a POSIX-compatible malloc into a single function. Set ENOMEM
49956         when returning NULL.
49957         * m4/malloc.m4: New file.
49958         * doc/functions/malloc.texi: Mention the malloc-posix module.
49959         * lib/stdlib_.h (malloc): New declaration.
49960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49961         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49962         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49963         and HAVE_MALLOC_POSIX.
49964
49965 2007-09-09  Bruno Haible  <bruno@clisp.org>
49966
49967         * modules/realloc-posix: New file.
49968         * modules/realloc (Depends-on): Add realloc-posix.
49969         * lib/realloc.c: Include errno.h.
49970         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49971         and a POSIX-compatible realloc into a single function. Set ENOMEM
49972         when returning NULL.
49973         * m4/realloc.m4: New file.
49974         * doc/functions/realloc.texi: Mention the realloc-posix module.
49975         * lib/stdlib_.h (realloc): New declaration.
49976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49977         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49978         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49979         and HAVE_REALLOC_POSIX.
49980
49981 2007-09-09  Bruno Haible  <bruno@clisp.org>
49982
49983         * modules/calloc-posix: New file.
49984         * modules/calloc (Depends-on): Add calloc-posix.
49985         * lib/calloc.c: Include errno.h.
49986         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49987         and a POSIX-compatible calloc into a single function. Set ENOMEM
49988         when returning NULL.
49989         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49990         * doc/functions/calloc.texi: Mention the calloc-posix module.
49991         * lib/stdlib_.h (calloc): New declaration.
49992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49993         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49994         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49995         and HAVE_CALLOC_POSIX.
49996
49997 2007-09-09  Bruno Haible  <bruno@clisp.org>
49998
49999         Allow for modules to show an arbitrary notice.
50000         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50001         * gnulib-tool: New option --extract-notice.
50002         (func_usage): Document it.
50003         (sed_extract_prog): Update.
50004         (func_get_notice): New function.
50005         (func_modules_notice): New function.
50006         (func_import, func_create_testdir): Invoke it.
50007         Suggested by Jim Meyering.
50008
50009 2007-09-09  Bruno Haible  <bruno@clisp.org>
50010
50011         * gnulib-tool: New options --verbose, --quiet.
50012         (func_usage): Document them.
50013         (verbose): New variable.
50014         (func_execute_command): New function.
50015         (func_import): Don't show the module list and the file list if
50016         $verbose < 0.
50017         (func_create_testdir): Likewise. Use func_execute_command.
50018         (func_create_megatestdir): Use func_execute_command.
50019
50020 2007-09-08  Bruno Haible  <bruno@clisp.org>
50021
50022         * gnulib-tool (func_import): Prefer rsync over wget when available,
50023         for fetching the PO files.
50024
50025 2007-09-08  Bruno Haible  <bruno@clisp.org>
50026
50027         * posix-modules: New file. Portions copied from gnulib-tool.
50028         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50029
50030 2007-09-08  Jim Meyering  <jim@meyering.net>
50031
50032         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50033         * lib/fpending.h: Rename from __fpending.h.
50034         * lib/fpending.c: Rename from __fpending.c.
50035         Include "fpending.h", not "__fpending.h".
50036         * lib/__fpending.h, lib/__fpending.c: Remove files.
50037         * modules/fpending (Files): Reflect new file names.
50038         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50039
50040 2007-09-08  Bruno Haible  <bruno@clisp.org>
50041
50042         * m4/inttypes-h.m4: Remove stub file.
50043
50044 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50045
50046         * doc/headers/stdint.texi: Discuss #include_next issue.
50047
50048 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50049
50050         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50051
50052 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50053
50054         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50055         in variable name.
50056
50057 2007-09-03  Jim Meyering  <jim@meyering.net>
50058
50059         New module: git-version-gen.
50060         * modules/git-version-gen: New file.
50061
50062         Import changes from coreutils for bootstrap script.
50063
50064         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50065
50066         bootstrap: uses rsync to download the .po files
50067         * build-aux/bootstrap (po_download_command_format): New global.
50068         (download_po_files): Use rsync.
50069         (update_po_files): Don't remove .po files after download,
50070         so future rsync runs can take advantage of the copies.
50071
50072         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50073
50074         Solve the unnecessary-.po-file-regeneration problem once and for all.
50075         * build-aux/bootstrap (download_po_files): New function, renamed from
50076         get_translations.  Now, downloads, but doesn't update LINGUAS.
50077         (update_po_files): New function.
50078
50079         bootstrap: Ignore more.
50080         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50081         uniwidth to e.g., lib/.gitignore.
50082         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50083
50084         * build-aux/bootstrap: New setting: vc_ignore.
50085         (insert_sorted_if_absent): Create $file if absent.
50086         Adapt to new, possibly empty, list: $vc_ignore.
50087
50088         bootstrap: generate more ignorable names
50089         * build-aux/bootstrap (slurp): When generating ignorable names,
50090         also map .sin to .sed, .gperf to .c, and .y to .c.
50091
50092 2007-09-03  Jim Meyering  <jim@meyering.net>
50093
50094         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50095         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50096
50097 2007-09-02  Bruno Haible  <bruno@clisp.org>
50098
50099         Fix mis-recognition of 'mcs' on QNX 6.
50100         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50101         output contains the string "Mono".
50102         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50103         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50104
50105 2007-09-01  Bruno Haible  <bruno@clisp.org>
50106
50107         Fix collision between uniwidth/* and linebreak modules.
50108         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50109         u32_width): Remove declarations.
50110         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50111         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50112         streq3, streq2, streq1, streq0): Remove functions.
50113         (STREQ): Remove macro.
50114         (is_cjk_encoding): Remove function.
50115         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50116         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50117         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50118         * NEWS: Document the change.
50119
50120 2007-09-01  Bruno Haible  <bruno@clisp.org>
50121
50122         * lib/streq.h: Add double-inclusion guard.
50123
50124 2007-09-01  Karl Berry  <karl@gnu.org>
50125
50126         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50127
50128 2007-08-28  Jim Meyering  <jim@meyering.net>
50129
50130         Rename mreadlink_with_size to areadlink_with_size.
50131         * NEWS: Document the change.
50132         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50133         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50134         * lib/mreadlink.h: Rename this to...
50135         * lib/areadlink.h: ...this.
50136         * modules/mreadlink-with-size: Rename this to...
50137         * modules/areadlink-with-size: ...this.
50138         * lib/canonicalize.c: Reflect the renaming.
50139         * modules/canonicalize: Likewise.
50140
50141 2007-08-26  Bruno Haible  <bruno@clisp.org>
50142
50143         * gnulib-tool (func_import): When deciding which files to remove,
50144         consider also dangling symbolic links.
50145         Reported by Eric Blake.
50146
50147 2007-08-26  Bruno Haible  <bruno@clisp.org>
50148
50149         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50150
50151 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50152
50153         * lib/readline.c: Don't include getline.h, the prototype is now
50154         found in stdio.h.
50155
50156 2007-08-23  Jim Meyering  <jim@meyering.net>
50157
50158         Getdelim touchup.
50159         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50160         around the funlockfile call, since funlockfile never sets errno.
50161         Don't set errno upon failed realloc.
50162
50163 2007-08-22  Eric Blake  <ebb9@byu.net>
50164
50165         Getline touchups.
50166         * lib/getdelim.c (getdelim): Revert regression that required *n to
50167         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50168         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50169         getdelim, rather than whether implementation is missing.
50170         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50171         * lib/stdio_.h (getline): Also declare if replacement is
50172         required.
50173         * doc/functions/getdelim.texi: New file.
50174         * doc/functions/getline.texi: Likewise.
50175         * doc/gnulib.texi (Function Substitutes): Add new files.
50176         Reported by Bruno Haible.
50177
50178 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50179
50180         * users.txt: Add Guile.
50181
50182 2007-08-22  Eric Blake  <ebb9@byu.net>
50183
50184         * tests/test-getdelim.c (main): Use remove, not unlink.
50185         * tests/test-getline.c (main): Likewise.
50186
50187         Move getline and getdelim into stdio.h, per POSIX 200x.
50188         * modules/getline (Files): Remove getline.h.
50189         (Depends-on): Add stdio.
50190         (configure.ac): Add module indicator.
50191         * modules/getdelim (Files): Remove getdelim.h.
50192         (Depends-on): Add stdio.
50193         (configure.ac): Add module indicator.
50194         * modules/stdio (Makefile.am): Work with new indicators.
50195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50196         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50197         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50198         * lib/getdelim.h: Delete.
50199         * lib/getline.h: Delete.
50200         * lib/stdio_.h (getdelim, getline): Declare.
50201         * modules/getdelim-tests: New module.
50202         * modules/getline-tests: Likewise.
50203         * tests/test-getdelim.c: New file.
50204         * tests/test-getline.c: Likewise.
50205         * NEWS: Document the change.
50206         * lib/getline.c: Update choice of header.
50207         * lib/csharpcomp.c: Likewise.
50208         * lib/getpass.c: Likewise.
50209         * lib/javacomp.c: Likewise.
50210         * lib/javaversion.c: Likewise.
50211         * lib/yesno.c: Likewise.
50212         * lib/getdelim.c: Likewise.
50213         (getdelim): Set errno on failure, and avoid memory leak.
50214
50215 2007-08-19  Bruno Haible  <bruno@clisp.org>
50216
50217         * modules/closein (Depends-on): Add freadahead.
50218         * lib/closein.c: Include freadahead.h.
50219         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50220         is zero.
50221
50222 2007-08-19  Bruno Haible  <bruno@clisp.org>
50223
50224         * modules/freadahead-tests: New file.
50225         * tests/test-freadahead.sh: New file.
50226         * tests/test-freadahead.c: New file.
50227
50228         * modules/freadahead: New file.
50229         * lib/freadahead.h: New file.
50230         * lib/freadahead.c: New file.
50231         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50232         fbufmode, fpurge, freadable, fwritable.
50233
50234 2007-08-19  Eric Blake  <ebb9@byu.net>
50235
50236         Test yesno in combination with closein.
50237         * lib/yesno.c (yesno): Document use of stdin.
50238         * modules/yesno-tests (Files): New module.
50239         * tests/test-yesno.c (main): New file.
50240         * tests/test-yesno.sh: Likewise.
50241
50242 2007-08-19  Bruno Haible  <bruno@clisp.org>
50243
50244         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50245         * lib/fseeko.c (rpl_fseeko): Likewise.
50246         * lib/fseterr.c (fseterr): Likewise.
50247
50248 2007-08-19  Bruno Haible  <bruno@clisp.org>
50249
50250         * tests/test-lseek.c (main): Disable a test for BeOS.
50251         * doc/functions/lseek.texi: Document the BeOS bug.
50252
50253 2007-08-19  Bruno Haible  <bruno@clisp.org>
50254             Eric Blake  <ebb9@byu.net>
50255
50256         * lib/lseek.c: Include <sys/stat.h>.
50257         (rpl_lseek): Add workaround code also for Unix platforms.
50258         Needed for BeOS.
50259         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50260         * doc/functions/lseek.texi: Document BeOS definiency.
50261
50262 2007-08-18  Bruno Haible  <bruno@clisp.org>
50263
50264         * modules/fstrcmp-tests: New file.
50265         * tests/test-fstrcmp.c: New file.
50266
50267 2007-08-18  Bruno Haible  <bruno@clisp.org>
50268
50269         * modules/fstrcmp: New file, from GNU gettext with modifications.
50270         * lib/fstrcmp.h: New file, from GNU gettext.
50271         * lib/fstrcmp.c: New file, from GNU gettext.
50272         * MODULES.html.sh (String handling): Add fstrcmp.
50273
50274 2007-08-18  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50277         'bool'.
50278         (diag, compareseq): Remove const from the ctxt argument.
50279         (USE_HEURISTIC): Undefine at the end.
50280
50281 2007-08-18  Jim Meyering  <jim@meyering.net>
50282
50283         New file: lib/idcache.h
50284         * NEWS: Mention the addition.
50285         * modules/idcache (Files): Add lib/idcache.h
50286         * lib/idcache.c: Include "idcache.h".
50287         Don't include <sys/types.h>.
50288         Add a FIXME comment.
50289         Move file-scoped "static" declarations to the top.
50290         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50291
50292 2007-08-17  Bruno Haible  <bruno@clisp.org>
50293         and Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         * MODULES.html.sh: Add diffseq.
50296         * modules/diffseq: New file.
50297         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50298         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50299
50300 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50301
50302         Import changes from coreutils for bootstrap script.
50303
50304         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50305
50306         * build-aux/bootstrap (slurp): Work even in environments where
50307         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50308         current code does not slurp files whose names start with ".", and
50309         this looks like it might be a troublesome area.
50310
50311         2007-07-11  Jim Meyering  <jim@meyering.net>
50312
50313         If there's a GPL vN copyright comment, require that N == 3.
50314
50315         2007-07-08  Jim Meyering  <jim@meyering.net>
50316
50317         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50318         * build-aux/bootstrap (mam_template): Move definition out of loop.
50319
50320         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50321
50322         * build-aux/bootstrap (symlink_to_dir): Rename function from
50323         symlink_to_gnulib.  Add a directory parameter.  Update all
50324         callers.
50325         (cp_mark_as_generated): Also check for -- and link to -- files in
50326         gl/.
50327
50328         2007-07-08  Jim Meyering  <jim@meyering.net>
50329
50330         Adapt to deeper hierarchy in gnulib.
50331         * build-aux/bootstrap (symlink_to_dir): If the destination
50332         directory doesn't exist, create it. This is required at least for
50333         "lib/uniwidth/cjk.h".
50334
50335         2007-05-15  Jim Meyering  <jim@meyering.net>
50336
50337         * build-aux/bootstrap: Now that generated Makefile.am files
50338         are no longer under version control, they must be created at
50339         bootstrap time.
50340
50341 2007-08-14  Ben Pfaff  <blp@gnu.org>
50342
50343         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50344
50345 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50346
50347         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50348         given the changes below.
50349         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50350         even on hosts that have padding bits beyond the supported 64.
50351
50352 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50353
50354         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50355         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50356         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50357         depends on it.
50358         (xstrtol_error): Remove.
50359         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50360         but with a different signature.
50361         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50362         * lib/xstrtol-error.c: Include exitfail.h.
50363         (xstrtol_fatal): New function, with a different signature from the
50364         old xstrtol_error, so that the caller need not worry about passing
50365         in an exit status, or about storage management of the option argument.
50366         (xstrtol_error): Now a static function.  Redo signature to
50367         implement xstrtol_fatal.  Output the correct number of hyphens in
50368         front of the option so that the caller need not worry about
50369         storage management.
50370         (N_): New macro.
50371         (_): Remove; not used now.
50372         * modules/xstrtol: Depend on getopt.
50373         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50374         of old STRTOL_FATAL_ERROR macro.
50375         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50376         of test program.
50377         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50378         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50379
50380 2007-08-08  Eric Blake  <ebb9@byu.net>
50381
50382         * lib/xstrtol-error.c: Add missing include.
50383
50384         Move xstrtol messages into gnulib domain, when --pobase is used.
50385         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50386         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50387         * modules/xstrtol (Files): Distribute new file.
50388         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50389         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50390         * tests/test-xstrtol.c: ...into new file.
50391         * tests/test-xstrtoul.c: Also test xstrtoul.
50392         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50393         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50394         * tests/test-xstrtol.sh: Drive the tests.
50395         * tests/test-xstrtoimax.sh: Likewise.
50396         * tests/test-xstrtoumax.sh: Likewise.
50397         * modules/xstrtol-tests: New module.
50398         * modules/xstrtoimax-tests: Likewise.
50399         * modules/xstrtoumax-tests: Likewise.
50400
50401 2007-08-08  Jim Meyering  <jim@meyering.net>
50402
50403         New function: mfile_name_concat.
50404         * lib/filenamecat.c (mfile_name_concat): New function, just like
50405         file_name_concat, but return NULL upon failure rather than exiting
50406         with a diagnostic.
50407         * lib/filenamecat.h: Declare it.
50408
50409 2007-08-07  Bruno Haible  <bruno@clisp.org>
50410
50411         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50412         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50413         warning from gcc.
50414         Reported by Eric Blake.
50415
50416 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50417
50418         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50419         * modules/crypto/arcfour (License): Likewise.
50420         * modules/crypto/des-tests (License): Likewise.
50421         * modules/crypto/gc-arctwo-tests (License): Likewise.
50422         * modules/crypto/gc-des-tests (License): Likewise.
50423         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50424         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50425         * modules/crypto/gc-md2-tests (License): Likewise.
50426         * modules/crypto/gc-md4-tests (License): Likewise.
50427         * modules/crypto/gc-md5-tests (License): Likewise.
50428         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50429         * modules/crypto/gc-rijndael-tests (License): Likewise.
50430         * modules/crypto/gc-sha1-tests (License): Likewise.
50431         * modules/crypto/gc-tests (License): Likewise.
50432         * modules/crypto/hmac-md5 (License): Likewise.
50433         * modules/crypto/hmac-sha1 (License): Likewise.
50434         * modules/crypto/md2-tests (License): Likewise.
50435         * modules/crypto/md4-tests (License): Likewise.
50436         * modules/crypto/md5 (License): Likewise.
50437         * modules/crypto/rijndael (License): Likewise.
50438         * modules/crypto/sha1 (License): Likewise.
50439         * modules/memxor (License): Likewise.
50440
50441 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50442         and Bruno Haible  <bruno@clisp.org>
50443
50444         * NEWS: Describe interface changes to human, xstrtol.
50445         * lib/human.h: Include <xstrtol.h>.
50446         (human_options): Return enum strtol_error, not int.  Remove
50447         bool arg; take int * instead.
50448         * lib/human.c: Don't include "gettext.h".
50449         (_): Remove; no longer used.
50450         Don't include <xstrtol.h>, since human.h does it.
50451         (human_options): Adjust to abovementioned interface changes.
50452         Do not report error to stderr; that's now the caller's
50453         responsibility.
50454         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50455         interface change.
50456         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50457         Str, Argument_type_string.  All uses changed.  Put " argument"
50458         in diagnostics to make them clearer.  Change wording of suffix
50459         message for clarity.
50460         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50461         Argument_type_string.
50462         (STRTOL_FATAL_WARN): Remove; no longer used.
50463         * modules/human (Depends-on): Remove gettext-h.
50464
50465 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50466
50467         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50468
50469 2007-07-31  Bruno Haible  <bruno@clisp.org>
50470
50471         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50472         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50473         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50474
50475 2007-07-31  Bruno Haible  <bruno@clisp.org>
50476
50477         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50478         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50479
50480 2007-07-30  Bruno Haible  <bruno@clisp.org>
50481
50482         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50483         * modules/c-ctype (License): Likewise.
50484         * modules/c-strcase (License): Likewise.
50485         * modules/check-version (License): Likewise.
50486         * modules/iconv (License): Likewise.
50487         * modules/iconv_open (License): Likewise.
50488         * modules/read-file (License): Likewise.
50489         * modules/striconv (License): Likewise.
50490         * modules/strverscmp (License): Likewise.
50491         * modules/vasprintf (License): Likewise.
50492         * modules/crypto/des (License): Likewise.
50493         * modules/crypto/gc (License): Likewise.
50494         * modules/crypto/gc-arcfour (License): Likewise.
50495         * modules/crypto/gc-arctwo (License): Likewise.
50496         * modules/crypto/gc-des (License): Likewise.
50497         * modules/crypto/gc-hmac-md5 (License): Likewise.
50498         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50499         * modules/crypto/gc-md2 (License): Likewise.
50500         * modules/crypto/gc-md4 (License): Likewise.
50501         * modules/crypto/gc-md5 (License): Likewise.
50502         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50503         * modules/crypto/gc-random (License): Likewise.
50504         * modules/crypto/gc-rijndael (License): Likewise.
50505         * modules/crypto/gc-sha1 (License): Likewise.
50506         * modules/crypto/md2 (License): Likewise.
50507         * modules/crypto/md4 (License): Likewise.
50508
50509 2007-07-30  Jim Meyering  <jim@meyering.net>
50510
50511         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50512         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50513         it has valid stat data.  This bug would cause du not to count the
50514         sizes of inaccessible directories.
50515         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50516         in <http://bugzilla.redhat.com/250077>.
50517
50518 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50519             Bruno Haible  <bruno@clisp.org>
50520
50521         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50522         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50523         #include_next, gives a diagnostic about it, but reports no error in
50524         the exit code.
50525         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50526
50527 2007-07-24  Ben Pfaff  <blp@gnu.org>
50528
50529         Improve name: "count-one-bits" is better than "popcount".
50530         * MODULES.html.sh: Update name.
50531         * lib/popcount.h: Renamed lib/count-one-bits.h.
50532         (popcount): Renamed count_one_bits.
50533         (popcountl): Renamed count_one_bits_l.
50534         (popcountll): Renamed count_one_bits_ll.
50535         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50536         * modules/popcount: Renamed module/count-one-bits.
50537         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50538         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50539
50540 2007-07-23  Ben Pfaff  <blp@gnu.org>
50541
50542         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50543         better code generation, and add U to large constants to avoid
50544         warnings, in non-GCC case.
50545         Suggested by Bruno Haible.
50546
50547 2007-07-23  Ben Pfaff  <blp@gnu.org>
50548
50549         * lib/popcount.h: Use verify_true instead of if...abort.
50550         * modules/popcount: Depend on verify module.
50551         Suggested by Jim Meyering.
50552
50553 2007-07-23  Bruno Haible  <bruno@clisp.org>
50554
50555         * gnulib-tool (func_import): Create a .cvsignore file also when the
50556         directory is not yet in CVS but the toplevel directory is. When
50557         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50558         Reported by Karl Berry.
50559
50560 2007-07-22  Ben Pfaff  <blp@gnu.org>
50561
50562         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50563         case.
50564         Suggested by Eric Blake.
50565
50566 2007-07-22  Ben Pfaff  <blp@gnu.org>
50567
50568         New module: popcount.
50569         * MODULES.html.sh: Add popcount.
50570         * modules/popcount: New file.
50571         * modules/popcount-tests: New file.
50572         * tests/test-popcount.c: New file.
50573         * lib/popcount.h: New file.
50574         * m4/popcount.m4: New file.
50575
50576 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50577
50578         * build-aux/announce-gen: Update to GPLv3.
50579
50580         * build-aux/config.guess: Update from config.
50581
50582 2007-07-21  Bruno Haible  <bruno@clisp.org>
50583
50584         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50585         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50586
50587 2007-07-20  Jim Meyering  <jim@meyering.net>
50588
50589         * check-module: Diagnose a self-dependency.
50590
50591 2007-07-19  Bruno Haible  <bruno@clisp.org>
50592
50593         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50594         empty.
50595         Reported by Eric Blake.
50596
50597 2007-07-18  Bruno Haible  <bruno@clisp.org>
50598
50599         * gnulib-tool: New options --po-base, --po-domain.
50600         (func_usage): Document them.
50601         (pobase, po_domain): New variables.
50602         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50603         DEFAULT_TEXT_DOMAIN.
50604         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50605         (func_import): Consider pobase and po_domain. Create a po/ directory.
50606         (func_create_testdir): Set pobase and po_domain to empty.
50607         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50608         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50609
50610 2007-07-18  Bruno Haible  <bruno@clisp.org>
50611
50612         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50613         EXTRA_DIST augmentation for files in build-aux/.
50614
50615 2007-07-16  Bruno Haible  <bruno@clisp.org>
50616
50617         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50618         * modules/getdelim (License): Likewise.
50619
50620 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50621
50622         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50623         * modules/d-type (License): Likewise.
50624         * modules/extensions (License): Likewise.
50625         * modules/fnmatch (License): Likewise.
50626         * modules/fseeko (License): Likewise.
50627         * modules/getaddrinfo (License): Likewise.
50628         * modules/getline (License): Likewise.
50629         * modules/getlogin_r (License): Likewise.
50630         * modules/getpass (License): Likewise.
50631         * modules/gettimeofday (License): Likewise.
50632         * modules/glob (License): Likewise.
50633         * modules/inet_ntop (License): Likewise.
50634         * modules/malloc (License): Likewise.
50635         * modules/malloca (License): Likewise.
50636         * modules/memmem (License): Likewise.
50637         * modules/mempcpy (License): Likewise.
50638         * modules/memset (License): Likewise.
50639         * modules/minmax (License): Likewise.
50640         * modules/mktime (License): Likewise.
50641         * modules/netinet_in (License): Likewise.
50642         * modules/pathmax (License): Likewise.
50643         * modules/poll (License): Likewise.
50644         * modules/regex (License): Likewise.
50645         * modules/snprintf (License): Likewise.
50646         * modules/stdbool (License): Likewise.
50647         * modules/stdint (License): Likewise.
50648         * modules/stdio (License): Likewise.
50649         * modules/strcase (License): Likewise.
50650         * modules/strcasestr (License): Likewise.
50651         * modules/strdup (License): Likewise.
50652         * modules/string (License): Likewise.
50653         * modules/strndup (License): Likewise.
50654         * modules/strnlen (License): Likewise.
50655         * modules/strpbrk (License): Likewise.
50656         * modules/strptime (License): Likewise.
50657         * modules/strsep (License): Likewise.
50658         * modules/sys_select (License): Likewise.
50659         * modules/sys_socket (License): Likewise.
50660         * modules/sys_stat (License): Likewise.
50661         * modules/sys_time (License): Likewise.
50662         * modules/time (License): Likewise.
50663         * modules/time_r (License): Likewise.
50664         * modules/timegm (License): Likewise.
50665         * modules/unistd (License): Likewise.
50666         * modules/vsnprintf (License): Likewise.
50667         * modules/wctype (License): Likewise.
50668
50669 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50670
50671         * modules/argz (License): LGPLv2+.
50672
50673 2007-07-15  Karl Berry  <karl@gnu.org>
50674
50675         * doc/gnulib.texi: revise node structure per new fdl.texi.
50676
50677 2007-07-14  Bruno Haible  <bruno@clisp.org>
50678
50679         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50680         the output file.
50681         * lib/uniname/uninames.h: Regenerated.
50682
50683 2007-07-14  Karl Berry  <karl@gnu.org>
50684
50685         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50686         omitting sectioning and index commands.
50687
50688 2007-07-13  Bruno Haible  <bruno@clisp.org>
50689
50690         New gnulib-tool option --more-symlinks.
50691         * gnulib-tool (func_usage): Document --more-symlinks.
50692         (do_copyrights): New variable.
50693         Recognize option --more-symlinks.
50694         (func_import): Don't add a copyright notice transform to
50695         sed_transform_lib_file if do_copyrights is empty.
50696
50697 2007-07-13  Bruno Haible  <bruno@clisp.org>
50698
50699         * lib/vasnprintf.c (decimal_point_char): Define also if
50700         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50701         && !NEED_PRINTF_DIRECTIVE_A.
50702         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50703         Gary V. Vaughan <gary@gnu.org>.
50704
50705 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50706
50707         * lib/inttypes_.h: Undo previous change, since it was fixed
50708         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50709
50710 2007-07-13  Bruno Haible  <bruno@clisp.org>
50711
50712         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50713         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50714
50715 2007-07-13  Jim Meyering  <jim@meyering.net>
50716
50717         df: Don't fail for Tru64's "file-on-file mount".
50718         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50719         so we fall through and use statfs instead.  Details here:
50720         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50721         Reported by Albert Chin.
50722
50723 2007-07-13  Bruno Haible  <bruno@clisp.org>
50724
50725         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50726         * modules/configmake (License): Likewise.
50727         * modules/gettext (License): Likewise.
50728         * modules/gettext-h (License): Likewise.
50729         * modules/include_next (License): Likewise.
50730         * modules/link-warning (License): Likewise.
50731         * modules/localcharset (License): Likewise.
50732         * modules/localename (License): Likewise.
50733         * modules/lock (License): Likewise.
50734         * modules/relocatable-lib-lgpl (License): Likewise.
50735         * modules/size_max (License): Likewise.
50736         * modules/vasnprintf (License): Likewise.
50737         * modules/wchar (License): Likewise.
50738         * modules/xsize (License): Likewise.
50739
50740 2007-07-13  Bruno Haible  <bruno@clisp.org>
50741
50742         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50743         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50744
50745 2007-07-12  Bruno Haible  <bruno@clisp.org>
50746
50747         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50748         in the modules files.
50749
50750 2007-07-11  Karl Berry  <karl@gnu.org>
50751
50752         * MODULES.html.sh (func_module): use
50753          sed -e '\|^'"${includefile}"'$|d'
50754          instead of /.../d, to avoid errors on $includefile's containing /.
50755
50756 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50757
50758         * gnulib-tool (func_import): Avoid duplication of --avoid
50759         statements
50760         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50761         names to `_' in variable names.
50762
50763 2007-07-10  Eric Blake  <ebb9@byu.net>
50764
50765         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50766         * NEWS: Document this change.
50767
50768 2007-07-08  Bruno Haible  <bruno@clisp.org>
50769
50770         Update to Unicode 5.0.
50771         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50772         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50773         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50774         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50775         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50776         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50777         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50778         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50779         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50780         U+10A3F, U+1D242..U+1D244.
50781         (nonspacing_table_ind): Update.
50782         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50783         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50784
50785 2007-07-08  Bruno Haible  <bruno@clisp.org>
50786
50787         Update to Unicode 5.0.
50788         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50789         code transform. Extend the name index field of unicode_name_to_code and
50790         unicode_code_to_name from 16 to 24 bits.
50791         * lib/uniname/uniname.c (unicode_character_name,
50792         unicode_name_character): Add the range 0x12xxx to the code transform.
50793         * lib/uniname/uninames.h: Regenerated.
50794         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50795
50796 2007-07-07  Bruno Haible  <bruno@clisp.org>
50797
50798         * modules/wcwidth-tests: New file.
50799         * tests/test-wcwidth.c: New file.
50800
50801         Work around MacOS X wcwidth() bug.
50802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50803         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50804         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50805         original wcwidth in non-UTF-8 locales.
50806         * modules/wcwidth (Depends-on): Add localcharset, streq,
50807         uniwidth/width.
50808         * doc/functions/wcwidth.texi: Update.
50809
50810 2007-07-07  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50813         (wcwidth): New declaration.
50814         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50815         macros.
50816         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50817         here. Prepare for creating <wchar.h> unconditionally.
50818         * modules/wchar (Depends-on): Add link-warning.
50819         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50820         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50821         * lib/wcwidth.h: Remove file.
50822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50823         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50824         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50825         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50826         (Include): Replace wcwidth.h with <wchar.h>.
50827         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50828         * lib/mbchar.h: Don't include wcwidth.h.
50829         * lib/mbswidth.c: Likewise.
50830         * NEWS: Mention the change.
50831
50832 2007-07-07  Bruno Haible  <bruno@clisp.org>
50833
50834         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50835         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50836         definition with an external declaration.
50837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50838         defined as a function. Remove AC_C_INLINE requirement.
50839         * modules/wcwidth (Files): Add lib/wcwidth.c.
50840         (Makefile.am): Remove redundant statement.
50841
50842 2007-07-07  Bruno Haible  <bruno@clisp.org>
50843
50844         * MODULES.html.sh (Unicode string functions): Add the new modules.
50845
50846         * tests/uniwidth/test-u32-strwidth.c: New file.
50847         * modules/uniwidth/u32-strwidth-tests: New file.
50848
50849         * lib/uniwidth/u32-strwidth.c: New file.
50850         * modules/uniwidth/u32-strwidth: New file.
50851
50852         * tests/uniwidth/test-u16-strwidth.c: New file.
50853         * modules/uniwidth/u16-strwidth-tests: New file.
50854
50855         * lib/uniwidth/u16-strwidth.c: New file.
50856         * modules/uniwidth/u16-strwidth: New file.
50857
50858         * tests/uniwidth/test-u8-strwidth.c: New file.
50859         * modules/uniwidth/u8-strwidth-tests: New file.
50860
50861         * lib/uniwidth/u8-strwidth.c: New file.
50862         * modules/uniwidth/u8-strwidth: New file.
50863
50864         * tests/uniwidth/test-u32-width.c: New file.
50865         * modules/uniwidth/u32-width-tests: New file.
50866
50867         * lib/uniwidth/u32-width.c: New file.
50868         * modules/uniwidth/u32-width: New file.
50869
50870         * tests/uniwidth/test-u16-width.c: New file.
50871         * modules/uniwidth/u16-width-tests: New file.
50872
50873         * lib/uniwidth/u16-width.c: New file.
50874         * modules/uniwidth/u16-width: New file.
50875
50876         * tests/uniwidth/test-u8-width.c: New file.
50877         * modules/uniwidth/u8-width-tests: New file.
50878
50879         * lib/uniwidth/u8-width.c: New file.
50880         * modules/uniwidth/u8-width: New file.
50881
50882         * tests/uniwidth/test-uc_width.c: New file.
50883         * modules/uniwidth/width-tests: New file.
50884
50885         * lib/uniwidth/width.c: New file, from GNU libiconv.
50886         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50887         * modules/uniwidth/width: New file.
50888
50889         * lib/uniwidth.h: New file, from GNU libiconv.
50890         * modules/uniwidth/base: New file.
50891
50892 2007-07-07  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/uniname.h: New file, from GNU gettext.
50895         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50896         * lib/uniname/uninames.h: New file, from GNU gettext.
50897         * lib/uniname/uniname.c: New file, from GNU gettext.
50898         * tests/uniname/test-uninames.sh: New file.
50899         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50900         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50901         * modules/uniname/base: New file.
50902         * modules/uniname/uniname: New file.
50903         * modules/uniname/uniname-tests: New file.
50904         * MODULES.html.sh (Unicode string functions): Add the new modules.
50905
50906 2007-07-06  Bruno Haible  <bruno@clisp.org>
50907
50908         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50909
50910 2007-07-06  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50913         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50914         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50915         include <sys/time.h>.
50916         Reported by Eric Blake.
50917
50918 2007-07-06  Eric Blake  <ebb9@byu.net>
50919
50920         Fix testing canonicalize on cygwin.
50921         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50922         Revert patch from 2007-06-19.
50923         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50924         canonicalize module is also in use.
50925         * tests/test-canonicalize.c: New file.
50926         * tests/test-canonicalize.sh: Likewise.
50927         * modules/canonicalize-tests: Likewise.
50928
50929 2007-07-06  Jim Meyering  <jim@meyering.net>
50930
50931         * lib/getugroups.c (getugroups): Detect getgrent failure.
50932         Adjust comment to reflect reality: this function may return -1.
50933
50934 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50935
50936         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50937         the new TP address.
50938         (usage): Fix typo
50939         (gnulib_mk): New variable.
50940
50941 2007-07-05  Jim Meyering  <jim@meyering.net>
50942
50943         Don't let endgrent clobber errno, no matter how improbable.
50944         * lib/getugroups.c (getugroups): Save and restore errno around
50945         endgrent call.
50946
50947         Close the group DB even when failing with 2^31 or more members.
50948         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50949
50950 2007-07-04  Jim Meyering  <jim@meyering.net>
50951
50952         * lib/getugroups.h: New file.
50953         * lib/getugroups.c: Include "getugroups.h".
50954         Remove uses of "register" keyword.
50955         Move local variable, "cp", down into scope where used.
50956         Give "username" parameter the "const" attribute.
50957         * modules/getugroups (Files): Add lib/getugroups.h
50958
50959 2007-07-04  Karl Berry  <karl@gnu.org>
50960
50961         * MODULES.html.sh (func_all_modules): Complete rename of
50962         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50963
50964 2007-07-02  Bruno Haible  <bruno@clisp.org>
50965
50966         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50967         mode, when inttypes.h comes from gnulib.
50968         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50969
50970 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50971
50972         * NEWS: Mention lgpl module name change.
50973
50974         * modules/lgpl-2.1: Renamed from lgpl.
50975
50976         * NEWS: Mention gpl module name change.
50977
50978         * modules/gpl-3.0: New file, based on gpl-2.0.
50979
50980         * modules/gpl-2.0: Renamed from gpl.
50981
50982         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50983         doc/gpl-2.0.texi.
50984
50985 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50986
50987         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50988         #define __STDC_LIMIT_MACROS temporarily while including
50989         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50990         Problem reported by Joel E. Denny in
50991         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50992
50993 2007-07-01  Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/unistdio.h: New file.
50996         * lib/unistdio/u-asnprintf.h: New file.
50997         * lib/unistdio/u-asprintf.h: New file.
50998         * lib/unistdio/u-printf-args.c: New file.
50999         * lib/unistdio/u-printf-args.h: New file.
51000         * lib/unistdio/u-printf-parse.h: New file.
51001         * lib/unistdio/u-snprintf.h: New file.
51002         * lib/unistdio/u-sprintf.h: New file.
51003         * lib/unistdio/u-vasprintf.h: New file.
51004         * lib/unistdio/u-vsnprintf.h: New file.
51005         * lib/unistdio/u-vsprintf.h: New file.
51006         * lib/unistdio/ulc-asnprintf.c: New file.
51007         * lib/unistdio/ulc-asprintf.c: New file.
51008         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51009         * lib/unistdio/ulc-printf-parse.c: New file.
51010         * lib/unistdio/ulc-snprintf.c: New file.
51011         * lib/unistdio/ulc-sprintf.c: New file.
51012         * lib/unistdio/ulc-vasnprintf.c: New file.
51013         * lib/unistdio/ulc-vasprintf.c: New file.
51014         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51015         * lib/unistdio/ulc-vsnprintf.c: New file.
51016         * lib/unistdio/ulc-vsprintf.c: New file.
51017         * lib/unistdio/u8-asnprintf.c: New file.
51018         * lib/unistdio/u8-asprintf.c: New file.
51019         * lib/unistdio/u8-printf-parse.c: New file.
51020         * lib/unistdio/u8-snprintf.c: New file.
51021         * lib/unistdio/u8-sprintf.c: New file.
51022         * lib/unistdio/u8-vasnprintf.c: New file.
51023         * lib/unistdio/u8-vasprintf.c: New file.
51024         * lib/unistdio/u8-vsnprintf.c: New file.
51025         * lib/unistdio/u8-vsprintf.c: New file.
51026         * lib/unistdio/u8-u8-asnprintf.c: New file.
51027         * lib/unistdio/u8-u8-asprintf.c: New file.
51028         * lib/unistdio/u8-u8-snprintf.c: New file.
51029         * lib/unistdio/u8-u8-sprintf.c: New file.
51030         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51031         * lib/unistdio/u8-u8-vasprintf.c: New file.
51032         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51033         * lib/unistdio/u8-u8-vsprintf.c: New file.
51034         * lib/unistdio/u16-asnprintf.c: New file.
51035         * lib/unistdio/u16-asprintf.c: New file.
51036         * lib/unistdio/u16-printf-parse.c: New file.
51037         * lib/unistdio/u16-snprintf.c: New file.
51038         * lib/unistdio/u16-sprintf.c: New file.
51039         * lib/unistdio/u16-vasnprintf.c: New file.
51040         * lib/unistdio/u16-vasprintf.c: New file.
51041         * lib/unistdio/u16-vsnprintf.c: New file.
51042         * lib/unistdio/u16-vsprintf.c: New file.
51043         * lib/unistdio/u16-u16-asnprintf.c: New file.
51044         * lib/unistdio/u16-u16-asprintf.c: New file.
51045         * lib/unistdio/u16-u16-snprintf.c: New file.
51046         * lib/unistdio/u16-u16-sprintf.c: New file.
51047         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51048         * lib/unistdio/u16-u16-vasprintf.c: New file.
51049         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51050         * lib/unistdio/u16-u16-vsprintf.c: New file.
51051         * lib/unistdio/u32-asnprintf.c: New file.
51052         * lib/unistdio/u32-asprintf.c: New file.
51053         * lib/unistdio/u32-printf-parse.c: New file.
51054         * lib/unistdio/u32-snprintf.c: New file.
51055         * lib/unistdio/u32-sprintf.c: New file.
51056         * lib/unistdio/u32-vasnprintf.c: New file.
51057         * lib/unistdio/u32-vasprintf.c: New file.
51058         * lib/unistdio/u32-vsnprintf.c: New file.
51059         * lib/unistdio/u32-vsprintf.c: New file.
51060         * lib/unistdio/u32-u32-asnprintf.c: New file.
51061         * lib/unistdio/u32-u32-asprintf.c: New file.
51062         * lib/unistdio/u32-u32-snprintf.c: New file.
51063         * lib/unistdio/u32-u32-sprintf.c: New file.
51064         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51065         * lib/unistdio/u32-u32-vasprintf.c: New file.
51066         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51067         * lib/unistdio/u32-u32-vsprintf.c: New file.
51068         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51069         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51070         * tests/unistdio/test-ulc-printf1.h: New file.
51071         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51072         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51073         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51074         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51075         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51076         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51077         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51078         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51079         * tests/unistdio/test-u8-asnprintf1.c: New file.
51080         * tests/unistdio/test-u8-asnprintf1.h: New file.
51081         * tests/unistdio/test-u8-printf1.h: New file.
51082         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51083         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51084         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51085         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51086         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51087         * tests/unistdio/test-u8-vasprintf1.c: New file.
51088         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51089         * tests/unistdio/test-u8-vsprintf1.c: New file.
51090         * tests/unistdio/test-u16-asnprintf1.c: New file.
51091         * tests/unistdio/test-u16-asnprintf1.h: New file.
51092         * tests/unistdio/test-u16-printf1.h: New file.
51093         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51094         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51095         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51096         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51097         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51098         * tests/unistdio/test-u16-vasprintf1.c: New file.
51099         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51100         * tests/unistdio/test-u16-vsprintf1.c: New file.
51101         * tests/unistdio/test-u32-asnprintf1.c: New file.
51102         * tests/unistdio/test-u32-asnprintf1.h: New file.
51103         * tests/unistdio/test-u32-printf1.h: New file.
51104         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51105         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51106         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51107         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51108         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51109         * tests/unistdio/test-u32-vasprintf1.c: New file.
51110         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51111         * tests/unistdio/test-u32-vsprintf1.c: New file.
51112         * modules/unistdio/base: New file.
51113         * modules/unistdio/u-printf-args: New file.
51114         * modules/unistdio/ulc-asnprintf: New file.
51115         * modules/unistdio/ulc-asprintf: New file.
51116         * modules/unistdio/ulc-fprintf: New file.
51117         * modules/unistdio/ulc-printf-parse: New file.
51118         * modules/unistdio/ulc-snprintf: New file.
51119         * modules/unistdio/ulc-sprintf: New file.
51120         * modules/unistdio/ulc-vasnprintf: New file.
51121         * modules/unistdio/ulc-vasprintf: New file.
51122         * modules/unistdio/ulc-vfprintf: New file.
51123         * modules/unistdio/ulc-vsnprintf: New file.
51124         * modules/unistdio/ulc-vsprintf: New file.
51125         * modules/unistdio/u8-asnprintf: New file.
51126         * modules/unistdio/u8-asprintf: New file.
51127         * modules/unistdio/u8-printf-parse: New file.
51128         * modules/unistdio/u8-snprintf: New file.
51129         * modules/unistdio/u8-sprintf: New file.
51130         * modules/unistdio/u8-vasnprintf: New file.
51131         * modules/unistdio/u8-vasprintf: New file.
51132         * modules/unistdio/u8-vsnprintf: New file.
51133         * modules/unistdio/u8-vsprintf: New file.
51134         * modules/unistdio/u8-u8-asnprintf: New file.
51135         * modules/unistdio/u8-u8-asprintf: New file.
51136         * modules/unistdio/u8-u8-snprintf: New file.
51137         * modules/unistdio/u8-u8-sprintf: New file.
51138         * modules/unistdio/u8-u8-vasnprintf: New file.
51139         * modules/unistdio/u8-u8-vasprintf: New file.
51140         * modules/unistdio/u8-u8-vsnprintf: New file.
51141         * modules/unistdio/u8-u8-vsprintf: New file.
51142         * modules/unistdio/u16-asnprintf: New file.
51143         * modules/unistdio/u16-asprintf: New file.
51144         * modules/unistdio/u16-printf-parse: New file.
51145         * modules/unistdio/u16-snprintf: New file.
51146         * modules/unistdio/u16-sprintf: New file.
51147         * modules/unistdio/u16-vasnprintf: New file.
51148         * modules/unistdio/u16-vasprintf: New file.
51149         * modules/unistdio/u16-vsnprintf: New file.
51150         * modules/unistdio/u16-vsprintf: New file.
51151         * modules/unistdio/u16-u16-asnprintf: New file.
51152         * modules/unistdio/u16-u16-asprintf: New file.
51153         * modules/unistdio/u16-u16-snprintf: New file.
51154         * modules/unistdio/u16-u16-sprintf: New file.
51155         * modules/unistdio/u16-u16-vasnprintf: New file.
51156         * modules/unistdio/u16-u16-vasprintf: New file.
51157         * modules/unistdio/u16-u16-vsnprintf: New file.
51158         * modules/unistdio/u16-u16-vsprintf: New file.
51159         * modules/unistdio/u32-asnprintf: New file.
51160         * modules/unistdio/u32-asprintf: New file.
51161         * modules/unistdio/u32-printf-parse: New file.
51162         * modules/unistdio/u32-snprintf: New file.
51163         * modules/unistdio/u32-sprintf: New file.
51164         * modules/unistdio/u32-vasnprintf: New file.
51165         * modules/unistdio/u32-vasprintf: New file.
51166         * modules/unistdio/u32-vsnprintf: New file.
51167         * modules/unistdio/u32-vsprintf: New file.
51168         * modules/unistdio/u32-u32-asnprintf: New file.
51169         * modules/unistdio/u32-u32-asprintf: New file.
51170         * modules/unistdio/u32-u32-snprintf: New file.
51171         * modules/unistdio/u32-u32-sprintf: New file.
51172         * modules/unistdio/u32-u32-vasnprintf: New file.
51173         * modules/unistdio/u32-u32-vasprintf: New file.
51174         * modules/unistdio/u32-u32-vsnprintf: New file.
51175         * modules/unistdio/u32-u32-vsprintf: New file.
51176         * modules/unistdio/ulc-asnprintf-tests: New file.
51177         * modules/unistdio/ulc-vasnprintf-tests: New file.
51178         * modules/unistdio/ulc-vasprintf-tests: New file.
51179         * modules/unistdio/ulc-vsnprintf-tests: New file.
51180         * modules/unistdio/ulc-vsprintf-tests: New file.
51181         * modules/unistdio/u8-asnprintf-tests: New file.
51182         * modules/unistdio/u8-vasnprintf-tests: New file.
51183         * modules/unistdio/u8-vasprintf-tests: New file.
51184         * modules/unistdio/u8-vsnprintf-tests: New file.
51185         * modules/unistdio/u8-vsprintf-tests: New file.
51186         * modules/unistdio/u16-asnprintf-tests: New file.
51187         * modules/unistdio/u16-vasnprintf-tests: New file.
51188         * modules/unistdio/u16-vasprintf-tests: New file.
51189         * modules/unistdio/u16-vsnprintf-tests: New file.
51190         * modules/unistdio/u16-vsprintf-tests: New file.
51191         * modules/unistdio/u32-asnprintf-tests: New file.
51192         * modules/unistdio/u32-vasnprintf-tests: New file.
51193         * modules/unistdio/u32-vasprintf-tests: New file.
51194         * modules/unistdio/u32-vsnprintf-tests: New file.
51195         * modules/unistdio/u32-vsprintf-tests: New file.
51196         * MODULES.html.sh (Unicode string functions): Add the new modules.
51197
51198 2007-07-01  Bruno Haible  <bruno@clisp.org>
51199
51200         * lib/sprintf.c (sprintf): Limit the available length estimation,
51201         to avoid address wraparound.
51202         * lib/vsprintf.c (vsprintf): Likewise.
51203         * modules/sprintf-posix (Dependencies): Add stdint.
51204         * modules/vsprintf-posix (Dependencies): Likewise.
51205
51206 2007-07-01  Bruno Haible  <bruno@clisp.org>
51207
51208         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51209         Windows PATH as well. Conservative double-quoting. Comments.
51210
51211 2007-07-01  Bruno Haible  <bruno@clisp.org>
51212             Eric Blake  <ebb9@byu.net>
51213             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51214
51215         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51216         empty components in $PATH, denoting '.'.
51217
51218 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51219
51220         * gnulib-tool: Fix indentation.
51221         (func_create_megatestdir): Likewise.
51222         Report by Bruno Haible.
51223
51224 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51225
51226         Sync from Automake.
51227         * build-aux/gnupload: Fix shell portability issues with for loops.
51228         Report by Karl Berry.
51229
51230 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51231
51232         * build-aux/maint.mk (POURL): Use translationproject.org.
51233
51234 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51235             Bruno Haible  <bruno@clisp.org>
51236
51237         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51238         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51239         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51240         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51241         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51242
51243 2007-06-27  Bruno Haible  <bruno@clisp.org>
51244
51245         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51246         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51247
51248 2007-06-26  Karl Berry  <karl@gnu.org>
51249
51250         * MODULES.html.sh: remove xreadlink-with-size.
51251
51252 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51253
51254         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51255         method that I hope also handles the double-include problem noted
51256         by Bruno Haible in
51257         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51258
51259 2007-06-23  Bruno Haible  <bruno@clisp.org>
51260
51261         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51262         Don't let the 'mostlyclean' target fail if the last subdirectory could
51263         not be removed.
51264         Reported by Karl Berry.
51265
51266 2007-06-23  Bruno Haible  <bruno@clisp.org>
51267
51268         * gnulib-tool (echo): Add a speedier workaround for ksh.
51269         * tests/test-echo.sh: Likewise.
51270
51271 2007-06-23  Bruno Haible  <bruno@clisp.org>
51272
51273         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51274         * tests/test-echo.sh: Likewise.
51275
51276 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51277
51278         * gnulib-tool (IFS): Initialize early, so we don't set it to
51279         empty later.
51280         (self_abspathname): Rewrite algorithm to set it, reindent.
51281         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51282         (func_create_megatestdir): Merge some sed scripts.
51283
51284 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51285
51286         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51287         exposed by Sun Studio 11 cc on Solaris 8.
51288
51289 2007-06-22  Bruno Haible  <bruno@clisp.org>
51290
51291         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51292         backslashes.
51293         * tests/test-echo.sh: New file.
51294
51295 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51296
51297         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51298         simplify `sed_replace_build_aux' scripts, they are portable but
51299         echoing them with `echo' is not.
51300         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51301
51302 2007-06-21  Karl Berry  <karl@gnu.org>
51303
51304         * config/srclist.txt: guess we can't handle the licenses via
51305         srclist at the moment.
51306
51307 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         * MODULES.html.sh: Add include_next.
51310         * modules/include_next: New file.
51311
51312 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51313
51314         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51315         INCLUDE_NEXT.
51316         (gl_CHECK_NEXT_HEADERS): New macro.
51317         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51318         the obsolescent gl_ABSOLUTE_HEADER.
51319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51320         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51321         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51322         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51323         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51324         * m4/math_h.m4 (gl_MATH_H): Likewise.
51325         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51326         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51327         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51328         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51329         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51330         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51331         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51333         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51334         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51336         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51337         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51338         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51339         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51340         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51341         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51342         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51343         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51344         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51345         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51346         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51347         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51348         * lib/float_.h: Likewise.
51349         * lib/inttypes_.h: Likewise.
51350         * lib/math_.h: Likewise.
51351         * lib/search_.h: Likewise.
51352         * lib/signal_.h: Likewise.
51353         * lib/stdint_.h: Likewise.
51354         * lib/stdio_.h: Likewise.
51355         * lib/stdlib_.h: Likewise.
51356         * lib/string_.h: Likewise.
51357         * lib/sys_stat_.h: Likewise.
51358         * lib/sys_time_.h: Likewise.
51359         * lib/time_.h: Likewise.
51360         * lib/unistd_.h: Likewise.
51361         * lib/wchar_.h: Likewise.
51362         * lib/wctype_.h: Likewise.
51363         * lib/dirent_.h: Likewise.
51364         * lib/iconv_.h: Likewise.
51365         * lib/locale_.h: Likewise.
51366         * lib/netinet_in_.h: Likewise.
51367         * lib/sys_select_.h: Likewise.
51368         * lib/sys_socket_.h: Likewise.
51369         * lib/sysexits_.h: Likewise.
51370         * modules/fcntl (Depends-on): Depend on include_next, not
51371         absolute_header.
51372         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51373         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51374         * modules/fchdir: Likewise.
51375         * modules/float: Likewise.
51376         * modules/iconv_open: Likewise.
51377         * modules/inttypes: Likewise.
51378         * modules/locale: Likewise.
51379         * modules/math: Likewise.
51380         * modules/netinet_in: Likewise.
51381         * modules/search: Likewise.
51382         * modules/signal: Likewise.
51383         * modules/stdint: Likewise.
51384         * modules/stdio: Likewise.
51385         * modules/stdlib: Likewise.
51386         * modules/string: Likewise.
51387         * modules/sys_select: Likewise.
51388         * modules/sys_socket: Likewise.
51389         * modules/sys_stat: Likewise.
51390         * modules/sys_time: Likewise.
51391         * modules/sysexits: Likewise.
51392         * modules/time: Likewise.
51393         * modules/unistd: Likewise.
51394         * modules/wchar: Likewise.
51395         * modules/wctype: Likewise.
51396         * modules/sys_stat: Change maintainer to "all".
51397         * modules/unistd: Likewise.
51398
51399 2007-06-20  Karl Berry  <karl@gnu.org>
51400
51401         * config/srclist.txt: track www changes in license files.
51402
51403 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51404
51405         * build-aux/bootstrap: Remove stray dot.
51406         Make sure build_aux settings are honored when linking
51407         gnulib_extra_files.
51408
51409 2007-06-19  Eric Blake  <ebb9@byu.net>
51410
51411         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51412         Allow compilation on cygwin.
51413
51414 2007-06-19  Jim Meyering  <jim@meyering.net>
51415
51416         xreadlink-with-size: Remove module.  No longer used.
51417         Ex-callers now use xreadlink or mreadlink-with-size.
51418         * modules/xreadlink-with-size: Remove module.
51419         * lib/xreadlink-with-size.c: Remove file.
51420         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51421         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51422         just before the function definition *is* accurate.
51423
51424         Eliminate one way canonicalize_filename_mode could exit.
51425         * lib/canonicalize.c (canonicalize_filename_mode):
51426         Use mreadlink_with_size, not xreadlink_with_size.
51427
51428 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         Detect porting problems to FreeBSD/arm, which has time_t wider than
51431         long int.  Original problem reported for GNU diff by Xin Li in
51432         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51433         * modules/getdate (Depends-on): Add intprops, verify.
51434         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51435         is an integer type no wider than long int.
51436
51437 2007-06-18  Jim Meyering  <jim@meyering.net>
51438
51439         New module: mreadlink-with-size.
51440         * MODULES.html.sh: Add mreadlink-with-size.
51441         * modules/mreadlink-with-size: New module
51442         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51443         not xreadlink-with-size.
51444         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51445
51446 2007-06-16  Bruno Haible  <bruno@clisp.org>
51447
51448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51449         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51450         Reported by Gary V. Vaughan <gary@gnu.org>.
51451
51452 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51453
51454         Revamp lchown so that it lives in unistd.h where it belongs.
51455         * lib/lchown.h: Remove.
51456         * lib/dirchownmod.c: Don't include lib/lchown.h.
51457         * lib/fchownat.c: Likewise.
51458         * lib/openat.c: Likewise.
51459         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51460         does not follow symlinks.
51461         (EOPNOTSUPP): Define if not defined.
51462         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51463         is defined to 0.
51464         (lchown): New decl.
51465         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51466         Do not check for lchown decl.
51467         Set REPLACE_LCHOWN.
51468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51469         REPLACE_LCHOWN.
51470         * modules/chown: Make it clear it follows symlinks.
51471         * modules/lchown: Make it clear it doesn't follow symlinks.
51472         (Files): Remove lib/lchown.h
51473         (Depends-on): Add unistd.
51474         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51475         (Include): Include <unistd.h>, not "lchown.h".
51476         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51477         REPLACE_LCHOWN.
51478
51479 2007-06-15  Jim Meyering  <jim@meyering.net>
51480
51481         Change license (GPL to LGPL) of fsusage and dependents.
51482         * modules/fsusage (License): Change to LGPL.
51483         * modules/full-read (License): Likewise.
51484         * modules/full-write (License): Likewise.
51485         * modules/safe-read (License): Likewise.
51486         * modules/safe-write (License): Likewise.
51487
51488 2007-06-14  Ben Pfaff  <blp@gnu.org>
51489
51490         Missing part of allocsa -> malloca transition.
51491         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51492         gl_MALLOCA.
51493
51494 2007-06-12  Bruno Haible  <bruno@clisp.org>
51495
51496         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51497         to ia64, x86_64, i386.
51498         Reported by Eric Blake.
51499
51500 2007-06-12  Bruno Haible  <bruno@clisp.org>
51501
51502         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51503         cross-compiling to x86_64.
51504
51505 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51506
51507         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51508         glitch reported by Ralf Wildenhues in
51509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51510
51511         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51512         Vin Shelton.
51513
51514 2007-06-11  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51517         replacement string.
51518         Reported by Eric Blake.
51519
51520 2007-06-10  Bruno Haible  <bruno@clisp.org>
51521
51522         Prepare vasnprintf code for use with Unicode strings.
51523         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51524         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51525         TYPE_U32_STRING.
51526         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51527         a_u32_string variants.
51528         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51529         * lib/printf-args.c: Don't include config.h and the specification
51530         header if PRINTF_FETCHARGS is already defined.
51531         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51532         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51533         TYPE_U16_STRING, TYPE_U32_STRING.
51534         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51535         u16_directive, u16_directives, u32_directive, u32_directives): New
51536         types.
51537         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51538         New declarations.
51539         * lib/printf-parse.c: Don't include config.h and the specification
51540         header if PRINTF_PARSE is already defined. Eliminate the set of
51541         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51542         them now. Include c-ctype.h.
51543         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51544         directive and CHAR_T_ONLY_ASCII.
51545         * lib/vasnprintf.c: Don't include config.h and the specification header
51546         if VASNPRINTF is already defined.
51547         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51548         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51549         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51550         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51551         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51552         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51553         code accordingly.
51554         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51555         pad_ourselves also in this case, with the 'c' and 's' directives, and
51556         with a different notion of "width".
51557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51558
51559 2007-06-10  Bruno Haible  <bruno@clisp.org>
51560
51561         * modules/unistr/u32-mbsnlen: New file.
51562         * lib/unistr/u32-mbsnlen.c: New file.
51563
51564         * modules/unistr/u16-mbsnlen: New file.
51565         * lib/unistr/u16-mbsnlen.c: New file.
51566
51567         * modules/unistr/u8-mbsnlen: New file.
51568         * lib/unistr/u8-mbsnlen.c: New file.
51569
51570         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51571         declarations.
51572
51573 2007-06-10  Bruno Haible  <bruno@clisp.org>
51574
51575         * lib/string_.h (mbsnlen): New declaration.
51576         * lib/mbsnlen.c: New file.
51577         * m4/mbsnlen.m4: New file.
51578         * modules/mbsnlen: New file.
51579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51580         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51581         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51582
51583 2007-06-10  Bruno Haible  <bruno@clisp.org>
51584
51585         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51586
51587 2007-06-10  Bruno Haible  <bruno@clisp.org>
51588
51589         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51590         * lib/mbuiter.h: Likewise.
51591
51592 2007-06-10  Bruno Haible  <bruno@clisp.org>
51593
51594         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51595         declaration.
51596
51597 2007-06-10  Karl Berry  <karl@gnu.org>
51598
51599         * config/srclist.txt: remove gettext entries, Bruno prefers
51600         to update individually.
51601
51602 2007-06-10  Bruno Haible  <bruno@clisp.org>
51603
51604         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51605         'maxlen'. Ensure only length + width bytes are allocated, not
51606         length + 1 + width.
51607
51608 2007-06-09  Bruno Haible  <bruno@clisp.org>
51609
51610         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51611         (CHAR_T): Remove macro.
51612         (VASNPRINTF): Update.
51613
51614 2007-06-09  Bruno Haible  <bruno@clisp.org>
51615
51616         * MODULES.html.sh (Unicode string functions): Add the new modules.
51617
51618         * modules/uniconv/u32-conv-to-enc: New file.
51619         * lib/uniconv/u32-conv-to-enc.c: New file.
51620         * modules/uniconv/u32-conv-to-enc-tests: New file.
51621         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51622
51623         * modules/uniconv/u16-conv-to-enc: New file.
51624         * lib/uniconv/u16-conv-to-enc.c: New file.
51625         * lib/uniconv/u-conv-to-enc.h: New file.
51626         * modules/uniconv/u16-conv-to-enc-tests: New file.
51627         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51628
51629         * modules/uniconv/u8-conv-to-enc: New file.
51630         * lib/uniconv/u8-conv-to-enc.c: New file.
51631         * modules/uniconv/u8-conv-to-enc-tests: New file.
51632         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51633
51634         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51635         u32_conv_to_encoding): New declarations.
51636
51637 2007-06-09  Bruno Haible  <bruno@clisp.org>
51638
51639         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51640
51641 2007-06-09  Bruno Haible  <bruno@clisp.org>
51642
51643         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51644         * modules/malloca: Renamed from modules/allocsa, updated.
51645         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51646         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51647         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51648         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51649         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51650         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51651         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51652         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51653         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51654         * modules/c-strcasestr (Depends-on): Update.
51655         * lib/c-strcasestr.c: Update.
51656         * modules/c-strstr (Depends-on): Update.
51657         * lib/c-strstr.c: Update.
51658         * modules/canonicalize-lgpl (Depends-on): Update.
51659         * lib/canonicalize-lgpl.c: Update.
51660         * modules/clean-temp (Depends-on): Update.
51661         * lib/clean-temp.c: Update.
51662         * modules/csharpcomp (Depends-on): Update.
51663         * lib/csharpcomp.c: Update.
51664         * modules/csharpexec (Depends-on): Update.
51665         * lib/csharpexec.c: Update.
51666         * modules/javacomp (Depends-on): Update.
51667         * lib/javacomp.c: Update.
51668         * modules/javaexec (Depends-on): Update.
51669         * lib/javaexec.c: Update.
51670         * modules/mbscasestr (Depends-on): Update.
51671         * lib/mbscasestr.c: Update.
51672         * modules/mbsstr (Depends-on): Update.
51673         * lib/mbsstr.c: Update.
51674         * modules/setenv (Depends-on): Update.
51675         * lib/setenv.c: Update.
51676         * modules/strcasestr (Depends-on): Update.
51677         * lib/strcasestr.c: Update.
51678         * modules/striconveha (Depends-on): Update.
51679         * lib/striconveha.c: Update.
51680         * modules/relocatable-prog-wrapper (Files): Update.
51681         * lib/relocwrapper.c: Update.
51682         * build-aux/install-reloc: Update.
51683         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51684
51685 2007-06-08  Bruno Haible  <bruno@clisp.org>
51686
51687         Port to uClibc.
51688         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51689         * lib/fpurge.c (fpurge): Likewise.
51690         * lib/freading.c (freading): Likewise.
51691         * lib/fseeko.c (rpl_fseeko): Likewise.
51692         * lib/fseterr.c (fseterr): Likewise.
51693         * lib/fwriting.c (fwriting): Likewise.
51694         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51695
51696 2007-06-08  Bruno Haible  <bruno@clisp.org>
51697
51698         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51699         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51700         * modules/gettext (Files): Add m4/intlmacosx.m4.
51701
51702 2007-06-07  Bruno Haible  <bruno@clisp.org>
51703
51704         * modules/localename-tests: New file.
51705         * tests/test-localename.c: New file.
51706
51707         New module 'localename'.
51708         * lib/localename.h: New file.
51709         * lib/localename.c: New file, from GNU gettext.
51710         * m4/localename.m4: New file.
51711         * modules/localename: New file.
51712
51713 2007-06-07  Bruno Haible  <bruno@clisp.org>
51714
51715         Work around the lack of <wchar.h> on some builds of uClibc.
51716         * doc/headers/wchar.texi: Update.
51717         * lib/wchar_.h: Include <wchar.h> only if it exists.
51718         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51719         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51720         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51721         doesn't exist.
51722         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51723         * modules/mbfile (Depends-on): Add wchar.
51724         * modules/mbiter (Depends-on): Likewise.
51725         * modules/mbuiter (Depends-on): Likewise.
51726         Reported by Simon Josefsson.
51727
51728 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51729
51730         Work around problem reported by Steven M. Schweda in
51731         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51732         Tru64 5.1B with the Compaq compiler environment installed declares
51733         an 'isblank' function but does not define it in the C library.
51734         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51735         * lib/regex_internal.h (isblank): Likewise.
51736         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51737         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51738
51739 2007-06-05  Bruno Haible  <bruno@clisp.org>
51740
51741         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51742         ia64.
51743         * modules/printf-safe: New file.
51744         * modules/fprintf-posix (Depends-on): Add printf-safe.
51745         * modules/printf-posix (Depends-on): Likewise.
51746         * modules/snprintf-posix (Depends-on): Likewise.
51747         * modules/sprintf-posix (Depends-on): Likewise.
51748         * modules/vasnprintf-posix (Depends-on): Likewise.
51749         * modules/vasprintf-posix (Depends-on): Likewise.
51750         * modules/vfprintf-posix (Depends-on): Likewise.
51751         * modules/vprintf-posix (Depends-on): Likewise.
51752         * modules/vsnprintf-posix (Depends-on): Likewise.
51753         * modules/vsprintf-posix (Depends-on): Likewise.
51754         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51755         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51756         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51757         "no" on i386, x86_64, ia64.
51758         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51759         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51760         on i386, x86_64, ia64.
51761         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51762         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51763         on i386, x86_64, ia64.
51764         * tests/test-vasnprintf-posix.c: Include float.h.
51765         (LDBL80_WORDS): New macro.
51766         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51767         on i386, x86_64, ia64.
51768         * tests/test-vasprintf-posix.c: Include float.h.
51769         (LDBL80_WORDS): New macro.
51770         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51771         on i386, x86_64, ia64.
51772         * tests/test-snprintf-posix.c: Include float.h.
51773         * tests/test-sprintf-posix.c: Likewise.
51774         * tests/test-vsnprintf-posix.c: Likewise.
51775         * tests/test-vsprintf-posix.c: Likewise.
51776
51777 2007-06-05  Bruno Haible  <bruno@clisp.org>
51778
51779         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51780         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51781         non-IEEE numbers on i386, x86_64, ia64.
51782         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51783         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51784         * tests/test-isnanl.h: Include float.h.
51785         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51786
51787 2007-06-05  Bruno Haible  <bruno@clisp.org>
51788
51789         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51790         also the %a / %A. Handle the %a / %A code before this extra handling.
51791
51792 2007-06-05  Bruno Haible  <bruno@clisp.org>
51793
51794         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51795         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51796
51797 2007-06-05  Bruno Haible  <bruno@clisp.org>
51798
51799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51800         typo in variable name.
51801
51802 2007-06-05  Eric Blake  <ebb9@byu.net>
51803
51804         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51805         Reported by Simon Josefsson.
51806
51807 2007-06-04  Bruno Haible  <bruno@clisp.org>
51808
51809         Avoid test failures on some PowerPC platforms.
51810         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51811         Define differently for PowerPC.
51812         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51813         Reported by Gary V. Vaughan <gary@gnu.org>.
51814
51815 2007-06-02  Bruno Haible  <bruno@clisp.org>
51816
51817         Fix test-stdint failure on FreeBSD/ia64.
51818         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51819         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51820         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51821         * doc/headers/stdint.texi: Update.
51822
51823 2007-06-01  Bruno Haible  <bruno@clisp.org>
51824
51825         * tests/test-binary-io.c (main): Pass a third argument to open().
51826         Reported by Gary V. Vaughan <gary@gnu.org>.
51827
51828 2007-06-01  Bruno Haible  <bruno@clisp.org>
51829
51830         * doc/functions/frexpl.texi: Update for mingw.
51831
51832 2007-06-01  Bruno Haible  <bruno@clisp.org>
51833
51834         * tests/test-lseek.c (main): Disable test of errno for invalid third
51835         argument.
51836         * doc/functions/lseek.texi: Update.
51837         Reported by Gary V. Vaughan <gary@gnu.org>.
51838
51839 2007-05-28  Bruno Haible  <bruno@clisp.org>
51840
51841         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51842
51843 2007-05-31  Eric Blake  <ebb9@byu.net>
51844
51845         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51846         cross compiling.
51847
51848 2007-05-30  Eric Blake  <ebb9@byu.net>
51849         and Bruno Haible  <bruno@clisp.org>
51850
51851         Work around mingw test failures exposed by m4-1.4.9b.
51852         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51853         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51854         moment.
51855
51856 2007-05-30  Bruno Haible  <bruno@clisp.org>
51857
51858         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51859         assuming that they are closed. Needed on HP-UX 11.
51860
51861 2007-05-29  Bruno Haible  <bruno@clisp.org>
51862
51863         Fix a problem with #include_next.
51864         * lib/dirent_.h: Split the double-inclusion guard.
51865         * lib/fcntl_.h: Likewise.
51866         * lib/float_.h: Likewise.
51867         * lib/iconv_.h: Likewise.
51868         * lib/inttypes_.h: Likewise.
51869         * lib/locale_.h: Likewise.
51870         * lib/math_.h: Likewise.
51871         * lib/netinet_in_.h: Likewise.
51872         * lib/search_.h: Likewise.
51873         * lib/signal_.h: Likewise.
51874         * lib/stdint_.h: Likewise.
51875         * lib/stdio_.h: Likewise.
51876         * lib/stdlib_.h: Likewise.
51877         * lib/string_.h: Likewise.
51878         * lib/sys_select_.h: Likewise.
51879         * lib/sys_socket_.h: Likewise.
51880         * lib/sys_stat_.h: Likewise.
51881         * lib/sys_time_.h: Likewise.
51882         * lib/sysexits_.h: Likewise.
51883         * lib/time_.h: Likewise.
51884         * lib/unistd_.h: Likewise.
51885         * lib/wchar_.h: Likewise.
51886         * lib/wctype_.h: Likewise.
51887
51888 2007-05-29  Bruno Haible  <bruno@clisp.org>
51889
51890         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51891         for the moment.
51892
51893 2007-05-29  Bruno Haible  <bruno@clisp.org>
51894
51895         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51896         invocation.
51897         Reported by Eric Blake.
51898
51899 2007-05-29  Bruno Haible  <bruno@clisp.org>
51900
51901         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51902         compiling case.
51903
51904 2007-05-29  Eric Blake  <ebb9@byu.net>
51905             Bruno Haible  <bruno@clisp.org>
51906
51907         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51908         cross compiles.
51909
51910 2007-05-28  Eric Blake  <ebb9@byu.net>
51911
51912         * modules/closein-tests (test_closein_LDADD): Support test on
51913         cygwin with libtool.
51914
51915 2007-05-28  Bruno Haible  <bruno@clisp.org>
51916
51917         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51918         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51919         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51920         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51921         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51922         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51923         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51924         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51925         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51926
51927 2007-05-28  Eric Blake  <ebb9@byu.net>
51928
51929         Unconditionally include <config.h> in unit tests.
51930         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51931         * tests/test-allocsa.c, tests/test-arcfour.c,
51932         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51933         tests/test-array_list.c, tests/test-array_oset.c,
51934         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51935         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51936         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51937         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51938         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51939         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51940         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51941         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51942         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51943         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51944         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51945         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51946         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51947         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51948         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51949         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51950         test-md5.c, test-memmem.c, test-printf-posix.c,
51951         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51952         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51953         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51954         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51955         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51956         test-vasnprintf-posix2.c, test-vasnprintf.c,
51957         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51958         test-vfprintf-posix.c, test-vprintf-posix.c,
51959         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51960         test-xvasprintf.c: Likewise.
51961
51962 2007-05-28  Bruno Haible  <bruno@clisp.org>
51963
51964         * gnulib-tool (func_import): Remember the --with-tests command-line
51965         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51966         Reported by Eric Blake.
51967
51968 2007-05-28  Bruno Haible  <bruno@clisp.org>
51969
51970         * modules/ftell-tests: New file.
51971         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51972         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51973
51974         * lib/ftell.c: New file.
51975         * modules/ftell: New file.
51976         * m4/ftell.m4: New file.
51977         * doc/functions/ftell.texi: Update.
51978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51979         REPLACE_FTELL.
51980         * lib/stdio_.h (rpl_ftell): New declaration.
51981         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51982         REPLACE_FTELL.
51983
51984 2007-05-28  Eric Blake  <ebb9@byu.net>
51985
51986         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51987
51988 2007-05-28  Bruno Haible  <bruno@clisp.org>
51989
51990         * modules/fseek-tests: New file.
51991         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51992         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51993
51994         * lib/fseek.c: New file.
51995         * modules/fseek: New file.
51996         * m4/fseek.m4: New file.
51997         * doc/functions/fseek.texi: Update.
51998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51999         REPLACE_FSEEK.
52000         * lib/stdio_.h (rpl_fseek): New declaration.
52001         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52002         REPLACE_FSEEK.
52003
52004 2007-05-28  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/stdio_.h (fflush): More comments.
52007
52008 2007-05-28  Bruno Haible  <bruno@clisp.org>
52009
52010         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52011         runtime test.
52012
52013 2007-05-28  Eric Blake  <ebb9@byu.net>
52014
52015         Improve lseek module.
52016         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52017         * lib/unistd_.h (lseek): Scale back link warning message.
52018         * tests/test-lseek.c: Beef up test.
52019         * tests/test-lseek.sh: Exercise more facets of lseek.
52020         Reported by Bruno Haible.
52021
52022 2007-05-28  Bruno Haible  <bruno@clisp.org>
52023
52024         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52025         to define.
52026
52027 2007-05-27  Bruno Haible  <bruno@clisp.org>
52028
52029         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52030
52031 2007-05-27  Bruno Haible  <bruno@clisp.org>
52032
52033         * modules/openmp: New file.
52034         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52035         Noah Misch.
52036
52037 2007-05-26  Bruno Haible  <bruno@clisp.org>
52038
52039         * modules/chdir-long (Depends-on): Add fchdir.
52040         * modules/chdir-safer (Depends-on): Likewise.
52041         * modules/fts (Depends-on): Likewise.
52042         * modules/fts-lgpl (Depends-on): Likewise.
52043         * modules/openat (Depends-on): Likewise.
52044         * modules/savewd (Depends-on): Likewise.
52045
52046 2007-05-24  Eric Blake  <ebb9@byu.net>
52047
52048         Fix lseek on mingw.
52049         * modules/lseek: New module.
52050         * m4/lseek.m4: New file.
52051         * lib/lseek.c: New file.
52052         * modules/lseek-tests: New file.
52053         * tests/test-lseek.c: New file.
52054         * tests/test-lseek.sh: New file.
52055         * MODULES.html.sh: Document lseek module.
52056         * modules/fflush (Depends-on): Add lseek, fseeko.
52057         * modules/fseeko (Depends-on): Likewise.
52058         * modules/ftello (Depends-on): Likewise.
52059         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52060         broken.
52061         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52062         broken.
52063         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52064         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52065         * lib/ftello.c (rpl_ftello): Likewise.
52066         * tests/test-fseeko.c (main): Test this.
52067         * tests/test-fseeko.sh: Likewise.
52068         * tests/test-ftello.c (main): Likewise.
52069         * tests/test-ftello.sh: Likewise.
52070         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52071         implies replacing fseek.
52072         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52073         HAVE_FTELLO.
52074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52075         * modules/unistd (Makefile.am): Likewise.
52076         * lib/unistd_.h (lseek): Declare a replacement.
52077         * doc/functions/lseek.texi (lseek): Document this fix.
52078         * doc/functions/fseek.texi (fseek): Likewise.
52079         * doc/functions/ftell.texi (ftell): Likewise.
52080
52081 2007-05-24  Bruno Haible  <bruno@clisp.org>
52082
52083         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52084         in the printed representation of a NaN.
52085         * tests/test-vasprintf-posix.c (test_function): Likewise.
52086         * tests/test-snprintf-posix.h (test_function): Likewise.
52087         * tests/test-sprintf-posix.h (test_function): Likewise.
52088         Reported by Eric Blake.
52089
52090 2007-05-23  Eric Blake  <ebb9@byu.net>
52091
52092         Fix fseeko/ftello on cygwin 1.5.24.
52093         * doc/functions/fseeko.texi (fseeko): Document the fix.
52094         * doc/functions/ftello.texi (ftello): Document the fix.
52095         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52096         * doc/functions/stdout.text (stdout): New file.
52097         * doc/functions/stderr.text (stderr): New file.
52098         * doc/gnulib.texi (Function Substitutes): Use new files.
52099         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52100         prior to 1.7.0.
52101         * tests/test-ftello.c (main): Likewise for ftello.
52102         * tests/test-fseeko.sh: New file.
52103         * tests/test-ftello.sh: New file.
52104         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52105         with seekable stdin.
52106         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52107         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52108         (gl_REPLACE_FSEEKO): New macro.
52109         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52110         * modules/fseeko (Files): Distribute fseeko.c.
52111         * modules/ftello (Files): Distribute ftello.c.
52112         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52113         mode.
52114         * lib/ftello.c (rpl_ftello): New file.
52115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52116         fseeko, ftello.
52117         (gl_STDIN_LARGE_OFFSET): New macro.
52118         * modules/stdio (Makefile.am): Perform the replacement.
52119         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52120
52121 2007-05-23  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52124         GNULIB_POSIXCHECK is defined.
52125
52126 2007-05-21  Bruno Haible  <bruno@clisp.org>
52127
52128         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52129         Check also the output for NaN arguments. When cross-compiling, guess
52130         no on IRIX.
52131         * lib/vasnprintf.c: Update comments.
52132         * tests/test-vasnprintf-posix.c (strisnan): New function.
52133         (test_function): Use it.
52134         * tests/test-vasprintf-posix.c (strisnan): New function.
52135         (test_function): Use it.
52136         * tests/test-snprintf-posix.h (strisnan): New function.
52137         (test_function): Use it.
52138         * tests/test-sprintf-posix.h (strisnan): New function.
52139         (test_function): Use it.
52140         Reported by Eric Blake.
52141
52142 2007-05-20  Bruno Haible  <bruno@clisp.org>
52143
52144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52145         numbers that fails on BeOS.
52146         * doc/functions/frexpl.texi: Update.
52147
52148 2007-05-20  Jim Meyering  <jim@meyering.net>
52149
52150         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52151         forced upon us by glibc-2.6.
52152
52153 2007-05-20  Bruno Haible  <bruno@clisp.org>
52154
52155         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52156         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52157         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52158         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52159         NEED_PRINTF_INFINITE.
52160         (is_infinitel): New function.
52161         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52163         gl_PREREQ_VASNPRINTF_INFINITE.
52164         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52165         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52166         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52167         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52168         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52169         gl_PREREQ_VASNPRINTF_INFINITE.
52170         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52171         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52172         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52173         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52174         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52176         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52177         * doc/functions/fprintf.texi: Update.
52178         * doc/functions/printf.texi: Update.
52179         * doc/functions/snprintf.texi: Update.
52180         * doc/functions/sprintf.texi: Update.
52181         * doc/functions/vfprintf.texi: Update.
52182         * doc/functions/vprintf.texi: Update.
52183         * doc/functions/vsnprintf.texi: Update.
52184         * doc/functions/vsprintf.texi: Update.
52185
52186 2007-05-20  Bruno Haible  <bruno@clisp.org>
52187
52188         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52189         was not found in libc.
52190         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52191
52192 2007-05-20  Bruno Haible  <bruno@clisp.org>
52193
52194         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52195         printed as "-nan" instead of "nan".
52196         * tests/test-vasprintf-posix.c (test_function): Likewise.
52197         * tests/test-snprintf-posix.h (test_function): Likewise.
52198         * tests/test-sprintf-posix.h (test_function): Likewise.
52199         Needed for HP-UX 11.
52200
52201 2007-05-20  Jim Meyering  <jim@meyering.net>
52202
52203         Fix buggy test for the fchownat-deref bug.
52204         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52205         symlink required for the run-test.  Without it, this test would
52206         always declare that fchownat doesn't work, and client code would
52207         unnecessarily use the replacement function with fixed libc.
52208         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52209         Reported by Greg Schafer.
52210
52211 2007-05-19  Bruno Haible  <bruno@clisp.org>
52212
52213         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52214         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52215         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52216         Needed for IRIX 6.5 and Solaris 2.5.1.
52217
52218 2007-05-19  Bruno Haible  <bruno@clisp.org>
52219
52220         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52221         (test_function): Skip tests involving -0.0 on platforms where
52222         -0.0 = 0.0.
52223         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52224         (test_function): Skip tests involving -0.0 on platforms where
52225         -0.0 = 0.0.
52226         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52227         (test_function): Skip tests involving -0.0 on platforms where
52228         -0.0 = 0.0.
52229         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52230         (test_function): Skip tests involving -0.0 on platforms where
52231         -0.0 = 0.0.
52232         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52233         tests.
52234         * tests/test-printf-posix.h (test_function): Likewise.
52235         * tests/test-printf-posix.output: Remove all -0.0 related results.
52236         Needed for IRIX 6.5.
52237
52238 2007-05-19  Bruno Haible  <bruno@clisp.org>
52239
52240         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52241         printed as "nan0x7fffffff" instead of "nan".
52242         * tests/test-vasprintf-posix.c (test_function): Likewise.
52243         * tests/test-snprintf-posix.h (test_function): Likewise.
52244         * tests/test-sprintf-posix.h (test_function): Likewise.
52245         * tests/test-fprintf-posix.h (NaN): Remove macro.
52246         (test_function): Remove all NaN related tests.
52247         * tests/test-printf-posix.h (NaN): Remove macro.
52248         (test_function): Remove all NaN related tests.
52249         * tests/test-printf-posix.output: Remove all NaN related results.
52250         Needed for IRIX 6.5.
52251
52252 2007-05-19  Bruno Haible  <bruno@clisp.org>
52253
52254         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52255         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52256
52257 2007-05-19  Bruno Haible  <bruno@clisp.org>
52258
52259         * lib/float_.h: New file.
52260         * m4/float_h.m4: New file.
52261         * modules/float: New file.
52262         * modules/isnanl (Dependencies): Add float.
52263         * modules/isnanl-nolibm (Dependencies): Likewise.
52264         * modules/mathl (Dependencies): Likewise.
52265         * modules/printf-frexpl (Dependencies): Likewise.
52266         * modules/signbit (Dependencies): Likewise.
52267         * modules/vasnprintf (Dependencies): Likewise.
52268         * doc/headers/float.texi: Update.
52269
52270 2007-05-19  Jim Meyering  <jim@meyering.net>
52271
52272         * lib/utimens.c (gl_futimens): Rename from futimens,
52273         now that glibc-2.6 declares futimens.
52274         * lib/utimens.h: Likewise.
52275
52276 2007-05-19  Bruno Haible  <bruno@clisp.org>
52277
52278         Avoid test failures on mingw.
52279         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52280         * tests/test-printf-posix.sh: Likewise.
52281         * tests/test-vfprintf-posix.sh: Likewise.
52282         * tests/test-vprintf-posix.sh: Likewise.
52283
52284 2007-05-19  Bruno Haible  <bruno@clisp.org>
52285
52286         Fix *printf result for NaN, Inf, -0.0 on mingw.
52287         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52288         * lib/vasnprintf.c: Include math.h and isnan.h.
52289         (is_infinite_or_zero): New function.
52290         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52291         values in the %f, %F, %e, %E, %g, %G directives.
52292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52293         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52294         gl_PRINTF_INFINITE and test its result. Invoke
52295         gl_PREREQ_VASNPRINTF_INFINITE.
52296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52298         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52300         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52302         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52303         * doc/functions/fprintf.texi: Update.
52304         * doc/functions/printf.texi: Update.
52305         * doc/functions/snprintf.texi: Update.
52306         * doc/functions/sprintf.texi: Update.
52307         * doc/functions/vfprintf.texi: Update.
52308         * doc/functions/vprintf.texi: Update.
52309         * doc/functions/vsnprintf.texi: Update.
52310         * doc/functions/vsprintf.texi: Update.
52311
52312 2007-05-19  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52315         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52316         Instead of multiplying with 10^k, set extra_zeroes to k.
52317         (scale10_round_long_double): Remove function.
52318
52319 2007-05-18  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52322         introduced on 2007-05-06.
52323
52324 2007-05-18  Bruno Haible  <bruno@clisp.org>
52325
52326         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52327         %g directives.
52328         * tests/test-vasprintf-posix.c (test_function): Likewise.
52329         * tests/test-snprintf-posix.h (test_function): Likewise.
52330         * tests/test-sprintf-posix.h (test_function): Likewise.
52331
52332 2007-05-18  Bruno Haible  <bruno@clisp.org>
52333
52334         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52335         (strmatch): New function.
52336         (test_function): Test the %f directive on numbers of various exponents.
52337         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52338         (strmatch): New function.
52339         (test_function): Test the %f directive on numbers of various exponents.
52340         * tests/test-snprintf-posix.h (strmatch): New function.
52341         (test_function): Test the %f directive on numbers of various exponents.
52342         * tests/test-sprintf-posix.h (strmatch): New function.
52343         (test_function): Test the %f directive on numbers of various exponents.
52344         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52345         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52346         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52347         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52348
52349 2007-05-18  Bruno Haible  <bruno@clisp.org>
52350
52351         Add support for 'long double' number output.
52352         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52353         * lib/vasnprintf.c: Include math.h and float+.h.
52354         (mp_limb_t): New type.
52355         (GMP_LIMB_BITS): New macro.
52356         (mp_twolimb_t): New type.
52357         (GMP_TWOLIMB_BITS): New macro.
52358         (mpn_t): New type.
52359         (multiply, divide, convert_to_decimal, decode_long_double,
52360         scale10_round_long_double, scale10_round_decimal_long_double,
52361         floorlog10l): New functions.
52362         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52363         for the %f, %F, %e, %E, %g, %G directives.
52364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52366         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52367         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52368         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52371         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52372         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52374         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52375         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52376         * modules/snprintf-posix (Depends-on): Likewise.
52377         * modules/sprintf-posix (Depends-on): Likewise.
52378         * modules/vasnprintf-posix (Depends-on): Likewise.
52379         * modules/vasprintf-posix (Depends-on): Likewise.
52380         * modules/vfprintf-posix (Depends-on): Likewise.
52381         * modules/vsnprintf-posix (Depends-on): Likewise.
52382         * modules/vsprintf-posix (Depends-on): Likewise.
52383         * modules/vasnprintf (Files): Add lib/float+.h.
52384         * doc/functions/fprintf.texi: Update.
52385         * doc/functions/printf.texi: Update.
52386         * doc/functions/snprintf.texi: Update.
52387         * doc/functions/sprintf.texi: Update.
52388         * doc/functions/vfprintf.texi: Update.
52389         * doc/functions/vprintf.texi: Update.
52390         * doc/functions/vsnprintf.texi: Update.
52391         * doc/functions/vsprintf.texi: Update.
52392
52393 2007-05-18  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52396
52397 2007-05-18  Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52400         for printing 64-bit integers. Needed for mingw.
52401
52402 2007-05-18  Bruno Haible  <bruno@clisp.org>
52403
52404         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52405         gl_FUNC_FREXPL_WORKS.
52406         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52407
52408 2007-05-18  Bruno Haible  <bruno@clisp.org>
52409
52410         * modules/frexpl-nolibm-tests: New file.
52411
52412         * modules/frexpl-nolibm: New file.
52413         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52414
52415 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52418         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52419         GCC 4.2, which otherwise issues a lot of warnings.
52420         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52421         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52422         Likewise.
52423         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52424         * modules/iconv_open (iconv.h): Likewise.
52425         * modules/locale (locale.h): Likewise.
52426         * modules/netinet_in (netinet/in.h): Likewise.
52427         * modules/sys_select (sys_select.h): Likewise.
52428         * modules/sys_socket (sys/socket.h): Likewise.
52429         * modules/sys_stat (sys/stat.h): Likewise.
52430         * modules/sysexits (sysexits.h): Likewise.
52431         * modules/unistd (unistd.h): Likewise.
52432
52433 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52434
52435         * modules/closein-tests (Makefile.am): Distribute
52436         `test-closein.sh'.
52437
52438 2007-05-17  Bruno Haible  <bruno@clisp.org>
52439
52440         * tests/test-printf-posix.output: Renamed from
52441         tests/test-fprintf-posix.out.
52442         * modules/fprintf-posix-tests: Update.
52443         * modules/printf-posix-tests: Update.
52444         * modules/vfprintf-posix-tests: Update.
52445         * modules/vprintf-posix-tests: Update.
52446         * tests/test-fprintf-posix.sh: Update.
52447         * tests/test-printf-posix.sh: Update.
52448         * tests/test-vfprintf-posix.sh: Update.
52449         * tests/test-vprintf-posix.sh: Update.
52450         Reported by Ralf Wildenhues.
52451
52452 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52455         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52456         GCC 4.2, which otherwise issues a lot of warnings.
52457         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52458         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52459         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52460         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52461         it should no longer be needed.
52462         * lib/string_.h: Likewise.
52463         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52464         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52465         * modules/inttypes (inttypes.h): Likewise.
52466         * modules/math (math.h): Likewise.
52467         * modules/search (search.h): Likewise.
52468         * modules/signal (signal.h): Likewise.
52469         * modules/stdint (stdint.h): Likewise.
52470         * modules/stdio (stdio.h): Likewise.
52471         * modules/stdlib (stdlib.h): Likewise.
52472         * modules/string (string.h): Likewise.
52473         * modules/sys_time (sys/time.h): Likewise.
52474         * modules/time (time.h): Likewise.
52475         * modules/wchar (wchar.h): Likewise.
52476         * modules/wctype (wtype.h): Likewise.
52477
52478 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52479
52480         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52481
52482 2007-05-13  Bruno Haible  <bruno@clisp.org>
52483
52484         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52485         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52486         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52487         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52488         (gl_PREREQ_STRTOK_R): Don't require it here.
52489
52490 2007-05-13  Bruno Haible  <bruno@clisp.org>
52491
52492         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52493         when used in C++ mode.
52494
52495 2007-05-12  Bruno Haible  <bruno@clisp.org>
52496
52497         * lib/linebuffer.h: Tweak doc.
52498         * lib/linebuffer.c: Likewise.
52499
52500 2007-05-12  James Youngman  <jay@gnu.org>
52501
52502         * lib/linebuffer.c (readlinebuffer_delim): New function,
52503         like readlinebuffer, but use a caller-specified delimiter.
52504         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52505         as the delimiter.
52506         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52507
52508 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52509
52510         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52511         * modules/openat (Files): Remove openat-die.c.
52512         (Depends-on): Add openat-die.
52513         * modules/openat-die: New module.
52514
52515 2007-05-06  Bruno Haible  <bruno@clisp.org>
52516
52517         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52518         Update with info about Cygwin.
52519         * doc/functions/fprintf.texi: Update.
52520         * doc/functions/printf.texi: Update.
52521         * doc/functions/snprintf.texi: Update.
52522         * doc/functions/sprintf.texi: Update.
52523         * doc/functions/vfprintf.texi: Update.
52524         * doc/functions/vprintf.texi: Update.
52525         * doc/functions/vsnprintf.texi: Update.
52526         * doc/functions/vsprintf.texi: Update.
52527         Reported by Eric Blake.
52528
52529 2007-05-06  Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52532         padding ourselves for the floating-point directives.
52533         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52536         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52537         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52538         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52540         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52542         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52544         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52545         * tests/test-snprintf-posix.h (test_function): Also check the width
52546         and some flags in the %f directive.
52547         * tests/test-sprintf-posix.h (test_function): Likewise.
52548         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52549         * tests/test-vasprintf-posix.c (test_function): Likewise.
52550         * doc/functions/fprintf.texi: Update.
52551         * doc/functions/printf.texi: Update.
52552         * doc/functions/snprintf.texi: Update.
52553         * doc/functions/sprintf.texi: Update.
52554         * doc/functions/vfprintf.texi: Update.
52555         * doc/functions/vprintf.texi: Update.
52556         * doc/functions/vsnprintf.texi: Update.
52557         * doc/functions/vsprintf.texi: Update.
52558
52559 2007-05-06  Bruno Haible  <bruno@clisp.org>
52560
52561         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52562         pass the ' flag character to sprintf or snprintf.
52563         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52565         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52566         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52567         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52570         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52571         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52572         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52574         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52575         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52576         flag.
52577         * tests/test-sprintf-posix.h (test_function): Likewise.
52578         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52579         * tests/test-vasprintf-posix.c (test_function): Likewise.
52580         * doc/functions/fprintf.texi: Update.
52581         * doc/functions/printf.texi: Update.
52582         * doc/functions/snprintf.texi: Update.
52583         * doc/functions/sprintf.texi: Update.
52584         * doc/functions/vfprintf.texi: Update.
52585         * doc/functions/vprintf.texi: Update.
52586         * doc/functions/vsnprintf.texi: Update.
52587         * doc/functions/vsprintf.texi: Update.
52588
52589 2007-05-01  Bruno Haible  <bruno@clisp.org>
52590
52591         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52592
52593 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52594
52595         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52596         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52597
52598 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52599
52600         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52601         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52603
52604 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52605
52606         * lib/argp-help.c (struct hol_entry): New member `ord'.
52607         (HOL_ENTRY_PTRCMP): Use ord for comparison
52608         (hol_sort): Initialize ord.
52609
52610 2007-05-01  Bruno Haible  <bruno@clisp.org>
52611
52612         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52613         Reported by Eric Blake.
52614         * doc/gnulib.texi (Function Substitutes): Update.
52615
52616 2007-05-01  Bruno Haible  <bruno@clisp.org>
52617
52618         * doc/functions.texi: Remove file, now redundant through
52619         doc/functions/*.texi.
52620
52621 2007-05-01  Bruno Haible  <bruno@clisp.org>
52622
52623         * modules/argp (Depends-on): Add sleep.
52624
52625 2007-05-01  Bruno Haible  <bruno@clisp.org>
52626
52627         * modules/sleep-tests: New file.
52628         * tests/test-sleep.c: New file.
52629
52630         * modules/sleep: New file.
52631         * lib/sleep.c: New file.
52632         * m4/sleep.m4: New file.
52633         * lib/unistd_.h (sleep): New declaration.
52634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52635         HAVE_SLEEP.
52636         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52637         * doc/functions/sleep.texi: Document the sleep module.
52638
52639 2007-05-01  Bruno Haible  <bruno@clisp.org>
52640
52641         * lib/sigprocmask.h: Remove file.
52642         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52643         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52644         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52645         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52646         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52647         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52648         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52649         HAVE_SIGSET_T as a shell variable.
52650         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52651         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52652         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52653         (Depends-on): Add signal. Remove verify.
52654         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52655         (Include): Mention <signal.h> instead of sigprocmask.h.
52656         * NEWS: Mention the change.
52657         * lib/fatal-signal.c: Don't include sigprocmask.h.
52658
52659 2007-05-01  Bruno Haible  <bruno@clisp.org>
52660
52661         * modules/signal: New file.
52662         * lib/signal_.h: New file.
52663         * m4/signal_h.m4: New file.
52664
52665 2007-05-01  Bruno Haible  <bruno@clisp.org>
52666
52667         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52668         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52669         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52670         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52671
52672 2007-05-01  Bruno Haible  <bruno@clisp.org>
52673
52674         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52675         configure time.
52676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52677         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52678         * modules/sys_stat (Makefile.am): Substitute their values into
52679         sys/stat.h.
52680
52681 2007-05-01  Bruno Haible  <bruno@clisp.org>
52682
52683         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52684         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52685         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52686
52687 2007-05-01  Bruno Haible  <bruno@clisp.org>
52688
52689         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52690         'assert' module here.
52691
52692 2007-05-01  Bruno Haible  <bruno@clisp.org>
52693
52694         * doc/functions/*.texi: New files.
52695         * doc/functions/google-ranking.txt: New file.
52696         * doc/gnulib.texi (Function Substitutes): New chapter.
52697         (ctime, inet_ntoa): Remove sections.
52698         * doc/ctime.texi: Remove file.
52699         * doc/inet_ntoa.texi: Remove file.
52700         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52701         dependencies.
52702         (%.info): New rule, specifying a --reference-limit.
52703
52704 2007-05-01  Bruno Haible  <bruno@clisp.org>
52705
52706         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52707
52708 2007-05-01  Bruno Haible  <bruno@clisp.org>
52709
52710         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52711         the portability of 'mkdir' to mingw systems.
52712
52713 2007-05-01  Bruno Haible  <bruno@clisp.org>
52714
52715         * doc/headers/google-ranking.txt: New file.
52716
52717 2007-04-30  Eric Blake  <ebb9@byu.net>
52718
52719         Prefer fseeko to fseek.
52720         * modules/getpass (Depends-on): Add fseeko.
52721         * lib/getpass.c (getpass): Use fseeko, not fseek.
52722
52723 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52724
52725         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52726         assumes the sorting is stable, while most qsort implementations
52727         are not.  Use argument addresses to ensure they never compare as
52728         equal.
52729
52730         * tests/test-argp-2.sh (usage-indent test): Fix output
52731         (func_compare): Restore diff options
52732         * tests/test-argp.c: Restore #include "progname.h"
52733
52734 2007-04-29  Bruno Haible  <bruno@clisp.org>
52735
52736         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52737         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52738         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52740         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52741         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52742         (TESTS, check_PROGRAMS): Add test-snprintf.
52743         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52744         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52745         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52746         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52747         assertions that fail on HP-UX, OSF/1, or IRIX.
52748         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52749
52750 2007-04-29  Bruno Haible  <bruno@clisp.org>
52751
52752         * MODULES.html.sh (posix_functions): Remove 'contents'.
52753
52754 2007-04-29  Karl Berry  <karl@gnu.org>
52755
52756         * config/srclist.txt (gendocs_template_min): new entry.
52757
52758 2007-04-29  Bruno Haible  <bruno@clisp.org>
52759
52760         Work around fpurge bug on BSD systems.
52761         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52762         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52763         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52764         fpurge to rpl_fpurge if the system already has this function.
52765         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52766         the case where the system already has this function. Correct invariants
52767         on BSD systems.
52768         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52769         BSD systems.
52770
52771 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52772
52773         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52774         proposed by Sven Verdoolaege.
52775
52776         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52777         options.
52778         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52779         (usage and help tests): Update
52780
52781 2007-04-29  Bruno Haible  <bruno@clisp.org>
52782
52783         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52784         Print more information in case of failure. Disable a test on BeOS.
52785
52786 2007-04-29  Bruno Haible  <bruno@clisp.org>
52787
52788         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52789         This helps debugging on systems on which no gdb is available.
52790
52791 2007-04-29  Bruno Haible  <bruno@clisp.org>
52792
52793         * lib/freading.h: Improve comments.
52794         * lib/fwriting.h: Likewise.
52795         * tests/test-freading.c (main): Don't check freading immediately after
52796         repositioning. Needed for glibc.
52797
52798 2007-04-29  Bruno Haible  <bruno@clisp.org>
52799
52800         * lib/freading.c (freading): Trivial simplification.
52801
52802 2007-04-28  Bruno Haible  <bruno@clisp.org>
52803
52804         * tests/test-fwriting.c (main): Also test the interaction between
52805         fflush and fwriting.
52806         * modules/fwriting-tests (Depends-on): Add fflush.
52807
52808         * tests/test-freading.c (main): Also test the interaction between
52809         fflush and freading.
52810         * modules/freading-tests (Depends-on): Add fflush.
52811
52812 2007-04-28  Bruno Haible  <bruno@clisp.org>
52813
52814         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52815         fseeko and ftello.
52816         Suggested by Eric Blake.
52817
52818 2007-04-28  Jim Meyering  <jim@meyering.net>
52819
52820         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52821         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52822         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52823
52824 2007-04-27  Eric Blake  <ebb9@byu.net>
52825
52826         * doc/headers/assert.texi (assert.h): Document assert module use.
52827
52828 2007-04-27  Bruno Haible  <bruno@clisp.org>
52829
52830         * doc/headers/*.texi: New files.
52831         * doc/gnulib.texi (Header File Substitutes): New chapter.
52832         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52833         dependencies.
52834         (standards.info ,standards.html, standards.dvi): Update dependencies.
52835         (mostlyclean, clean): New targets.
52836
52837 2007-04-27  Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52840         * modules/sysexits (Files, Makefile.am): Update.
52841
52842         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52843         * modules/sys_socket (Files, Makefile.am): Update.
52844
52845         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52846         * modules/sys_stat (Files, Makefile.am): Update.
52847
52848 2007-04-27  Eric Blake  <ebb9@byu.net>
52849
52850         * lib/freading.h: Improve comments.
52851         * lib/fwriting.h: Likewise.
52852         * lib/fflush.c: Likewise.
52853
52854         Fix closein for mingw.
52855         * modules/closein-tests: Add tests for closein.
52856         * tests/test-closein.c: New file.
52857         * tests/test-closein.sh: Likewise.
52858         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52859         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52860
52861 2007-04-27  Bruno Haible  <bruno@clisp.org>
52862
52863         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52864         version is < 6.
52865         * lib/math_.h [__DECC]: Likewise.
52866         * lib/stdio_.h [__DECC]: Likewise.
52867         * lib/stdlib_.h [__DECC]: Likewise.
52868         * lib/string_.h [__DECC]: Likewise.
52869         * lib/time_.h [__DECC]: Likewise.
52870         * lib/wchar_.h [__DECC]: Likewise.
52871         * lib/wctype_.h [__DECC]: Likewise.
52872
52873 2007-04-27  Bruno Haible  <bruno@clisp.org>
52874
52875         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52876
52877 2007-04-27  Bruno Haible  <bruno@clisp.org>
52878
52879         * lib/fflush.c: Add comments.
52880         * modules/fpurge-tests (Depends-on): Add fflush.
52881         * modules/freadable-tests (Depends-on): Likewise.
52882         * modules/fwritable-tests (Depends-on): Likewise.
52883
52884 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52885
52886         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52887         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52888         Report by Bruno Haible <bruno@clisp.org>.
52889
52890 2007-04-26  Eric Blake  <ebb9@byu.net>
52891
52892         Fix fflush on mingw.
52893         * modules/fflush (Depends-on): Add freading.
52894         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52895         but unread data.
52896
52897 2007-04-26  Eric Blake  <ebb9@byu.net>
52898         and Bruno Haible  <bruno@clisp.org>
52899
52900         Implement freading and fwriting.
52901         * lib/freading.c: New file.
52902         * lib/freading.h: Likewise.
52903         * m4/freading.m4: Likewise.
52904         * modules/freading: Likewise.
52905         * modules/freading-tests: Likewise.
52906         * tests/test-freading.c: Likewise.
52907         * lib/fwriting.c: New file.
52908         * lib/fwriting.h: Likewise.
52909         * m4/fwriting.m4: Likewise.
52910         * modules/fwriting: Likewise.
52911         * modules/fwriting-tests: Likewise.
52912         * tests/test-fwriting.c: Likewise.
52913         * MODULES.html.sh (File stream based Input/Output): Mention them.
52914
52915 2007-04-26  Bruno Haible  <bruno@clisp.org>
52916
52917         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52918         'long' when we assume it.
52919         Suggested by Eric Blake.
52920
52921 2007-04-26  Bruno Haible  <bruno@clisp.org>
52922
52923         Ensure fseeko, ftello are declared on glibc systems.
52924         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52925         * modules/fseeko (configure.ac-early): Likewise.
52926         * modules/ftello (configure.ac-early): Likewise.
52927         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52928         AC_FUNC_FSEEKO for this.
52929         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52930         (gl_CHECK_FSEEKO): Remove macro.
52931
52932 2007-04-26  Bruno Haible  <bruno@clisp.org>
52933
52934         * tests/test-fflush.c (main): Also check the ftell result after
52935         fflush and fseek/fseeko.
52936         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52937         file descriptor position cache in the stream.
52938         * lib/fseeko.c (rpl_fseeko): Likewise.
52939
52940 2007-04-26  Bruno Haible  <bruno@clisp.org>
52941
52942         * modules/fflush-tests (Depends-on): Add fseeko.
52943
52944 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52945             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52946
52947         * lib/argz_.h: ensure error_t definition is obtained in same
52948         mechanism system argz.h would have.
52949         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52950         argz facilities are known bad.  Err on the side of caution if
52951         cross-compiling.
52952
52953 2007-04-25  Eric Blake  <ebb9@byu.net>
52954
52955         * lib/fpurge.c (includes): Use stdlib.h for free.
52956         * tests/test-fflush.c (main): Also test fflush-fseeko.
52957
52958 2007-04-25  Bruno Haible  <bruno@clisp.org>
52959
52960         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52961         * lib/fseeko.c: New file.
52962         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52963         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52964         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52965         gl_FUNC_FSEEKO.
52966         (gl_FUNC_FSEEKO): Invoke it.
52967         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52968         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52969         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52970
52971 2007-04-25  Bruno Haible  <bruno@clisp.org>
52972
52973         * modules/fflush (Depends-on): Add ftello.
52974
52975 2007-04-25  Bruno Haible  <bruno@clisp.org>
52976
52977         * modules/ftello-tests: New file.
52978         * tests/test-ftello.c: New file.
52979
52980         * modules/ftello: New file.
52981         * m4/ftello.m4: New file.
52982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52983         HAVE_FTELLO.
52984         * lib/stdio_.h (ftello): New declaration.
52985         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52986         HAVE_FTELLO.
52987
52988 2007-04-25  Bruno Haible  <bruno@clisp.org>
52989
52990         * modules/fseeko-tests: New file.
52991         * tests/test-fseeko.c: New file.
52992
52993         * modules/fseeko: New file.
52994         * m4/fseeko.m4: New file.
52995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52996         HAVE_FSEEKO.
52997         * lib/stdio_.h (fseeko): New declaration.
52998         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52999         HAVE_FSEEKO.
53000
53001 2007-04-25  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53004
53005 2007-04-25  Bruno Haible  <bruno@clisp.org>
53006
53007         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53008         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53009         * tests/test-unistd.c: Likewise.
53010         * tests/test-fcntl.c: Likewise.
53011
53012 2007-04-23  Eric Blake  <ebb9@byu.net>
53013
53014         * lib/fflush.c: Fix missing include.
53015         Reported by Bruno Haible.
53016
53017 2007-04-23  Bruno Haible  <bruno@clisp.org>
53018
53019         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53020         Reported by Eric Blake.
53021
53022 2007-04-23  Bruno Haible  <bruno@clisp.org>
53023
53024         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53025
53026 2007-04-23  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53029
53030 2007-04-23  Bruno Haible  <bruno@clisp.org>
53031
53032         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53033         Needed on HP-UX 11.
53034
53035 2007-04-16  Eric Blake  <ebb9@byu.net>
53036
53037         Make fflush rely on fpurge.
53038         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53039         open coding all variants.
53040         * modules/fflush (Depends-on): Add fpurge and unistd.
53041         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53043
53044         Fix --with-tests compilation on cygwin.
53045         * modules/argmatch-tests (Makefile.am): List gnulib library first
53046         in LDADD.
53047         * modules/argp-tests (Makefile.am): Likewise.
53048         * modules/array-list-tests (Makefile.am): Likewise.
53049         * modules/array-oset-tests (Makefile.am): Likewise.
53050         * modules/avltree-list-tests (Makefile.am): Likewise.
53051         * modules/avltree-oset-tests (Makefile.am): Likewise.
53052         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53053         * modules/carray-list-tests (Makefile.am): Likewise.
53054         * modules/dirname-tests (Makefile.am): Likewise.
53055         * modules/frexp-tests (Makefile.am): Likewise.
53056         * modules/isnanl-tests (Makefile.am): Likewise.
53057         * modules/linked-list-tests (Makefile.am): Likewise.
53058         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53059         * modules/lock-tests (Makefile.am): Likewise.
53060         * modules/rbtree-list-tests (Makefile.am): Likewise.
53061         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53062         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53063         * modules/tls-tests (Makefile.am): Likewise.
53064         * modules/tsearch-tests (Makefile.am): Likewise.
53065         * modules/xvasprintf-tests (Makefile.am): Likewise.
53066
53067         Fix fpurge for cygwin.
53068         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53069         value.
53070         * modules/fpurge-tests (Depends-on): Clean up trash.
53071
53072 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53073
53074         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53075
53076         * m4/autobuild.m4: Re-indent.
53077
53078 2007-04-13  Bruno Haible  <bruno@clisp.org>
53079
53080         * modules/fpurge-tests: New file.
53081         * tests/test-fpurge.c: New file.
53082
53083         * modules/fpurge: New file.
53084         * lib/fpurge.h: New file.
53085         * lib/fpurge.c: New file.
53086         * m4/fpurge.m4: New file.
53087
53088 2007-04-13  Bruno Haible  <bruno@clisp.org>
53089
53090         * modules/fbufmode-tests: New file.
53091         * tests/test-fbufmode.c: New file.
53092
53093         * modules/fbufmode: New file.
53094         * lib/fbufmode.h: New file.
53095         * lib/fbufmode.c: New file.
53096         * m4/fbufmode.m4: New file.
53097
53098 2007-04-13  Bruno Haible  <bruno@clisp.org>
53099
53100         * modules/fwritable-tests: New file.
53101         * tests/test-fwritable.c: New file.
53102
53103         * modules/fwritable: New file.
53104         * lib/fwritable.h: New file.
53105         * lib/fwritable.c: New file.
53106         * m4/fwritable.m4: New file.
53107
53108 2007-04-13  Bruno Haible  <bruno@clisp.org>
53109
53110         * modules/freadable-tests: New file.
53111         * tests/test-freadable.c: New file.
53112
53113         * modules/freadable: New file.
53114         * lib/freadable.h: New file.
53115         * lib/freadable.c: New file.
53116         * m4/freadable.m4: New file.
53117
53118 2007-04-13  Bruno Haible  <bruno@clisp.org>
53119
53120         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53121         MOSTLYCLEANFILES.
53122
53123 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53124
53125         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53126         gzip bootstrap.conf to avoid dragging in i18n machinery.
53127         (gnulib_tool_option): Use it.
53128
53129 2007-04-13  Bruno Haible  <bruno@clisp.org>
53130
53131         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53132         %F directives.
53133         * tests/test-vasprintf-posix.c (test_function): Likewise.
53134         * tests/test-snprintf-posix.h (test_function): Likewise.
53135         * tests/test-sprintf-posix.h (test_function): Likewise.
53136         * tests/test-fprintf-posix.h (test_function): Likewise.
53137         * tests/test-printf-posix.h (test_function): Likewise.
53138         * tests/test-fprintf-posix.out: Likewise.
53139
53140 2007-04-13  Bruno Haible  <bruno@clisp.org>
53141
53142         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53143         * modules/tls-tests (configure.ac): Likewise.
53144         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53145
53146 2007-04-13  Bruno Haible  <bruno@clisp.org>
53147
53148         * lib/tls.c (glthread_tls_get): Fix return type.
53149         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53150
53151 2007-04-12  Eric Blake  <ebb9@byu.net>
53152
53153         * modules/gettime (Depends-on): Remove gettime.
53154         Reported by Dmitry V. Levin.
53155
53156 2007-04-12  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/fflush (Include): Mention <stdio.h>.
53159         * modules/strtoimax (Include): Mention <inttypes.h>.
53160         * modules/strtoumax (Include): Likewise.
53161
53162 2007-04-12  Eric Blake  <ebb9@byu.net>
53163
53164         * .cvsignore: New file.
53165         * .gitignore: Likewise.
53166
53167 2007-04-12  Bruno Haible  <bruno@clisp.org>
53168
53169         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53170         not before, since $(LDADD) often contains libgnu.a.
53171         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53172         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53173         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53174         Needed on Cygwin.
53175
53176 2007-04-12  Eric Blake  <ebb9@byu.net>
53177
53178         Work around glibc's failure to flush stdin on fclose.
53179         * lib/closein.c (close_stdin): Flush stdin before closing.
53180
53181         Work around glibc's failure to reset seekable stdin on exit.
53182         * modules/closein: New module.
53183         * lib/closein.c: New file.
53184         * lib/closein.h: Likewise.
53185         * m4/closein.m4: Likewise.
53186         * MODULES.html.sh (File stream based Input/Output): Document it.
53187
53188 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53189
53190         * gnulib-tool: Rename generated 'autobuild' script to
53191         'do-autobuild' in --create-megatestdir output.
53192
53193         * doc/gnulib.texi (Build robot for gnulib): Fix.
53194
53195 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53196
53197         * modules/sysexits (Depends-on): Add absolute-header.
53198
53199 2007-04-12  Eric Blake  <ebb9@byu.net>
53200
53201         No need to preserve errno on success.
53202         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53203         Reported by Bruno Haible.
53204
53205 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53206
53207         * MODULES.html.sh (Support for maintaining and releasing
53208         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53209
53210 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53211
53212         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53213
53214 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53215
53216         * modules/autobuild: New module.
53217
53218         * m4/autobuild.m4: New file.
53219
53220 2007-04-11  Bruno Haible  <bruno@clisp.org>
53221
53222         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53223         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53226         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53227         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53228         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53230         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53231         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
53233         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53234         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
53236         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53237         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53239         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53240         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53241         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53242         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53243         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53245         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53246         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53247         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53248         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53249         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53250         Reported by Eric Blake.
53251
53252 2007-04-11  Bruno Haible  <bruno@clisp.org>
53253
53254         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53255
53256 2007-04-10  Bruno Haible  <bruno@clisp.org>
53257
53258         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53259         for NaN and Infinity. Needed on FreeBSD 6.1.
53260         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53261         regarding results for "%010a" of Infinity and NaN.
53262         * tests/test-vasprintf-posix.c (test_function): Likewise.
53263         * tests/test-snprintf-posix.h (test_function): Likewise.
53264         * tests/test-sprintf-posix.h (test_function): Likewise.
53265         * tests/test-fprintf-posix.h (test_function): Likewise.
53266         * tests/test-printf-posix.h (test_function): Likewise.
53267         * tests/test-fprintf-posix.out: Likewise.
53268
53269 2007-04-10  Bruno Haible  <bruno@clisp.org>
53270
53271         * modules/locale-tests: New file.
53272         * tests/test-locale.c: New file.
53273
53274         * modules/locale: New file.
53275         * lib/locale_.h: New file.
53276         * m4/locale_h.m4: New file.
53277
53278 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53279             Bruno Haible  <bruno@clisp.org>
53280
53281         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53282         be determined, test for availability of the copysignf, copysign,
53283         copysignl functions.
53284         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53285         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53286         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53287
53288 2007-04-09  Eric Blake  <ebb9@byu.net>
53289
53290         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53291         * modules/stdio (Makefile.am): Support fflush.
53292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53293         * modules/fflush: New file.
53294         * lib/fflush.c: Likewise.
53295         * m4/fflush.m4: Likewise.
53296         * modules/fflush-tests: New test.
53297         * tests/test-fflush.c: Likewise.
53298         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53299
53300 2007-04-06  Bruno Haible  <bruno@clisp.org>
53301
53302         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53303         (VASNPRINTF): Use signbit for faster determination whether to print a
53304         minus sign.
53305         * modules/vasnprintf (Files): Remove lib/float+.h.
53306         * modules/fprintf-posix (Depends-on): Add signbit.
53307         * modules/snprintf-posix (Depends-on): Likewise.
53308         * modules/sprintf-posix (Depends-on): Likewise.
53309         * modules/vasnprintf-posix (Depends-on): Likewise.
53310         * modules/vasprintf-posix (Depends-on): Likewise.
53311         * modules/vfprintf-posix (Depends-on): Likewise.
53312         * modules/vsnprintf-posix (Depends-on): Likewise.
53313         * modules/vsprintf-posix (Depends-on): Likewise.
53314
53315 2007-04-06  Bruno Haible  <bruno@clisp.org>
53316
53317         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53318         * tests/test-frexpl.c (main): Likewise.
53319         * tests/test-ldexpl.c (main): Likewise.
53320         * modules/frexp-tests (Depends-on): Add signbit.
53321         * modules/frexpl-tests (Depdends-on): Likewise.
53322         * modules/ldexpl-tests (Depdends-on): Likewise.
53323
53324 2007-04-06  Bruno Haible  <bruno@clisp.org>
53325
53326         * modules/signbit-tests: New file.
53327         * tests/test-signbit.c: New file.
53328
53329         * modules/signbit: New file.
53330         * lib/signbitf.c: New file.
53331         * lib/signbitd.c: New file.
53332         * lib/signbitl.c: New file.
53333         * m4/signbit.m4: New file.
53334         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53335         (signbit): New macro.
53336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53337         REPLACE_SIGNBIT.
53338         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53339         REPLACE_FREXPL into math.h.
53340
53341 2007-04-06  Bruno Haible  <bruno@clisp.org>
53342
53343         * modules/isnanf-nolibm-tests: New file.
53344         * tests/test-isnanf.c: New file.
53345
53346         * modules/isnanf-nolibm: New file.
53347         * lib/isnanf.h: New file.
53348         * lib/isnanf.c: New file.
53349         * lib/isnan.c: Consider the USE_FLOAT macro.
53350         * m4/isnanf.m4: New file.
53351
53352 2007-04-06  Bruno Haible  <bruno@clisp.org>
53353
53354         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53355         (Link): New section.
53356
53357         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53358
53359 2007-04-06  Bruno Haible  <bruno@clisp.org>
53360
53361         Assume the 'long double' type.
53362         * m4/longdouble.m4: Remove file.
53363         * config/srclist.txt: Don't mention longdouble.m4.
53364         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53365         * lib/float+.h: Likewise.
53366         * lib/frexp.c: Likewise.
53367         * lib/printf-args.h: Likewise.
53368         * lib/printf-args.c: Likewise.
53369         * lib/printf-frexp.c: Likewise.
53370         * lib/printf-parse.c: Likewise.
53371         * lib/vasnprintf.c: Likewise.
53372         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53373         * m4/intl.m4: Likewise.
53374         * m4/isnanl.m4: Likewise.
53375         * m4/printf.m4: Likewise.
53376         * m4/printf-frexpl.m4: Likewise.
53377         * m4/vasnprintf.m4: Likewise.
53378         * modules/allocsa (Files): Remove m4/longdouble.m4.
53379         * modules/gettext (Files): Likewise.
53380         * modules/relocatable-prog-wrapper (Files): Likewise.
53381         * modules/vasnprintf (Files): Likewise.
53382         * modules/isnanl (Files): Likewise.
53383         (Include): Simplify.
53384         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53385         (Include): Simplify.
53386         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53387         (Include): Simplify.
53388         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53389         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53390         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53391         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53392         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53393         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53394         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53395         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53396         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53398         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53399         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53400         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53401         * tests/test-isnanl.c: Likewise.
53402         * tests/test-snprintf-posix.h: Likewise.
53403         * tests/test-sprintf-posix.h: Likewise.
53404         * tests/test-vasnprintf-posix.c: Likewise.
53405         * tests/test-vasnprintf-posix2.c: Likewise.
53406         * tests/test-vasprintf-posix.c: Likewise.
53407
53408 2007-04-06  Bruno Haible  <bruno@clisp.org>
53409
53410         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53411         * lib/math_.h [__DECC]: Include the overridden include file through
53412         #include_next, outside the double-inclusion guard.
53413         * lib/stdio_.h [__DECC]: Likewise.
53414         * lib/stdlib_.h [__DECC]: Likewise.
53415         * lib/string_.h [__DECC]: Likewise.
53416         * lib/time_.h [__DECC]: Likewise.
53417         * lib/wchar_.h [__DECC]: Likewise.
53418         * lib/wctype_.h [__DECC]: Likewise.
53419         * lib/inttypes_.h [__DECC]: Likewise.
53420         Reported by Albert Chin <china@thewrittenword.com> in
53421         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53422
53423 2007-04-04  Eric Blake  <ebb9@byu.net>
53424
53425         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53426         1.5.x.
53427
53428 2007-04-04  Bruno Haible  <bruno@clisp.org>
53429
53430         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53431         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53432
53433 2007-04-04  Bruno Haible  <bruno@clisp.org>
53434
53435         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53436         results for "%010a" of Infinity and NaN.
53437         * tests/test-vasprintf-posix.c (test_function): Likewise.
53438         * tests/test-snprintf-posix.h (test_function): Likewise.
53439         * tests/test-sprintf-posix.h (test_function): Likewise.
53440         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53441         * tests/test-printf-posix.h (test_function): Likewise.
53442         * tests/test-fprintf-posix.out: Update.
53443         Needed for FreeBSD 6.1.
53444
53445 2007-04-04  Bruno Haible  <bruno@clisp.org>
53446
53447         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53448         directly used by the gnulib modules nor by gnulib-tool.
53449
53450 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53451
53452         * DEPENDENCIES: Give overall description of version dependency
53453         desirability.  Use more-typical names for apps.
53454         Add shell, coreutils, diffutils, grep, tar, gzip.
53455
53456 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53457
53458         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53459
53460 2007-04-04  Karl Berry  <karl@gnu.org>
53461
53462         * MODULES.html.sh (func_module): missing '.
53463
53464 2007-04-03  Bruno Haible  <bruno@clisp.org>
53465
53466         * modules/argmatch-tests (Makefile.am): New variable
53467         test_argmatch_LDADD.
53468         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53469         * modules/array-list-tests (Makefile.am): New variable
53470         test_array_list_LDADD.
53471         * modules/array-oset-tests (Makefile.am): New variable
53472         test_array_oset_LDADD.
53473         * modules/avltree-list-tests (Makefile.am): New variable
53474         test_avltree_list_LDADD.
53475         * modules/avltree-oset-tests (Makefile.am): New variable
53476         test_avltree_oset_LDADD.
53477         * modules/avltreehash-list-tests (Makefile.am): New variable
53478         test_avltreehash_list_LDADD.
53479         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53480         test_canonicalize_lgpl_LDADD.
53481         * modules/carray-list-tests (Makefile.am): New variable
53482         test_carray_list_LDADD.
53483         * modules/dirname-tests (Makefile.am): New variable
53484         test_dirname_LDADD.
53485         * modules/linked-list-tests (Makefile.am): New variable
53486         test_linked_list_LDADD.
53487         * modules/linkedhash-list-tests (Makefile.am): New variable
53488         test_linkedhash_list_LDADD.
53489         * modules/rbtree-list-tests (Makefile.am): New variable
53490         test_rbtree_list_LDADD.
53491         * modules/rbtree-oset-tests (Makefile.am): New variable
53492         test_rbtree_oset_LDADD.
53493         * modules/rbtreehash-list-tests (Makefile.am): New variable
53494         test_rbtreehash_list_LDADD.
53495         * modules/xvasprintf-tests (Makefile.am): New variable
53496         test_xvasprintf_LDADD.
53497         Reported by Eric Blake.
53498
53499 2007-04-03  Eric Blake  <ebb9@byu.net>
53500
53501         * DEPENDENCIES: Weaken m4 requirements.
53502
53503 2007-04-03  Bruno Haible  <bruno@clisp.org>
53504
53505         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53506         * modules/isnanl-tests (configure.ac): Likewise.
53507
53508 2007-04-03  Ben Pfaff  <blp@gnu.org>
53509
53510         * modules/iconv_open: Add $(srcdir)/ to source directory
53511         references in Makefile fragments that call gperf, to fix VPATH
53512         builds.
53513
53514 2007-04-03  Bruno Haible  <bruno@clisp.org>
53515
53516         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53517         * lib/ldexpl.c: Undo last change.
53518
53519 2007-04-03  Bruno Haible  <bruno@clisp.org>
53520
53521         * modules/printf-frexpl (Depends-on): Undo last change.
53522         (Files): Add m4/ldexpl.m4.
53523
53524 2007-04-03  Bruno Haible  <bruno@clisp.org>
53525
53526         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53527         * modules/isnanl (Link): New section.
53528
53529         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53530         * modules/frexp (Link): New section.
53531
53532         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53533         * modules/frexpl (Link): New section.
53534
53535         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53536         * modules/ldexpl (Link): New section.
53537
53538 2007-04-03  Bruno Haible  <bruno@clisp.org>
53539
53540         * modules/TEMPLATE-EXTENDED: New file.
53541         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53542
53543 2007-04-03  Bruno Haible  <bruno@clisp.org>
53544
53545         * DEPENDENCIES: New file.
53546         Suggested by Simon Josefsson.
53547
53548 2007-04-03  Bruno Haible  <bruno@clisp.org>
53549
53550         * doc/gnulib.texi: Escape @.
53551
53552 2007-04-03  James Youngman  <jay@gnu.org>
53553         and Paul Eggert  <eggert@cs.ucla.edu>
53554
53555         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53556         birthtime on all systems that have birthtime, not just those which
53557         use st_birthtimensec rather than st_birthtim.  Putting zero in
53558         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53559         that the birth time is not available for files on an NFS mount.
53560
53561 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53562
53563         * modules/memxor: Move back from crypto/, suggested by Bruno.
53564         * modules/crypto/hmac-sha1: Fix memxor dependency.
53565
53566         * modules/crypto/gc: Moved from ../.
53567
53568 2007-04-02  Eric Blake  <ebb9@byu.net>
53569
53570         * lib/ldexpl.c (includes): Avoid libm.
53571
53572         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53573
53574 2007-04-02  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53577         on IRIX.
53578
53579 2007-04-02  Bruno Haible  <bruno@clisp.org>
53580
53581         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53582         x86 or x86_64 platforms running MacOS X.
53583         Reported by Ryan Schmidt <@ryandesign.com>.
53584
53585 2007-04-02  Bruno Haible  <bruno@clisp.org>
53586
53587         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53588         i386.
53589
53590 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53591
53592         * modules/crypto/arcfour: Moved from ../.
53593         * modules/crypto/arcfour-tests: Moved from ../.
53594         * modules/crypto/arctwo: Moved from ../.
53595         * modules/crypto/arctwo-tests: Moved from ../.
53596         * modules/crypto/des: Moved from ../.
53597         * modules/crypto/des-tests: Moved from ../.
53598         * modules/crypto/gc-arcfour: Moved from ../.
53599         * modules/crypto/gc-arcfour-tests: Moved from ../.
53600         * modules/crypto/gc-arctwo: Moved from ../.
53601         * modules/crypto/gc-arctwo-tests: Moved from ../.
53602         * modules/crypto/gc-des: Moved from ../.
53603         * modules/crypto/gc-des-tests: Moved from ../.
53604         * modules/crypto/gc-hmac-md5: Moved from ../.
53605         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53606         * modules/crypto/gc-hmac-sha1: Moved from ../.
53607         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53608         * modules/crypto/gc-md2: Moved from ../.
53609         * modules/crypto/gc-md2-tests: Moved from ../.
53610         * modules/crypto/gc-md4: Moved from ../.
53611         * modules/crypto/gc-md4-tests: Moved from ../.
53612         * modules/crypto/gc-md5: Moved from ../.
53613         * modules/crypto/gc-md5-tests: Moved from ../.
53614         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53615         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53616         * modules/crypto/gc-random: Moved from ../.
53617         * modules/crypto/gc-rijndael: Moved from ../.
53618         * modules/crypto/gc-rijndael-tests: Moved from ../.
53619         * modules/crypto/gc-sha1: Moved from ../.
53620         * modules/crypto/gc-sha1-tests: Moved from ../.
53621         * modules/crypto/gc-tests: Moved from ../.
53622         * modules/crypto/hmac-md5: Moved from ../.
53623         * modules/crypto/hmac-md5-tests: Moved from ../.
53624         * modules/crypto/hmac-sha1: Moved from ../.
53625         * modules/crypto/hmac-sha1-tests: Moved from ../.
53626         * modules/crypto/md2: Moved from ../.
53627         * modules/crypto/md2-tests: Moved from ../.
53628         * modules/crypto/md4: Moved from ../.
53629         * modules/crypto/md4-tests: Moved from ../.
53630         * modules/crypto/md5: Moved from ../.
53631         * modules/crypto/md5-tests: Moved from ../.
53632         * modules/crypto/memxor: Moved from ../.
53633         * modules/crypto/rijndael: Moved from ../.
53634         * modules/crypto/rijndael-tests: Moved from ../.
53635         * modules/crypto/sha1: Moved from ../.
53636
53637 2007-03-30  James Youngman  <jay@gnu.org>
53638
53639         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53640         rename() to change the ctime of a file (because ctime is unaffected
53641         by rename on jfs2 on AIX 5.1).
53642         (main): Start by doing cleanup, in case a previous run failed leaving
53643         test files behind.
53644
53645 2007-03-31  Bruno Haible  <bruno@clisp.org>
53646
53647         Support old proprietary implementations of iconv.
53648         * modules/iconv_open: New file.
53649         * lib/iconv_.h: New file.
53650         * m4/iconv_h.m4: New file.
53651         * lib/iconv_open.c: New file.
53652         * lib/iconv_open-aix.gperf: New file.
53653         * lib/iconv_open-hpux.gperf: New file.
53654         * lib/iconv_open-irix.gperf: New file.
53655         * lib/iconv_open-osf.gperf: New file.
53656         * m4/iconv_open.m4: New file.
53657         * modules/linebreak (Depends-on): Add iconv_open.
53658         * modules/striconv (Depends-on): Likewise.
53659         * modules/striconveh (Depends-on): Likewise.
53660         * modules/unicodeio (Depends-on): Likewise.
53661         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53662         (iconv_t)(-1).
53663         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53664         conversion if cd is (iconv_t)(-1).
53665         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53666         is not possible.
53667
53668 2007-03-31  Bruno Haible  <bruno@clisp.org>
53669
53670         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53671         work on Solaris either. Protect also second use of "autodetect_jp".
53672
53673 2007-03-31  Bruno Haible  <bruno@clisp.org>
53674
53675         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53676         the function is not present.
53677
53678 2007-03-31  Bruno Haible  <bruno@clisp.org>
53679
53680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53681         the function is not present.
53682
53683 2007-03-31  Bruno Haible  <bruno@clisp.org>
53684
53685         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53686         a bug in HP-UX iconv_open().
53687
53688 2007-03-31  Bruno Haible  <bruno@clisp.org>
53689
53690         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53691         (Mathematics <math.h>): New section, add fpieee.
53692         (Input/output <stdio.h>): Add fseterr.
53693         (Mathematics <math.h>): New section, add printf-frexp.
53694         (Container data structures): Add sublist.
53695         (Core language properties): Add fpucw, inline.
53696         (Functions for greatest-width integer types <inttypes.h>): Add
53697         imaxabs, imaxdiv, inttypes.
53698         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53699         isnanl-nolibm, ldexp.
53700         (Mathematics <math.h>): New section, add printf-frexpl.
53701         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53702         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53703         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53704         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53705         (Unicode string functions): Add unistr/u*-mbtoucr.
53706         (Java): Add javacomp-script, javaexec-script.
53707         (C#): Add csharpcomp-script, csharpexec-script.
53708         (Support for building libraries and executables): Add havelib,
53709         relocatable-*.
53710         (Support for maintaining and releasing projects): Renamed from
53711         'Support for maintaining and release projects'. Add announce-gen.
53712
53713 2007-03-31  Bruno Haible  <bruno@clisp.org>
53714
53715         * README: Talk primarily about git.
53716         (git and CVS): Renamed from CVS.
53717         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53718         gnulib is available through git.
53719         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53720
53721 2007-03-30  Bruno Haible  <bruno@clisp.org>
53722
53723         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53724         * lib/poll_.h: Likewise.
53725         * lib/stat_.h: Likewise.
53726         * lib/sys_time_.h: Likewise.
53727         * lib/sysexit_.h: Likewise.
53728         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53729         * lib/stdbool_.h: Likewise.
53730         * lib/byteswap_.h: Add double-inclusion guard.
53731
53732 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53733
53734         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53735
53736 2007-03-30  Karl Berry  <karl@gnu.org>
53737
53738         * config/srclist-update: double space after USA in the license
53739         substitution, since that's how it's usually (?) written.
53740
53741 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53742
53743         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53744         reported by Bruno Haible.
53745
53746 2007-03-29  Bruno Haible  <bruno@clisp.org>
53747
53748         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53749         a bug in AIX iconv().
53750
53751 2007-03-29  Bruno Haible  <bruno@clisp.org>
53752
53753         * modules/ldexpl-tests: New file.
53754         * tests/test-ldexpl.c: New file.
53755
53756 2007-03-29  Bruno Haible  <bruno@clisp.org>
53757
53758         * lib/ldexpl.c: Include fpucw.h.
53759         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53760         multiplication.
53761         * modules/ldexpl (Depends-on): Add fpucw.
53762
53763 2007-03-29  Bruno Haible  <bruno@clisp.org>
53764
53765         * modules/ldexpl: New file.
53766         * m4/ldexpl.m4: New file.
53767         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53768         set.
53769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53770         REPLACE_LDEXPL.
53771         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53772         REPLACE_LDEXPL.
53773         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53774         gl_FUNC_LDEXPL_WORKS.
53775         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53776         * modules/mathl (Files): Remove lib/ldexpl.c.
53777         (Depends-on): Add ldexpl.
53778
53779 2007-03-29  Bruno Haible  <bruno@clisp.org>
53780
53781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53782
53783 2007-03-29  Bruno Haible  <bruno@clisp.org>
53784
53785         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53786         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53787         and possibly also HP-UX.
53788         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53789         work on AIX, IRIX, HP-UX, OSF/1.
53790         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53791         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53792         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53793         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53794         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53795         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53796
53797 2007-03-29  Bruno Haible  <bruno@clisp.org>
53798
53799         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53800
53801 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53802
53803         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53804         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53805
53806 2007-03-29  Eric Blake  <ebb9@byu.net>
53807
53808         * lib/acl-internal.h: Remove redundant include.
53809         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53810         Cygwin when a file is locked.
53811
53812 2007-03-29  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53815         file.
53816         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53817
53818 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53819
53820         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53821         try to remove a parent directory if the child couldn't be removed
53822         (except for the first rmdir, which could fail because the child
53823         doesn't exist).  Problem reported by Jeff Blaine in
53824         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53825
53826 2007-03-28  Bruno Haible  <bruno@clisp.org>
53827
53828         * lib/striconveh.c (utf8conv_carefully): New function.
53829         (mem_cd_iconveh_internal): Invoke it.
53830
53831 2007-03-28  Bruno Haible  <bruno@clisp.org>
53832
53833         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53834         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53835         input.
53836         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53837         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53838         unistr/u8-uctomb.
53839
53840 2007-03-28  Bruno Haible  <bruno@clisp.org>
53841
53842         * modules/unistr/u8-mbtoucr: New file.
53843         * lib/unistr/u8-mbtoucr.c: New file.
53844         * modules/unistr/u16-mbtoucr: New file.
53845         * lib/unistr/u16-mbtoucr.c: New file.
53846         * modules/unistr/u16-mbtoucr: New file.
53847         * lib/unistr/u16-mbtoucr.c: New file.
53848         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53849
53850 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53851             Bruno Haible  <bruno@clisp.org>
53852
53853         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53854         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53855         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53856
53857         * m4/stdio_h.m4: Add stubs for vasprintf too.
53858
53859         * modules/stdio: Support vasprintf in sed command.
53860
53861         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53862         vasprintf.h.  Add stdio module indicator.
53863
53864         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53865         vasprintf.h.
53866
53867         * lib/vasprintf.h: File removed.
53868
53869         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53870         * lib/vasprintf.c: Ditto.
53871         * lib/xvasprintf.c: Ditto.
53872         * tests/test-vasprintf-posix.c: Ditto.
53873         * tests/test-vasprintf.c: Ditto.
53874
53875 2007-03-27  Bruno Haible  <bruno@clisp.org>
53876
53877         Make vasnprintf multithread-safe.
53878         * lib/vasnprintf.c (decimal_point_char): New function.
53879         (VASNPRINTF): Use it.
53880         Suggested by Simon Josefsson.
53881
53882 2007-03-27  Eric Blake  <ebb9@byu.net>
53883
53884         Support sub-second birthtime on cygwin.
53885         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53886         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53887         (get_stat_birthtime): Also work with st_birthtim.
53888
53889 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53892         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53893         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53894         (get_stat_birthtime_ns): Simplify compile-time tests.
53895         (get_stat_birthtime): Change the API to look like
53896         get_stat_mtime etc., except return a negative tv_nsec on error.
53897         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53898         Don't check for "spare" fields.
53899         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53900         or for struct stat.st_birthtime, as these tests aren't used.
53901         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53902
53903 2007-03-27  Bruno Haible  <bruno@clisp.org>
53904
53905         * lib/stat-time.h: Include <sys/stat.h>.
53906
53907 2007-03-27  James Youngman  <jay@gnu.org>
53908
53909         * lib/stat-time.h (get_stat_birthtime): New function for
53910           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53911         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53912           and its variants.
53913         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53914         * modules/stat-time-test: New file.
53915         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53916
53917 2007-03-26  Bruno Haible  <bruno@clisp.org>
53918
53919         Better support of signalling NaNs.
53920         * lib/atanl.c: Include isnanl.h.
53921         (atanl): Perform test for NaN at the beginning of the function and
53922         through a call to isnanl.
53923         * lib/cosl.c: Include isnanl.h.
53924         (cosl): Perform test for NaN at the beginning of the function and
53925         through a call to isnanl.
53926         * lib/ldexpl.c: Include isnanl.h.
53927         (ldexpl): Perform test for NaN through a call to isnanl.
53928         * lib/logl.c: Include isnanl.h.
53929         (logl): Perform test for NaN at the beginning of the function and
53930         through a call to isnanl.
53931         * lib/sinl.c: Include isnanl.h.
53932         (sinl): Perform test for NaN at the beginning of the function and
53933         through a call to isnanl.
53934         * lib/sqrtl.c: Include isnanl.h.
53935         (sqrtl): Perform test for NaN at the beginning of the function and
53936         through a call to isnanl.
53937         * lib/tanl.c: Include isnanl.h.
53938         (tanl): Perform test for NaN at the beginning of the function and
53939         through a call to isnanl.
53940         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53941         * modules/mathl (Depends-on): Add isnanl.
53942
53943 2007-03-26  Eric Blake  <ebb9@byu.net>
53944
53945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53946         regression in logic sense of previous patch.
53947
53948 2007-03-26  Bruno Haible  <bruno@clisp.org>
53949
53950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53951         unportable shell command "if ! ...".
53952         Reported by Ralf Wildenhues.
53953
53954 2007-03-25  Bruno Haible  <bruno@clisp.org>
53955
53956         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53957         <sysexits.h> file, and only add EX_CONFIG.
53958         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53959         absolute file name and whether it is sufficient. Substitute also
53960         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53961         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53962         ABSOLUTE_SYSEXITS_H into sysexits.h.
53963
53964 2007-03-25  Bruno Haible  <bruno@clisp.org>
53965
53966         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53967         hints is NULL.
53968
53969 2007-03-25  Bruno Haible  <bruno@clisp.org>
53970
53971         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53972         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53973
53974 2007-03-25  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/vasnprintf.c: Include langinfo.h.
53977         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53978         multithread-safe.
53979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53980         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53981         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53982         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53983         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53984         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53985         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53986         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53987         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53988         Reported by Simon Josefsson.
53989
53990 2007-03-25  Bruno Haible  <bruno@clisp.org>
53991
53992         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53993         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53994         * modules/vasnprintf (Depends-on): Add stdint.
53995
53996 2007-03-25  Bruno Haible  <bruno@clisp.org>
53997
53998         * modules/fpieee: New file.
53999         * m4/fpieee.m4: New file.
54000         * modules/isnan-nolibm (Depends-on): Add fpieee.
54001         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54002         * modules/isnanl (Depends-on): Add fpieee.
54003
54004 2007-03-25  Bruno Haible  <bruno@clisp.org>
54005
54006         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54007
54008 2007-03-25  Bruno Haible  <bruno@clisp.org>
54009
54010         Avoid test failures on IRIX 6.5.
54011         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54012         (main): Use it.
54013         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54014         macros.
54015         (main): Use them.
54016
54017 2007-03-25  Bruno Haible  <bruno@clisp.org>
54018
54019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54020         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54021         exists but doesn't work.
54022         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54023         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54025         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54026         math.h.
54027
54028 2007-03-25  Bruno Haible  <bruno@clisp.org>
54029
54030         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54031         returns inf. Needed on IRIX 6.5.
54032
54033 2007-03-25  Bruno Haible  <bruno@clisp.org>
54034
54035         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54036         (main): Use isnanl instead of x != x idiom.
54037         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54038
54039         * tests/test-frexp.c: Include isnan.h.
54040         (main): Use isnan instead of x != x idiom.
54041         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54042
54043 2007-03-25  Bruno Haible  <bruno@clisp.org>
54044
54045         * tests/test-frexp.c (NaN): New function/macro.
54046         (main): Use it instead of 0.0 / 0.0.
54047         * tests/test-isnan.c (NaN): New function/macro.
54048         (main): Use it instead of 0.0 / 0.0.
54049         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54050         (test_function): Use it instead of 0.0 / 0.0.
54051         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54052         (test_function): Use it instead of 0.0 / 0.0.
54053         * tests/test-snprintf-posix.h (NaN): New function/macro.
54054         (test_function): Use it instead of 0.0 / 0.0.
54055         * tests/test-sprintf-posix.h (NaN): New function/macro.
54056         (test_function): Use it instead of 0.0 / 0.0.
54057         * tests/test-fprintf-posix.h (NaN): New function/macro.
54058         (test_function): Use it instead of 0.0 / 0.0.
54059         * tests/test-printf-posix.h (NaN): New function/macro.
54060         (test_function): Use it instead of 0.0 / 0.0.
54061
54062         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54063
54064 2007-03-25  Bruno Haible  <bruno@clisp.org>
54065
54066         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54067
54068 2007-03-25  Bruno Haible  <bruno@clisp.org>
54069
54070         * lib/regexec.c (merge_state_with_log): Make static.
54071
54072 2007-03-25  Bruno Haible  <bruno@clisp.org>
54073
54074         * lib/trigl.c (kernel_rem_pio2): Make static.
54075
54076 2007-03-25  Bruno Haible  <bruno@clisp.org>
54077
54078         * lib/sincosl.c (sincosl_table): Make static.
54079
54080 2007-03-25  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54083         if the compiler does not support C99.
54084
54085 2007-03-25  Bruno Haible  <bruno@clisp.org>
54086
54087         * modules/time (Makefile.am): Ensure all rule action lines start with a
54088         tab.
54089
54090 2007-03-24  Bruno Haible  <bruno@clisp.org>
54091
54092         * modules/tsearch-tests: New file.
54093         * tests/test-tsearch.sh: New file.
54094         * tests/test-tsearch.c: New file, mostly copied from glibc.
54095
54096         * modules/search-tests: New file.
54097         * tests/test-search.c: New file.
54098
54099         * modules/search: New file.
54100         * lib/search_.h: New file, incorporating lib/tsearch.h.
54101         * m4/search_h.m4: New file.
54102         * lib/tsearch.h: Remove file.
54103         * lib/tsearch.c: Include search.h instead of tsearch.h.
54104         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54105         HAVE_TSEARCH.
54106         * modules/tsearch (Files): Remove lib/tsearch.h.
54107         (Depends-on): Add search.
54108         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54109         (Include): Change tsearch.h into search.h.
54110
54111 2007-03-24  Bruno Haible  <bruno@clisp.org>
54112
54113         * modules/fpucw: New file.
54114         * lib/fpucw.h: New file.
54115         * lib/frexp.c: Include fpucw.h.
54116         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54117         (FUNC): Use them.
54118         * lib/printf-frexp.c: Include fpucw.h.
54119         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54120         (FUNC): Use them.
54121         * lib/vasnprintf.c: Include fpucw.h.
54122         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54123         'long double' calculations.
54124         * tests/test-frexpl.c: Include fpucw.h.
54125         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54126         * tests/test-printf-frexpl.c: Include fpucw.h.
54127         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54128         * modules/frexpl (Depends-on): Add fpucw.
54129         * modules/printf-frexpl (Depends-on): Likewise.
54130         * modules/fprintf-posix (Depends-on): Likewise.
54131         * modules/snprintf-posix (Depends-on): Likewise.
54132         * modules/sprintf-posix (Depends-on): Likewise.
54133         * modules/vasnprintf-posix (Depends-on): Likewise.
54134         * modules/vasprintf-posix (Depends-on): Likewise.
54135         * modules/vfprintf-posix (Depends-on): Likewise.
54136         * modules/vsnprintf-posix (Depends-on): Likewise.
54137         * modules/vsprintf-posix (Depends-on): Likewise.
54138         * modules/frexpl-tests (Depends-on): Likewise.
54139         * modules/printf-frexpl-tests (Depends-on): Likewise.
54140
54141 2007-03-24  Bruno Haible  <bruno@clisp.org>
54142
54143         * lib/float+.h: New file.
54144         * lib/isnan.c: Include float+.h.
54145         (SIZE): New macro.
54146         (FUNC): Compare only SIZE bytes of the value.
54147         * lib/vasnprintf.c: Include float+.h.
54148         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54149         SIZEOF_LDBL or SIZEOF_DBL bytes.
54150         * modules/isnan-nolibm (Files): Add lib/float+.h.
54151         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54152         * modules/isnanl (Files): Add lib/float+.h.
54153         * modules/vasnprintf (Files): Add lib/float+.h.
54154
54155 2007-03-24  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54158         include isnanl-nolibm.h.
54159
54160 2007-03-24  Bruno Haible  <bruno@clisp.org>
54161
54162         * tests/test-read-file.c (main): Don't produce spurious output for
54163         expected situations. Make the test fail if it encountered unexpected
54164         results.
54165
54166 2007-03-24  Bruno Haible  <bruno@clisp.org>
54167
54168         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54169         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54170
54171 2007-03-24  Bruno Haible  <bruno@clisp.org>
54172
54173         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54174
54175 2007-03-24  Bruno Haible  <bruno@clisp.org>
54176
54177         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54178         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54179
54180         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54181         * modules/utf8-ucs4: Turn into a symbolic link to module
54182         unistr/u8-mbtouc.
54183
54184         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54185         utf8-ucs4-unsafe.
54186         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54187         unistr/u8-mbtouc-unsafe.
54188
54189         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54190         * modules/utf16-ucs4: Turn into a symbolic link to module
54191         unistr/u16-mbtouc.
54192
54193         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54194         utf16-ucs4-unsafe.
54195         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54196         unistr/u16-mbtouc-unsafe.
54197
54198         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54199         * modules/ucs4-utf8: Turn into a symbolic link to module
54200         unistr/u8-ubtomb.
54201
54202         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54203         * modules/ucs4-utf16: Turn into a symbolic link to module
54204         unistr/u16-ubtomb.
54205
54206 2007-03-24  Bruno Haible  <bruno@clisp.org>
54207
54208         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54209         Enable the function only if HAVE_INLINE.
54210         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54211         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54212         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54213         Enable the function only if HAVE_INLINE.
54214         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54215         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54216         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54217         Enable the function only if HAVE_INLINE.
54218         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54219         Enable the function only if HAVE_INLINE.
54220         * modules/utf8-ucs4: Update.
54221         * modules/utf8-ucs4-unsafe: Update.
54222         * modules/utf16-ucs4: Update.
54223         * modules/utf16-ucs4-unsafe: Update.
54224         * modules/ucs4-utf8: Update.
54225         * modules/ucs4-utf16: Update.
54226
54227 2007-03-24  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/utf8-ucs4.h: Remove file.
54230         * lib/utf8-ucs4-unsafe.h: Remove file.
54231         * lib/utf16-ucs4.h: Remove file.
54232         * lib/utf16-ucs4-unsafe.h: Remove file.
54233         * lib/ucs4-utf8.h: Remove file.
54234         * lib/ucs4-utf16.h: Remove file.
54235         * lib/unistr.h: Include their previous contents.
54236         * m4/utf-ucs4.m4: Remove file.
54237         * m4/ucs4-utf.m4: Remove file.
54238         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54239         (Depends-on): Add unistr/base.
54240         (configure.ac): Remove gl_UTF_UCS4.
54241         (Makefile.am): Update.
54242         (Include): Change to unistr.h.
54243         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54244         (Depends-on): Add unistr/base.
54245         (configure.ac): Remove gl_UTF_UCS4.
54246         (Makefile.am): Update.
54247         (Include): Change to unistr.h.
54248         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54249         (Depends-on): Add unistr/base.
54250         (configure.ac): Remove gl_UTF_UCS4.
54251         (Makefile.am): Update.
54252         (Include): Change to unistr.h.
54253         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54254         (Depends-on): Add unistr/base.
54255         (configure.ac): Remove gl_UTF_UCS4.
54256         (Makefile.am): Update.
54257         (Include): Change to unistr.h.
54258         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54259         (Depends-on): Add unistr/base.
54260         (configure.ac): Remove gl_UCS4_UTF.
54261         (Makefile.am): Update.
54262         (Include): Change to unistr.h.
54263         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54264         (Depends-on): Add unistr/base.
54265         (configure.ac): Remove gl_UCS4_UTF.
54266         (Makefile.am): Update.
54267         (Include): Change to unistr.h.
54268         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54269         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54270         utf8-ucs4-unsafe.h.
54271         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54272         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54273         utf16-ucs4-unsafe.h.
54274         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54275         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54276         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54277         * lib/unistr/u8-strchr.c: Likewise.
54278         * lib/unistr/u8-strrchr.c: Likewise.
54279         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54280         * lib/unistr/u16-strchr.c: Likewise.
54281         * lib/unistr/u16-strrchr.c: Likewise.
54282         * lib/striconveh.c: Update.
54283         * lib/linebreak.c: Update.
54284
54285 2007-03-24  Bruno Haible  <bruno@clisp.org>
54286
54287         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54288         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54289
54290 2007-03-22  Bruno Haible  <bruno@clisp.org>
54291
54292         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54293
54294 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54295
54296         * MODULES.html.sh (File system functions): New module write-any-file.
54297         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54298         * m4/write-any-file.m4: New files.
54299
54300 2007-03-23  Eric Blake  <ebb9@byu.net>
54301
54302         * gnulib-tool: Rearrange space-tab sequences, since some editors
54303         like to eat them.
54304
54305 2007-03-23  Eric Blake  <ebb9@byu.net>
54306
54307         * lib/version-etc.c (version_etc_va): Update license wording to
54308         be more concise.  Recommended by Richard Stallman.
54309
54310 2007-03-22  Bruno Haible  <bruno@clisp.org>
54311
54312         * lib/poll.c (MSG_PEEK): New fallback definition.
54313
54314 2007-03-22  Bruno Haible  <bruno@clisp.org>
54315
54316         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54317         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54318         (main): Update.
54319         Fixes a compilation error on BeOS.
54320
54321 2007-03-22  Bruno Haible  <bruno@clisp.org>
54322
54323         * modules/frexpl-tests: New file.
54324         * tests/test-frexpl.c: New file.
54325
54326         * modules/frexpl: New file.
54327         * m4/frexpl.m4: New file.
54328         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54329         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54331         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54332         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54333         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54334
54335 2007-03-22  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/frexpl.c: Share code with lib/frexp.c.
54338         * modules/mathl (Files): Add lib/frexp.c.
54339         (Depends-on): Add isnanl-nolibm.
54340
54341 2007-03-22  Bruno Haible  <bruno@clisp.org>
54342
54343         * modules/printf-frexp (Files): Add m4/frexp.m4.
54344         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54345         only if the found frexp function actually works.
54346
54347 2007-03-22  Bruno Haible  <bruno@clisp.org>
54348
54349         * lib/frexp.c: Remove older implementation that uses divisions.
54350
54351 2007-03-21  Bruno Haible  <bruno@clisp.org>
54352
54353         * modules/frexp-tests: New file.
54354         * tests/test-frexp.c: New file.
54355
54356         * modules/frexp: New file.
54357         * lib/frexp.c: New file.
54358         * m4/frexp.m4: New file.
54359         * lib/math_.h (frexp): New declaration.
54360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54361         REPLACE_FREXP.
54362         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54363
54364 2007-03-21  Bruno Haible  <bruno@clisp.org>
54365
54366         * modules/isnanl-tests: New file.
54367         * tests/test-isnanl.c: New file.
54368
54369         * modules/isnanl: New file.
54370         * lib/isnanl.h: New file.
54371         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54372         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54373         gl_FUNC_ISNANL_WORKS.
54374         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54375         New macros.
54376
54377 2007-03-21  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54380         lib/isnanl.h.
54381         (Include): Update.
54382         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54383         * lib/vasnprintf.c: Update.
54384         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54385         tests/test-isnanl.h, remove tests/test-isnanl.c.
54386         (Makefile.am): Update.
54387         * tests/test-isnanl-nolibm.c: New file.
54388         * tests/test-isnanl.h: New file.
54389         * tests/test-isnanl.c: Remove file.
54390
54391 2007-03-21  Jim Meyering  <jim@meyering.net>
54392
54393         When trying to open ".", treat ESTALE like EACCES.
54394         * lib/savewd.c (savewd_save): Resort to forking not just upon
54395         failure with EACCES, but also when errno is ESTALE.
54396
54397 2007-03-20  Bruno Haible  <bruno@clisp.org>
54398
54399         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54400         Needed on AIX 5.1. Reported by Matthew Woehlke.
54401
54402 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54403
54404         Suggestions by Bruno Haible:
54405         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54406         our own.
54407         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54408         * modules/acl (Depends-on): Add gettext.
54409
54410 2007-03-19  Bruno Haible  <bruno@clisp.org>
54411
54412         * modules/iconvme: Remove file.
54413         * lib/iconvme.h: Remove file.
54414         * lib/iconvme.c: Remove file.
54415         * m4/iconvme.m4: Remove file.
54416
54417 2007-03-19  Bruno Haible  <bruno@clisp.org>
54418
54419         * doc/relocatable-maint.texi: Break long shell script line.
54420         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54421
54422 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54423
54424         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54425         handle file_has_acl.
54426         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54427         * lib/acl.c: Move header inclusions and related macro defns into
54428         lib/acl-internal.h.
54429         (S_ISLNK): Remove defn, since that's now done for us.
54430         (file_has_acl): Move to lib/file-has-acl.c.
54431         Call acl_trivial if available.  This is the crucial part of the fix.
54432         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54433         shared within the library.  Rewrite a bit, partly to make it compatible
54434         with the GNU coding style.
54435         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54436         Remove unnecessary double-quotes.
54437         Don't test for acl_to_text; the build will catch that.
54438         Replace acl_entries if it doesn't exist and it is needed.
54439         Check for -lsec and acl_trivial (as used on Solaris 10).
54440         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54441         lib/file-has-acl.c.
54442         (Depends-on): Add sys_stat, for S_ISLNK.
54443
54444 2007-03-19  Ben Pfaff  <blp@gnu.org>
54445
54446         * doc/gnulib.texi: Fix typos.
54447         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54448
54449 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54450
54451         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54452         If size is zero here, buf must be zero.
54453
54454 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54455
54456         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54457         <bruno@clisp.org>.
54458
54459 2007-03-18  Bruno Haible  <bruno@clisp.org>
54460
54461         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54462         Suggested by Eric Blake.
54463
54464 2007-03-18  Ben Pfaff  <blp@gnu.org>
54465
54466         * doc/relocatable.texi: Recommend using as prefix a directory
54467         that does not exist and will never be created.  Based on
54468         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54469         and others.
54470
54471 2007-03-17  Bruno Haible  <bruno@clisp.org>
54472
54473         * lib/fchownat.c: Include lchown.h.
54474
54475 2007-03-17  Bruno Haible  <bruno@clisp.org>
54476
54477         Fix endless loop when the given allocated size was > INT_MAX.
54478         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54479         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54480         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54481         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54482         * lib/sprintf.c (sprintf): Likewise.
54483
54484 2007-03-17  Bruno Haible  <bruno@clisp.org>
54485
54486         * tests/test-argp-2.sh (func_compare): Output a context diff.
54487
54488 2007-03-17  Bruno Haible  <bruno@clisp.org>
54489
54490         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54491         locale's decimal-point character.
54492
54493 2007-03-17  Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54496         before comparing it. Needed because on some platforms (e.g. x86) a
54497         'long double' occupies less bytes than sizeof (long double).
54498
54499 2007-03-17  Bruno Haible  <bruno@clisp.org>
54500
54501         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54502         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54503         * tests/test-getaddrinfo.c (simple): Likewise.
54504         * tests/test-read-file.c (main): Likewise.
54505
54506 2007-03-17  Bruno Haible  <bruno@clisp.org>
54507
54508         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54509
54510 2007-03-17  Bruno Haible  <bruno@clisp.org>
54511
54512         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54513         unused variable.
54514
54515 2007-03-17  Bruno Haible  <bruno@clisp.org>
54516
54517         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54518         * tests/test-c-strncasecmp.c: Likewise.
54519
54520 2007-03-17  Bruno Haible  <bruno@clisp.org>
54521
54522         * modules/stdlib (Depends-on): Add unistd.
54523         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54524         Needed for MacOS X 10.3.
54525
54526 2007-03-17  Bruno Haible  <bruno@clisp.org>
54527
54528         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54529
54530 2007-03-17  Bruno Haible  <bruno@clisp.org>
54531
54532         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54533
54534 2007-03-17  Bruno Haible  <bruno@clisp.org>
54535
54536         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54537         to reflect files copied from gnulib (with or without modifications).
54538         Suggested by Jim Meyering.
54539
54540 2007-03-17  Eric Blake  <ebb9@byu.net>
54541
54542         * NEWS: Document stdlib change from 2007-02-18.
54543
54544 2007-03-17  Jim Meyering  <jim@meyering.net>
54545
54546         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54547         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54548         someone uses a name containing shell meta-characters.
54549         Reported by Alfred M. Szmidt.
54550
54551         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54552
54553 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54554
54555         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54556         and copy gettext configuration files only if configure.ac contains
54557         a use of AM_GNU_GETTEXT_VERSION.
54558
54559 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54560
54561         * build-aux/bootstrap (gnulib_name): New variable.
54562         (gnulib_tool_options): Use it.
54563
54564 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54565
54566         * tests/test-des.c: Use new namespace.
54567
54568 2007-03-15  Bruno Haible  <bruno@clisp.org>
54569
54570         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54571         Reported by James Youngman <jay@gnu.org>.
54572
54573 2007-03-15  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54576         declared prototype. Needed with cc on OSF/1 5.1.
54577
54578 2007-03-15  Bruno Haible  <bruno@clisp.org>
54579
54580         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54581         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54582         (struct gl_list_implementation): Add dispose_fn argument to the
54583         'create_empty', 'create' methods.
54584         (struct gl_list_impl_base): Add field 'dispose_fn'.
54585         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54586         argument.
54587         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54588         dispose_fn argument.
54589         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54590         dispose_fn on the dropped values.
54591         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54592         dispose_fn argument.
54593         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54594         dropped values.
54595         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54596         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54597         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54598         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54599         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54600         argument.
54601         (gl_tree_list_free): Call dispose_fn on the dropped values.
54602         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54603         the dropped values.
54604         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54605         Add dispose_fn argument.
54606         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54607         Call dispose_fn on the dropped values.
54608         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54609         Add dispose_fn argument.
54610         (gl_sublist_create): Initialize the 'dispose_fn' field.
54611         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54612         * tests/test-array_list.c (main): Update.
54613         * tests/test-carray_list.c (main): Update.
54614         * tests/test-avltree_list.c (main): Update.
54615         * tests/test-rbtree_list.c (main): Update.
54616         * tests/test-avltreehash_list.c (main): Update.
54617         * tests/test-rbtreehash_list.c (main): Update.
54618         * tests/test-linked_list.c (main): Update.
54619         * tests/test-linkedhash_list.c (main): Update.
54620         * tests/test-array_oset.c (main): Update.
54621
54622 2007-03-15  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54625         (gl_oset_create_empty): Add dispose_fn argument.
54626         (struct gl_oset_implementation): Add dispose_fn argument to
54627         'create_empty' method.
54628         (struct gl_oset_impl_base): Add dispose_fn field.
54629         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54630         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54631         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54632         values.
54633         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54634         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54635         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54636         dropped value.
54637         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54638         dropped value.
54639         * tests/test-array_oset.c (main): Update.
54640         * tests/test-avltree_oset.c (main): Update.
54641         * tests/test-rbtree_oset.c (main): Update.
54642         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54643
54644 2007-03-13  Bruno Haible  <bruno@clisp.org>
54645
54646         * tests/test-stdbool.c (i): Update after last patch.
54647
54648 2007-03-12  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54651         the iswprint macro. Needed on Solaris 2.5.1.
54652
54653 2007-03-12  Bruno Haible  <bruno@clisp.org>
54654
54655         * tests/test-printf-frexp.c (main): Declare x as volatile.
54656
54657 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54658
54659         * doc/gnulib.texi (Build robot for gnulib): New section.
54660
54661 2007-03-12  Jim Meyering  <jim@meyering.net>
54662
54663         * build-aux/bootstrap: New file.
54664         * build-aux/bootstrap.conf: New file, from coreutils.
54665
54666 2007-03-11  Bruno Haible  <bruno@clisp.org>
54667
54668         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54669
54670 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54671
54672         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54673         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54674         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54675
54676 2007-03-11  Bruno Haible  <bruno@clisp.org>
54677
54678         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54679         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54680
54681 2007-03-11  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54684         formula. Needed for SunPRO C 5.0.
54685
54686 2007-03-11  Bruno Haible  <bruno@clisp.org>
54687
54688         * modules/long-options (Depends-on): Add getopt.
54689
54690 2007-03-11  Bruno Haible  <bruno@clisp.org>
54691
54692         * modules/modechange (Depends-on): Add stdbool.
54693
54694 2007-03-11  Bruno Haible  <bruno@clisp.org>
54695
54696         * modules/i-ring (Depends-on): Add stdbool.
54697
54698 2007-03-11  Bruno Haible  <bruno@clisp.org>
54699
54700         * modules/gc-des (Depends-on): Add stdbool.
54701
54702 2007-03-11  Bruno Haible  <bruno@clisp.org>
54703
54704         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54705
54706 2007-03-11  Bruno Haible  <bruno@clisp.org>
54707
54708         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54709
54710 2007-03-11  Bruno Haible  <bruno@clisp.org>
54711
54712         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54713
54714 2007-03-11  Bruno Haible  <bruno@clisp.org>
54715
54716         * lib/vasnprintf.c (sprintf): Undefine.
54717
54718 2007-03-11  Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54721         initializers in SunPRO C and Compaq C compilers.
54722
54723 2007-03-11  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54726         decrementing code ANSI C compliant.
54727
54728 2007-03-11  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54731         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54732
54733 2007-03-11  Bruno Haible  <bruno@clisp.org>
54734
54735         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54736         <stdbool.h> substitute doesn't pass.
54737
54738 2007-03-11  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54741
54742 2007-03-11  Bruno Haible  <bruno@clisp.org>
54743
54744         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54745         script, for submission to autobuild.josefsson.org.
54746
54747 2007-03-10  Bruno Haible  <bruno@clisp.org>
54748
54749         * modules/canonicalize-lgpl-tests: New file.
54750         * tests/test-canonicalize-lgpl.sh: New file.
54751         * tests/test-canonicalize-lgpl.c: New file.
54752
54753         * modules/c-strcase-tests: New file.
54754         * tests/test-c-strcase.sh: New file.
54755         * tests/test-c-strcasecmp.c: New file.
54756         * tests/test-c-strncasecmp.c: New file.
54757
54758         * modules/atexit-tests: New file.
54759         * tests/test-atexit.sh: New file.
54760         * tests/test-atexit.c: New file.
54761
54762 2007-03-10  Bruno Haible  <bruno@clisp.org>
54763
54764         * tests/test-binary-io.sh: Use temporary filenames that are not so
54765         likely to clash with those of other tests (in a parallel make).
54766         * tests/test-binary-io.c: Likewise.
54767
54768 2007-03-10  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54771         fallback; use #error instead.
54772         Suggested by Simon Josefsson.
54773
54774 2007-03-10  Bruno Haible  <bruno@clisp.org>
54775
54776         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54777         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54778         first and the last.
54779
54780 2007-03-10  Bruno Haible  <bruno@clisp.org>
54781
54782         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54783
54784 2007-03-10  Bruno Haible  <bruno@clisp.org>
54785
54786         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54787         "make distcheck".
54788         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54789         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54790         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54791
54792 2007-03-10  Bruno Haible  <bruno@clisp.org>
54793
54794         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54795         variable.
54796         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54797         variable.
54798
54799 2007-03-09  Eric Blake  <ebb9@byu.net>
54800         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54801
54802         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54803         types are not being provided by gnulib.
54804         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54805         types are supported.
54806
54807 2007-03-10  Bruno Haible  <bruno@clisp.org>
54808
54809         * lib/stdio_.h (__attribute__): New macro.
54810         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54811         vsprintf): Specify __attribute__ __format__ for GCC.
54812         Suggested by Eric Blake.
54813
54814 2007-03-09  Bruno Haible  <bruno@clisp.org>
54815
54816         * modules/printf-posix-tests: New file.
54817         * tests/test-printf-posix.sh: New file.
54818         * tests/test-printf-posix.c: New file.
54819
54820         * modules/printf-posix: New file.
54821         * lib/printf.c: New file.
54822         * m4/printf-posix-rpl.m4: New file.
54823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54824         REPLACE_PRINTF.
54825         * lib/stdio_.h (printf): New declaration.
54826         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54827         ____strfmon____): New macros.
54828         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54829         REPLACE_PRINTF.
54830
54831 2007-03-09  Bruno Haible  <bruno@clisp.org>
54832
54833         * tests/test-vasnprintf-posix2.sh: New file.
54834         * tests/test-vasnprintf-posix2.c: New file.
54835         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54836         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54837         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54838
54839         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54840         a locale dependent decimal point, rather than always '.'.
54841
54842 2007-03-09  Eric Blake  <ebb9@byu.net>
54843
54844         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54845         spite of platforms like Tandem/NSK that define it to -1.
54846
54847 2007-03-08  Bruno Haible  <bruno@clisp.org>
54848
54849         * modules/vprintf-posix-tests: New file.
54850         * tests/test-vprintf-posix.sh: New file.
54851         * tests/test-vprintf-posix.c: New file.
54852         * tests/test-printf-posix.h: New file.
54853
54854         * modules/vprintf-posix: New file.
54855         * lib/vprintf.c: New file.
54856         * m4/vprintf-posix.m4: New file.
54857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54858         REPLACE_VPRINTF.
54859         * lib/stdio_.h (vprintf): New declaration.
54860         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54861         REPLACE_VPRINTF.
54862
54863 2007-03-08  Bruno Haible  <bruno@clisp.org>
54864
54865         * modules/fprintf-posix-tests: New file.
54866         * tests/test-fprintf-posix.sh: New file.
54867         * tests/test-fprintf-posix.c: New file.
54868
54869         * modules/fprintf-posix: New file.
54870         * lib/fprintf.c: New file.
54871         * m4/fprintf-posix.m4: New file.
54872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54873         REPLACE_FPRINTF.
54874         * lib/stdio_.h (fprintf): New declaration.
54875         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54876         REPLACE_FPRINTF.
54877
54878 2007-03-08  Bruno Haible  <bruno@clisp.org>
54879
54880         * modules/vfprintf-posix-tests: New file.
54881         * tests/test-vfprintf-posix.sh: New file.
54882         * tests/test-vfprintf-posix.c: New file.
54883         * tests/test-fprintf-posix.h: New file.
54884         * tests/test-fprintf-posix.out: New file.
54885
54886         * modules/vfprintf-posix: New file.
54887         * lib/vfprintf.c: New file.
54888         * m4/vfprintf-posix.m4: New file.
54889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54890         REPLACE_VFPRINTF.
54891         * lib/stdio_.h (vfprintf): New declaration.
54892         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54893         REPLACE_VFPRINTF.
54894
54895 2007-03-08  Bruno Haible  <bruno@clisp.org>
54896
54897         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54898
54899 2007-03-08  Bruno Haible  <bruno@clisp.org>
54900
54901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54902         instead of 'expr' invocations.
54903         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54904         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54905         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54908         Suggested by Paul Eggert.
54909
54910 2007-03-08  Bruno Haible  <bruno@clisp.org>
54911
54912         * modules/fseterr-tests: New file.
54913         * tests/test-fseterr.c: New file.
54914
54915         * modules/fseterr: New file.
54916         * lib/fseterr.h: New file.
54917         * lib/fseterr.c: New file.
54918
54919 2007-03-08  Bruno Haible  <bruno@clisp.org>
54920
54921         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54922         * lib/getopt_.h: Likewise.
54923         * lib/mbswidth.h: Likewise.
54924         * lib/setenv.h: Likewise.
54925         * lib/vasnprintf.h: Likewise.
54926         * lib/vasprintf.h: Likewise.
54927         * lib/verror.h: Likewise.
54928         * lib/xsetenv.h: Likewise.
54929         * lib/xvasprintf.h: Likewise.
54930
54931 2007-03-08  Jim Meyering  <jim@meyering.net>
54932
54933         * users.txt: Add parted.
54934
54935         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54936
54937 2007-03-07  Bruno Haible  <bruno@clisp.org>
54938
54939         * m4/printf.m4: Make the shell script snippets copy&pastable.
54940
54941 2007-03-02  Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/netinet_in_.h: New file.
54944         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54945         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54946         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54947         (Depends-on): Add absolute-header.
54948         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54949         into netinet/in.h.
54950
54951 2007-03-03  Bruno Haible  <bruno@clisp.org>
54952
54953         * lib/sys_select_.h: New file.
54954         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54955         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54956         * modules/sys_select (Files): Add lib/sys_select_.h.
54957         (Depends-on): Add absolute-header.
54958         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54959         into sys/select.h.
54960
54961 2007-03-02  Bruno Haible  <bruno@clisp.org>
54962
54963         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54964         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54965         values.
54966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54967         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54968         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54969         * modules/sys_socket (Depends-on): Add absolute-header.
54970         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54971         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54972         (Include): Remove requirement of inclusion of <sys/types.h>.
54973
54974 2007-03-02  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/byteswap_.h (bswap_32): Fix formula.
54977
54978 2007-03-06  Bruno Haible  <bruno@clisp.org>
54979
54980         * modules/sprintf-posix-tests: New file.
54981         * tests/test-sprintf-posix.c: New file.
54982
54983         * modules/sprintf-posix: New file.
54984         * lib/sprintf.c: New file.
54985         * m4/sprintf-posix.m4: New file.
54986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54987         REPLACE_SPRINTF.
54988         * lib/stdio_.h (sprintf): New declaration.
54989         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54990         REPLACE_SPRINTF.
54991
54992 2007-03-06  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/vsprintf-posix-tests: New file.
54995         * tests/test-vsprintf-posix.c: New file.
54996         * tests/test-sprintf-posix.h: New file.
54997
54998         * modules/vsprintf-posix: New file.
54999         * lib/vsprintf.c: New file.
55000         * m4/vsprintf-posix.m4: New file.
55001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55002         REPLACE_VSPRINTF.
55003         * lib/stdio_.h (vsprintf): New declaration.
55004         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55005         REPLACE_VSPRINTF.
55006
55007 2007-03-06  Bruno Haible  <bruno@clisp.org>
55008
55009         * modules/vsnprintf (Depend-on): Remove minmax.
55010
55011 2007-03-06  Bruno Haible  <bruno@clisp.org>
55012
55013         * modules/snprintf-posix-tests: New file.
55014         * tests/test-snprintf-posix.c: New file.
55015
55016         * modules/snprintf-posix: New file.
55017         * m4/snprintf-posix.m4: New file.
55018         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55019         gl_FUNC_SNPRINTF.
55020         (gl_FUNC_SNPRINTF): Invoke it.
55021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55022         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55023         is set.
55024         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55025
55026 2007-03-06  Bruno Haible  <bruno@clisp.org>
55027
55028         * modules/vsnprintf-posix-tests: New file.
55029         * tests/test-vsnprintf-posix.c: New file.
55030         * tests/test-snprintf-posix.h: New file.
55031
55032         * modules/vsnprintf-posix: New file.
55033         * m4/vsnprintf-posix.m4: New file.
55034         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55035         gl_FUNC_VSNPRINTF.
55036         (gl_FUNC_VSNPRINTF): Invoke it.
55037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55038         * lib/stdio_.h (vsnprintf): Define as a replacement if
55039         REPLACE_VSNPRINTF is set.
55040         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55041
55042 2007-03-06  Bruno Haible  <bruno@clisp.org>
55043
55044         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55046
55047 2007-03-06  Bruno Haible  <bruno@clisp.org>
55048
55049         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55050         (asinl): Declare also if HAVE_DECL_ASINL is set.
55051         (atanl): Declare also if HAVE_DECL_ATANL is set.
55052         (ceill): Declare also if HAVE_DECL_CEILL is set.
55053         (cosl): Declare also if HAVE_DECL_COSL is set.
55054         (expl): Declare also if HAVE_DECL_EXPL is set.
55055         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55056         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55057         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55058         (logl): Declare also if HAVE_DECL_LOGL is set.
55059         (sinl): Declare also if HAVE_DECL_SINL is set.
55060         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55061         (tanl): Declare also if HAVE_DECL_TANL is set.
55062         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55064         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55065         declaration of frexpl, ldexpl.
55066         * modules/printf-frexpl (Depends-on): Add math.
55067         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55068
55069 2007-03-05  Bruno Haible  <bruno@clisp.org>
55070
55071         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55072         frexpl and ldexpl are declared.
55073         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55074
55075 2007-03-05  Bruno Haible  <bruno@clisp.org>
55076
55077         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55078         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55079
55080 2007-03-05  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/stdio_.h: Include <stddef.h>.
55083
55084 2007-03-05  Bruno Haible  <bruno@clisp.org>
55085
55086         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55087
55088 2007-03-05  Bruno Haible  <bruno@clisp.org>
55089
55090         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55091         NetBSD 4, from Ralf Wildenhues.
55092
55093 2007-03-04  Bruno Haible  <bruno@clisp.org>
55094
55095         * lib/vasprintf.h: Update #if logic for the case when the functions
55096         exist but are overridden.
55097
55098 2007-03-04  Bruno Haible  <bruno@clisp.org>
55099
55100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55101         implementations: glibc-2.4 and MacOS X 10.3.
55102         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55103         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55104         * tests/test-vasprintf-posix.c (test_function): Likewise.
55105
55106 2007-03-04  Bruno Haible  <bruno@clisp.org>
55107
55108         * modules/vasprintf-posix-tests: New file.
55109         * tests/test-vasprintf-posix.c: New file.
55110
55111         * modules/vasprintf-posix: New file.
55112         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55113         defined.
55114         * m4/vasprintf-posix.m4: New file.
55115         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55116         gl_FUNC_VASPRINTF.
55117         (gl_FUNC_VASPRINTF): Invoke it.
55118         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55119         here.
55120         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55121
55122 2007-03-04  Bruno Haible  <bruno@clisp.org>
55123
55124         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55125         REPLACE_GETTIMEOFDAY.
55126         * modules/sys_time (Makefile.am): Likewise.
55127         * m4/sys_time_h.m4: Likewise.
55128         * m4/gettimeofday.m4: Likewise.
55129
55130 2007-03-04  Bruno Haible  <bruno@clisp.org>
55131
55132         * modules/vasnprintf-posix-tests: New file.
55133         * tests/test-vasnprintf-posix.c: New file.
55134
55135         * modules/vasnprintf-posix: New file.
55136         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55137         printf-frexpl.h.
55138         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55139         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55140         REPLACE_VASNPRINTF is defined.
55141         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55142         gl_FUNC_VASNPRINTF.
55143         (gl_FUNC_VASNPRINTF): Invoke it.
55144         * m4/vasnprintf-posix.m4: New file.
55145         * m4/printf.m4: New file.
55146
55147 2007-03-04  Bruno Haible  <bruno@clisp.org>
55148
55149         Compile progreloc.c only if --enable-relocatable is specified.
55150         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55151         if --enable-relocatable was specified.
55152         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55153         lib_SOURCES.
55154
55155 2007-03-04  Jim Meyering  <jim@meyering.net>
55156
55157         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55158         Use it consistently, rather than enumerating errno constants.
55159
55160 2007-03-04  Bruno Haible  <bruno@clisp.org>
55161
55162         * modules/xvasprintf-tests: New file.
55163         * tests/test-xvasprintf.c: New file.
55164
55165         * modules/vasprintf-tests: New file.
55166         * tests/test-vasprintf.c: New file.
55167
55168         * modules/vasnprintf-tests: New file.
55169         * tests/test-vasnprintf.c: New file.
55170
55171         * modules/vsnprintf-tests: New file.
55172         * tests/test-vsnprintf.c: New file.
55173
55174         * modules/snprintf-tests: New file.
55175         * tests/test-snprintf.c: New file.
55176
55177 2007-03-04  Bruno Haible  <bruno@clisp.org>
55178
55179         Compile relocatable.c only if --enable-relocatable is specified.
55180         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55181         gl_RELOCATABLE_LIBRARY.
55182         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55183         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55184         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55185         gl_RELOCATABLE_LIBRARY.
55186         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55187         (Makefile.am): Remove lib_SOURCES.
55188         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55189         gl_RELOCATABLE_LIBRARY.
55190         (Makefile.am): Remove lib_SOURCES.
55191         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55192         always.
55193         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55194         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55195
55196 2007-03-04  Bruno Haible  <bruno@clisp.org>
55197
55198         * modules/argmatch-tests: New file.
55199         * tests/test-argmatch.c: New file.
55200
55201         * tests/test-allocsa.c (main): Halve the number of loop runs.
55202
55203         * modules/alloca-opt-tests: New file.
55204         * tests/test-alloca-opt.c: New file.
55205
55206 2007-03-04  Jim Meyering  <jim@meyering.net>
55207
55208         Work around difference between Linux ACLs and Solaris 10 ZFS.
55209         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55210         for EINVAL.
55211
55212 2007-03-03  Bruno Haible  <bruno@clisp.org>
55213
55214         * modules/relocatable-prog (Depends-on): Add back progreloc's
55215         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55216
55217 2007-03-03  Bruno Haible  <bruno@clisp.org>
55218
55219         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55220         * modules/relocatable-lib: New file.
55221
55222 2007-03-03  Bruno Haible  <bruno@clisp.org>
55223
55224         * modules/relocatable-prog: Renamed from modules/relocatable.
55225         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55226
55227 2007-03-03  Bruno Haible  <bruno@clisp.org>
55228
55229         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55230         m4/relocatable-lib.m4.
55231         (Depends-on): Remove 'relocatable'.
55232         (configure.ac): Add gl_RELOCATABLE_NOP.
55233
55234 2007-03-03  Bruno Haible  <bruno@clisp.org>
55235
55236         * modules/relocatable-prog-wrapper: New file.
55237         * modules/relocatable (Depends-on): Add it. Remove all other
55238         dependencies except progname.
55239         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55240
55241         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55242         (gl_FUNC_STRERROR): Nop.
55243         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55244
55245         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55246         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55247
55248         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55249         (gl_FUNC_READLINK): Update.
55250
55251         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55252
55253 2007-03-03  Bruno Haible  <bruno@clisp.org>
55254
55255         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55256         * modules/xreadlink (Depends-on): Add unistd.
55257         * modules/xreadlink-with-size (Depends-on): Likewise.
55258
55259 2007-03-03  Bruno Haible  <bruno@clisp.org>
55260
55261         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55262         extracted from gt_FUNC_SETENV.
55263         (gt_FUNC_SETENV): Remove macro.
55264         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55265         remove gt_FUNC_SETENV.
55266
55267 2007-03-03  Bruno Haible  <bruno@clisp.org>
55268
55269         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55270         ENABLE_RELOCATABLE here.
55271         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55272
55273 2007-03-03  Bruno Haible  <bruno@clisp.org>
55274
55275         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55276         * tests/test-rbtreehash_list.c: Include progname.h.
55277         (main): Call set_program_name.
55278
55279         * modules/rbtree-oset-tests (Depends-on): Add progname.
55280         * tests/test-rbtree_oset.c: Include progname.h.
55281         (main): Call set_program_name.
55282
55283         * modules/rbtree-list-tests (Depends-on): Add progname.
55284         * tests/test-rbtree_list.c: Include progname.h.
55285         (main): Call set_program_name.
55286
55287         * modules/linked-list-tests (Depends-on): Add progname.
55288         * tests/test-linked_list.c: Include progname.h.
55289         (main): Call set_program_name.
55290
55291 2007-03-03  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55294         All uses of __restrict changed to _Restrict_.
55295         * lib/glob_.h (__restrict): Remove macro.
55296
55297 2007-03-02  Bruno Haible  <bruno@clisp.org>
55298
55299         * modules/gettext (configure.ac): Require gettext infrastructure
55300         from version 0.16.1.
55301
55302 2007-03-02  Bruno Haible  <bruno@clisp.org>
55303
55304         * modules/linkedhash-list-tests (Depends-on): Add progname.
55305         * tests/test-linkedhash_list.c: Include progname.h.
55306         (main): Call set_program_name.
55307
55308         * modules/carray-list-tests (Depends-on): Add progname.
55309         * tests/test-carray_list.c: Include progname.h.
55310         (main): Call set_program_name.
55311
55312         * modules/avltreehash-list-tests (Depends-on): Add progname.
55313         * tests/test-avltreehash_list.c: Include progname.h.
55314         (main): Call set_program_name.
55315
55316         * modules/avltree-oset-tests (Depends-on): Add progname.
55317         * tests/test-avltree_oset.c: Include progname.h.
55318         (main): Call set_program_name.
55319
55320         * modules/avltree-list-tests (Depends-on): Add progname.
55321         * tests/test-avltree_list.c: Include progname.h.
55322         (main): Call set_program_name.
55323
55324         * modules/array-oset-tests (Depends-on): Add progname.
55325         * tests/test-array_oset.c: Include progname.h.
55326         (main): Call set_program_name.
55327
55328         * modules/array-list-tests (Depends-on): Add progname.
55329         * tests/test-array_list.c: Include progname.h.
55330         (main): Call set_program_name.
55331
55332         * modules/argp-tests (Depends-on): Add progname.
55333         * tests/test-argp.c: Include argp.h first. Include progname.h.
55334         (main): Call set_program_name.
55335
55336 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55337
55338         * doc/gnulib-tool.texi (Initial import): Reword description of
55339         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55340         limited effect even if defined after the first system include.
55341
55342 2007-03-01  Bruno Haible  <bruno@clisp.org>
55343
55344         * build-aux/config.libpath: Update to libtool-1.5.22.
55345         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55346
55347 2007-03-01  Bruno Haible  <bruno@clisp.org>
55348
55349         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55350         foo_CFLAGS.
55351         Reported by Ralf Wildenhues.
55352
55353 2007-03-01  Bruno Haible  <bruno@clisp.org>
55354
55355         * build-aux/install-reloc: Remove object files left over by some
55356         compilers.
55357         Reported by Ralf Wildenhues.
55358
55359 2007-03-01  Bruno Haible  <bruno@clisp.org>
55360
55361         * build-aux/install-reloc: Break long lines.
55362
55363 2007-03-01  Bruno Haible  <bruno@clisp.org>
55364
55365         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55366         Reported by Ralf Wildenhues.
55367
55368 2007-03-01  Bruno Haible  <bruno@clisp.org>
55369
55370         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55371         include ordering constraints.
55372
55373 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55376         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55377         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55378         as another example.
55379         * lib/time_.h: Fix misspelling.
55380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55381         Require gl_HEADER_TIME_H_DEFAULTS.
55382         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55383         * m4/time_r.m4 (gl_TIME_R): Likewise.
55384         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55385
55386 2007-03-01  Bruno Haible  <bruno@clisp.org>
55387
55388         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55389         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55390
55391 2007-03-01  Jim Meyering  <jim@meyering.net>
55392
55393         * modules/xreadlink (Maintainer): Add my name.
55394         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55395
55396 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55397             Bruno Haible  <bruno@clisp.org>
55398
55399         * build-aux/install-reloc: Compile also c-ctype.c.
55400         * build-aux/relocatable.sh.in: New file.
55401         * doc/relocatable.texi: New file.
55402         * doc/relocatable-maint.texi: New file.
55403         * doc/gnulib.texi: Include relocatable-maint.texi.
55404         * lib/progreloc.c: Include unistd.h unconditionally.
55405         * lib/relocwrapper.c: Include unistd.h unconditionally.
55406         Include c-ctype.h.
55407         (add_dotbin): Use c_tolower.
55408         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55409         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55410         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55411         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55412         to m4/relocatable-lib.m4.
55413         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55414         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55415         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55416         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55417         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55418         * modules/relocatable: New file.
55419         * modules/relocatable-lib: New file.
55420         * modules/relocatable-script: New file.
55421
55422 2007-02-28  Bruno Haible  <bruno@clisp.org>
55423
55424         Import --enable-relocatable infrastructure.
55425         * build-aux/config.libpath: New file, from GNU gettext.
55426         * build-aux/install-reloc: New file, from GNU gettext.
55427         * build-aux/reloc-ldflags: New file, from GNU gettext.
55428         * lib/relocatable.h: New file, from GNU gettext.
55429         * lib/relocatable.c: New file, from GNU gettext.
55430         * lib/relocwrapper.c: New file, from GNU gettext.
55431         * m4/relocatable.m4: New file, from GNU gettext.
55432
55433 2007-02-28  Bruno Haible  <bruno@clisp.org>
55434
55435         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55436
55437         * modules/xreadlink: New file, from GNU gettext with modifications.
55438         * lib/xreadlink.c: New file, from GNU gettext.
55439         * lib/xreadlink.h: Add comments.
55440         (xreadlink): New declaration.
55441
55442         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55443         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55444         lib/xreadlink-with-size.c.
55445         (configure.ac): Remove gl_XREADLINK invocation.
55446         (Makefile.am): Augment lib_SOURCES.
55447         * m4/xreadlink.m4: Remove file.
55448         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55449         (xreadlink_with_size): Renamed from xreadink.
55450         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55451         * modules/canonicalize (Depends-on): Replace xreadlink with
55452         xreadlink-with-size.
55453         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55454
55455 2007-02-25  Jim Meyering  <jim@meyering.net>
55456
55457         * build-aux/announce-gen: When complaining about excess arguments,
55458         list them.
55459
55460 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55461
55462         * README: Document signed integer overflow situation more
55463         accurately.
55464
55465 2007-02-25  Bruno Haible  <bruno@clisp.org>
55466
55467         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55468         'a' or 'A' conversion.
55469
55470 2007-02-25  Bruno Haible  <bruno@clisp.org>
55471
55472         * modules/filename: Renamed from modules/pathname.
55473         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55474         lib/concatpath.c with lib/concat-filename.c.
55475         (Makefile.am): Update.
55476         (Include): Replace pathname.h with filename.h.
55477         * lib/filename.h: Renamed from lib/pathname.h.
55478         (concatenated_filename): Renamed from concatenated_pathname.
55479         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55480         (concatenated_filename): Renamed from concatenated_pathname.
55481         * lib/findprog.c: Include filename.h instead of pathname.h.
55482         (find_in_path): Update.
55483         * lib/javacomp.c: Include filename.h instead of pathname.h.
55484         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55485         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55486         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55487         is_oldgcj_14_13_usable, is_javac_usable): Update.
55488         * lib/javaexec.c: Include filename.h instead of pathname.h.
55489         (execute_java_class): Update.
55490         * modules/findprog: Update.
55491         * modules/javacomp: Update.
55492         * modules/javaexec: Update.
55493         * MODULES.html.sh (File system functions): Add 'filename', remove
55494         'pathname'.
55495
55496 2007-02-25  Bruno Haible  <bruno@clisp.org>
55497
55498         * modules/printf-frexpl-tests: New file.
55499         * tests/test-printf-frexpl.c: New file.
55500
55501         * modules/printf-frexpl: New file.
55502         * lib/printf-frexpl.h: New file.
55503         * lib/printf-frexpl.c: New file.
55504         * m4/printf-frexpl.m4: New file.
55505
55506 2007-02-25  Bruno Haible  <bruno@clisp.org>
55507
55508         * modules/printf-frexp-tests: New file.
55509         * tests/test-printf-frexp.c: New file.
55510
55511         * modules/printf-frexp: New file.
55512         * lib/printf-frexp.h: New file.
55513         * lib/printf-frexp.c: New file.
55514         * m4/printf-frexp.m4: New file.
55515
55516 2007-02-25  Bruno Haible  <bruno@clisp.org>
55517
55518         Assume automake >= 1.10 for the tests.
55519         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55520         * modules/arctwo-tests: Likewise.
55521         * modules/argp-tests: Likewise.
55522         * modules/avltree-list-tests: Likewise.
55523         * modules/avltree-oset-tests: Likewise.
55524         * modules/avltreehash-list-tests: Likewise.
55525         * modules/carray-list-tests: Likewise.
55526         * modules/crc-tests: Likewise.
55527         * modules/des-tests: Likewise.
55528         * modules/gc-arcfour-tests: Likewise.
55529         * modules/gc-arctwo-tests: Likewise.
55530         * modules/gc-des-tests: Likewise.
55531         * modules/gc-hmac-md5-tests: Likewise.
55532         * modules/gc-hmac-sha1-tests: Likewise.
55533         * modules/gc-md2-tests: Likewise.
55534         * modules/gc-md4-tests: Likewise.
55535         * modules/gc-md5-tests: Likewise.
55536         * modules/gc-pbkdf2-sha1-tests: Likewise.
55537         * modules/gc-rijndael-tests: Likewise.
55538         * modules/gc-sha1-tests: Likewise.
55539         * modules/gc-tests: Likewise.
55540         * modules/getaddrinfo-tests: Likewise.
55541         * modules/hmac-md5-tests: Likewise.
55542         * modules/hmac-sha1-tests: Likewise.
55543         * modules/linked-list-tests: Likewise.
55544         * modules/linkedhash-list-tests: Likewise.
55545         * modules/lock-tests: Likewise.
55546         * modules/md2-tests: Likewise.
55547         * modules/md4-tests: Likewise.
55548         * modules/md5-tests: Likewise.
55549         * modules/rbtree-list-tests: Likewise.
55550         * modules/rbtree-oset-tests: Likewise.
55551         * modules/rbtreehash-list-tests: Likewise.
55552         * modules/read-file-tests: Likewise.
55553         * modules/rijndael-tests: Likewise.
55554         * modules/stdint-tests: Likewise.
55555         * modules/tls-tests: Likewise.
55556
55557 2007-02-24  Bruno Haible  <bruno@clisp.org>
55558
55559         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55560         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55561         function; instead check whether isnan with a double argument links.
55562         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55563         function; instead check whether isnan with a 'long double' argument
55564         links.
55565         Reported by Eric Blake <ebb9@byu.net>.
55566
55567 2007-02-24  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55570         defined.
55571         * lib/isnanl.c: Remove all code. Just include isnan.c.
55572         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55573
55574 2007-02-25  Jim Meyering  <jim@meyering.net>
55575
55576         Avoid conflicting types for 'unsetenv' on FreeBSD.
55577         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55578         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55579         in stdlib.h.
55580
55581 2007-02-24  Bruno Haible  <bruno@clisp.org>
55582
55583         * modules/isnanl-nolibm-tests: New file.
55584         * tests/test-isnanl.c: New file.
55585
55586         * modules/isnanl-nolibm: New file.
55587         * lib/isnanl.h: New file.
55588         * lib/isnanl.c: New file.
55589         * m4/isnanl.m4: New file.
55590
55591 2007-02-24  Bruno Haible  <bruno@clisp.org>
55592
55593         * modules/isnan-nolibm-tests: New file.
55594         * tests/test-isnan.c: New file.
55595
55596         * modules/isnan-nolibm: New file.
55597         * lib/isnan.h: New file.
55598         * lib/isnan.c: New file.
55599         * m4/isnan.m4: New file.
55600
55601 2007-02-24  Bruno Haible  <bruno@clisp.org>
55602
55603         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55604         assume that an exponent fits in 20 bits.
55605
55606 2007-02-24  Jim Meyering  <jim@meyering.net>
55607
55608         * m4/regex.m4: Update the description of the configure-time option,
55609         --without-included-regex, to state accurately what the defaults are,
55610         and perhaps to give people an idea why using this option is risky.
55611
55612 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55613
55614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55615         loops on small arguments.  This attempts to avoid the problem
55616         Bruno Haible reported for AIX 4.3.2 in
55617         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55618
55619 2007-02-23  Bruno Haible  <bruno@clisp.org>
55620
55621         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55622         Needed for help2man.
55623
55624 2007-02-23  Karl Berry  <karl@gnu.org>
55625
55626         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55627         exists, foo.h should be cvs-ignored, not committed.
55628
55629 2007-02-23  Eric Blake  <ebb9@byu.net>
55630
55631         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55632         * lib/stat-time.h (includes): Likewise.
55633         * lib/utimecmp.c (includes): Likewise.
55634         * lib/utimens.h (includes): Likewise.
55635         * lib/getdate.y (includes): Also include "timespec.h" for use
55636         internal to the module.
55637         * modules/utimens (Depends-on): Revert yesterday's patch.
55638         * modules/nanosleep (Depends-on): Add missing dependency.
55639
55640 2007-02-22  Bruno Haible  <bruno@clisp.org>
55641
55642         * lib/glob.c: Don't include getlogin_r.h.
55643
55644 2007-02-22  Jim Meyering  <jim@meyering.net>
55645
55646         * modules/utimens (Depends-on): Add timespec, required for
55647         utimens.h's inclusion of timespec.h.
55648
55649 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55650
55651         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55652         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55653         Schwab in
55654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55655         I'll try to think of a better way to fix the Solaris problem.
55656
55657         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55658         like glibc; on Solaris 10, it fails with errno == EINVAL.
55659         POSIX says the behavior is unspecified if the first argument is NULL,
55660         so play it safe and never pass NULL to the system getcwd.
55661
55662 2007-02-21  Jim Meyering  <jim@meyering.net>
55663
55664         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55665         of gettimeofday.  It would conflict with the one now always
55666         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55667         an IRIX 6.5 build failure.
55668
55669 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         Minor fixups to port to Solaris 10 with Sun C 5.8.
55672         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55673         * modules/getcwd (Depends-on): Add dirfd.
55674         * lib/putenv.c (putenv): #undef it.
55675         (rpl_putenv): New decl.
55676         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55677
55678 2007-02-20  Bruno Haible  <bruno@clisp.org>
55679
55680         * modules/stdio-tests: New file.
55681         * tests/test-stdio.c: New file.
55682
55683         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55684         (Depends-on): Add stdio.
55685         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55686         (Include): Use <stdio.h> instead of vsnprintf.h.
55687         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55688         HAVE_DECL_VSNPRINTF.
55689         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55690
55691         * modules/snprintf (Files): Remove lib/snprintf.h.
55692         (Depends-on): Add stdio.
55693         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55694         (Include): Use <stdio.h> instead of snprintf.h.
55695         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55696         HAVE_DECL_SNPRINTF.
55697         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55698         * lib/getaddrinfo.c: Likewise.
55699
55700         * modules/stdio: New file.
55701         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55702         * lib/snprintf.h: Remove file.
55703         * lib/vsnprintf.h: Remove file.
55704         * lib/.cppi-disable: Remove snprintf.h.
55705         * m4/stdio_h.m4: New file.
55706         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55707
55708 2007-02-20  Jim Meyering  <jim@meyering.net>
55709
55710         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55711         used by e.g., mingw.  From Bruno Haible.
55712
55713 2007-02-19  Bruno Haible  <bruno@clisp.org>
55714
55715         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55716         warnings.
55717         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55718
55719 2007-02-19  Bruno Haible  <bruno@clisp.org>
55720
55721         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55722         from mingw users.
55723
55724 2007-02-19  Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55727         warnings.
55728         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55729
55730 2007-02-19  Jim Meyering  <jim@meyering.net>
55731
55732         Don't use FD after a successful "fdopendir (fd)".
55733         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55734         Reset it by calling dirfd on the just-obtained DIR*.
55735
55736         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55737         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55738
55739 2007-02-18  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/readlink.c: Include <unistd.h>.
55742         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55743         HAVE_READLINK.
55744         * modules/readlink (Depends-on): Add unistd.
55745         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55746         (Include): Add <unistd.h>.
55747
55748         * lib/getlogin_r.h: Remove file.
55749         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55750         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55751         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55752         HAVE_DECL_GETLOGIN_R.
55753         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55755         (Include): Use <unistd.h> instead of getlogin_r.h.
55756
55757         * lib/getcwd.h: Remove file.
55758         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55759         * lib/xgetcwd.c: Likewise.
55760         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55761         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55762         * modules/getcwd (Files): Remove lib/getcwd.h.
55763         (Depends-on): Add unistd.
55764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55765         (Include): Use <unistd.h> instad of getcwd.h.
55766
55767         * lib/ftruncate.c: Include <unistd.h> first.
55768         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55769         Set HAVE_FTRUNCATE.
55770         * modules/ftruncate (Depends-on): Add unistd.
55771         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55772
55773         * lib/fchdir.c: Include <unistd.h> first.
55774         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55776         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55777         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55778         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55779
55780         * lib/dup2.c: Include <unistd.h> first.
55781         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55782         HAVE_DUP2.
55783         * modules/dup2 (Depends-on): Add unistd.
55784         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55785
55786         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55787         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55788         REPLACE_CHOWN. Don't define chown as a macro here.
55789         * modules/chown (Depends-on): Add unistd.
55790         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55791
55792         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55793         Add definition for GL_LINK_WARNING.
55794         (chown, dup2): New declarations.
55795         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55796         link warning.
55797         (ftruncate): New declaration.
55798         (getcwd): New declaration, taken from old getcwd.h.
55799         (getlogin_r): New declaration, taken from old getlogin_r.h.
55800         (readlink): New declaration.
55801         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55802         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55803         (gl_PREREQ_UNISTD): Remove macro.
55804         (gl_UNISTD_MODULE_INDICATOR): New macro.
55805         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55806         many new variables. Don't set UNISTD_H.
55807         * modules/unistd (Description): Change.
55808         (Depends-on): Add link-warning.
55809         (configure.ac): Update.
55810         (Makefile.am): Create unistd.h always. Substitute many new variables
55811         into it.
55812
55813 2007-02-18  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55816         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55817         HAVE_GETSUBOPT.
55818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55819         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55820         * lib/getsubopt.h: Remove file.
55821         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55822         (Depends-on): Add stdlib.
55823         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55824         (Includes): Use <stdlib.h> instead of getsubopt.h.
55825         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55826         Set HAVE_GETSUBOPT.
55827         * lib/getsubopt.c: Don't include getsubopt.h.
55828
55829 2007-02-18  Bruno Haible  <bruno@clisp.org>
55830
55831         * modules/fchdir (Depends-on): Add dup2.
55832
55833 2007-02-18  Bruno Haible  <bruno@clisp.org>
55834
55835         * lib/stdlib_.h: Handle glibc's special invocation convention
55836         specially.
55837
55838 2007-02-18  Bruno Haible  <bruno@clisp.org>
55839
55840         * modules/stdlib-tests: New file.
55841         * tests/test-stdlib.c: New file.
55842
55843         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55844         (Depends-on): Add stdlib.
55845         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55846         (Includes): Use <stdlib.h> instead of mkstemp.h.
55847         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55848         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55849         * lib/mkstemp.c: Don't include mkstemp.h.
55850         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55851         * lib/stdlib--.h: Don't include mkstemp.h.
55852
55853         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55854         (Depends-on): Add stdlib.
55855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55856         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55857         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55858         HAVE_MKDTEMP.
55859         * lib/mkdtemp.c: Don't include mkdtemp.h.
55860         * lib/clean-temp.c: Don't include mkdtemp.h.
55861
55862         * modules/exit (Files): Remove lib/exit.h.
55863         (Depends-on): Add stdlib.
55864         (Makefile.am): Remove lib_SOURCES.
55865         (Include): Use <stdlib.h> instead of exit.h.
55866         * lib/argmatch.c: Don't include exit.h.
55867         * lib/execute.c: Likewise.
55868         * lib/pagealign_alloc.c: Likewise.
55869         * lib/pipe.c: Likewise.
55870         * lib/wait-process.c: Likewise.
55871         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55872         * lib/exitfail.c: Likewise.
55873         * lib/savewd.c: Likewise.
55874         * lib/xsetenv.c: Likewise.
55875
55876         * modules/stdlib: New file.
55877         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55878         and extra comments about mkstemp().
55879         * lib/exit.h: Remove file.
55880         * lib/mkdtemp.h: Remove file.
55881         * lib/mkstemp.h: Remove file.
55882         * m4/stdlib_h.m4: New file.
55883         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55884
55885 2007-02-18  Bruno Haible  <bruno@clisp.org>
55886
55887         * modules/math-tests: New file.
55888         * tests/test-math.c: New file.
55889
55890         * modules/math: New file.
55891         * modules/mathl (Files): Remove lib/mathl.h.
55892         (Depends-on): Add math.
55893         (Makefile.am): Don't mention mathl.h.
55894         (Include): Use <math.h> instead of mathl.h.
55895         * lib/math_.h: New file.
55896         * lib/mathl.h: Remove file.
55897         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55898         mathl.h.
55899         * lib/asinl.c: Likewise.
55900         * lib/atanl.c: Likewise.
55901         * lib/ceill.c: Likewise.
55902         * lib/cosl.c: Likewise.
55903         * lib/expl.c: Likewise.
55904         * lib/floorl.c: Likewise.
55905         * lib/frexpl.c: Likewise.
55906         * lib/ldexpl.c: Likewise.
55907         * lib/logl.c: Likewise.
55908         * lib/sincosl.c: Likewise.
55909         * lib/sinl.c: Likewise.
55910         * lib/sqrtl.c: Likewise.
55911         * lib/tanl.c: Likewise.
55912         * lib/trigl.c: Likewise.
55913         * m4/math_h.m4: New file.
55914         * MODULES.html.sh (Mathematics): Add math.
55915
55916 2007-02-17  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/wctype-tests: New file.
55919         * tests/test-wctype.c: New file.
55920
55921         * modules/wchar-tests: New file.
55922         * tests/test-wchar.c: New file.
55923
55924         * modules/unistd-tests: New file.
55925         * tests/test-unistd.c: New file.
55926
55927         * modules/time-tests: New file.
55928         * tests/test-time.c: New file.
55929
55930         * modules/sysexits-tests: New file.
55931         * tests/test-sysexits.c: New file.
55932
55933         * modules/sys_time-tests: New file.
55934         * tests/test-sys_time.c: New file.
55935
55936         * modules/sys_stat-tests: New file.
55937         * tests/test-sys_stat.c: New file.
55938
55939         * modules/sys_socket-tests: New file.
55940         * tests/test-sys_socket.c: New file.
55941
55942         * modules/sys_select-tests: New file.
55943         * tests/test-sys_select.c: New file.
55944
55945         * modules/string-tests: New file.
55946         * tests/test-string.c: New file.
55947
55948         * modules/stdbool-tests: New file.
55949         * tests/test-stdbool.c: New file.
55950
55951         * modules/netinet_in-tests: New file.
55952         * tests/test-netinet_in.c: New file.
55953
55954         * modules/inttypes-tests: New file.
55955         * tests/test-inttypes.c: New file.
55956
55957         * modules/fcntl-tests: New file.
55958         * tests/test-fcntl.c: New file.
55959
55960         * modules/byteswap-tests: New file.
55961         * tests/test-byteswap.c: New file.
55962
55963         * modules/arpa_inet-tests: New file.
55964         * tests/test-arpa_inet.c: New file.
55965
55966 2007-02-17  Bruno Haible  <bruno@clisp.org>
55967
55968         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55969         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55970         if the corresponding module is not enabled. Emit link warnings if
55971         the function is used nevertheless.
55972         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55973         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55974         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55975         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55976         * modules/inttypes (Depends-on): Add link-warning.
55977         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55978         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55979         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55980         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55981         * modules/imaxdiv (configure.ac): Likewise.
55982         * modules/strtoimax (configure.ac): Likewise.
55983         * modules/strtoumax (configure.ac): Likewise.
55984
55985 2007-02-17  Bruno Haible  <bruno@clisp.org>
55986
55987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55988         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55989         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55990         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55991
55992 2007-02-17  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/link-warning: New file.
55995         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55996         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55997         * modules/string (Depends-on): Add link-warning.
55998         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55999         string.h.
56000         * MODULES.html.sh (Support for building libraries and executables): Add
56001         link-warning.
56002
56003 2007-02-17  Bruno Haible  <bruno@clisp.org>
56004
56005         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56006         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56007         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56008         long lines.
56009
56010 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56011             Bruno Haible  <bruno@clisp.org>
56012
56013         * modules/tmpfile: New file.
56014         * lib/tmpfile.c: New file.
56015         * m4/tmpfile.m4: New file.
56016         * MODULES.html.sh (func_all_modules): New section "Input/output".
56017
56018 2007-02-15  Bruno Haible  <bruno@clisp.org>
56019
56020         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56021         (supports_delete_on_close): New function.
56022         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56023
56024 2007-02-14  Bruno Haible  <bruno@clisp.org>
56025
56026         * modules/mbspcasecmp-tests: New file.
56027         * tests/test-mbspcasecmp.sh: New file.
56028         * tests/test-mbspcasecmp.c: New file.
56029
56030         New module mbspcasecmp.
56031         * modules/mbspcasecmp: New file.
56032         * lib/mbspcasecmp.c: New file.
56033         * lib/string_.h (strncasecmp): Change warning message.
56034         (mbspcasecmp): New declaration.
56035         * m4/mbspcasecmp.m4: New file.
56036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56037         GNULIB_MBSPCASECMP.
56038         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56039         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56040
56041 2007-02-14  Bruno Haible  <bruno@clisp.org>
56042
56043         * modules/mbsncasecmp-tests: New file.
56044         * tests/test-mbsncasecmp.sh: New file.
56045         * tests/test-mbsncasecmp.c: New file.
56046
56047         New module mbsncasecmp.
56048         * modules/mbsncasecmp: New file.
56049         * lib/mbsncasecmp.c: New file.
56050         * lib/string_.h (mbsncasecmp): New declaration.
56051         * m4/mbsncasecmp.m4: New file.
56052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56053         GNULIB_MBSNCASECMP.
56054         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56055         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56056
56057 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56058
56059         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56060         Verify that it doesn't overlap with our flags.
56061         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56062         do not have the desired effect in multibyte locales; instead, use
56063         mbscasecmp.
56064         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56065         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56066         we don't require GNU fnmatch ourselves (if our users require it, they
56067         should do so explicitly).
56068
56069         Fix regex code so it doesn't rely on strcasecmp.
56070         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56071         Otherwise, include gnulib's langinfo.h.
56072         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56073         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56074         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56075         * modules/regex (FILES): Remove m4/codeset.m4.
56076         (Depends-on): Add localcharset.  Remove strcase.
56077
56078 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56079
56080         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56081         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56082
56083 2007-02-13  Bruno Haible  <bruno@clisp.org>
56084
56085         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56086         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56087
56088 2007-02-12  Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56091         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56092         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56093         time warning rather than a link error.
56094
56095 2007-02-12  Bruno Haible  <bruno@clisp.org>
56096
56097         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56098         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56100
56101 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56102
56103         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56104         args, not 2.
56105
56106 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56107
56108         New module 'time', so that apps can include <time.h> as per
56109         POSIX and GNU instead of separate include files like time_r.h
56110         and timegm.h.  This implementation tries out a simpler approach
56111         for replacing decls in standard include files (as compared to
56112         the string module), somewhat as an experiment.
56113
56114         * config/srclist.txt: Comment out mktime.c for now.
56115         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56116         since it doesn't apply any more.  Use generic wording instead.
56117         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56118         'time'.
56119         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56120         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56121         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56122         Don't include <sys/types.h>; no longer needed since we assume C89.
56123         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56124         * lib/strftime.c: Likewise.
56125         * lib/time_r.c: Likewise.
56126         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56127         * lib/nanosleep.c: Include <time.h> first, to check interface.
56128         * lib/strptime.c: Likewise.
56129         * lib/time_r.c: Likewise.
56130         * lib/timegm.c: Likewise.
56131         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56132         needed.
56133         * lib/timegm.c: Don't include timegm.h; no longer needed.
56134         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56135         time.h now handles any problems in that area.
56136         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56137         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56138         that time.h defines struct timespec.
56139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56140         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56141         handles that.
56142         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56143         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56144         needed.  Set REPLACE_LOCALTIME.
56145         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56146         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56147         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56148         nanosleep; time_h.m4 now does that.  Don't require
56149         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56150         module handles this now.
56151         * modules/getdate (Depends-on): Remove timespec.  Add time.
56152         * modules/nanosleep (Depends-on): Likewise.
56153         * modules/stat-time (Depends-on): Likewise.
56154         * modules/nanosleep (Include): Include time.h, not timespec.h.
56155         * modules/strptime (Files): Remove lib/strptime.h.
56156         (Depends-on): Add extensions, time.
56157         (Include): Include time.h, not strptime.h.
56158         * modules/time_r (Files): Remove lib/time_r.h.
56159         (Depends-on): Add time.
56160         (Include): Include time.h, not time_r.h.
56161         * modules/timegm: Likewise.
56162         * modules/timespec (Description): Now does timespec-related decls
56163         of our own, instead of struct timespec itself.
56164         (Depends-on): Add time; remove extensions.
56165         (Maintainer): Add self.
56166         * modules/utimecmp (Depends-on): Add time; remove timespec.
56167         * modules/utimens (Depends-on): Likewise.
56168         * modules/xnanosleep (Depends-on): Likewise.
56169
56170 2007-02-11  Bruno Haible  <bruno@clisp.org>
56171
56172         * lib/c-strstr.c: Include allocsa.h.
56173         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56174         * lib/c-strcasestr.c: Include allocsa.h.
56175         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56176         * lib/strcasestr.c: Include allocsa.h.
56177         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56178         * lib/mbsstr.c: Include allocsa.h.
56179         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56180         allocsa/freesa instead of malloc/free.
56181         * lib/mbscasestr.c: Include allocsa.h.
56182         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56183         allocsa/freesa instead of malloc/free.
56184         * modules/c-strstr (Depends-on): Add allocsa.
56185         * modules/c-strcasestr (Depends-on): Likewise.
56186         * modules/strcasestr (Depends-on): Likewise.
56187         * modules/mbsstr (Depends-on): Likewise.
56188         * modules/mbscasestr (Depends-on): Likewise.
56189
56190 2007-02-11  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56193
56194         * modules/mbsspn-tests: New file.
56195         * tests/test-mbsspn.sh: New file.
56196         * tests/test-mbsspn.c: New file.
56197
56198 2007-02-11  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56201
56202         * modules/mbspbrk-tests: New file.
56203         * tests/test-mbspbrk.sh: New file.
56204         * tests/test-mbspbrk.c: New file.
56205
56206 2007-02-11  Bruno Haible  <bruno@clisp.org>
56207
56208         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56209         unneeded cast.
56210
56211         * modules/mbscspn-tests: New file.
56212         * tests/test-mbscspn.sh: New file.
56213         * tests/test-mbscspn.c: New file.
56214
56215 2007-02-11  Bruno Haible  <bruno@clisp.org>
56216
56217         * modules/mbscasecmp-tests: New file.
56218         * tests/test-mbscasecmp.sh: New file.
56219         * tests/test-mbscasecmp.c: New file.
56220
56221 2007-02-11  Bruno Haible  <bruno@clisp.org>
56222
56223         Ensure O(n) worst-case complexity of mbscasestr.
56224         * lib/mbscasestr.c: Include stdbool.h.
56225         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56226         functions.
56227         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56228         the bookkeeping indicates that it's worth it.
56229         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56230
56231         * modules/mbscasestr-tests: New file.
56232         * tests/test-mbscasestr1.c: New file.
56233         * tests/test-mbscasestr2.sh: New file.
56234         * tests/test-mbscasestr2.c: New file.
56235         * tests/test-mbscasestr3.sh: New file.
56236         * tests/test-mbscasestr3.c: New file.
56237         * tests/test-mbscasestr4.sh: New file.
56238         * tests/test-mbscasestr4.c: New file.
56239         * m4/locale-tr.m4: New file.
56240
56241 2007-02-11  Bruno Haible  <bruno@clisp.org>
56242
56243         Ensure O(n) worst-case complexity of mbsstr.
56244         * lib/mbsstr.c: Include stdbool.h.
56245         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56246         functions.
56247         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56248         bookkeeping indicates that it's worth it.
56249         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56250
56251         * modules/mbsstr-tests: New file.
56252         * tests/test-mbsstr1.c: New file.
56253         * tests/test-mbsstr2.sh: New file.
56254         * tests/test-mbsstr2.c: New file.
56255         * tests/test-mbsstr3.sh: New file.
56256         * tests/test-mbsstr3.c: New file.
56257         * m4/locale-fr.m4: New file.
56258
56259 2007-02-11  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/mbsrchr.c (mbsrchr): Fix bug.
56262
56263         * modules/mbsrchr-tests: New file.
56264         * tests/test-mbsrchr.sh: New file.
56265         * tests/test-mbsrchr.c: New file.
56266
56267 2007-02-11  Bruno Haible  <bruno@clisp.org>
56268
56269         * lib/mbschr.c (mbschr): Fix bug.
56270
56271         * modules/mbschr-tests: New file.
56272         * tests/test-mbschr.sh: New file.
56273         * tests/test-mbschr.c: New file.
56274         * m4/locale-zh.m4: New file.
56275
56276 2007-02-11  Bruno Haible  <bruno@clisp.org>
56277
56278         Support for copying multibyte string iterators.
56279         * lib/mbiter.h: Include <string.h>.
56280         (mbiter_multi_copy): New function.
56281         (mbi_copy): New macro.
56282         * lib/mbuiter.h: Include <string.h>.
56283         (mbuiter_multi_copy): New function.
56284         (mbui_copy): New macro.
56285
56286 2007-02-11  Bruno Haible  <bruno@clisp.org>
56287
56288         New module mbslen.
56289         * modules/mbslen: New file.
56290         * lib/mbslen.c: New file.
56291         * lib/string_.h (mbslen): New declaration.
56292         * m4/mbslen.m4: New file.
56293         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56294         GNULIB_MBSLEN.
56295         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56296         * MODULES.html.sh (Internationalization functions): Add mbslen.
56297
56298 2007-02-11  Bruno Haible  <bruno@clisp.org>
56299
56300         Ensure O(n) worst-case complexity of strcasestr substitute.
56301         * lib/strcasestr.c: Include stdbool.h.
56302         (knuth_morris_pratt): New function.
56303         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56304         bookkeeping indicates that it's worth it.
56305         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56306
56307         * modules/strcasestr-tests: New file.
56308         * tests/test-strcasestr.c: New file.
56309
56310 2007-02-11  Bruno Haible  <bruno@clisp.org>
56311
56312         Ensure O(n) worst-case complexity of c_strcasestr.
56313         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56314         (knuth_morris_pratt): New function.
56315         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56316         the bookkeeping indicates that it's worth it.
56317         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56318
56319         * modules/c-strcasestr-tests: New file.
56320         * tests/test-c-strcasestr.c: New file.
56321
56322 2007-02-11  Bruno Haible  <bruno@clisp.org>
56323
56324         Ensure O(n) worst-case complexity of c_strstr.
56325         * lib/c-strstr.c: Include stdbool.h, string.h.
56326         (knuth_morris_pratt): New function.
56327         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56328         bookkeeping indicates that it's worth it.
56329         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56330
56331         * lib/c-strstr.c: Complete rewrite for maintainability.
56332
56333         * modules/c-strstr-tests: New file.
56334         * tests/test-c-strstr.c: New file.
56335
56336 2007-02-11  Bruno Haible  <bruno@clisp.org>
56337
56338         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56339         5.2.1 and earlier, whereby \055 was treated just like the range
56340         delimiter '-'.
56341         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56342
56343 2007-02-08  Bruno Haible  <bruno@clisp.org>
56344
56345         * modules/regex (Depends-on): Add stdbool.
56346         Reported by Dalibor Topic <robilad@kaffe.org>.
56347
56348 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56349
56350         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56351         Prefer returning from main to exiting from it.
56352         Remove unnecessary parens after sizeof.
56353
56354 2007-02-05  Bruno Haible  <bruno@clisp.org>
56355
56356         New module mbssep.
56357         * modules/mbssep: New file.
56358         * lib/mbssep.c: New file.
56359         * lib/string_.h (strsep): Add a conditional link warning.
56360         (mbssep): New declaration.
56361         * m4/mbssep.m4: New file.
56362         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56363         GNULIB_MBSSEP.
56364         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56365         * MODULES.html.sh (Internationalization functions): Add mbssep.
56366
56367 2007-02-05  Bruno Haible  <bruno@clisp.org>
56368
56369         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56370         Optimize search in case of 1 delimiter.
56371
56372 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56373
56374         * lib/acl.h: Include sys/types.h before sys/acl.h.
56375
56376 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56377
56378         Merge upstream fix for glibc bugzilla #3957:
56379
56380         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56381
56382         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56383         bit for RE_HAT_LISTS_NOT_NEWLINE.
56384         (build_charclass_op): Remove bogus comment.
56385
56386 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56387
56388         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56389
56390 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56391
56392         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56393         * lib/memmem.c [!defined _LIBC]: Include config.h.
56394
56395 2007-02-04  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56398         warning message.
56399
56400 2007-02-04  Bruno Haible  <bruno@clisp.org>
56401
56402         New module mbstok_r.
56403         * modules/mbstok_r: New file.
56404         * lib/mbstok_r.c: New file.
56405         * lib/string_.h (strtok_r): Change argument names to match the
56406         comments. Add a conditional link warning.
56407         (mbstok_r): New declaration.
56408         * m4/mbstok_r.m4: New file.
56409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56410         GNULIB_MBSTOK_R.
56411         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56412         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56413
56414 2007-02-04  Bruno Haible  <bruno@clisp.org>
56415
56416         New module mbsspn.
56417         * modules/mbsspn: New file.
56418         * lib/mbsspn.c: New file.
56419         * lib/string_.h (strspn): Add a conditional link warning.
56420         (mbsspn): New declaration.
56421         * m4/mbsspn.m4: New file.
56422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56423         GNULIB_MBSSPN.
56424         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56425         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56426
56427 2007-02-04  Bruno Haible  <bruno@clisp.org>
56428
56429         New module mbspbrk.
56430         * modules/mbspbrk: New file.
56431         * lib/mbspbrk.c: New file.
56432         * lib/string_.h (strpbrk): Add a conditional link warning.
56433         (mbspbrk): New declaration.
56434         * m4/mbspbrk.m4: New file.
56435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56436         GNULIB_MBSPBRK.
56437         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56438         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56439
56440 2007-02-04  Bruno Haible  <bruno@clisp.org>
56441
56442         New module mbscspn.
56443         * modules/mbscspn: New file.
56444         * lib/mbscspn.c: New file.
56445         * lib/string_.h (strcspn): Add a conditional link warning.
56446         (mbscspn): New declaration.
56447         * m4/mbscspn.m4: New file.
56448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56449         GNULIB_MBSCSPN.
56450         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56451         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56452
56453 2007-02-04  Bruno Haible  <bruno@clisp.org>
56454
56455         New module mbscasestr, reduced goal of strcasestr.
56456         * modules/mbscasestr: New file.
56457         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56458         (mbscasestr): Renamed from strcasestr.
56459         * lib/strcasestr.c: Don't include mbuiter.h.
56460         (strcasestr): Remove support for multibyte locales.
56461         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56462         Change the conditional link warning.
56463         (mbscasestr): New declaration.
56464         * m4/mbscasestr.m4: New file.
56465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56466         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56467         REPLACE_STRCASESTR.
56468         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56470         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56471         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56472         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56473         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56474         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56475         (Depends-on): Remove mbuiter.
56476         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56477
56478 2007-02-04  Bruno Haible  <bruno@clisp.org>
56479
56480         Simplify handling of strncasecmp.
56481         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56482         the conditional link warning.
56483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56484         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56485         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56486         * modules/strcase (configure.ac): Don't invoke
56487         gl_STRING_MODULE_INDICATOR.
56488         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56489
56490 2007-02-04  Bruno Haible  <bruno@clisp.org>
56491
56492         New module mbscasecmp, reduced goal of strcasecmp.
56493         * modules/mbscasecmp: New file.
56494         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56495         (mbscasecmp): Renamed from strcasecmp.
56496         * lib/strcasecmp.c: Don't include mbuiter.h.
56497         (strcasecmp): Remove support for multibyte locales.
56498         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56499         Change the conditional link warning.
56500         (mbscasecmp): New declaration.
56501         * m4/mbscasecmp.m4: New file.
56502         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56503         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56504         REPLACE_STRCASECMP.
56505         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56507         GNULIB_MBSCASECMP.
56508         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56509         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56510         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56511         (Depends-on): Remove mbuiter.
56512         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56513
56514 2007-02-04  Bruno Haible  <bruno@clisp.org>
56515
56516         New module mbsstr. Remove module strstr.
56517         * modules/mbsstr: New file.
56518         * modules/strstr: Remove file.
56519         * lib/mbsstr.c: Renamed from lib/strstr.c.
56520         (mbsstr): Renamed from strstr.
56521         * lib/string_.h (strstr): Remove declaration. Change the conditional
56522         link warning.
56523         (mbsstr): New declaration.
56524         * m4/mbsstr.m4: New file.
56525         * m4/strstr.m4: Remove file.
56526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56527         REPLACE_STRSTR.
56528         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56529         Don't initialize GNULIB_STRSTR.
56530         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56531         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56532         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56533         (Support for systems lacking ANSI C 89): Remove strstr.
56534
56535 2007-02-04  Bruno Haible  <bruno@clisp.org>
56536
56537         New module mbsrchr.
56538         * modules/mbsrchr: New file.
56539         * lib/mbsrchr.c: New file.
56540         * lib/string_.h (strrchr): Add a conditional link warning.
56541         (mbsrchr): New declaration.
56542         * m4/mbsrchr.m4: New file.
56543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56544         GNULIB_MBSRCHR.
56545         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56546         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56547
56548 2007-02-04  Bruno Haible  <bruno@clisp.org>
56549
56550         New module mbschr.
56551         * modules/mbschr: New file.
56552         * lib/mbschr.c: New file.
56553         * lib/string_.h (strchr): Add a conditional link warning.
56554         (mbschr): New declaration.
56555         * m4/mbschr.m4: New file.
56556         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56557         GNULIB_MBSCHR.
56558         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56559         * MODULES.html.sh (Internationalization functions): Add mbschr.
56560
56561 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56562
56563         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56564
56565         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56566
56567 2007-02-04  Bruno Haible  <bruno@clisp.org>
56568
56569         New module description section 'configure.ac-early'.
56570         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56571         (func_get_autoconf_early_snippet): New function.
56572         (func_import, func_create_testdir): Use it. Remove special cases for
56573         modules 'extensions' and 'lock'.
56574         * modules/extensions (configure.ac-early): Require
56575         gl_USE_SYSTEM_EXTENSIONS.
56576         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56577
56578 2007-02-04  Bruno Haible  <bruno@clisp.org>
56579
56580         Make use of gcj-4.3's -fsource and -ftarget option.
56581         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56582         and if so try the options -fsource and -ftarget.
56583         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56584         source_version, ftarget_option, target_version arguments.
56585         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56586         (is_envjavac_oldgcj_14_14_usable): Renamed from
56587         is_envjavac_gcj_14_14_usable.
56588         (is_envjavac_oldgcj_14_13_usable): Renamed from
56589         is_envjavac_gcj_14_13_usable.
56590         (is_gcj_present): Update.
56591         (is_gcj_43, is_gcj43_usable): New functions.
56592         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56593         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56594         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56595         try the options -fsource and -ftarget.
56596
56597 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56598
56599         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56600         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56601         larger value.
56602
56603 2007-02-03  Jim Meyering  <jim@meyering.net>
56604
56605         Give tools a better chance to allocate space for very large buffers.
56606         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56607
56608         Make pwd and readlink work also when run with an unreadable parent dir
56609         on systems with openat support.
56610         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56611         provided getcwd function, even when we have openat support.
56612         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56613
56614 2007-02-02  Bruno Haible  <bruno@clisp.org>
56615
56616         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56617         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56618         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56619         portability problems if one of these functions is only used on specific
56620         platforms.
56621         Reported by Paul Eggert.
56622
56623 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56624
56625         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56626         is causing more trouble than it's curing.
56627         * lib/regex_internal.h (__mempcpy): Remove.
56628         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56629         (and make the code a tad smaller to boot).
56630         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56631
56632 2007-02-02  Jim Meyering  <jim@meyering.net>
56633
56634         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56635         section, not in the Makefile.am: one.
56636
56637 2007-02-02  Eric Blake  <ebb9@byu.net>
56638
56639         * lib/strchrnul.c: Always include config.h first.
56640
56641         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56642         gnulib strstr is not necessary here.
56643
56644 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56645
56646         * m4/socklen.m4: Fix typo.
56647
56648 2007-02-02  Eric Blake  <ebb9@byu.net>
56649
56650         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56651         * modules/netinet_in (Makefile.am): Likewise.
56652
56653 2007-02-01  Bruno Haible  <bruno@clisp.org>
56654
56655         * lib/string_.h (GL_LINK_WARNING): New macro.
56656         (strcasecmp, strstr, strcasestr): If provided by the system,
56657         conditionally define as a macro that leads to a warning instead of to
56658         an error.
56659         (strncasecmp): Conditionally define as a macro that leads to a warning.
56660
56661 2007-02-01  Karl Berry  <karl@gnu.org>
56662
56663         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56664
56665 2007-02-01  Bruno Haible  <bruno@clisp.org>
56666
56667         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56668         renamings.
56669
56670 2007-02-01  Eric Blake  <ebb9@byu.net>
56671
56672         * modules/regex (Depends-on): Revert dependence on mempcpy.
56673         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56674         module's definition of mempcpy.
56675         Reported by Paul Eggert.
56676
56677 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56678
56679         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56680         the symbol XYZ before redefining it.  This fixes a problem with
56681         programs that don't use XYZ, when compiled on systems that define
56682         XYZ to something else.
56683
56684 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56685
56686         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56687         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56688         writeable to group or other and (2) is intended to have a special
56689         mode bit that is set or cleared.  In such a case, the directory
56690         should be neither group- nor other-writeable until the special
56691         mode bits are right.
56692
56693 2007-01-31  Eric Blake  <ebb9@byu.net>
56694
56695         * modules/mountlist (Depends-on): Add strstr.
56696
56697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56698         bug.
56699         * modules/string (Makefile.am): Remove redundant replacement.
56700         * modules/regex (Depends-on): Add mempcpy.
56701
56702 2007-01-31  Bruno Haible  <bruno@clisp.org>
56703
56704         New module description field 'Link'.
56705         * gnulib-tool (func_usage): Document --extract-link-directive.
56706         (sed_extract_prog): Recognize 'Link' directive.
56707         (func_get_link_directive): New function.
56708         (func_import): Show summary of link directives.
56709         Handle --extract-link-directive option.
56710         * modules/acl (Link): New section.
56711         * modules/clock-time (Link): New section.
56712         * modules/euidaccess (Link): New section.
56713         * modules/gettext (Link): New section.
56714         * modules/iconv (Link): New section.
56715         * modules/lock (Link): New section.
56716         * modules/nanosleep (Link): New section.
56717         * modules/readline (Link): New section.
56718
56719 2007-01-27  Bruno Haible  <bruno@clisp.org>
56720
56721         Enforce the use of gnulib modules for unportable <string.h> functions.
56722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56723         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56724         (gl_HEADER_STRING_H_BODY): Require it.
56725         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56726         the symbol XYZ to one that gives a link error.
56727         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56728         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56729         * modules/mempcpy (configure.ac): Likewise.
56730         * modules/memrchr (configure.ac): Likewise.
56731         * modules/stpcpy (configure.ac): Likewise.
56732         * modules/stpncpy (configure.ac): Likewise.
56733         * modules/strcase (configure.ac): Likewise.
56734         * modules/strcasestr (configure.ac): Likewise.
56735         * modules/strchrnul (configure.ac): Likewise.
56736         * modules/strdup (configure.ac): Likewise.
56737         * modules/strndup (configure.ac): Likewise.
56738         * modules/strnlen (configure.ac): Likewise.
56739         * modules/strpbrk (configure.ac): Likewise.
56740         * modules/strsep (configure.ac): Likewise.
56741         * modules/strstr (configure.ac): Likewise.
56742         * modules/strtok_r (configure.ac): Likewise.
56743
56744 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56745
56746         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56747
56748 2007-01-30  Jim Meyering  <jim@meyering.net>
56749
56750         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56751
56752 2007-01-29  Bruno Haible  <bruno@clisp.org>
56753
56754         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56755         * lib/execute.c: Likewise.
56756         * lib/pipe.c: Likewise.
56757         * lib/printf-args.h: Likewise.
56758         * lib/printf-args.c: Likewise.
56759         * lib/printf-parse.c: Likewise.
56760         * lib/vasnprintf.c: Likewise.
56761
56762 2007-01-29  Eric Blake  <ebb9@byu.net>
56763
56764         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56765         declaration.
56766
56767 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56768
56769         * lib/strptime.h (strptime): Use 'restrict' for args where
56770         POSIX requires this.
56771         * lib/strptime.c (strptime): Likewise.
56772         Change license notice from LGPL to GPL, since gnulib-tool will
56773         change this as needed.
56774         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56775         defined.
56776         Include "strptime.h" first, to check interface.
56777         Do not #undef _LIBC and _NL_CURRENT.
56778         Do not include <stdlib.h>; no longer needed.
56779         Include "time_r.h" and declare ptime_locale_status
56780         only if _LIBC is not defined.
56781         (__P): Remove unused macro.
56782         (match_string): Bring back glibc version, but use it only if _LIBC
56783         is defined.
56784         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56785         Remove unnecessary assertion and abort() call.
56786         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56787         * m4/strptime.m4: Fix serial number comment.
56788         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56789         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56790         (Depends-on): Add time_r.
56791
56792 2007-01-29  Bruno Haible  <bruno@clisp.org>
56793
56794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56795         strptime.
56796         * modules/strptime (Depends-on): Add stdbool.
56797         * lib/strptime.h: Include <time.h> always. Add comments.
56798
56799 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56800
56801         * modules/strptime: New file.
56802         * lib/strptime.h: New file.
56803         * lib/strptime.c: New file.
56804         * m4/strptime.m4: New file.
56805
56806 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         * MODULES.html.sh: New module mpsort.
56809         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56810
56811         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56812         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56814         All uses changed.
56815         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56816         All uses changed.
56817         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56818         to _Restrict_.
56819         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56820         the parameter matches the prototype.
56821
56822 2007-01-28  Jim Meyering  <jim@meyering.net>
56823
56824         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56825         sys/time.h here, reverting that part of the previous patch:
56826         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56827
56828 2007-01-28  Bruno Haible  <bruno@clisp.org>
56829
56830         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56831         value of $(SYS_TIME_H).
56832         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56833         remove it conditionally, too. [added by Jim Meyering]
56834         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56835         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56836         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56837         GETTIMEOFDAY_REPLACEMENT to 1.
56838
56839 2007-01-28  Bruno Haible  <bruno@clisp.org>
56840
56841         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56842         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56844         Set UNISTD_H instead of UNISTD_H2.
56845         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56846
56847 2007-01-28  Bruno Haible  <bruno@clisp.org>
56848
56849         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56850         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56851
56852 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56853
56854         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56855         (func_create_testdir): Ensure C locale for `grep' and `tr'
56856         character ranges.
56857         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56858         ACLOCAL_AMFLAGS parsing state machine.
56859
56860 2007-01-27  Bruno Haible  <bruno@clisp.org>
56861
56862         * modules/unistr/base: Update.
56863
56864 2007-01-27  Bruno Haible  <bruno@clisp.org>
56865
56866         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56867         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56868         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56869         modules/unistr/u32-mbtouc.
56870         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56871         * lib/unistr.h: Update.
56872         * lib/linebreak.c: Update.
56873         * modules/unistr/u32-mbtouc: Renamed from
56874         modules/unistr/u32-mbtouc-safe.
56875         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56876         * lib/unistr.h: Update.
56877         * lib/unistr/u32-to-u8.c: Update.
56878         * lib/unistr/u32-to-u16.c: Update.
56879
56880 2007-01-27  Bruno Haible  <bruno@clisp.org>
56881
56882         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56883         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56884         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56885         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56886         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56887         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56888         modules/unistr/u16-mbtouc.
56889         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56890         * lib/unistr.h: Update.
56891         * lib/linebreak.c: Update.
56892         * modules/linebreak: Update.
56893         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56894         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56895         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56896         * modules/unistr/u16-mbtouc: Renamed from
56897         modules/unistr/u16-mbtouc-safe.
56898         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56899         * lib/unistr.h: Update.
56900         * lib/unistr/u16-to-u8.c: Update.
56901         * modules/unistr/u16-to-u8: Update.
56902         * lib/unistr/u16-to-u32.c: Update.
56903         * modules/unistr/u16-to-u32: Update.
56904
56905 2007-01-27  Bruno Haible  <bruno@clisp.org>
56906
56907         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56908         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56909         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56910         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56911         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56912         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56913         modules/unistr/u8-mbtouc.
56914         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56915         * lib/unistr.h: Update.
56916         * lib/striconveh.c: Update.
56917         * modules/striconveh: Update.
56918         * lib/linebreak.c: Update.
56919         * modules/linebreak: Update.
56920         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56921         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56922         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56923         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56924         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56925         * lib/unistr.h: Update.
56926         * lib/striconveh.c: Update.
56927         * modules/striconveh: Update.
56928         * lib/unistr/u8-to-u16.c: Update.
56929         * modules/unistr/u8-to-u16: Update.
56930         * lib/unistr/u8-to-u32.c: Update.
56931         * modules/unistr/u8-to-u32: Update.
56932
56933 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56934
56935         Sync from Libtool.
56936         * lib/argz.c: Do not include strings.h nor memory.h, include
56937         string.h unconditionally.  Patch by Simon Josefsson.
56938
56939 2007-01-27  Bruno Haible  <bruno@clisp.org>
56940
56941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56942         from gl_HEADER_STRING_H_BODY.
56943         (gl_HEADER_STRING_H_BODY): Require it.
56944         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56945         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56946         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56947         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56948         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56949         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56950         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56951         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56952         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56953         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56954         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56955         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56956         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56957         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56958         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56959
56960 2007-01-27  Bruno Haible  <bruno@clisp.org>
56961
56962         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56963         check_PROGRAMS into noinst_PROGRAMS.
56964         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56965         check_PROGRAMS in this case.
56966         (func_import): Set for_test to false.
56967         (func_create_testdir): Set for_test to true.
56968
56969 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56970             Bruno Haible  <bruno@clisp.org>
56971
56972         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56973         (Depends-on): Add string.
56974         (Includes): Use <string.h> instead of strcasestr.h.
56975         * modules/string (Makefile.am): Also substitute the value of
56976         REPLACE_STRCASESTR.
56977         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56978         assume strcasestr is declared in <string.h> not <strings.h>. Also
56979         set REPLACE_STRCASESTR.
56980         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56981         REPLACE_STRCASESTR.
56982         * lib/strcasestr.h: Remove file.
56983         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56984         * lib/string_.h (strcasestr): New declaration.
56985
56986 2007-01-27  Bruno Haible  <bruno@clisp.org>
56987
56988         * lib/string_.h: Use 'extern'.
56989
56990 2007-01-27  Jim Meyering  <jim@meyering.net>
56991
56992         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56993         of set-but-not-used local, "q".
56994
56995         * lib/mempcpy.c: Include <config.h> before <string.h>.
56996         This fixes a compilation error on HP-UX, due to the system's
56997         "restrict"-using mempcpy prototype.
56998
56999 2007-01-26  Bruno Haible  <bruno@clisp.org>
57000
57001         Small optimization.
57002         * lib/javacomp.c: Include c-strstr.h.
57003          (is_envjavac_gcj): Use c_strstr instead of strstr.
57004         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57005
57006 2007-01-26  Bruno Haible  <bruno@clisp.org>
57007
57008         * MODULES.html.sh (Unicode string functions): Add the new modules.
57009
57010         * modules/uniconv/u32-strconv-to-locale: New file.
57011         * lib/uniconv/u32-strconv-to-locale.c: New file.
57012
57013         * modules/uniconv/u16-strconv-to-locale: New file.
57014         * lib/uniconv/u16-strconv-to-locale.c: New file.
57015
57016         * modules/uniconv/u8-strconv-to-locale: New file.
57017         * lib/uniconv/u8-strconv-to-locale.c: New file.
57018
57019         * modules/uniconv/u32-strconv-from-locale: New file.
57020         * lib/uniconv/u32-strconv-from-locale.c: New file.
57021
57022         * modules/uniconv/u16-strconv-from-locale: New file.
57023         * lib/uniconv/u16-strconv-from-locale.c: New file.
57024
57025         * modules/uniconv/u8-strconv-from-locale: New file.
57026         * lib/uniconv/u8-strconv-from-locale.c: New file.
57027
57028         * modules/uniconv/u32-strconv-to-enc: New file.
57029         * lib/uniconv/u32-strconv-to-enc.c: New file.
57030         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57031         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57032
57033         * modules/uniconv/u16-strconv-to-enc: New file.
57034         * lib/uniconv/u16-strconv-to-enc.c: New file.
57035         * lib/uniconv/u-strconv-to-enc.h: New file.
57036         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57037         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57038
57039         * modules/uniconv/u8-strconv-to-enc: New file.
57040         * lib/uniconv/u8-strconv-to-enc.c: New file.
57041         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57042         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57043
57044         * modules/uniconv/u32-strconv-from-enc: New file.
57045         * lib/uniconv/u32-strconv-from-enc.c: New file.
57046         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57047         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57048
57049         * modules/uniconv/u16-strconv-from-enc: New file.
57050         * lib/uniconv/u16-strconv-from-enc.c: New file.
57051         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57052         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57053
57054         * modules/uniconv/u8-strconv-from-enc: New file.
57055         * lib/uniconv/u8-strconv-from-enc.c: New file.
57056         * lib/uniconv/u-strconv-from-enc.h: New file.
57057         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57058         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57059
57060         * modules/uniconv/u32-conv-from-enc: New file.
57061         * lib/uniconv/u32-conv-from-enc.c: New file.
57062         * modules/uniconv/u32-conv-from-enc-tests: New file.
57063         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57064
57065         * modules/uniconv/u16-conv-from-enc: New file.
57066         * lib/uniconv/u16-conv-from-enc.c: New file.
57067         * lib/uniconv/u-conv-from-enc.h: New file.
57068         * modules/uniconv/u16-conv-from-enc-tests: New file.
57069         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57070
57071         * modules/uniconv/u8-conv-from-enc: New file.
57072         * lib/uniconv/u8-conv-from-enc.c: New file.
57073         * modules/uniconv/u8-conv-from-enc-tests: New file.
57074         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57075
57076         * modules/uniconv/base: New file.
57077         * lib/uniconv.h: New file.
57078
57079 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57080
57081         * doc/gnulib-tool.texi (Initial import): Update to match current
57082         behavior with strdup module.
57083         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57084         * lib/memmem.h: Remove; all uses removed.  This is now done
57085         by <string.h>.
57086         * lib/mempcpy.h: Likewise.
57087         * lib/memrchr.h: Likewise.
57088         * lib/stpcpy.h: Likewise.
57089         * lib/stpncpy.h: Likewise.
57090         * lib/strcase.h: Likewise.
57091         * lib/strchrnul.h: Likewise.
57092         * lib/strdup.h: Likewise.
57093         * lib/strndup.h: Likewise.
57094         * lib/strnlen.h: Likewise.
57095         * lib/strpbrk.h: Likewise.
57096         * lib/strsep.h: Likewise.
57097         * lib/strstr.h: Likewise.
57098         * lib/strtok_r.h: Likewise.
57099         * lib/string_.h: New file.
57100         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57101         Rely on <string.h> instead.
57102         * lib/canon-host.c: Likewise.
57103         * lib/chdir-long.c: Likewise.
57104         * lib/concatpath.c: Likewise.
57105         * lib/exclude.c: Likewise.
57106         * lib/fchdir.c: Likewise.
57107         * lib/getaddrinfo.c: Likewise.
57108         * lib/getcwd.c: Likewise.
57109         * lib/getsubopt.c: Likewise.
57110         * lib/glob.c: Likewise.
57111         * lib/hard-locale.c: Likewise.
57112         * lib/iconvme.c: Likewise.
57113         * lib/javacomp.c: Likewise.
57114         * lib/mempcpy.c: Likewise.
57115         * lib/memrchr.c: Likewise.
57116         * lib/regex_internal.h: Likewise.
57117         * lib/stpncpy.c: Likewise.
57118         * lib/strcasecmp.c: Likewise.
57119         * lib/strchrnul.c: Likewise.
57120         * lib/strdup.c: Likewise.
57121         * lib/striconv.c: Likewise.
57122         * lib/striconveh.c: Likewise.
57123         * lib/striconveha.c: Likewise.
57124         * lib/strncasecmp.c: Likewise.
57125         * lib/strndup.c: Likewise.
57126         * lib/strnlen.c: Likewise.
57127         * lib/strsep.c: Likewise.
57128         * lib/strstr.c: Likewise.
57129         * lib/strtok_r.c: Likewise.
57130         * lib/userspec.c: Likewise.
57131         * lib/w32spawn.h: Likewise.
57132         * lib/xstrndup.c: Likewise.
57133         * lib/mountlist.c (strstr): Remove decl.
57134         * m4/string_h.m4: New file.
57135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57136         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57137         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57138         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57139         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57140         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57141         Set REPLACE_STRCASECMP if necessary.
57142         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57143         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57144         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57145         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57146         HAVE_DECL_STRDUP if necessary.
57147         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57148         since gl_FUNC_STRNDUP does that now.
57149         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57150         Check for decl here...
57151         (gl_PREREQ_STRNLEN): ... not here.
57152         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57153         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57154         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57155         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57156         necessary.
57157         * modules/string: New file.
57158         * modules/memmem (Files): Remove special-purpose include file.
57159         (Depends-on): Add string.
57160         (Include): Include <string.h>, not the removed file.
57161         * modules/mempcpy: Likewise.
57162         * modules/memrchr: Likewise.
57163         * modules/stpcpy: Likewise.
57164         * modules/stpncpy: Likewise.
57165         * modules/strcase: Likewise.
57166         * modules/strchrnul: Likewise.
57167         * modules/strdup: Likewise.
57168         * modules/strndup: Likewise.
57169         * modules/strnlen: Likewise.
57170         * modules/strpbrk: Likewise.
57171         * modules/strsep: Likewise.
57172         * modules/strstr: Likewise.
57173         * modules/strtok_r: Likewise.
57174         * tests/test-dirname.c: Don't include "strdup.h", since
57175         <string.h> now suffices.
57176         * tests/test-memmem.c: Don't include "memmem.h", since
57177         <string.h> now suffices.
57178
57179 2007-01-25  Bruno Haible  <bruno@clisp.org>
57180
57181         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57182         *resultp is 0.
57183
57184         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57185         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57186         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57187         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57188
57189         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57190         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57191         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57192         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57193         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57194         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57195
57196 2007-01-24  Bruno Haible  <bruno@clisp.org>
57197
57198         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57199         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57200         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57201         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57202         gl_FUNC_FTS_CORE.
57203         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57204         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57205         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57206         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57207         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57208         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57209         gl_FUNC_FCHOWNAT.
57210         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57211         gl_FUNC_STRFTIME.
57212         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57213         Reported by Ralf Wildenhues.
57214
57215 2007-01-24  Bruno Haible  <bruno@clisp.org>
57216
57217         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57218         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57219         gl_GETADDRINFO.
57220         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57221         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57222         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57223
57224 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57225
57226         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57227         Don't use 'exit'; just return from 'main'.
57228         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57229
57230         * lib/fnmatch_.h: Readjust white space and comments to match
57231         glibc, to avoid spurious diffs.
57232
57233 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57234
57235         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57236         2004-12-01 change by Jakub Jelinek, since this code won't compile
57237         if !LIBC.  Problem reported by Bob Proulx.
57238
57239 2007-01-23  Bruno Haible  <bruno@clisp.org>
57240
57241         * lib/striconveh.c: Include c-strcaseeq.h.
57242         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57243         * modules/striconveh (Depends-on): Add c-strcaseeq.
57244
57245 2007-01-23  Bruno Haible  <bruno@clisp.org>
57246
57247         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57248
57249         * modules/c-strcaseeq: New file.
57250         * lib/c-strcaseeq.h: New file.
57251
57252         * modules/streq: New file.
57253         * lib/streq.h: New file.
57254
57255 2007-01-23  Bruno Haible  <bruno@clisp.org>
57256
57257         * modules/striconveha-tests: New file.
57258         * tests/test-striconveha.c: New file.
57259
57260         * lib/striconveha.h: Include <stdbool.h>.
57261         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57262         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57263         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57264         (mem_iconveha): New function.
57265         (str_iconveha_notranslit): Renamed from str_iconveha.
57266         (str_iconveha): New function.
57267         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57268         c-strcase.
57269
57270 2007-01-23  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57273         encodings without forgiving before trying any encoding with handler.
57274         (str_iconveha): Try all encodings without forgiving before trying any
57275         encoding with handler.
57276
57277 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57278
57279         Import the following changes from libc.
57280
57281         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57282
57283         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57284
57285         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57286
57287         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57288         normal_bracket label.
57289
57290         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57291
57292         [BZ #361]
57293         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57294         to normal_bracket after fetching the next character.
57295
57296 2007-01-22  Bruno Haible  <bruno@clisp.org>
57297
57298         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57299         argument.
57300         * lib/striconveh.c (iconv_carefully_1): New function.
57301         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57302         argument.
57303         (str_cd_iconveh): Update.
57304         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57305         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57306         * tests/test-striconveh.c (MAGIC): New macro.
57307         (new_offsets): New function.
57308         (main): Test call with and without offsets.
57309
57310 2007-01-22  Bruno Haible  <bruno@clisp.org>
57311
57312         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57313         * modules/sys_select (Makefile.am): Likewise.
57314         * modules/sys_socket (Makefile.am): Likewise.
57315         * modules/sys_time (Makefile.am): Likewise.
57316
57317 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57318
57319         * modules/gettimeofday (License): Change from GPL to LGPL, since
57320         gettimeofday is a library function.
57321
57322 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57323
57324         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57325
57326 2007-01-21  Bruno Haible  <bruno@clisp.org>
57327
57328         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57329
57330 2007-01-21  Bruno Haible  <bruno@clisp.org>
57331
57332         * modules/striconveha: New file.
57333         * lib/striconveha.h: New file.
57334         * lib/striconveha.c: New file.
57335         * MODULES.html.sh (Internationalization functions): Add striconveha.
57336         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57337         string.
57338         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57339
57340 2007-01-21  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57343         * lib/striconveh.c (str_iconveh): Likewise.
57344
57345 2007-01-21  Bruno Haible  <bruno@clisp.org>
57346
57347         * lib/striconveh.h (mem_iconveh): New declaration.
57348         * lib/striconveh.c (mem_iconveh): New function.
57349         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57350
57351 2007-01-21  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57354
57355         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57356         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57357         original result buffer.
57358         (str_cd_iconveh): Update.
57359         * tests/test-striconveh.c (main): Update.
57360
57361         * lib/striconv.h (mem_cd_iconv): Change specification.
57362         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57363         result buffer.
57364         (str_cd_iconv): Update.
57365         * tests/test-striconv.c (main): Update.
57366
57367 2007-01-21  Bruno Haible  <bruno@clisp.org>
57368
57369         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57370
57371 2007-01-20  Jim Meyering  <jim@meyering.net>
57372
57373         * lib/userspec.c (parse_with_separator): If a user or group string
57374         starts with "+", skip the corresponding name-to-ID look-up, since
57375         such a look-up must fail: user and group names may not include "+".
57376
57377 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57378
57379         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57380         since we now assume the sys_time module.
57381         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57382         check for sys/time.h; no longer needed.
57383         * modules/poll (Depends-on): Depend on sys_time.
57384
57385 2007-01-18  Bruno Haible  <bruno@clisp.org>
57386
57387         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57388         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57389
57390         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57391         gettimeofday.
57392
57393         * tests/test-gettimeofday.c: Include <time.h>.
57394         (dummy): Remove variable.
57395
57396         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57397         gl_HEADER_SYS_TIME_H.
57398         (gl_HEADER_SYS_TIME_H): New macro.
57399
57400         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57401         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57402         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57403         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57404         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57405         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57406         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57407         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57408         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57409         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57410         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57411
57412         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57413         last change; it caused a compilation error when cross-compiling to
57414         Cygwin.
57415
57416 2007-01-18  Jim Meyering  <jim@meyering.net>
57417
57418         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57419         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57420         than the race-prone "test -d sys || mkdir sys".
57421         (configure.ac): Use AC_PROG_MKDIR_P.
57422         * modules/sys_select: Likewise.
57423         * modules/sys_socket: Likewise.
57424         * modules/sys_time: Likewise.
57425
57426 2007-01-18  Eric Blake  <ebb9@byu.net>
57427
57428         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57429         replace gettimeofday.
57430         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57431         name, to avoid infinite recursion.
57432
57433 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57436         module sys_time.
57437         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57438         assume timespec.h defines struct timeval.
57439         * lib/settime.c: Likewise.
57440         * lib/utimens.c: Likewise.
57441         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57442         since we now assume the gettimeofday module.
57443         * lib/tempname.c (__gen_tempname): Likewise.
57444         * lib/gettimeofday.h: Remove.
57445         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57446         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57447         Include <time.h>, for 'time()'.
57448         (localtime_buffer_addr): Also use this workaround if
57449         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57450         to simplify the uses.  All uses changed.
57451         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57452         that #undef is inside {}, and 'const' follows type name consistently.
57453         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57454         (gettimeofday): Do not use the maximum possible value for
57455         tv->tv_usec, since that might break usages other than ls.c.
57456         Instead, we'll leave ls.c alone.  This undoes today's patch
57457         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57458         we've never observed the problem but might as well keep the
57459         canary.
57460         * lib/nanosleep.c: Include timespec.h first, for interface check.
57461         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57462         now assume the sys_time module.
57463         * lib/tempname.c: Likewise.
57464         * lib/timespec.h: Likewise.
57465         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57466         needed.
57467         * lib/strftime.c: Likewise.
57468         * lib/timespec.h: Likewise.
57469         * lib/posixtm.c: Include posixtm.h first, for interface check.
57470         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57471         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57472         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57473         * lib/sys_time_.h: New file.
57474         * lib/timespec.h (struct timespec): Use long int, not long.
57475         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57476         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57477         Remove obsolescent call to AC_HEADER_TIME.
57478         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57480         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57481         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57482         Likewise.
57483         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57484         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57485         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57486         into the sys_time module.  Check for gettimeofday just once.
57487         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57488         for gettimeofday signature to just check the signature.  Merely
57489         compile it, since linking doesn't test signature.  Improve test for
57490         whether gettimeofday.o is actually needed.
57491         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57492         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57493         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57494         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57495         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57496         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57497         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57498         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57499         than worrying about sys/time.h.
57500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57501         Don't bother worrying about TIME_WITH_SYS_TIME.
57502         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57503         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57504         * m4/sys_time_h.m4: New file.
57505         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57506         Don't include sys/time.h.  Return from main rather than exiting.
57507         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57508         all uses changed.
57509         * modules/gethrxtime (Depends-on): Add sys_time.
57510         * modules/gettime (Depends-on): Likewise.
57511         * modules/gettimeofday (Depends-on): Likewise.
57512         * modules/nanosleep (Depends-on): Likewise.
57513         * modules/settime (Depends-on): Likewise.
57514         * modules/tempname (Depends-on): Likewise.
57515         * modules/utimens (Depends-on): Likewise.
57516         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57517         (Include): Change back to <sys/time.h>.
57518         (Maintainer): Add self.
57519         * modules/sys_time: New file.
57520         * modules/tempname (Depends-on): Add gettimeofday.
57521         * tests/test-gettimeofday.c: Include <sys/time.h>
57522         rather than gettimeofday.h.
57523
57524 2007-01-17  Bruno Haible  <bruno@clisp.org>
57525
57526         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57527         the license default to GPL.
57528         (func_create_testdir): Don't complain if a module is LGPL and its
57529         tests module depends on GPLed modules.
57530
57531 2007-01-17  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/gettimeofday.c (gettimeofday): Add code for the case
57534         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57535         maximum possible value for tv->tv_usec, rather than the minimum one.
57536
57537 2005-10-08  Martin Lambers  <marlam@marlam.de>
57538 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57539 2007-01-16  Bruno Haible  <bruno@clisp.org>
57540
57541         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57542         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57543         gl_FUNC_GETTIMEOFDAY.
57544         (Include): Add gettimeofday.h.
57545         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57546         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57547         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57548         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57549         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57550         * lib/gettimeofday.h: New file.
57551         * lib/gettimeofday.c: Include <sys/timeb.h>.
57552         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57553         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57554         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57555         fall back on time().
57556
57557         * tests/test-gettimeofday.c: New file.
57558         * modules/gettimeofday-tests: New file.
57559
57560 2007-01-16  Eric Blake  <ebb9@byu.net>
57561
57562         * modules/fnmatch (Depends-on): Depend on wchar.
57563         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57564         * m4/fnmatch.m4: Likewise.
57565         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57566         * m4/mbchar.m4: Likewise.
57567         * modules/mbswidth (Depends-on): Depend on wchar.
57568         * lib/mbswidth.c: Assume <wchar.h>.
57569         * m4/mbswidth.m4: Likewise.
57570         * modules/quotearg (Depends-on): Depend on wchar.
57571         * lib/quotearg.c: Assume <wchar.h>.
57572         * m4/quotearg.m4: Likewise.
57573         * modules/regex (Depends-on): Depend on wchar.
57574         * lib/regex_internal.h: Assume <wchar.h>.
57575         * m4/regex.m4: Likewise.
57576         * modules/stdint (Depends-on): Depend on wchar.
57577         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57578         * m4/stdint.m4: Likewise.
57579         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57580         * modules/strftime (Depends-on): Depend on wchar.
57581         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57582         * modules/strtol (Depends-on): Depend on wchar.
57583         * lib/strtol.c: Assume <wchar.h>.
57584         * modules/wcwidth (Depends-on): Depend on wchar.
57585         * lib/wcwidth.h: Assume <wchar.h>.
57586         * m4/wcwidth.m4: Likewise.
57587
57588 2007-01-16  Bruno Haible  <bruno@clisp.org>
57589
57590         * modules/csharpexec-script: New, created from...
57591         * modules/csharpexec: ... this.
57592
57593 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57594
57595         * modules/javaexec-script: New, created from...
57596         * modules/javaexec: ... this.
57597
57598 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57599
57600         * modules/poll (Dependencies): Add sys_select.
57601
57602 2007-01-15  Jim Meyering  <jim@meyering.net>
57603
57604         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57605         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57606         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57607         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57608
57609 2007-01-15  Bruno Haible  <bruno@clisp.org>
57610
57611         * modules/striconveh: New file.
57612         * lib/striconveh.h: New file.
57613         * lib/striconveh.c: New file.
57614         * MODULES.html.sh (Internationalization functions): Add striconveh.
57615
57616         * modules/striconveh-tests: New file.
57617         * tests/test-striconveh.c: New file.
57618
57619 2007-01-15  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57622         not from GNU libiconv or GNU libc.
57623
57624 2007-01-15  Bruno Haible  <bruno@clisp.org>
57625
57626         * doc/gnulib-intro.texi (Copyright): Explain the different license
57627         terms for module descriptions, autoconf macros, tests, documentation.
57628
57629 2007-01-14  Bruno Haible  <bruno@clisp.org>
57630
57631         * modules/striconv-tests: New file.
57632         * tests/test-striconv.c: New file.
57633
57634 2007-01-14  Bruno Haible  <bruno@clisp.org>
57635
57636         * modules/iconv-tests: New file.
57637         * tests/test-iconv.c: New file.
57638
57639 2007-01-14  Bruno Haible  <bruno@clisp.org>
57640
57641         * gnulib-tool (func_get_license): For test modules, use the license of
57642         the main module.
57643
57644 2007-01-14  Bruno Haible  <bruno@clisp.org>
57645
57646         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57647         if iconv is found to exist.
57648
57649 2007-01-14  Bruno Haible  <bruno@clisp.org>
57650
57651         * modules/c-ctype-tests: New file.
57652         * tests/test-c-ctype.c: New file.
57653
57654 2007-01-14  Bruno Haible  <bruno@clisp.org>
57655
57656         * modules/binary-io-tests: New file.
57657         * tests/test-binary-io.sh: New file.
57658         * tests/test-binary-io.c: New file.
57659
57660 2007-01-14  Bruno Haible  <bruno@clisp.org>
57661
57662         * modules/array-oset-tests: New file.
57663         * tests/test-array_oset.c: New file.
57664
57665 2007-01-14  Bruno Haible  <bruno@clisp.org>
57666
57667         * modules/array-list-tests: New file.
57668         * tests/test-array_list.c: New file.
57669
57670 2007-01-14  Bruno Haible  <bruno@clisp.org>
57671
57672         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57673         and make.
57674         Reported by Simon Josefsson in
57675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57676
57677 2007-01-14  Bruno Haible  <bruno@clisp.org>
57678
57679         * modules/allocsa-tests: New file.
57680         * tests/test-allocsa.c: New file.
57681
57682 2007-01-14  Bruno Haible  <bruno@clisp.org>
57683
57684         * modules/fchdir (Depends-on): Add absolute-header.
57685         * modules/unistd (Depends-on): Likewise.
57686
57687 2006-12-30  Bruno Haible  <bruno@clisp.org>
57688
57689         * modules/fchdir: New file.
57690         * modules/unistd (Files): Add lib/unistd_.h.
57691         (Makefile.am): Generate unistd.h from unistd_.h.
57692         * lib/fchdir.c: New file.
57693         * lib/dirent_.h: New file.
57694         * lib/unistd_.h: New file.
57695         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57696         * m4/fchdir.m4: New file.
57697         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57698         (gl_HEADER_UNISTD): Invoke it.
57699         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57700         function.
57701         * lib/backupfile.c (opendir, closedir): Undefine.
57702         * lib/chown.c (open, close): Undefine.
57703         * lib/clean-temp.c (open, close): Undefine.
57704         * lib/copy-file.c (open, close): Undefine.
57705         * lib/execute.c (open, close): Undefine.
57706         * lib/fsusage.c (open, close): Undefine.
57707         * lib/gc-gnulib.c (open, close): Undefine.
57708         * lib/getcwd.c (opendir, closedir): Undefine.
57709         * lib/glob.c (opendir, closedir): Undefine.
57710         * lib/javacomp.c (open, close): Undefine.
57711         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57712         * lib/openat-proc.c (open, close): Undefine.
57713         * lib/pagealign_alloc.c (open, close): Undefine.
57714         * lib/pipe.c (open, close): Undefine.
57715         * lib/progreloc.c (open, close): Undefine.
57716         * lib/savedir.c (opendir, closedir): Undefine.
57717         * lib/utime.c (open, close): Undefine.
57718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57719
57720 2007-01-10  Bruno Haible  <bruno@clisp.org>
57721
57722         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57723
57724 2007-01-12  Eric Blake  <ebb9@byu.net>
57725
57726         Provide a robust <wchar.h>.  Further simplifications are now
57727         possible in other modules, but not included here.
57728         * modules/wchar: New module.
57729         * m4/wchar.m4: New file.
57730         * lib/wchar_.h: Likewise.
57731         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57732         of the new module.
57733         * MODULES.html.sh (Extended multibyte and wide character utilities):
57734         New section.
57735
57736 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57737
57738         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57739         to a reasonable default for memory allocation.
57740         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57741         file system that reports garbage st_size values for symlinks.
57742         Problem reported by Liyang Hu.
57743
57744 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57745
57746         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57747         Emacs .#* auto-save files).
57748
57749 2007-01-11  Bruno Haible  <bruno@clisp.org>
57750
57751         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57752         directory.
57753
57754 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57755
57756         Use @...@ consistently in lib/wctype_.h.
57757         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57758         on it being set to 1 or 0.
57759         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57760         go back to AC_SUBSTing it.
57761         * modules/wctype (Makefile.am): Undo previous change.
57762
57763 2007-01-10  Eric Blake  <ebb9@byu.net>
57764
57765         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57766         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57767         * modules/wctype (Makefile.am): Likewise.
57768         Reported by Chris McGuire.
57769
57770 2007-01-10  Jim Meyering  <jim@meyering.net>
57771
57772         fts.c: a small readability/maintainability improvement
57773         * lib/fts.c (fts_read): Make this code slightly more readable and
57774         maintainable by hoisting the "sp->fts_cur = p" assignments to
57775         immediately follow the statements that set P.  Derived from
57776         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57777
57778 2007-01-10  Eric Blake  <ebb9@byu.net>
57779
57780         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57781         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57783         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57784         Reported by Chris McGuire.
57785
57786 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57787
57788         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57789         in sed script.
57790
57791 2007-01-09  Bruno Haible  <bruno@clisp.org>
57792
57793         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57794         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57795         variables.
57796         (func_module): Use them.
57797
57798 2007-01-09  Bruno Haible  <bruno@clisp.org>
57799
57800         * modules/unistr/base: New file.
57801         * lib/unistr.h: New file.
57802
57803         * modules/unistr/u8-to-u16: New file.
57804         * lib/unistr/u8-to-u16.c: New file.
57805
57806         * modules/unistr/u8-to-u32: New file.
57807         * lib/unistr/u8-to-u32.c: New file.
57808
57809         * modules/unistr/u16-to-u8: New file.
57810         * lib/unistr/u16-to-u8.c: New file.
57811
57812         * modules/unistr/u16-to-u32: New file.
57813         * lib/unistr/u16-to-u32.c: New file.
57814
57815         * modules/unistr/u32-to-u8: New file.
57816         * lib/unistr/u32-to-u8.c: New file.
57817
57818         * modules/unistr/u32-to-u16: New file.
57819         * lib/unistr/u32-to-u16.c: New file.
57820
57821         * modules/unistr/u8-check: New file.
57822         * modules/unistr/u16-check: New file.
57823         * modules/unistr/u32-check: New file.
57824         * lib/unistr/u8-check.c: New file.
57825         * lib/unistr/u16-check.c: New file.
57826         * lib/unistr/u32-check.c: New file.
57827
57828         * modules/unistr/u8-chr: New file.
57829         * modules/unistr/u16-chr: New file.
57830         * modules/unistr/u32-chr: New file.
57831         * lib/unistr/u8-chr.c: New file.
57832         * lib/unistr/u16-chr.c: New file.
57833         * lib/unistr/u32-chr.c: New file.
57834
57835         * modules/unistr/u8-cmp: New file.
57836         * modules/unistr/u16-cmp: New file.
57837         * modules/unistr/u32-cmp: New file.
57838         * lib/unistr/u8-cmp.c: New file.
57839         * lib/unistr/u16-cmp.c: New file.
57840         * lib/unistr/u32-cmp.c: New file.
57841
57842         * modules/unistr/u8-cpy: New file.
57843         * modules/unistr/u16-cpy: New file.
57844         * modules/unistr/u32-cpy: New file.
57845         * lib/unistr/u8-cpy.c: New file.
57846         * lib/unistr/u16-cpy.c: New file.
57847         * lib/unistr/u32-cpy.c: New file.
57848         * lib/unistr/u-cpy.h: New file.
57849
57850         * modules/unistr/u8-cpy-alloc: New file.
57851         * modules/unistr/u16-cpy-alloc: New file.
57852         * modules/unistr/u32-cpy-alloc: New file.
57853         * lib/unistr/u8-cpy-alloc.c: New file.
57854         * lib/unistr/u16-cpy-alloc.c: New file.
57855         * lib/unistr/u32-cpy-alloc.c: New file.
57856         * lib/unistr/u-cpy-alloc.h: New file.
57857
57858         * modules/unistr/u8-endswith: New file.
57859         * modules/unistr/u16-endswith: New file.
57860         * modules/unistr/u32-endswith: New file.
57861         * lib/unistr/u8-endswith.c: New file.
57862         * lib/unistr/u16-endswith.c: New file.
57863         * lib/unistr/u32-endswith.c: New file.
57864         * lib/unistr/u-endswith.h: New file.
57865
57866         * modules/unistr/u8-mblen: New file.
57867         * modules/unistr/u16-mblen: New file.
57868         * modules/unistr/u32-mblen: New file.
57869         * lib/unistr/u8-mblen.c: New file.
57870         * lib/unistr/u16-mblen.c: New file.
57871         * lib/unistr/u32-mblen.c: New file.
57872
57873         * modules/unistr/u8-mbtouc: New file.
57874         * modules/unistr/u16-mbtouc: New file.
57875         * modules/unistr/u32-mbtouc: New file.
57876         * lib/unistr/u8-mbtouc.c: New file.
57877         * lib/unistr/u16-mbtouc.c: New file.
57878         * lib/unistr/u32-mbtouc.c: New file.
57879
57880         * modules/unistr/u8-mbtouc-safe: New file.
57881         * modules/unistr/u16-mbtouc-safe: New file.
57882         * modules/unistr/u32-mbtouc-safe: New file.
57883         * lib/unistr/u8-mbtouc-safe.c: New file.
57884         * lib/unistr/u16-mbtouc-safe.c: New file.
57885         * lib/unistr/u32-mbtouc-safe.c: New file.
57886
57887         * modules/unistr/u8-move: New file.
57888         * modules/unistr/u16-move: New file.
57889         * modules/unistr/u32-move: New file.
57890         * lib/unistr/u8-move.c: New file.
57891         * lib/unistr/u16-move.c: New file.
57892         * lib/unistr/u32-move.c: New file.
57893         * lib/unistr/u-move.h: New file.
57894
57895         * modules/unistr/u8-next: New file.
57896         * modules/unistr/u16-next: New file.
57897         * modules/unistr/u32-next: New file.
57898         * lib/unistr/u8-next.c: New file.
57899         * lib/unistr/u16-next.c: New file.
57900         * lib/unistr/u32-next.c: New file.
57901
57902         * modules/unistr/u8-prev: New file.
57903         * modules/unistr/u16-prev: New file.
57904         * modules/unistr/u32-prev: New file.
57905         * lib/unistr/u8-prev.c: New file.
57906         * lib/unistr/u16-prev.c: New file.
57907         * lib/unistr/u32-prev.c: New file.
57908
57909         * modules/unistr/u8-set: New file.
57910         * modules/unistr/u16-set: New file.
57911         * modules/unistr/u32-set: New file.
57912         * lib/unistr/u8-set.c: New file.
57913         * lib/unistr/u16-set.c: New file.
57914         * lib/unistr/u32-set.c: New file.
57915         * lib/unistr/u-set.h: New file.
57916
57917         * modules/unistr/u8-startswith: New file.
57918         * modules/unistr/u16-startswith: New file.
57919         * modules/unistr/u32-startswith: New file.
57920         * lib/unistr/u8-startswith.c: New file.
57921         * lib/unistr/u16-startswith.c: New file.
57922         * lib/unistr/u32-startswith.c: New file.
57923         * lib/unistr/u-startswith.h: New file.
57924
57925         * modules/unistr/u8-stpcpy: New file.
57926         * modules/unistr/u16-stpcpy: New file.
57927         * modules/unistr/u32-stpcpy: New file.
57928         * lib/unistr/u8-stpcpy.c: New file.
57929         * lib/unistr/u16-stpcpy.c: New file.
57930         * lib/unistr/u32-stpcpy.c: New file.
57931         * lib/unistr/u-stpcpy.h: New file.
57932
57933         * modules/unistr/u8-stpncpy: New file.
57934         * modules/unistr/u16-stpncpy: New file.
57935         * modules/unistr/u32-stpncpy: New file.
57936         * lib/unistr/u8-stpncpy.c: New file.
57937         * lib/unistr/u16-stpncpy.c: New file.
57938         * lib/unistr/u32-stpncpy.c: New file.
57939         * lib/unistr/u-stpncpy.h: New file.
57940
57941         * modules/unistr/u8-strcat: New file.
57942         * modules/unistr/u16-strcat: New file.
57943         * modules/unistr/u32-strcat: New file.
57944         * lib/unistr/u8-strcat.c: New file.
57945         * lib/unistr/u16-strcat.c: New file.
57946         * lib/unistr/u32-strcat.c: New file.
57947         * lib/unistr/u-strcat.h: New file.
57948
57949         * modules/unistr/u8-strchr: New file.
57950         * modules/unistr/u16-strchr: New file.
57951         * modules/unistr/u32-strchr: New file.
57952         * lib/unistr/u8-strchr.c: New file.
57953         * lib/unistr/u16-strchr.c: New file.
57954         * lib/unistr/u32-strchr.c: New file.
57955
57956         * modules/unistr/u8-strcmp: New file.
57957         * modules/unistr/u16-strcmp: New file.
57958         * modules/unistr/u32-strcmp: New file.
57959         * lib/unistr/u8-strcmp.c: New file.
57960         * lib/unistr/u16-strcmp.c: New file.
57961         * lib/unistr/u32-strcmp.c: New file.
57962
57963         * modules/unistr/u8-strcpy: New file.
57964         * modules/unistr/u16-strcpy: New file.
57965         * modules/unistr/u32-strcpy: New file.
57966         * lib/unistr/u8-strcpy.c: New file.
57967         * lib/unistr/u16-strcpy.c: New file.
57968         * lib/unistr/u32-strcpy.c: New file.
57969         * lib/unistr/u-strcpy.h: New file.
57970
57971         * modules/unistr/u8-strcspn: New file.
57972         * modules/unistr/u16-strcspn: New file.
57973         * modules/unistr/u32-strcspn: New file.
57974         * lib/unistr/u8-strcspn.c: New file.
57975         * lib/unistr/u16-strcspn.c: New file.
57976         * lib/unistr/u32-strcspn.c: New file.
57977         * lib/unistr/u-strcspn.h: New file.
57978
57979         * modules/unistr/u8-strdup: New file.
57980         * modules/unistr/u16-strdup: New file.
57981         * modules/unistr/u32-strdup: New file.
57982         * lib/unistr/u8-strdup.c: New file.
57983         * lib/unistr/u16-strdup.c: New file.
57984         * lib/unistr/u32-strdup.c: New file.
57985         * lib/unistr/u-strdup.h: New file.
57986
57987         * modules/unistr/u8-strlen: New file.
57988         * modules/unistr/u16-strlen: New file.
57989         * modules/unistr/u32-strlen: New file.
57990         * lib/unistr/u8-strlen.c: New file.
57991         * lib/unistr/u16-strlen.c: New file.
57992         * lib/unistr/u32-strlen.c: New file.
57993         * lib/unistr/u-strlen.h: New file.
57994
57995         * modules/unistr/u8-strmblen: New file.
57996         * modules/unistr/u16-strmblen: New file.
57997         * modules/unistr/u32-strmblen: New file.
57998         * lib/unistr/u8-strmblen.c: New file.
57999         * lib/unistr/u16-strmblen.c: New file.
58000         * lib/unistr/u32-strmblen.c: New file.
58001
58002         * modules/unistr/u8-strmbtouc: New file.
58003         * modules/unistr/u16-strmbtouc: New file.
58004         * modules/unistr/u32-strmbtouc: New file.
58005         * lib/unistr/u8-strmbtouc.c: New file.
58006         * lib/unistr/u16-strmbtouc.c: New file.
58007         * lib/unistr/u32-strmbtouc.c: New file.
58008
58009         * modules/unistr/u8-strncat: New file.
58010         * modules/unistr/u16-strncat: New file.
58011         * modules/unistr/u32-strncat: New file.
58012         * lib/unistr/u8-strncat.c: New file.
58013         * lib/unistr/u16-strncat.c: New file.
58014         * lib/unistr/u32-strncat.c: New file.
58015         * lib/unistr/u-strncat.h: New file.
58016
58017         * modules/unistr/u8-strncmp: New file.
58018         * modules/unistr/u16-strncmp: New file.
58019         * modules/unistr/u32-strncmp: New file.
58020         * lib/unistr/u8-strncmp.c: New file.
58021         * lib/unistr/u16-strncmp.c: New file.
58022         * lib/unistr/u32-strncmp.c: New file.
58023
58024         * modules/unistr/u8-strncpy: New file.
58025         * modules/unistr/u16-strncpy: New file.
58026         * modules/unistr/u32-strncpy: New file.
58027         * lib/unistr/u8-strncpy.c: New file.
58028         * lib/unistr/u16-strncpy.c: New file.
58029         * lib/unistr/u32-strncpy.c: New file.
58030         * lib/unistr/u-strncpy.h: New file.
58031
58032         * modules/unistr/u8-strnlen: New file.
58033         * modules/unistr/u16-strnlen: New file.
58034         * modules/unistr/u32-strnlen: New file.
58035         * lib/unistr/u8-strnlen.c: New file.
58036         * lib/unistr/u16-strnlen.c: New file.
58037         * lib/unistr/u32-strnlen.c: New file.
58038         * lib/unistr/u-strnlen.h: New file.
58039
58040         * modules/unistr/u8-strpbrk: New file.
58041         * modules/unistr/u16-strpbrk: New file.
58042         * modules/unistr/u32-strpbrk: New file.
58043         * lib/unistr/u8-strpbrk.c: New file.
58044         * lib/unistr/u16-strpbrk.c: New file.
58045         * lib/unistr/u32-strpbrk.c: New file.
58046         * lib/unistr/u-strpbrk.h: New file.
58047
58048         * modules/unistr/u8-strrchr: New file.
58049         * modules/unistr/u16-strrchr: New file.
58050         * modules/unistr/u32-strrchr: New file.
58051         * lib/unistr/u8-strrchr.c: New file.
58052         * lib/unistr/u16-strrchr.c: New file.
58053         * lib/unistr/u32-strrchr.c: New file.
58054
58055         * modules/unistr/u8-strspn: New file.
58056         * modules/unistr/u16-strspn: New file.
58057         * modules/unistr/u32-strspn: New file.
58058         * lib/unistr/u8-strspn.c: New file.
58059         * lib/unistr/u16-strspn.c: New file.
58060         * lib/unistr/u32-strspn.c: New file.
58061         * lib/unistr/u-strspn.h: New file.
58062
58063         * modules/unistr/u8-strstr: New file.
58064         * modules/unistr/u16-strstr: New file.
58065         * modules/unistr/u32-strstr: New file.
58066         * lib/unistr/u8-strstr.c: New file.
58067         * lib/unistr/u16-strstr.c: New file.
58068         * lib/unistr/u32-strstr.c: New file.
58069         * lib/unistr/u-strstr.h: New file.
58070
58071         * modules/unistr/u8-strtok: New file.
58072         * modules/unistr/u16-strtok: New file.
58073         * modules/unistr/u32-strtok: New file.
58074         * lib/unistr/u8-strtok.c: New file.
58075         * lib/unistr/u16-strtok.c: New file.
58076         * lib/unistr/u32-strtok.c: New file.
58077         * lib/unistr/u-strtok.h: New file.
58078
58079         * modules/unistr/u8-uctomb: New file.
58080         * modules/unistr/u16-uctomb: New file.
58081         * modules/unistr/u32-uctomb: New file.
58082         * lib/unistr/u8-uctomb.c: New file.
58083         * lib/unistr/u16-uctomb.c: New file.
58084         * lib/unistr/u32-uctomb.c: New file.
58085
58086         * MODULES.html.sh (Unicode string functions): Add the new modules.
58087
58088 2007-01-08  Bruno Haible  <bruno@clisp.org>
58089
58090         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58091         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58092         subdirectories.
58093
58094 2007-01-08  Karl Berry  <karl@gnu.org>
58095
58096         * doc/error.texi: mention that main() fns must set program_name
58097         when progname is used.
58098
58099 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58102         WCTYPE_H is empty, for the benefit of builds from non-distclean
58103         directories.  Problem reported by Eric Blake in
58104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58105
58106 2007-01-08  Bruno Haible  <bruno@clisp.org>
58107
58108         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58109         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58110         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58111         PROVIDE_CANONICALIZE_FILENAME_MODE.
58112         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58113
58114 2007-01-08  Bruno Haible  <bruno@clisp.org>
58115
58116         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58117         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58118         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58119         * lib/fts.c: Likewise.
58120         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58121
58122 2006-12-25  Bruno Haible  <bruno@clisp.org>
58123
58124         * modules/utf8-ucs4-safe: New file.
58125         * lib/utf8-ucs4-safe.h: New file.
58126         * lib/unistr/utf8-ucs4-safe.c: New file.
58127
58128         * modules/utf16-ucs4-safe: New file.
58129         * lib/utf16-ucs4-safe.h: New file.
58130         * lib/unistr/utf16-ucs4-safe.c: New file.
58131
58132         * MODULES.html.sh (Unicode string functions): Add the new modules.
58133
58134 2007-01-08  Bruno Haible  <bruno@clisp.org>
58135
58136         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58137         (Depends-on): Add unitypes.
58138         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58139         (u8_mbtouc_aux): Move out to separate file.
58140         (u8_mbtouc): Use ucs4_t, uint8_t types.
58141         * lib/unistr/utf8-ucs4.c: New file.
58142
58143         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58144         (Depends-on): Add unitypes.
58145         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58146         (u16_mbtouc_aux): Move out to separate file.
58147         (u16_mbtouc): Use ucs4_t, uint16_t types.
58148         * lib/unistr/utf16-ucs4.c: New file.
58149
58150         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58151         (Depends-on): Add unitypes.
58152         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58153         (u8_uctomb_aux): Move out to separate file.
58154         (u8_uctomb): Use ucs4_t, uint8_t types.
58155         * lib/unistr/ucs4-utf8.c: New file.
58156
58157         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58158         (Depends-on): Add unitypes.
58159         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58160         (u16_uctomb_aux): Move out to separate file.
58161         (u16_uctomb): Use ucs4_t, uint16_t types.
58162         * lib/unistr/ucs4-utf16.c: New file.
58163
58164 2006-12-25  Bruno Haible  <bruno@clisp.org>
58165
58166         * modules/unitypes: New file.
58167         * lib/unitypes.h: New file.
58168         * MODULES.html.sh (func_all_modules): New section "Unicode string
58169         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58170         this section. Add unitypes.
58171
58172 2007-01-08  Bruno Haible  <bruno@clisp.org>
58173
58174         Avoid variable names that conflict with those from libtool.
58175         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58176         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58177         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58178         library_names_spec to acl_library_names_spec, hardcode_* to
58179         acl_hardcode_*.
58180         Reported by Ralf Wildenhues.
58181
58182 2007-01-08  Bruno Haible  <bruno@clisp.org>
58183
58184         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58185         definition.
58186         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58187         definition.
58188         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58189         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58190         definition.
58191         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58192         definition.
58193         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58194         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58195         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58196         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58197         definition.
58198         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58199         definition.
58200         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58201         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58202         GC_USE_<algorithm>.
58203         * lib/gc-libgcrypt.c: Likewise.
58204         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58205         * modules/gc-arctwo (configure.ac): Likewise.
58206         * modules/gc-des (configure.ac): Likewise.
58207         * modules/gc-hmac-md5 (configure.ac): Likewise.
58208         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58209         * modules/gc-md2 (configure.ac): Likewise.
58210         * modules/gc-md4 (configure.ac): Likewise.
58211         * modules/gc-md5 (configure.ac): Likewise.
58212         * modules/gc-random (configure.ac): Likewise.
58213         * modules/gc-rijndael (configure.ac): Likewise.
58214         * modules/gc-sha1 (configure.ac): Likewise.
58215
58216 2007-01-08  Bruno Haible  <bruno@clisp.org>
58217
58218         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58219         macro definition.
58220         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58221         definition.
58222         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58223         definition.
58224         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58225         * modules/fcntl-safer (configure.ac): Likewise.
58226         * modules/fopen-safer (configure.ac): Likewise.
58227         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58228         GNULIB_FWRITEERROR macro definition.
58229
58230 2007-01-08  Bruno Haible  <bruno@clisp.org>
58231
58232         * m4/gnulib-common.m4: New file.
58233         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58234         (func_get_filelist): Add m4/gnulib-common.m4.
58235
58236 2007-01-08  Bruno Haible  <bruno@clisp.org>
58237
58238         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58239         command.
58240
58241 2007-01-08  Jim Meyering  <jim@meyering.net>
58242
58243         Use a more robust test for a "can't happen" condition.
58244         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58245         narrowed the st_size value.  Presuming the "can't happen" condition
58246         is true, that narrowing could conceivably convert an invalid st_size
58247         value into a valid one.  Instead, use a change based on Matthew
58248         Woehlke's original patch.
58249
58250         Slight readability improvement: use an assert-like macro
58251         in place of literal "abort ()" uses.
58252         * lib/fts.c (fts_assert): Define.
58253         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58254         Use this macro instead of a bare 'abort'.
58255
58256 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58259         simply work around them.
58260         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58261         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58262         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58263         declaring.
58264         Don't bother to define as macros, since the standard doesn't require it.
58265         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58266         longer worry about IRIX 5.3.
58267         (HAVE_WCTYPE_CTMP_BUG): Remove.
58268
58269 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58272         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58273         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58274         Problems reported by Georg Schwarz for IRIX 5.3.
58275
58276         * gnulib-tool (autoconf_minversion): Take the maximum version number
58277         found, not the minimum.  Problem reported by James Youngman.
58278
58279 2007-01-03  Karl Berry  <karl@gnu.org>
58280
58281         * doc/error.texi: new file, explaining interaction with progname.
58282         * doc/gnulib.texi: include it.  Update copyright.
58283
58284 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58285
58286         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58287         AC_CANONICAL_HOST, to improve autobuild outputs.
58288
58289 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58290             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58291
58292         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58293         sockets, server sockets, and other file descriptors.  Count errors
58294         to compute the return value.  Reorder the code a bit to be easier
58295         to follow.  Don't set event bits that were not requested (except
58296         POLLERR and POLLHUP).
58297
58298 2007-01-01  Bruno Haible  <bruno@clisp.org>
58299
58300         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58301
58302 2007-01-03  Jim Meyering  <jim@meyering.net>
58303
58304         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58305
58306 2007-01-02  Bruno Haible  <bruno@clisp.org>
58307
58308         * modules/settime (Include): Require timespec.h.
58309         * modules/nanosleep (Include): Likewise.
58310
58311 2007-01-01  Bruno Haible  <bruno@clisp.org>
58312
58313         * gnulib-tool (func_emit_copyright_notice): Bump year.
58314         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58315
58316 2007-01-01  Bruno Haible  <bruno@clisp.org>
58317
58318         Improve support for OpenBSD.
58319         * build-aux/config.rpath (libname_spec): Export.
58320         (library_names_spec): New variable. Export.
58321         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58322         library_names_spec from the config.rpath output. Locate shared library
58323         through the name pattern in library_names_spec.
58324
58325 2007-01-01  Eric Blake  <ebb9@byu.net>
58326
58327         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58328
58329 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58332         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58333         assume the C locale, and avoid an "eval" that could cause trouble.
58334         Problem with SORT reported by Bob Proulx.
58335
58336         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58337         Define.  Trivial patch from Henning Nielsen Lund, originally
58338         sent to bug-grep@gnu.org today.
58339
58340 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58341
58342         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58343         struct stat.  Problem reported by Henning Nielsen Lund.
58344         * lib/acl.c: Include acl.h first, to check interface.  Don't
58345         bother to include sys/types.h and sys/stat.h again.
58346
58347 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         Import the following change from libc; problem reported by
58350         Sven Verdoolaege.
58351
58352         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58353
58354         [BZ #1373]
58355         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58356
58357 2006-12-28  Jim Meyering  <jim@meyering.net>
58358
58359         * build-aux/announce-gen: Do not assume that the package
58360         builds any of tar.gz, tar.bz2, and .xdelta files.
58361         Suggestion from Simon Josefsson.
58362
58363 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58364
58365         * modules/announce-gen: New file.
58366
58367 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58368
58369         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58370         handles its gotchas now.
58371         * lib/mbswidth.c: Likewise.
58372         * lib/wcwidth.h: Likewise.
58373         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58374         and iswcntrl; the wctype module does this stuff now.
58375         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58377         * modules/mbchar (Depends-on): Add wctype.
58378         * modules/mbswidth (Depends-on): Likewise.
58379         * modules/wcwidth (Depends-on): Likewise.
58380
58381 2006-12-27  Eric Blake  <ebb9@byu.net>
58382
58383         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58384         module uses more than what <wctype.h> is required to provide.
58385
58386 2006-12-26  Eric Blake  <ebb9@byu.net>
58387
58388         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58389
58390 2006-12-26  Eric Blake  <ebb9@byu.net>
58391
58392         * modules/absolute-header: New module.
58393         * modules/fcntl (Depends-on): Depend on it.
58394         * modules/inttypes (Depends-on): Likewise.
58395         * modules/stdint (Depends-on): Likewise.
58396         * modules/sys_stat (Depends-on): Likewise.
58397         * modules/wctype (Depends-on): Likewise.
58398         * MODULES.html.sh (Support for building libraries and
58399         executables): Document it.
58400
58401 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58402
58403         * gnulib-tool (SED): Remove, undoing previous change.
58404         The problem was that it broke coreutils on Solaris, because
58405         "sed --posix" leaked into a makefile.
58406         (sed): New alias, if 'alias' and GNU sed.
58407
58408 2006-12-24  Jim Meyering  <jim@meyering.net>
58409
58410         Work around an fchownat bug in glibc-2.4:
58411         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58412         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58413         in spite of the -P option.
58414         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58415         New macros.
58416         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58417         * modules/openat (Files): Add lib/fchownat.c.
58418         * lib/openat.c (fchownat): Don't define here.  Move to...
58419         * lib/fchownat.c: ...this new file.
58420
58421 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58422
58423         Fix bug reported by Bruno Haible in
58424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58425         where quotearg.c didn't compile on Mac OS X 10.2 because it
58426         lacks <wchar.h> and wint_t.
58427         * lib/wctype_.h (__wctype_wint_t): New type.
58428         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58429         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58430         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58431         Arg is now of type __wctype_wint_t, not wint_t.
58432         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58433         substitute HAVE_WINT_T.
58434         * modules/wctype (Files): Add m4/wint_t.m4.
58435         (wctype.h): Substitute HAVE_WINT_T.
58436
58437 2006-12-23  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58440
58441 2006-12-23  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58444         S_ISLNK.
58445         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58446         mingw.
58447
58448 2006-12-22  Bruno Haible  <bruno@clisp.org>
58449
58450         * lib/copy-file.c: Include acl.h.
58451         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58452         Close the file descriptors only after being done with copy_acl.
58453         * modules/copy-file (Depends-on): Add acl.
58454
58455 2006-12-22  Bruno Haible  <bruno@clisp.org>
58456
58457         * gnulib-tool (SED): New variable.
58458         Use $SED instead of sed everywhere.
58459
58460 2006-12-22  Bruno Haible  <bruno@clisp.org>
58461
58462         * modules/no-c++: New file.
58463         * m4/no-c++.m4: New file.
58464         * MODULES.html.sh (Support for building libraries and executables):
58465         Add no-c++.
58466
58467 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58468
58469         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58470         Include <limits.h>, and use its INT_MAX to rewrite the
58471         j loop so that it does not overflow 'int'.  Problem reported by
58472         Ralf Wildenhues in
58473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58474         Play it safe by shifting left by 1 rather than multiplying by 2,
58475         as GCC is less likely to optimize this away when the value
58476         is signed (when it assumes overflow leads to undefined behavior).
58477         Also, don't assume time_t uses two's complement.
58478
58479 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58480
58481         * MODULES.html.sh: New module wctype.
58482         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58483         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58484         <wctype.h>, since the new wctype module should fix this.
58485         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58486         the wctype module should arrange for it.
58487         * lib/regex_internal.h: Likewise.
58488         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58489         since the wctype module should handle this now.
58490         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58491         * modules/fnmatch (Depends-on): Add wctype.
58492         * modules/quotearg (Depends-on): Likewise.
58493         * modules/regex (Depends-on): Likewise.
58494
58495 2006-12-19  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58498         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58499
58500 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58501
58502         * modules/savewd (Depends-on): Fix dependency on fcntl.
58503
58504 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58505
58506         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58507         conforms to C99, rather than relying on the user's environment
58508         setting of STDINT_H.
58509
58510 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58511         and Eric Blake  <ebb9@byu.net>
58512
58513         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58514         This is more consistent with the other defines here.
58515         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58516         Port to z/OS.  Problem reported by Paul Gilmartin.
58517         Change local vars to use gl_ prefix rather than ac_.
58518         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58519         with other defines.
58520         * modules/double-slash-root: New module.
58521         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58522         (Depends-on): Add double-slash-root.
58523         * MODULES.html.sh (File system functions): Mention new module.
58524
58525 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58528         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58529         This is for the benefit of gzip, which doesn't do i18n.
58530
58531 2006-12-12  Jim Meyering  <jim@meyering.net>
58532
58533         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58534         Reported by Andreas Schwab <schwab@suse.de>.
58535
58536 2006-12-12  Bruno Haible  <bruno@clisp.org>
58537
58538         Merge these changes.
58539         2006-09-05  Bruno Haible  <bruno@clisp.org>
58540         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58541         iconv_alloc succeeded.
58542         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58543         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58544         test for " && dest " at the end - dest is always != NULL there. Call
58545         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58546         with 2xNULL arguments, also to flush the state storage. Handle the
58547         IRIX iconv behaviour. Realloc the final result, to throw away unused
58548         memory.
58549
58550 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58551
58552         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58553         and fchmodat unconditionally, since glibc 2.4 has them.
58554         Problem reported by Arkadiusz Miskiewicz.
58555
58556 2006-12-10  Bruno Haible  <bruno@clisp.org>
58557
58558         * gnulib-tool (func_import): Show the include files only for those
58559         modules that are copied and specified.
58560         Reported by Karl Berry.
58561
58562 2006-12-08  Jim Meyering  <jim@meyering.net>
58563
58564         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58565         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58566
58567         * build-aux/announce-gen: Add two new options, both optional:
58568         --bootstrap-tools=TOOL_LIST
58569               a comma-separated list of tools, e.g.,
58570               autoconf,automake,bison,gnulib
58571         --gnulib-snapshot-date=DATE
58572               if gnulib is in the bootstrap tool list,
58573               then report this as the snapshot date.
58574               If not specified, use the current date/time.
58575               If you specify a date here, be sure it's UTC.
58576
58577 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58578
58579         * tests/test-argp-2.sh: Fix test to match actual output.
58580         (func_compare): Fix sed script to be portable.
58581
58582 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58583
58584         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58585         workaround for this case.  It is not autoconfigured now; offhand
58586         it's hard to see how to autoconfigure it.
58587
58588 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58589
58590         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58591         a directory that is about to be chowned.  Such a directory's
58592         initial file permissions should permit the owner only and this
58593         should not be changed until after the chown, since the group and
58594         other bits would be incorrect if they granted permission before
58595         the chown.
58596
58597         Fix porting problem for iswctype reported by Georg Schwarz in:
58598         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58599         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58600         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58601         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58602         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58603
58604 2006-12-03  Jim Meyering  <jim@meyering.net>
58605
58606         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58607         p->fts_statp may not yet be defined.
58608         (fts_read): Instead, set it in the caller, once p->fts_statp is
58609         sure to be defined, and corresponds to a top-level directory.
58610         This bug made du -x fail.  Here's the coreutils test case:
58611         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58612         Reported by Mike Frysinger.
58613
58614 2006-12-01  Jim Meyering  <jim@meyering.net>
58615
58616         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58617         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58618         Reported by Simon Josefsson.
58619
58620 2006-11-30  Jim Meyering  <jim@meyering.net>
58621
58622         * m4/warning.m4: Use the all-permissive copyright notice
58623         recommended by RMS (rather than LGPL).
58624         * m4/vararrays.m4: Likewise.
58625         * m4/flexmember.m4: Likewise.
58626
58627 2006-11-29  Bruno Haible  <bruno@clisp.org>
58628
58629         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58630         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58631         using +=.
58632         Reported by Simon Josefsson <simon@josefsson.org>.
58633
58634 2006-11-28  James Youngman <jay@gnu.org>
58635
58636         * README: Advise users that they might find the bug-gnulib@gnu.org
58637         and autotools-announce@gnu.org mailing lists useful.
58638
58639 2006-11-28  Bruno Haible  <bruno@clisp.org>
58640
58641         * m4/ptrdiff_max.m4: Remove file.
58642
58643 2006-11-21  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58646         _AC_COMPUTE_INT.
58647         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58648         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58649         _AC_COMPUTE_INT.
58650         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58651         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58652         _AC_COMPUTE_INT.
58653         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58654
58655 2006-11-28  Jim Meyering  <jim@meyering.net>
58656
58657         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58658         warning from "gcc -Wshadow" about shadowing the builtin.
58659
58660 2006-11-27  Bruno Haible  <bruno@clisp.org>
58661
58662         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58663         _AC_COMPUTE_INT.
58664         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58665
58666 2006-11-27  Bruno Haible  <bruno@clisp.org>
58667             Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58670
58671 2006-11-26  Bruno Haible  <bruno@clisp.org>
58672
58673         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58674         noinst_LTLIBRARIES.
58675
58676 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58677             Bruno Haible  <bruno@clisp.org>
58678
58679         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58680         if compiling with "gcc -ansi".
58681
58682 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58683
58684         Fix some incompatibilities with gcc -ansi -pedantic.
58685         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58686         if compiling pedantically with GCC, unless it's C99 or later.
58687         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58688         it mishandles gcc -ansi -pedantic as well.
58689         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58690         if gcc -pedantic.
58691         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58692         initializers for struct if -pedantic, unless it's C99 or later.
58693
58694 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58695
58696         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58697         Don't close an fd more than once. Identical atimes indicate
58698         success, not failure.
58699
58700 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58701
58702         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58703
58704 2006-11-23  Jim Meyering  <jim@meyering.net>
58705
58706         * build-aux/announce-gen: New file.  From coreutils.
58707
58708 2006-11-22  Jim Meyering  <jim@meyering.net>
58709
58710         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58711         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58712         (fts_read): Use a temporary to narrow the overused st_size member
58713         before using it in a switch statement.  Reported by Matthew Woehlke.
58714
58715         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58716         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58717
58718 2006-11-20  Bruno Haible  <bruno@clisp.org>
58719
58720         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58721         changequote instead of pairs of brackets.
58722         Reported by Andreas Schwab <schwab@suse.de>.
58723
58724 2006-11-21  Jim Meyering  <jim@meyering.net>
58725
58726         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58727         so as to remain compatible with older compilers.
58728         Patch from Michael Deutschmann.
58729
58730 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * MODULES.html.sh (File system functions): Add openat.
58733
58734         * lib/openat.h (rpl_fstatat): New macro, if
58735         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58736         (fstatat): Define to rpl_fstatat under the same conditions,
58737         unless COMPILING_FSTATAT.
58738         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58739         seems to have the bug.
58740         * lib/fstatat.c: New file.
58741         * modules/openat (Files): Add it.
58742
58743 2006-11-20  Bruno Haible  <bruno@clisp.org>
58744
58745         * Makefile: New file.
58746
58747 2006-11-20  Jim Meyering  <jim@meyering.net>
58748
58749         The beginnings of syntax-related checks for gnulib.
58750         * lib/Makefile: New file.
58751         * lib/t-idcache: New script.  Ensure that the two halves of
58752         idcache.c stay in sync.
58753
58754         * lib/idcache.c: Adjust comments in user- and group- portions to
58755         be more accurate, and to be consistent with one another.
58756
58757 2006-11-20  Jim Meyering  <jim@meyering.net>
58758
58759         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58760         continue using the flexible array member (thus, this module performs
58761         half as many malloc calls), with the addition that...
58762         (getgroup, getuser): Consistently record a non-match via an empty
58763         "name" string, and map an empty string match to a NULL return value.
58764         * modules/idcache (Depends-on): Re-add flexmember.
58765
58766         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58767         (getuidbyname, getgroup, getgidbyname): Likewise.
58768
58769         Use cleaner syntax: NULL rather than 0.
58770         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58771
58772 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58773
58774         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58775         It mishandled the case where the group was missing.
58776         Problem reported by Greg Schafer.
58777         * modules/idcache: Likewise.
58778
58779 2006-11-18  Jim Meyering  <jim@meyering.net>
58780
58781         * check-module (%exempt_header): Add exception for some
58782         conditionally-included headers.
58783
58784         * modules/i-ring (Depends-on): Add verify.
58785         (License): Change to LGPL.
58786
58787 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58788
58789         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58790         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58791         and inttostr.h.  Use snprintf rather than uinttostr, so that
58792         LGPLed code doesn't depend on GPLed.
58793
58794 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58795
58796         * modules/inline (License): Change from GPL to LGPL.
58797
58798 2006-11-17  Jim Meyering  <jim@meyering.net>
58799
58800         * modules/d-type (License): Switch to LGPL.
58801
58802 2006-11-15  Bruno Haible  <bruno@clisp.org>
58803
58804         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58805
58806 2006-11-15  Eric Blake  <ebb9@byu.net>
58807
58808         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58809         the module dependency.
58810
58811 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58812             Bruno Haible  <bruno@clisp.org>
58813
58814         * gnulib-tool (func_create_testdir): Add license consistency check.
58815
58816 2006-11-15  Eric Blake  <ebb9@byu.net>
58817
58818         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58819         random "(cached)" in configure output.
58820
58821 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58822
58823         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58824         test for conforming inttypes.h is both announced and cached.
58825
58826         * MODULES.html.sh (seen_modules, seen_files): New variables.
58827         (func_module): Rewrite to use a few less gnulib-tool and sed
58828         invocations.  Avoid a couple of quadratic algorithms for ...
58829         (missed_modules, missed_files): ... these, with ...
58830         (func_append, func_tmpdir): ... these new functions, from
58831         gnulib-tool.  Analogously, install traps for cleanup.
58832
58833         * tests/test-gc.c (main): Remove unused variables.
58834         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58835
58836 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * modules/inttostr (License): Change to LGPL.
58839
58840 2006-11-14  Eric Blake  <ebb9@byu.net>
58841
58842         * modules/tempname (License): Change to LGPL.
58843
58844 2006-11-14  Eric Blake  <ebb9@byu.net>
58845
58846         * doc/functions.texi (Function Portability): *printf functions on
58847         Cygwin now understand all POSIX size specifiers.
58848
58849 2006-11-14  Bruno Haible  <bruno@clisp.org>
58850
58851         * modules/c-ctype (License): Change to LGPL.
58852
58853 2006-11-12  Bruno Haible  <bruno@clisp.org>
58854
58855         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58856         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58857         for GNOME libraries, for which the include files are installed in
58858         subdirectories of $prefix/include.
58859
58860 2006-11-12  Bruno Haible  <bruno@clisp.org>
58861
58862         * m4/lib-link.m4: Require at least autoconf-2.54.
58863         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58864         name to underscores for the --with option.
58865
58866 2006-11-13  Bruno Haible  <bruno@clisp.org>
58867
58868         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58869         the tests directory.
58870         Reported by Ralf Wildenhues.
58871
58872 2006-11-13  Bruno Haible  <bruno@clisp.org>
58873
58874         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58875         (func_emit_initmacro_end): Undo the override here.
58876         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58877         Works around the famous automake error in coreutils.
58878
58879 2006-11-13  Eric Blake  <ebb9@byu.net>
58880
58881         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58882         element, not its node.
58883
58884 2006-11-12  Bruno Haible  <bruno@clisp.org>
58885
58886         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58887         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58888
58889 2006-11-12  Bruno Haible  <bruno@clisp.org>
58890
58891         * gnulib-tool: New option --local-symlink.
58892         (func_usage): Document it.
58893         (lsymbolic): New variable.
58894         (func_import, func_create_testdir): If --symlink was not specified,
58895         test whether --local-symlink was specified and the file comes from
58896         the local_gnulib_dir.
58897
58898 2006-11-12  Bruno Haible  <bruno@clisp.org>
58899
58900         * gnulib-tool (func_ln): New function.
58901         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58902
58903 2006-11-12  Bruno Haible  <bruno@clisp.org>
58904
58905         Finish support for source files in subdirectories.
58906         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58907         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58908         AUTOMAKE_OPTIONS.
58909         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58910
58911 2006-11-12  Bruno Haible  <bruno@clisp.org>
58912
58913         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58914         EXTRA_lib_SOURCES augmentation.
58915         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58916
58917 2006-11-12  Jim Meyering  <jim@meyering.net>
58918
58919         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58920         file descriptors.  This also averts a failure on systems with
58921         native openat support when a traversed directory lacks "x" access.
58922         * lib/fts_.h: Include "i-ring.h"
58923         (struct FTS) [fts_fd_ring]: New member.
58924         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58925         (FCHDIR): Add parentheses.
58926         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58927         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58928         When descending, rather than simply closing the previous
58929         fts_cwd_fd value, push that file descriptor onto the ring.
58930         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58931         (fts_open): Initialize the new fd_ring member.
58932         (fts_close): Clear the ring.
58933         (fts_safe_changedir): When possible, use our new fd_ring to skip
58934         the diropen and fstat and dev/ino comparison that would normally
58935         accompany a virtual `chdir ("..")'.
58936
58937         * modules/fts (Depends-on): Add i-ring.
58938         * modules/i-ring: New module.
58939         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58940         * m4/i-ring.m4: New file.
58941
58942 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58943
58944         * gnulib-tool (func_create_testdir): Fix replacement of
58945         `build-aux' in configure.ac.  Run autotools in gltests
58946         subdirectory.
58947         (func_create_testdir, func_create_megatestdir, test): There is
58948         no need for '--force' in most autotool invocations in a new
58949         tree.  Actually fail the whole test if any of the tools, or the
58950         configure or make stages fail.
58951
58952         Sync from Automake.
58953         * build-aux/gnupload: Revert last change.  Add pointer to upload
58954         instructions of the GNU Maintenance Instructions.
58955         Suggestion by Karl Berry.
58956
58957 2006-11-10  Jim Meyering  <jim@meyering.net>
58958
58959         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58960
58961 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58962
58963         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58964         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58965         (bind_textdomain_codeset) [! ENABLE_NLS]:
58966         Evaluate all the arguments.  That way, callers get compatible behavior
58967         if the arguments have side effects.  Also, it avoids some GCC
58968         diagnostics in some cases; Joel E. Denny reported problems when Bison
58969         was configured with --enable-gcc-warnigs.
58970
58971 2006-11-10  Jim Meyering  <jim@meyering.net>
58972
58973         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58974         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58975         account.
58976
58977 2006-11-10  Jim Meyering  <jim@meyering.net>
58978
58979         * modules/inline: New file/module.
58980         * modules/xalloc (Files): Remove m4/inline.m4.
58981         (Depends-on): Add inline, instead.
58982         * modules/oset: Likewise.
58983         * modules/list: Likewise.
58984
58985 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58986
58987         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58988         Problem reported by Matthew Woehlke.
58989
58990 2006-11-09  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/tempname.c (gen_tempname): Remove variant that invokes
58993         __gen_tempname.
58994         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58995         __gen_tempname.
58996
58997 2006-11-08  Bruno Haible  <bruno@clisp.org>
58998
58999         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59000         to 'yes' instead of 'cross-compiling'.
59001
59002 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59003
59004         * lib/quotearg.h (quotearg_free): New decl.
59005         * lib/quotearg.c (quotearg_free): New function.
59006         (slot0, nslots, slotvec0, slotvec):
59007         Now file-scope so that quotearg_free can get at them.
59008
59009 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59010
59011         Sync from Automake.
59012         * build-aux/gnupload: Add missing 'gnu' to example URL.
59013         Report by Karl Berry.
59014
59015 2006-11-08  Bruno Haible  <bruno@clisp.org>
59016
59017         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59018         Suggested by Paul Eggert.
59019
59020 2006-11-08  Jim Meyering  <jim@meyering.net>
59021
59022         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59023         It's already included if !_LIBC.
59024         (fts_safe_changedir): Add a comment.
59025
59026 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59027
59028         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59029         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59030         Matthew Woehlke.
59031
59032         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59033         definitions up, to avoid colliding with change below.
59034         (static_inline) [HAVE_INLINE]: New macro.
59035         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59036         Provide extern decls when !HAVE_INLINE.  Do not define unless
59037         static_inline is defined, either by us or by xmalloc.c.  Use
59038         static_inline rather than static inline.
59039         (XCALLOC): Optimize sizeof(T) = 1 case.
59040         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59041
59042 2006-11-07  Bruno Haible  <bruno@clisp.org>
59043
59044         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59045         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59046         AC_C_INLINE.
59047         * modules/xalloc (Files): Add m4/inline.m4.
59048
59049 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59050
59051         * README: Fix typo.
59052         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59053         (Miscellanous Notes): ...from this.
59054
59055 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59056
59057         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59058         Mention that offsetof should be used instead of sizeof.
59059         From Bruno Haible.
59060
59061 2006-11-07  Bruno Haible  <bruno@clisp.org>
59062
59063         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59064
59065 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59066
59067         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59068         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59069         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59070         (gl_tree_add_before, gl_tree_add_after):
59071         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59072         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59073         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59074         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59075         (gl_linked_add_after, gl_linked_add_at): Likewise.
59076         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59077         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59078         (gl_tree_add_before, gl_tree_add_after): Likewise.
59079         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59080         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59081         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59082
59083 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59084
59085         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59086
59087 2006-11-06  Bruno Haible  <bruno@clisp.org>
59088
59089         * m4/inline.m4: New file.
59090         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59091         * modules/list (Files): Add m4/inline.m4.
59092         * modules/oset (Files): Likewise.
59093
59094 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59095
59096         * lib/idcache.c: Include <stddef.h>, for offsetof.
59097         (struct userid.name): Change from char * to a flexible array member.
59098         All uses changed.
59099         * modules/idcache (Depends-on): Add flexmember.
59100
59101         * MODULES.html.sh (Core language properties): New module flexmember.
59102         * modules/flexmember, m4/flexmember.m4: New files.
59103
59104         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59105         inline functions that are identical with the old xnmalloc_inline,
59106         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59107         that we can avoid some unnecessary integer multiplications and
59108         divisions in the common case where the element size is known at
59109         compile time.
59110         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59111         needed.
59112         (xnboundedmalloc): Remove.
59113         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59114         arguments, for consistency with rest of this header.
59115         (xcharalloc): Rewrite using XNMALLOC.
59116         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59117         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59118         versions have been moved to lib/xalloc.h and renamed to be the
59119         non-*_inline versions.
59120         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59121         and xnrealloc functions, since those functions are now inline and
59122         now call us.
59123         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59124         renaming described above.
59125         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59126         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59127         captures the dependency in AC_C_INLINE.
59128
59129         New module canonicalize-lgpl, proposed by Charles Wilson in
59130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59131         with a few small changes afterwards.
59132         * MODULES.html.sh (File system functions): New module
59133         canonicalize-lgpl.
59134         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59135         and canonicalize_file_name.
59136         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59137         * modules/canonicalize-lgpl: New files.
59138
59139 2006-11-05  Bruno Haible  <bruno@clisp.org>
59140
59141         * gnulib-tool (func_import, func_create_testdir): Create directories
59142         also for files in subdirectories of lib/.
59143
59144 2006-11-05  Bruno Haible  <bruno@clisp.org>
59145
59146         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59147         ANSI C compliant.
59148
59149 2006-11-03  Bruno Haible  <bruno@clisp.org>
59150
59151         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59152         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59153         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59154         (xnboundedmalloc): New inline function.
59155         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59156         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59157         xmalloc.
59158         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59159         xmalloc.
59160         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59161         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59162         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59163         xmalloc.
59164         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59165         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59166         xmalloc.
59167         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59168         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59169         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59170         xmalloc.
59171         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59172         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59173         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59174         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59175         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59176         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59177         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59178
59179 2006-11-03  Bruno Haible  <bruno@clisp.org>
59180
59181         * lib/c-ctype.h [C++]: Define functions without name mangling.
59182         * lib/fwriteerror.h [C++]: Likewise.
59183         * lib/gcd.h [C++]: Likewise.
59184         * lib/linebreak.h [C++]: Likewise.
59185
59186 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59189         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59190         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59191         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59192         Check for functions and headers just once.
59193         Check for declaration of canonicalize_file_name.
59194         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59195
59196 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59197
59198         * gnulib-tool (func_import): Fix typo in actioncmd.
59199
59200 2006-11-02  Bruno Haible  <bruno@clisp.org>
59201
59202         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59203         newline sequence in the Makefile.am snippet as a space, like "make"
59204         does.
59205         Reported by Roger Persson <perrog@gmail.com>.
59206
59207 2006-11-01  Bruno Haible  <bruno@clisp.org>
59208
59209         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59210         already declared in <string.h>.
59211         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59212
59213 2006-11-01  Bruno Haible  <bruno@clisp.org>
59214
59215         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59216         * lib/strcase.h: Include <string.h>.
59217         (strcasecmp): Define to rpl_strcasecmp here.
59218
59219 2006-11-01  Bruno Haible  <bruno@clisp.org>
59220
59221         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59222
59223 2006-11-01  Eric Blake  <ebb9@byu.net>
59224
59225         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59226
59227         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59228
59229 2006-10-29  Bruno Haible  <bruno@clisp.org>
59230
59231         Make it compile in C++ mode.
59232         * lib/full-write.c (full_rw): Add a cast.
59233
59234 2006-11-01  Bruno Haible  <bruno@clisp.org>
59235
59236         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59237         be POSIX compliant.
59238         Reported by Roger Persson <perrog@gmail.com>.
59239
59240 2006-11-01  Eric Blake  <ebb9@byu.net>
59241
59242         * lib/getopt_.h: Fix comments.
59243
59244 2006-10-31  Eric Blake  <ebb9@byu.net>
59245
59246         * modules/tmpdir (Depends-on): Add sys_stat.
59247         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59248         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59249         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59250         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59251         tempname.
59252
59253 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59254
59255         Avoid some C++ diagnostics reported by Bruno Haible.
59256         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59257         xmalloc.
59258         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59259         (struct slotvec): Move to top level.
59260         (quotearg_n_options): Rewrite to avoid xmalloc.
59261         * lib/xalloc.h (xcharalloc): New function.
59262         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59263         [defined __cplusplus]: Add function template that provides result
59264         type propagation.  This part of the change is from Bruno Haible.
59265
59266 2006-10-29  Bruno Haible  <bruno@clisp.org>
59267
59268         Make it compile in C++ mode.
59269         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59270         * lib/strnlen1.c (strnlen1): Cast memchr result.
59271         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59272         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59273         (create_temp_dir): Rename local variable 'template'.
59274         (compile_csharp_using_sscli): Add cast.
59275         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59276         * lib/findprog.c (find_in_path): Likewise.
59277         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59278         * lib/wait-process.c (register_slave_subprocess): Likewise.
59279
59280 2006-10-22  Bruno Haible  <bruno@clisp.org>
59281
59282         * modules/tsearch: New file.
59283         * lib/tsearch.h: New file.
59284         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59285         * m4/tsearch.m4: New file.
59286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59287
59288 2006-10-29  Eric Blake  <ebb9@byu.net>
59289
59290         * lib/arcfour.c: Assume config.h.
59291         * lib/arctwo.c: Likewise.
59292         * lib/base64.c: Likewise.
59293         * lib/check-version.c: Likewise.
59294         * lib/crc.c: Likewise.
59295         * lib/des.c: Likewise.
59296         * lib/gc-gnulib.c: Likewise.
59297         * lib/gc-libgcrypt.c: Likewise.
59298         * lib/gc-pbkdf2-sha1.c: Likewise.
59299         * lib/getaddrinfo.c: Likewise.
59300         * lib/getdelim.c: Likewise.
59301         * lib/getline.c: Likewise.
59302         * lib/hmac-md5.c: Likewise.
59303         * lib/hmac-sha1.c: Likewise.
59304         * lib/iconvme.c: Likewise.
59305         * lib/md2.c: Likewise.
59306         * lib/md4.c: Likewise.
59307         * lib/memxor.c: Likewise.
59308         * lib/read-file.c: Likewise.
59309         * lib/readline.c: Likewise.
59310         * lib/rijndael-alg-fst.c: Likewise.
59311         * lib/rijndael-api-fst.c: Likewise.
59312         * lib/xgetdomainname.c: Likewise.
59313
59314 2006-10-28  Eric Blake  <ebb9@byu.net>
59315
59316         * lib/xstrndup.c: Assume config.h.
59317
59318 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59319
59320         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59321         stat-macros.h is now for our own macros, whereas stat_h is for
59322         macros in the <sys/stat.h> name space.
59323         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59324         (STAT_MACROS_H): Remove.
59325         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59326         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59327         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59328         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59329         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59330         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59331         Move these macros to ...
59332         * lib/stat_.h: here.  Don't include stat-macros.h.
59333         * lib/canonicalize.c: Don't include stat-macros.h.
59334         * lib/chown.c: Likewise.
59335         * lib/euidaccess.c: Likewise.
59336         * lib/file-type.c: Likewise.
59337         * lib/filemode.c: Likewise.
59338         * lib/glob.c: Likewise.
59339         * lib/isapipe.c: Likewise.
59340         * lib/lchown.c: Likewise.
59341         * lib/lstat.c: Likewise.
59342         * lib/mkdir-p.c: Likewise.
59343         * lib/rmdir.c: Likewise.
59344         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59345         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59346         unless mkdir isn't declared, to speed up 'configure'.
59347         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59348         would define all the S_* symbols.
59349         * modules/canonicalize (Depends-on):
59350         Depend on sys_stat, not stat-macros.
59351         * modules/chown: Likewise.
59352         * modules/euidaccess: Likewise.
59353         * modules/filemode: Likewise.
59354         * modules/file-type: Likewise.
59355         * modules/glob: Likewise.
59356         * modules/isapipe: Likewise.
59357         * modules/lchown: Likewise.
59358         * modules/lstat: Likewise.
59359         * modules/mkancesdirs: Likewise.
59360         * modules/rmdir: Likewise.
59361         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59362         * modules/modechange: Likewise.
59363         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59364         (configure.ac): Remove gl_STAT_MACROS.
59365         * modules/sys_stat (Depends-on): Remove stat-macros.
59366
59367 2006-10-27  Bruno Haible  <bruno@clisp.org>
59368
59369         * m4/signed.m4: Remove file.
59370         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59371         invocation.
59372         * modules/vasnprintf (Files): Remove m4/signed.m4.
59373
59374 2006-10-27  Bruno Haible  <bruno@clisp.org>
59375
59376         Update to GNU gettext 0.16.
59377         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59378         m4/inttypes-h.m4, m4/signed.m4.
59379         * m4/gettext.m4: Update to GNU gettext 0.16.
59380         * m4/intl.m4: New file, from GNU gettext.
59381         * m4/intldir.m4: New file, from GNU gettext.
59382         * config/srclist.txt: Update
59383
59384 2006-10-27  Eric Blake  <ebb9@byu.net>
59385
59386         * MODULES.html.sh: Document tempname.
59387         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59388         dependencies.
59389         (Files): Move lib/tempname.c...
59390         * modules/tempname: ...to this new module.
59391         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59392         (gl_PREREQ_TEMPNAME): Move...
59393         * m4/tempname.m4: ...to this new file.
59394         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59395         * modules/sys_stat (Depends-on): Add stat-macros.
59396         * lib/stat_.h (includes): Pick up stat macros.
59397         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59398         if stat macros are broken.
59399         * lib/tempname.c (includes): No need to include "stat-macros.h".
59400         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59401         (direxists, __path_search) [!_LIBC]: Don't compile these in
59402         gnulib; the tmpdir module covers that.
59403         * lib/tempname.h: New file.
59404
59405 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59406
59407         * COPYING: Explain how gnulib-tool converts licence headers.
59408         Almost all wording by Eric Blake.
59409
59410 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59411
59412         * lib/mbchar.h (is_basic_table): Make read-only.
59413         * lib/mbchar.c (is_basic_table): Likewise.
59414         Reported by John Darrington.
59415
59416 2006-10-25  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/progname.h (set_program_name): Undefine before defining.
59419
59420 2006-10-25  Bruno Haible  <bruno@clisp.org>
59421
59422         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59423         false for non-gcc C++ compilers.
59424         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59425
59426 2006-10-24  Bruno Haible  <bruno@clisp.org>
59427
59428         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59429         iconv implementations like Irix iconv.
59430
59431 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59432
59433         * modules/vararrays: New file.
59434         * m4/vararrays.m4: New file, taken from diffutils.
59435         * MODULES.html.sh: New module vararrays.
59436
59437 2006-10-24  Karl Berry  <karl@gnu.org>
59438
59439         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59440         Don't call GNU Unix.
59441
59442 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59443
59444         * users.txt: Add Libtool.
59445
59446         Sync from Libtool:
59447
59448         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59449
59450         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59451         to gnulib's policy of including config.h unconditionally.
59452
59453 2006-10-24  Bruno Haible  <bruno@clisp.org>
59454
59455         * modules/wcwidth (Files): Add m4/wint_t.m4.
59456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59457         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59458
59459 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59460
59461         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59462         to pacify GCC with some -W flags enabled.  Problem reported by
59463         Bruno Haible.
59464
59465 2006-10-24  Jim Meyering  <jim@meyering.net>
59466
59467         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59468         Reported by Karl Berry.
59469
59470 2006-10-23  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59473
59474 2006-10-24  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/gl_list.h: Use C comment style, not C++ comment style.
59477
59478 2006-10-23  Eric Blake  <ebb9@byu.net>
59479
59480         * lib/getaddrinfo.c (includes): Add missing include.
59481
59482 2006-10-23  Bruno Haible  <bruno@clisp.org>
59483             Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         Ability to rename obstack_free.
59486         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59487         obstack_free.
59488         (obstack_free): Invoke the __obstack_free macro.
59489         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59490
59491 2006-10-23  Bruno Haible  <bruno@clisp.org>
59492             Paul Eggert  <eggert@cs.ucla.edu>
59493
59494         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59495         __argc, __argv from the declaration. (They are defined as macros on
59496         mingw.)
59497
59498 2006-10-22  Bruno Haible  <bruno@clisp.org>
59499
59500         * doc/gnulib-intro.texi: New file.
59501         * doc/gnulib.texi: Include it.
59502
59503 2006-10-21  Bruno Haible  <bruno@clisp.org>
59504
59505         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59506         "Introduction", "Miscellanous Notes", "Particular Modules".
59507
59508 2006-10-21  Bruno Haible  <bruno@clisp.org>
59509
59510         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59511         Change mostlyclean-local rule to avoid sh syntax error from bash
59512         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59513
59514 2006-10-23  Jim Meyering  <jim@meyering.net>
59515
59516         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59517         in place of snprintf.
59518
59519         * modules/inttostr (Files): Add lib/uinttostr.c.
59520         * lib/uinttostr.c (inttostr): New file/function.
59521         * lib/inttostr.h (uinttostr): Declare.
59522         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59523         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59524         Add uinttostr.
59525         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59526
59527 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59528
59529         * lib/canonicalize.c (ELOOP): Define if not already defined.
59530         Problem reported by Bruno Haible in
59531         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59532
59533 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59536         Problem reported by Perry Smith and Ville Laurikari.
59537
59538         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59539         uses.
59540
59541 2006-10-19  Bruno Haible  <bruno@clisp.org>
59542
59543         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59544         for mingw.
59545
59546 2006-10-19  Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59549         Needed for mingw.
59550
59551 2006-10-19  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59554
59555 2006-10-19  Bruno Haible  <bruno@clisp.org>
59556
59557         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59558         it.
59559
59560 2006-10-19  Bruno Haible  <bruno@clisp.org>
59561
59562         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59563         invocation.
59564
59565 2006-10-19  Bruno Haible  <bruno@clisp.org>
59566
59567         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59568         mountlist by default.
59569
59570 2006-10-16  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/c-strstr.c: Include c-strstr.h.
59573
59574 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59575
59576         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59577         in a slash.
59578
59579 2006-10-18  Bruno Haible  <bruno@clisp.org>
59580
59581         * lib/lock.h [C++]: Wrap definitions in extern "C".
59582
59583 2006-10-18  Bruno Haible  <bruno@clisp.org>
59584
59585         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59586         gl_LIBOBJS list.
59587
59588 2006-10-18  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59591
59592 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * lib/xstrtol.h: Include gettext.h.
59595         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59596         Problem reported by Eric Blake.
59597         * modules/xstrtol (Depends-on): Add gettext-h.
59598
59599 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59600
59601         * lib/strftime.c (advance): New macro.
59602         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59603         incomplete type, so you can't add 0 to it.  Problem and patch
59604         reported by Eelco Dolstra for dietlibc.
59605
59606 2006-10-18  Jim Meyering  <jim@meyering.net>
59607
59608         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59609         type for a local, and rename it: s/up/user_proc/.
59610
59611 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59612
59613         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59614         READ_UTMP_USER_PROCESS.
59615         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59616
59617 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59618
59619         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59620         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59621
59622 2006-10-17  Eric Blake  <ebb9@byu.net>
59623
59624         * lib/sigprocmask.c (sigprocmask): Fix typo.
59625
59626         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59627
59628         * modules/clean-temp (Makefile.am): Don't add to make output...
59629         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59630         config.h.
59631
59632 2006-10-17  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59635         differently if DEFAULT_TEXT_DOMAIN is set.
59636
59637 2006-10-16  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/clean-temp.c: Include fwriteerror.h.
59640
59641 2006-10-16  Bruno Haible  <bruno@clisp.org>
59642
59643         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59644
59645 2006-10-16  Bruno Haible  <bruno@clisp.org>
59646
59647         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59648         * lib/sigprocmask.h: Include <sys/types.h>.
59649         (sigset_t): Use the system's definition if present.
59650
59651 2006-10-17  Eric Blake  <ebb9@byu.net>
59652
59653         * lib/xvasprintf.c (includes): Assume config.h.
59654         * lib/xasprintf.c (includes): Likewise.
59655
59656 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59657
59658         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59659         at least as wide as intmax_t.
59660
59661 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59662
59663         (Imported from Automake.)
59664         * build-aux/gnupload: Update to version 1.1 of directive file.
59665
59666 2006-10-16  Eric Blake  <ebb9@byu.net>
59667
59668         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59669         match Automake 1.10a.
59670
59671 2006-10-14  Bruno Haible  <bruno@clisp.org>
59672
59673         * modules/sigprocmask: New file.
59674         * lib/sigprocmask.h: New file.
59675         * lib/sigprocmask.c: New file.
59676         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59677         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59678         request sigprocmask.o.
59679         (gl_PREREQ_SIGPROCMASK): New macro.
59680         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59681         (Depends-on): Add sigprocmask.
59682         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59683         gt_SIGNALBLOCKING. Test for 'raise' only once.
59684         * lib/fatal-signal.c: Include sigprocmask.h.
59685         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59686         unblock_fatal_signals): Define always.
59687         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59688         sigprocmask.
59689
59690 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59691
59692         Sync from Automake.
59693         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59694         which incorrectly sets the mode of an existing destination
59695         directory.  In some cases the unpatched install-sh could do the
59696         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59697         system.  We hope this is rare in practice, but it's clearly worth
59698         fixing.  Problem reported by Alex Unleashed in
59699         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59700         Also, don't bother to check for -m bugs unless we're using -m;
59701         suggested by Stepan Kasal.
59702
59703 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59704
59705         Sync from Automake.
59706         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59707         `-c' flag, so they appear at the same position as in %FASTDEP%
59708         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59709         which ignores unknown options only after the first non-option.
59710         Bug report against M4 by Nelson H. F. Beebe.
59711
59712 2006-10-13  Jim Meyering  <jim@meyering.net>
59713
59714         Fix a bug in yesterday's change.
59715         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59716         p->fts_statp->st_dev would be used uninitialized.
59717         Ensures that we always call fts_stat on the very first entry.
59718         Miklos Szeredi reported that find -xdev stopped working.
59719
59720 2006-10-12  Bruno Haible  <bruno@clisp.org>
59721
59722         * gnulib-tool (func_get_automake_snippet): Append an automatically
59723         computed EXTRA_DIST augmentation.
59724         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59725         * modules/alloca-opt (Makefile.am): Likewise.
59726         * modules/allocsa (Makefile.am): Likewise.
59727         * modules/arcfour (Makefile.am): Likewise.
59728         * modules/arctwo (Makefile.am): Likewise.
59729         * modules/argmatch (Makefile.am): Likewise.
59730         * modules/argz (Makefile.am): Likewise.
59731         * modules/atexit (Makefile.am): Likewise.
59732         * modules/backupfile (Makefile.am): Likewise.
59733         * modules/byteswap (Makefile.am): Likewise.
59734         * modules/c-strtod (Makefile.am): Likewise.
59735         * modules/c-strtold (Makefile.am): Likewise.
59736         * modules/calloc (Makefile.am): Likewise.
59737         * modules/canon-host (Makefile.am): Likewise.
59738         * modules/canonicalize (Makefile.am): Likewise.
59739         * modules/chdir-long (Makefile.am): Likewise.
59740         * modules/chdir-safer (Makefile.am): Likewise.
59741         * modules/check-version (Makefile.am): Likewise.
59742         * modules/chown (Makefile.am): Likewise.
59743         * modules/cloexec (Makefile.am): Likewise.
59744         * modules/close-stream (Makefile.am): Likewise.
59745         * modules/closeout (Makefile.am): Likewise.
59746         * modules/crc (Makefile.am): Likewise.
59747         * modules/csharpexec (Makefile.am): Likewise.
59748         * modules/cycle-check (Makefile.am): Likewise.
59749         * modules/des (Makefile.am): Likewise.
59750         * modules/dev-ino (Makefile.am): Likewise.
59751         * modules/dirfd (Makefile.am): Likewise.
59752         * modules/dirname (Makefile.am): Likewise.
59753         * modules/dup2 (Makefile.am): Likewise.
59754         * modules/eealloc (Makefile.am): Likewise.
59755         * modules/error (Makefile.am): Likewise.
59756         * modules/euidaccess (Makefile.am): Likewise.
59757         * modules/exclude (Makefile.am): Likewise.
59758         * modules/exitfail (Makefile.am): Likewise.
59759         * modules/fcntl-safer (Makefile.am): Likewise.
59760         * modules/fcntl (Makefile.am): Likewise.
59761         * modules/file-type (Makefile.am): Likewise.
59762         * modules/fileblocks (Makefile.am): Likewise.
59763         * modules/filemode (Makefile.am): Likewise.
59764         * modules/filenamecat (Makefile.am): Likewise.
59765         * modules/fnmatch (Makefile.am): Likewise.
59766         * modules/fopen-safer (Makefile.am): Likewise.
59767         * modules/fpending (Makefile.am): Likewise.
59768         * modules/fprintftime (Makefile.am): Likewise.
59769         * modules/free (Makefile.am): Likewise.
59770         * modules/fsusage (Makefile.am): Likewise.
59771         * modules/ftruncate (Makefile.am): Likewise.
59772         * modules/fts (Makefile.am): Likewise.
59773         * modules/gc-arcfour (Makefile.am): Likewise.
59774         * modules/gc-des (Makefile.am): Likewise.
59775         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59776         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59777         * modules/gc-md4 (Makefile.am): Likewise.
59778         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59779         * modules/gc-sha1 (Makefile.am): Likewise.
59780         * modules/gc (Makefile.am): Likewise.
59781         * modules/getaddrinfo (Makefile.am): Likewise.
59782         * modules/getcwd (Makefile.am): Likewise.
59783         * modules/getdelim (Makefile.am): Likewise.
59784         * modules/getdomainname (Makefile.am): Likewise.
59785         * modules/getgroups (Makefile.am): Likewise.
59786         * modules/gethostname (Makefile.am): Likewise.
59787         * modules/gethrxtime (Makefile.am): Likewise.
59788         * modules/getline (Makefile.am): Likewise.
59789         * modules/getloadavg (Makefile.am): Likewise.
59790         * modules/getlogin_r (Makefile.am): Likewise.
59791         * modules/getndelim2 (Makefile.am): Likewise.
59792         * modules/getopt (Makefile.am): Likewise.
59793         * modules/getpagesize (Makefile.am): Likewise.
59794         * modules/getpass-gnu (Makefile.am): Likewise.
59795         * modules/getpass (Makefile.am): Likewise.
59796         * modules/getsubopt (Makefile.am): Likewise.
59797         * modules/gettime (Makefile.am): Likewise.
59798         * modules/gettimeofday (Makefile.am): Likewise.
59799         * modules/getugroups (Makefile.am): Likewise.
59800         * modules/getusershell (Makefile.am): Likewise.
59801         * modules/glob (Makefile.am): Likewise.
59802         * modules/group-member (Makefile.am): Likewise.
59803         * modules/hard-locale (Makefile.am): Likewise.
59804         * modules/hash (Makefile.am): Likewise.
59805         * modules/hmac-md5 (Makefile.am): Likewise.
59806         * modules/hmac-sha1 (Makefile.am): Likewise.
59807         * modules/human (Makefile.am): Likewise.
59808         * modules/idcache (Makefile.am): Likewise.
59809         * modules/imaxabs (Makefile.am): Likewise.
59810         * modules/imaxdiv (Makefile.am): Likewise.
59811         * modules/inet_ntop (Makefile.am): Likewise.
59812         * modules/inet_pton (Makefile.am): Likewise.
59813         * modules/intprops (Makefile.am): Likewise.
59814         * modules/inttostr (Makefile.am): Likewise.
59815         * modules/inttypes (Makefile.am): Likewise.
59816         * modules/isapipe (Makefile.am): Likewise.
59817         * modules/javaversion (Makefile.am): Likewise.
59818         * modules/lchmod (Makefile.am): Likewise.
59819         * modules/lchown (Makefile.am): Likewise.
59820         * modules/localcharset (Makefile.am): Likewise.
59821         * modules/long-options (Makefile.am): Likewise.
59822         * modules/lstat (Makefile.am): Likewise.
59823         * modules/malloc (Makefile.am): Likewise.
59824         * modules/mathl (Makefile.am): Likewise.
59825         * modules/mbchar (Makefile.am): Likewise.
59826         * modules/md2 (Makefile.am): Likewise.
59827         * modules/md4 (Makefile.am): Likewise.
59828         * modules/md5 (Makefile.am): Likewise.
59829         * modules/memcasecmp (Makefile.am): Likewise.
59830         * modules/memchr (Makefile.am): Likewise.
59831         * modules/memcmp (Makefile.am): Likewise.
59832         * modules/memcoll (Makefile.am): Likewise.
59833         * modules/memcpy (Makefile.am): Likewise.
59834         * modules/memmem (Makefile.am): Likewise.
59835         * modules/memmove (Makefile.am): Likewise.
59836         * modules/mempcpy (Makefile.am): Likewise.
59837         * modules/memrchr (Makefile.am): Likewise.
59838         * modules/memset (Makefile.am): Likewise.
59839         * modules/memxor (Makefile.am): Likewise.
59840         * modules/mkancesdirs (Makefile.am): Likewise.
59841         * modules/mkdir-p (Makefile.am): Likewise.
59842         * modules/mkdir (Makefile.am): Likewise.
59843         * modules/mkdtemp (Makefile.am): Likewise.
59844         * modules/mkstemp (Makefile.am): Likewise.
59845         * modules/mktime (Makefile.am): Likewise.
59846         * modules/modechange (Makefile.am): Likewise.
59847         * modules/mountlist (Makefile.am): Likewise.
59848         * modules/nanosleep (Makefile.am): Likewise.
59849         * modules/obstack (Makefile.am): Likewise.
59850         * modules/openat (Makefile.am): Likewise.
59851         * modules/pagealign_alloc (Makefile.am): Likewise.
59852         * modules/pathmax (Makefile.am): Likewise.
59853         * modules/physmem (Makefile.am): Likewise.
59854         * modules/poll (Makefile.am): Likewise.
59855         * modules/posixtm (Makefile.am): Likewise.
59856         * modules/posixver (Makefile.am): Likewise.
59857         * modules/putenv (Makefile.am): Likewise.
59858         * modules/quote (Makefile.am): Likewise.
59859         * modules/quotearg (Makefile.am): Likewise.
59860         * modules/raise (Makefile.am): Likewise.
59861         * modules/read-file (Makefile.am): Likewise.
59862         * modules/readline (Makefile.am): Likewise.
59863         * modules/readlink (Makefile.am): Likewise.
59864         * modules/readtokens (Makefile.am): Likewise.
59865         * modules/readutmp (Makefile.am): Likewise.
59866         * modules/realloc (Makefile.am): Likewise.
59867         * modules/regex (Makefile.am): Likewise.
59868         * modules/rename-dest-slash (Makefile.am): Likewise.
59869         * modules/rename (Makefile.am): Likewise.
59870         * modules/rijndael (Makefile.am): Likewise.
59871         * modules/rmdir (Makefile.am): Likewise.
59872         * modules/rpmatch (Makefile.am): Likewise.
59873         * modules/safe-read (Makefile.am): Likewise.
59874         * modules/safe-write (Makefile.am): Likewise.
59875         * modules/same-inode (Makefile.am): Likewise.
59876         * modules/same (Makefile.am): Likewise.
59877         * modules/save-cwd (Makefile.am): Likewise.
59878         * modules/savedir (Makefile.am): Likewise.
59879         * modules/setenv (Makefile.am): Likewise.
59880         * modules/settime (Makefile.am): Likewise.
59881         * modules/sha1 (Makefile.am): Likewise.
59882         * modules/sig2str (Makefile.am): Likewise.
59883         * modules/snprintf (Makefile.am): Likewise.
59884         * modules/stat-macros (Makefile.am): Likewise.
59885         * modules/stat-time (Makefile.am): Likewise.
59886         * modules/stdbool (Makefile.am): Likewise.
59887         * modules/stdint (Makefile.am): Likewise.
59888         * modules/stdlib-safer (Makefile.am): Likewise.
59889         * modules/stpcpy (Makefile.am): Likewise.
59890         * modules/stpncpy (Makefile.am): Likewise.
59891         * modules/strcase (Makefile.am): Likewise.
59892         * modules/strcasestr (Makefile.am): Likewise.
59893         * modules/strchrnul (Makefile.am): Likewise.
59894         * modules/strcspn (Makefile.am): Likewise.
59895         * modules/strdup (Makefile.am): Likewise.
59896         * modules/strerror (Makefile.am): Likewise.
59897         * modules/strftime (Makefile.am): Likewise.
59898         * modules/strndup (Makefile.am): Likewise.
59899         * modules/strnlen (Makefile.am): Likewise.
59900         * modules/strpbrk (Makefile.am): Likewise.
59901         * modules/strsep (Makefile.am): Likewise.
59902         * modules/strstr (Makefile.am): Likewise.
59903         * modules/strtod (Makefile.am): Likewise.
59904         * modules/strtoimax (Makefile.am): Likewise.
59905         * modules/strtok_r (Makefile.am): Likewise.
59906         * modules/strtol (Makefile.am): Likewise.
59907         * modules/strtoll (Makefile.am): Likewise.
59908         * modules/strtoul (Makefile.am): Likewise.
59909         * modules/strtoull (Makefile.am): Likewise.
59910         * modules/strtoumax (Makefile.am): Likewise.
59911         * modules/strverscmp (Makefile.am): Likewise.
59912         * modules/sys_socket (Makefile.am): Likewise.
59913         * modules/sys_stat (Makefile.am): Likewise.
59914         * modules/sysexits (Makefile.am): Likewise.
59915         * modules/time_r (Makefile.am): Likewise.
59916         * modules/timegm (Makefile.am): Likewise.
59917         * modules/timespec (Makefile.am): Likewise.
59918         * modules/tmpfile-safer (Makefile.am): Likewise.
59919         * modules/trim (Makefile.am): Likewise.
59920         * modules/unistd-safer (Makefile.am): Likewise.
59921         * modules/unlinkdir (Makefile.am): Likewise.
59922         * modules/unlocked-io (Makefile.am): Likewise.
59923         * modules/userspec (Makefile.am): Likewise.
59924         * modules/utime (Makefile.am): Likewise.
59925         * modules/utimecmp (Makefile.am): Likewise.
59926         * modules/utimens (Makefile.am): Likewise.
59927         * modules/vasnprintf (Makefile.am): Likewise.
59928         * modules/vasprintf (Makefile.am): Likewise.
59929         * modules/vsnprintf (Makefile.am): Likewise.
59930         * modules/xalloc (Makefile.am): Likewise.
59931         * modules/xgetcwd (Makefile.am): Likewise.
59932         * modules/xnanosleep (Makefile.am): Likewise.
59933         * modules/xreadlink (Makefile.am): Likewise.
59934         * modules/xstrtod (Makefile.am): Likewise.
59935         * modules/xstrtol (Makefile.am): Likewise.
59936         * modules/xstrtold (Makefile.am): Likewise.
59937         * modules/yesno (Makefile.am): Likewise.
59938         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59939
59940 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59941
59942         * modules/error (Makefile.am): Distribute files through
59943         EXTRA_DIST, not lib_SOURCES.
59944
59945 2006-10-12  Eric Blake  <ebb9@byu.net>
59946
59947         * modules/error (Makefile.am): Distribute files in /lib.
59948         * modules/obstack (Makefile.am): Likewise.
59949
59950 2006-10-12  Bruno Haible  <bruno@clisp.org>
59951
59952         * modules/acl (Makefile.am): Distribute all files in lib/ through
59953         EXTRA_DIST.
59954         * modules/arcfour (Makefile.am): Likewise.
59955         * modules/arctwo (Makefile.am): Likewise.
59956         * modules/argmatch (Makefile.am): Likewise.
59957         * modules/argz (Makefile.am): Likewise.
59958         * modules/atexit (Makefile.am): Likewise.
59959         * modules/backupfile (Makefile.am): Likewise.
59960         * modules/c-strtod (Makefile.am): Likewise.
59961         * modules/c-strtold (Makefile.am): Likewise.
59962         * modules/calloc (Makefile.am): Likewise.
59963         * modules/canon-host (Makefile.am): Likewise.
59964         * modules/canonicalize (Makefile.am): Likewise.
59965         * modules/chdir-long (Makefile.am): Likewise.
59966         * modules/chdir-safer (Makefile.am): Likewise.
59967         * modules/check-version (Makefile.am): Likewise.
59968         * modules/chown (Makefile.am): Likewise.
59969         * modules/cloexec (Makefile.am): Likewise.
59970         * modules/close-stream (Makefile.am): Likewise.
59971         * modules/closeout (Makefile.am): Likewise.
59972         * modules/crc (Makefile.am): Likewise.
59973         * modules/cycle-check (Makefile.am): Likewise.
59974         * modules/des (Makefile.am): Likewise.
59975         * modules/dirfd (Makefile.am): Likewise.
59976         * modules/dirname (Makefile.am): Likewise.
59977         * modules/dup2 (Makefile.am): Likewise.
59978         * modules/euidaccess (Makefile.am): Likewise.
59979         * modules/exclude (Makefile.am): Likewise.
59980         * modules/exitfail (Makefile.am): Likewise.
59981         * modules/fcntl-safer (Makefile.am): Likewise.
59982         * modules/file-type (Makefile.am): Likewise.
59983         * modules/fileblocks (Makefile.am): Likewise.
59984         * modules/filemode (Makefile.am): Likewise.
59985         * modules/filenamecat (Makefile.am): Likewise.
59986         * modules/fnmatch (Makefile.am): Likewise.
59987         * modules/fopen-safer (Makefile.am): Likewise.
59988         * modules/fpending (Makefile.am): Likewise.
59989         * modules/fprintftime (Makefile.am): Likewise.
59990         * modules/free (Makefile.am): Likewise.
59991         * modules/fsusage (Makefile.am): Likewise.
59992         * modules/ftruncate (Makefile.am): Likewise.
59993         * modules/fts (Makefile.am): Likewise.
59994         * modules/gc (Makefile.am): Likewise.
59995         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59996         * modules/getaddrinfo (Makefile.am): Likewise.
59997         * modules/getcwd (Makefile.am): Likewise.
59998         * modules/getdelim (Makefile.am): Likewise.
59999         * modules/getdomainname (Makefile.am): Likewise.
60000         * modules/getgroups (Makefile.am): Likewise.
60001         * modules/gethostname (Makefile.am): Likewise.
60002         * modules/gethrxtime (Makefile.am): Likewise.
60003         * modules/getline (Makefile.am): Likewise.
60004         * modules/getloadavg (Makefile.am): Likewise.
60005         * modules/getlogin_r (Makefile.am): Likewise.
60006         * modules/getopt (Makefile.am): Likewise.
60007         * modules/getpass (Makefile.am): Likewise.
60008         * modules/getpass-gnu (Makefile.am): Likewise.
60009         * modules/getsubopt (Makefile.am): Likewise.
60010         * modules/gettime (Makefile.am): Likewise.
60011         * modules/gettimeofday (Makefile.am): Likewise.
60012         * modules/getugroups (Makefile.am): Likewise.
60013         * modules/getusershell (Makefile.am): Likewise.
60014         * modules/glob (Makefile.am): Likewise.
60015         * modules/group-member (Makefile.am): Likewise.
60016         * modules/hard-locale (Makefile.am): Likewise.
60017         * modules/hash (Makefile.am): Likewise.
60018         * modules/hmac-md5 (Makefile.am): Likewise.
60019         * modules/hmac-sha1 (Makefile.am): Likewise.
60020         * modules/human (Makefile.am): Likewise.
60021         * modules/idcache (Makefile.am): Likewise.
60022         * modules/imaxabs (Makefile.am): Likewise.
60023         * modules/imaxdiv (Makefile.am): Likewise.
60024         * modules/inet_ntop (Makefile.am): Likewise.
60025         * modules/inet_pton (Makefile.am): Likewise.
60026         * modules/inttostr (Makefile.am): Likewise.
60027         * modules/isapipe (Makefile.am): Likewise.
60028         * modules/lchown (Makefile.am): Likewise.
60029         * modules/long-options (Makefile.am): Likewise.
60030         * modules/lstat (Makefile.am): Likewise.
60031         * modules/malloc (Makefile.am): Likewise.
60032         * modules/mathl (Makefile.am): Likewise.
60033         * modules/mbchar (Makefile.am): Likewise.
60034         * modules/md2 (Makefile.am): Likewise.
60035         * modules/md4 (Makefile.am): Likewise.
60036         * modules/md5 (Makefile.am): Likewise.
60037         * modules/memcasecmp (Makefile.am): Likewise.
60038         * modules/memchr (Makefile.am): Likewise.
60039         * modules/memcmp (Makefile.am): Likewise.
60040         * modules/memcoll (Makefile.am): Likewise.
60041         * modules/memcpy (Makefile.am): Likewise.
60042         * modules/memmem (Makefile.am): Likewise.
60043         * modules/memmove (Makefile.am): Likewise.
60044         * modules/mempcpy (Makefile.am): Likewise.
60045         * modules/memrchr (Makefile.am): Likewise.
60046         * modules/memset (Makefile.am): Likewise.
60047         * modules/memxor (Makefile.am): Likewise.
60048         * modules/mkancesdirs (Makefile.am): Likewise.
60049         * modules/mkdir (Makefile.am): Likewise.
60050         * modules/mkdir-p (Makefile.am): Likewise.
60051         * modules/mkdtemp (Makefile.am): Likewise.
60052         * modules/mkstemp (Makefile.am): Likewise.
60053         * modules/mktime (Makefile.am): Likewise.
60054         * modules/modechange (Makefile.am): Likewise.
60055         * modules/mountlist (Makefile.am): Likewise.
60056         * modules/nanosleep (Makefile.am): Likewise.
60057         * modules/openat (Makefile.am): Likewise.
60058         * modules/pagealign_alloc (Makefile.am): Likewise.
60059         * modules/physmem (Makefile.am): Likewise.
60060         * modules/poll (Makefile.am): Likewise.
60061         * modules/posixtm (Makefile.am): Likewise.
60062         * modules/posixver (Makefile.am): Likewise.
60063         * modules/putenv (Makefile.am): Likewise.
60064         * modules/quote (Makefile.am): Likewise.
60065         * modules/quotearg (Makefile.am): Likewise.
60066         * modules/raise (Makefile.am): Likewise.
60067         * modules/read-file (Makefile.am): Likewise.
60068         * modules/readline (Makefile.am): Likewise.
60069         * modules/readlink (Makefile.am): Likewise.
60070         * modules/readtokens (Makefile.am): Likewise.
60071         * modules/readutmp (Makefile.am): Likewise.
60072         * modules/realloc (Makefile.am): Likewise.
60073         * modules/regex (Makefile.am): Likewise.
60074         * modules/rename (Makefile.am): Likewise.
60075         * modules/rename-dest-slash (Makefile.am): Likewise.
60076         * modules/rijndael (Makefile.am): Likewise.
60077         * modules/rmdir (Makefile.am): Likewise.
60078         * modules/rpmatch (Makefile.am): Likewise.
60079         * modules/safe-read (Makefile.am): Likewise.
60080         * modules/safe-write (Makefile.am): Likewise.
60081         * modules/same (Makefile.am): Likewise.
60082         * modules/save-cwd (Makefile.am): Likewise.
60083         * modules/savedir (Makefile.am): Likewise.
60084         * modules/setenv (Makefile.am): Likewise.
60085         * modules/settime (Makefile.am): Likewise.
60086         * modules/sha1 (Makefile.am): Likewise.
60087         * modules/sig2str (Makefile.am): Likewise.
60088         * modules/snprintf (Makefile.am): Likewise.
60089         * modules/stdlib-safer (Makefile.am): Likewise.
60090         * modules/stpcpy (Makefile.am): Likewise.
60091         * modules/stpncpy (Makefile.am): Likewise.
60092         * modules/strcase (Makefile.am): Likewise.
60093         * modules/strcasestr (Makefile.am): Likewise.
60094         * modules/strchrnul (Makefile.am): Likewise.
60095         * modules/strcspn (Makefile.am): Likewise.
60096         * modules/strdup (Makefile.am): Likewise.
60097         * modules/strerror (Makefile.am): Likewise.
60098         * modules/strftime (Makefile.am): Likewise.
60099         * modules/strndup (Makefile.am): Likewise.
60100         * modules/strnlen (Makefile.am): Likewise.
60101         * modules/strpbrk (Makefile.am): Likewise.
60102         * modules/strsep (Makefile.am): Likewise.
60103         * modules/strstr (Makefile.am): Likewise.
60104         * modules/strtod (Makefile.am): Likewise.
60105         * modules/strtoimax (Makefile.am): Likewise.
60106         * modules/strtok_r (Makefile.am): Likewise.
60107         * modules/strtol (Makefile.am): Likewise.
60108         * modules/strtoll (Makefile.am): Likewise.
60109         * modules/strtoul (Makefile.am): Likewise.
60110         * modules/strtoull (Makefile.am): Likewise.
60111         * modules/strtoumax (Makefile.am): Likewise.
60112         * modules/strverscmp (Makefile.am): Likewise.
60113         * modules/time_r (Makefile.am): Likewise.
60114         * modules/timegm (Makefile.am): Likewise.
60115         * modules/tmpfile-safer (Makefile.am): Likewise.
60116         * modules/unistd-safer (Makefile.am): Likewise.
60117         * modules/unlinkdir (Makefile.am): Likewise.
60118         * modules/userspec (Makefile.am): Likewise.
60119         * modules/utime (Makefile.am): Likewise.
60120         * modules/utimecmp (Makefile.am): Likewise.
60121         * modules/utimens (Makefile.am): Likewise.
60122         * modules/vasnprintf (Makefile.am): Likewise.
60123         * modules/vasprintf (Makefile.am): Likewise.
60124         * modules/vsnprintf (Makefile.am): Likewise.
60125         * modules/xalloc (Makefile.am): Likewise.
60126         * modules/xgetcwd (Makefile.am): Likewise.
60127         * modules/xnanosleep (Makefile.am): Likewise.
60128         * modules/xreadlink (Makefile.am): Likewise.
60129         * modules/xstrtod (Makefile.am): Likewise.
60130         * modules/xstrtol (Makefile.am): Likewise.
60131         * modules/xstrtold (Makefile.am): Likewise.
60132         * modules/yesno (Makefile.am): Likewise.
60133
60134 2006-10-12  Jim Meyering  <jim@meyering.net>
60135
60136         * m4/getloadavg.m4: Revert the change below.
60137
60138         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60139         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60140         fail with a symlink, which is what coreutils' ./bootstrap now
60141         creates by default.
60142
60143 2006-10-12  Bruno Haible  <bruno@clisp.org>
60144
60145         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60146         mingw.
60147         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60148         MSVC and mingw explicitly.
60149
60150 2006-10-11  Simon Josefsson  <jas@extundo.com>
60151             Bruno Haible  <bruno@clisp.org>
60152
60153         Add support for multiple gnulib-tool invocations in the scope of a
60154         single configure.ac file.
60155         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60156         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60157         with the same contents as the _LIBADD variable.
60158         (func_emit_initmacro_start, func_emit_initmacro_end,
60159         func_emit_initmacro_done): New functions.
60160         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60161         gl_LIBOBJS and gl_LTLIBOBJS.
60162
60163 2006-10-11  Bruno Haible  <bruno@clisp.org>
60164
60165         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60166         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60167         autoreconf. Instead, invoke autopoint explicitly but move back the
60168         *.m4 files from gnulib.
60169
60170 2006-10-11  Bruno Haible  <bruno@clisp.org>
60171
60172         * gnulib-tool (func_usage): Make module names after --create-testdir
60173         optional.
60174         (func_create_testdir): If no module was specified, use nearly all
60175         modules.
60176
60177 2006-10-12  Jim Meyering  <jim@meyering.net>
60178
60179         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60180         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60181         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60182         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60183         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60184         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60185         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60186         (fts_set_stat_required): New function.
60187         (fts_open): Defer the calls to fts_stat, if possible or requested.
60188         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60189         into fts_stat itself.
60190         (fts_read): Perform any required (deferred) fts_stat call.
60191         (fts_build): Likewise, for the directory we're about to open and read.
60192         In the readdir loop, carefully decide whether each entry will require
60193         an eventual call to fts_stat, using dirent.d_type info if available.
60194         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60195         a command line argument into this function.  Update all callers.
60196         Map a return value of FTS_DOT to FTS_D for a command line argument.
60197         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60198         Thanks to Miklos Szeredi for his tenacity and for the initial
60199         bug report about "find" failing on a FUSE-based file system.
60200
60201         * lib/fts.c (fts_open): Use consistent indentation.
60202
60203 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60204
60205         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60206         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60207         reported by Jim Meyering.  All uses of cache variables renamed
60208         to match Autoconf's.
60209         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60210         the other one.
60211
60212         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60213         Fix misspelling in diagnostic.
60214
60215 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60218         defined.  Problem reported by Matthew Woehlke.
60219
60220         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60221         Add support for Tandem NonStop R series.
60222         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60223         Use new macro.
60224
60225         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60226         (has_trailing_slash): Omit size arg; all callers changed.
60227         Omit 'inline', since it doesn't help performance and we'd
60228         need to configure it.
60229         Don't count //, ///, etc. as having a trailing slash.
60230         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60231         (rpl_rename_dest_slash): On failure, use rename's errno rather
60232         than (in some cases) an incorrect or junk errno.
60233         Simplify code by removing need to compute length; this does
60234         cause it to make two passes instead of one over the file name,
60235         but it's worth it.
60236
60237         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60238         change, since Autoconf's version may no longer be appropriate now
60239         that we are using CVS Autoconf's version.  Add support for Tandem.
60240
60241 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60242             Bruno Haible  <bruno@clisp.org>
60243
60244         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60245         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60246         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60247         gl_AC_TYPE_LONG_LONG.
60248
60249         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60250         instead of HAVE_LONG_LONG.
60251         * lib/printf-args.c (printf_fetchargs): Likewise.
60252         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60253         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60254         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60255         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60256         gl_AC_TYPE_LONG_LONG.
60257
60258 2006-10-11  Bruno Haible  <bruno@clisp.org>
60259
60260         * m4/longlong.m4: Add comments.
60261         * m4/ulonglong.m4: Likewise.
60262
60263 2006-10-10  Bruno Haible  <bruno@clisp.org>
60264
60265         Make it possible to #define stpcpy, strdup to aliases.
60266         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60267         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60268
60269 2006-10-10  Bruno Haible  <bruno@clisp.org>
60270
60271         Make it possible to #define gcd to an alias.
60272         * lib/gcd.c: Include config.h.
60273
60274 2006-10-10  Bruno Haible  <bruno@clisp.org>
60275
60276         Make it possible to #define c_isascii to an alias.
60277         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60278         defined. Undefine the macros before defining them, to avoid gcc
60279         warnings.
60280         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60281         define NO_C_CTYPE_MACROS early.
60282
60283 2006-10-10  Bruno Haible  <bruno@clisp.org>
60284
60285         Make it possible to #define set_program_name to an alias.
60286         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60287         ENABLE_RELOCATABLE early.
60288
60289 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60290
60291         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60292         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60293         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60294         More generally, don't assume that 64-bit signed int is available
60295         if unsigned int is, and vice versa.
60296         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60297         unsigned symbols, not on their signed counterparts.
60298         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60299         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60300         (UINT64_C, UINTMAX_C):
60301         Likewise.
60302         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60303         unsigned counterparts.
60304         (Have_long_long, Unsigned): New macros.
60305         (Int): Renamed from INT.
60306         (strtoimax): Use the new macros.
60307         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60308         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60309         * modules/inttypes (inttypes.h): Substitute
60310         HAVE_UNSIGNED_LONG_LONG_INT.
60311         * modules/stdint (stdint.h): Likewise.
60312         (Files): Add m4/ulonglong.m4.
60313
60314 2006-10-10  Bruno Haible  <bruno@clisp.org>
60315
60316         Fix a gcc -Wshadow warning.
60317         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60318         to 'bucket'.
60319         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60320         gl_linked_indexof_from_to): Likewise.
60321         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60322         Likewise.
60323         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60324         Likewise.
60325         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60326         Reported by Eric Blake.
60327
60328 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60331         for NetBSD.  Problem reported by Bruno Haible.
60332
60333 2006-10-09  Jim Meyering  <jim@meyering.net>
60334
60335         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60336         Patch from Bruno Haible.
60337
60338 2006-10-09  Jim Meyering  <jim@meyering.net>
60339
60340         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60341         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60342         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60343
60344 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60345
60346         Don't include <config.h> twice; this doesn't work in some cases,
60347         e.g., when config.h has "#define intmax_t long long int" and
60348         we include <config.h>, <inttypes.h>, <config.h> in that order.
60349         Problem reported by Matthew Woehlke in:
60350         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60351         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60352         * lib/fts-cycle.c: Don't include config.h.
60353         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60354         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60355         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60356         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60357         inttypes.h.
60358         * lib/xstrtoumax.c: Likewise.
60359         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60360         __strtol and the like, so that this module is more like its siblings.
60361         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60362         Remove; no longer needed now that we assume gnulib inttypes.h.
60363
60364 2006-10-08  Bruno Haible  <bruno@clisp.org>
60365
60366         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60367         option.
60368
60369 2006-10-07  Jim Meyering  <jim@meyering.net>
60370
60371         * modules/inttypes (inttypes.h): Revert what seems to have been
60372         an inadvertent part of today's change: use "|", not "/" in the
60373         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60374
60375 2006-10-07  Bruno Haible  <bruno@clisp.org>
60376
60377         * modules/sublist: New file.
60378
60379 2006-10-07  Bruno Haible  <bruno@clisp.org>
60380
60381         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60382         * modules/argz (argz.h): Likewise.
60383         * modules/arpa_inet (arpa/inet.h): Likewise.
60384         * modules/byteswap (byteswap.h): Likewise.
60385         * modules/configmake (configmake.h): Likewise.
60386         * modules/fcntl (fcntl.h): Likewise.
60387         * modules/fnmatch (fnmatch.h): Likewise.
60388         * modules/getopt (getopt.h): Likewise.
60389         * modules/glob (glob.h): Likewise.
60390         * modules/inttypes (inttypes.h): Likewise.
60391         * modules/netinet_in (netinet/in.h): Likewise.
60392         * modules/poll (poll.h): Likewise.
60393         * modules/stdbool (stdbool.h): Likewise.
60394         * modules/stdint (stdint.h): Likewise.
60395         * modules/sys_select (sys/select.h): Likewise.
60396         * modules/sys_socket (sys/socket.h): Likewise.
60397         * modules/sys_stat (sys/stat.h): Likewise.
60398         * modules/sysexits (sysexits.h): Likewise.
60399         * modules/unistd (unistd.h): Likewise.
60400         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60401         Add a "DO NOT EDIT" comment to the generated file.
60402         (func_import): Likewise for gnulib-comp.m4.
60403
60404 2006-10-07  Bruno Haible  <bruno@clisp.org>
60405
60406         * lib/gl_sublist.h: New file.
60407         * lib/gl_sublist.c: New file.
60408
60409 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60410
60411         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60412         name (relative to the original working directory) and the file
60413         name component (relative to the temporary working directory).  All
60414         callers changed.
60415         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60416         * lib/mkdir-p.c (make_dir_parents): Likewise.
60417         * lib/mkdir-p.h (make_dir_parents): Likewise.
60418
60419 2006-10-06  Eric Blake  <ebb9@byu.net>
60420
60421         Define several macros for use by the clean-temp module.
60422         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60423         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60424         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60425
60426         * lib/clean-temp.h (close_stream_temp): New declaration.
60427         * lib/clean-temp.c (includes): Pull in headers according to what
60428         other modules are in use.
60429         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60430
60431 2006-10-06  Bruno Haible  <bruno@clisp.org>
60432
60433         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60434         instead of fopen, fwriteerror.
60435
60436 2006-10-06  Bruno Haible  <bruno@clisp.org>
60437
60438         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60439         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60440         int.
60441         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60442         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60443         Return an error indicator.
60444         Suggested by Eric Blake.
60445
60446 2006-10-06  Bruno Haible  <bruno@clisp.org>
60447
60448         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60449         Reported by Eric Blake.
60450
60451 2006-10-06  Bruno Haible  <bruno@clisp.org>
60452
60453         * modules/closeout (Description): Mention stderr too.
60454
60455 2006-10-06  Bruno Haible  <bruno@clisp.org>
60456         and Paul Eggert  <eggert@cs.ucla.edu>
60457
60458         * lib/closeout.c (close_stdout): Also close stderr.
60459         * lib/closeout.h: Update comment.
60460
60461 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60462
60463         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60464         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60465         * lib/dirchownmod.c: Include lchown.h.
60466         * lib/lchown.c: Don't include files that lchown.h now includes.
60467         Don't declare chown, since lchown.h now does that.
60468         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60469         (lchown): Define to rpl_chown if lchown is declared but
60470         does not exist.  Declare using a prototype if lchown is not
60471         declared.  Add a copyright notice.
60472         * lib/mkstemp.h: Include <unistd.h>.
60473         * lib/openat.c: Include lchown.h.
60474
60475         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60476         we now test for that separately.
60477         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60478         rather than O_NOFOLLOW, when testing whether it's possible to
60479         avoid a race condition reliably.
60480         * lib/savewd.c (savewd_chdir): Likewise.
60481
60482         Remove macros that are no longer needed now that stdint.h is
60483         reliable.
60484         * lib/fsusage.c (UINTMAX_MAX): Remove.
60485         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60486         * lib/utimecmp.c (SIZE_MAX): Remove.
60487
60488         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60489
60490         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60491         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60492         O_NOATIME works.
60493
60494 2006-10-05  Bruno Haible  <bruno@clisp.org>
60495
60496         * lib/gl_list.h (gl_sortedlist_search_from_to,
60497         gl_sortedlist_indexof_from_to): New declarations.
60498         (gl_list_implementation): New fields sortedlist_search_from_to,
60499         sortedlist_indexof_from_to.
60500         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60501         inline functions.
60502         * lib/gl_list.c (gl_sortedlist_search_from_to,
60503         gl_sortedlist_indexof_from_to): New functions.
60504         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60505         function.
60506         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60507         (gl_array_sortedlist_search_from_to): New function.
60508         (gl_array_list_implementation): Update.
60509         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60510         function.
60511         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60512         (gl_carray_sortedlist_search_from_to): New function.
60513         (gl_carray_list_implementation): Update.
60514         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60515         gl_linked_sortedlist_indexof_from_to): New functions.
60516         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60517         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60518         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60519         gl_tree_sortedlist_indexof_from_to): New functions.
60520         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60521         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60522         Update.
60523         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60524         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60525         Update.
60526
60527 2006-10-05  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60530         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60531         (struct gl_list_implementation): Add fields search_from_to,
60532         indexof_from_to. Remove fields search, indexof.
60533         (gl_list_search): Use the search_from_to method.
60534         (gl_list_search_from, gl_list_search_from_to): New functions.
60535         (gl_list_indexof): Use the indexof_from_to method.
60536         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60537         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60538         (gl_list_search_from, gl_list_search_from_to): New functions.
60539         (gl_list_indexof): Use the indexof_from_to method.
60540         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60541         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60542         gl_array_indexof. Add start_index, end_index arguments.
60543         (gl_array_search_from_to): Renamed from gl_array_search. Add
60544         start_index, end_index arguments.
60545         (gl_array_remove, gl_array_list_implementation): Update.
60546         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60547         gl_carray_indexof. Add start_index, end_index arguments.
60548         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60549         start_index, end_index arguments.
60550         (gl_carray_remove, gl_carray_list_implementation): Update.
60551         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60552         gl_linked_search. Add start_index, end_index arguments.
60553         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60554         start_index, end_index arguments.
60555         (gl_linked_remove): Update.
60556         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60557         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60558         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60559         field to 'size_t'.
60560         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60561         gl_tree_search. Add start_index, end_index arguments.
60562         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60563         start_index, end_index arguments.
60564         (gl_tree_remove): Update.
60565         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60566         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60567         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60568         function.
60569         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60570         gl_tree_search. Add start_index, end_index arguments.
60571         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60572         start_index, end_index arguments.
60573         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60574         Update.
60575         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60576
60577 2006-10-05  Bruno Haible  <bruno@clisp.org>
60578
60579         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60580
60581         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60582         fwriteerror_temp): New declarations.
60583         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60584         (descriptors): New variable.
60585         (cleanup): First, close the descriptors.
60586         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60587         fclose_temp, fwriteerror_temp): New functions.
60588
60589 2006-10-04  Jim Meyering  <jim@meyering.net>
60590
60591         * lib/fts.c (fts_open): Tiny comment change.
60592
60593 2006-10-04  Bruno Haible  <bruno@clisp.org>
60594
60595         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60596         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60597         gl_LOCK_BODY.
60598         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60599         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60600         gl_LOCK_EARLY_BODY.
60601         (gl_LOCK): Require gl_LOCK_BODY.
60602
60603 2006-10-04  Bruno Haible  <bruno@clisp.org>
60604
60605         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60606         (gl_oset_search_atleast): New declaration.
60607         (struct gl_oset_implementation): Add field 'search_atleast'.
60608         (gl_oset_search_atleast): New inline function.
60609         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60610         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60611         (gl_array_oset_implementation): Update.
60612         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60613         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60614         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60615
60616 2006-10-04  Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60619
60620 2006-10-03  Bruno Haible  <bruno@clisp.org>
60621
60622         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60623         from gl_avltreehash_list_implementation.
60624
60625 2006-10-03  Bruno Haible  <bruno@clisp.org>
60626
60627         * lib/gl_oset.c (gl_oset_add): Fix return type.
60628
60629 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60630
60631         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60632
60633 2006-10-02  Eric Blake  <ebb9@byu.net>
60634
60635         * modules/strnlen (Depends-on): Add extensions.
60636
60637 2006-10-02  Eric Blake  <ebb9@byu.net>
60638
60639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60640         definition in 2.60+.
60641
60642 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60643
60644         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60645         checks.
60646
60647 2006-10-02  Bruno Haible  <bruno@clisp.org>
60648
60649         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60650         to the AUTOMAKE_OPTIONS.
60651         Reported by Jim Meyering.
60652
60653 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60654
60655         Work around bug in Solaris 10 /proc file system:
60656         /proc/self/fd/NNN/.. isn't the parent directory of
60657         the directory whose file descriptor is NNN.  This needs to
60658         be worked around at run time, not compile time, since a
60659         program might be built on Solaris 8, where things work, and
60660         run on Solaris 10.
60661         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60662         to use the following interface instead:
60663         (OPENAT_BUFFER_SIZE): New macro.
60664         (openat_proc_name): New function.
60665         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60666         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60667         Likewise.
60668         * lib/openat-proc.c: New file.
60669         * modules/openat (Files): Add lib/openat-proc.c.
60670         (Depends-on): Add same-inode, stdbool.
60671         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60672
60673 2006-09-29  Bruno Haible  <bruno@clisp.org>
60674
60675         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60676         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60677         argument. Set stdout_closed before testing for ferror, not after.
60678         (fwriteerror, fwriteerror_no_ebadf): New functions.
60679
60680 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60681
60682         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60683
60684 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60685
60686         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60687         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60688
60689 2006-09-28  Jim Meyering  <jim@meyering.net>
60690
60691         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60692         Include <unistd.h>.
60693
60694 2006-09-28  Bruno Haible  <bruno@clisp.org>
60695
60696         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60697         * modules/linkedhash-list (Depends-on): Likewise.
60698         * modules/rbtreehash-list (Depends-on): Likewise.
60699
60700 2006-09-28  Bruno Haible  <bruno@clisp.org>
60701
60702         * lib/strndup.h: Simplify the redefinition of strndup.
60703         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60704         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60705
60706 2006-09-28  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60709         * lib/gl_linkedhash_list.c: Likewise.
60710         * lib/gl_rbtreehash_list.c: Likewise.
60711
60712 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60715         getaddrinfo.
60716
60717         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60718         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60719         it causes <stdio_ext.h> to cause a compile-time error.
60720         Problem reported by Nelson H. F. Beebe.
60721         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60722         of HAVE_DECL___PENDING.
60723
60724         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60725         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60726         declaration.
60727
60728 2006-09-27  Jim Meyering  <jim@meyering.net>
60729
60730         This file could end up with a definition for a function
60731         named __strndup, rather than rpl_strndup on a system with
60732         incomplete weak_alias support.
60733         * lib/strndup.c (strndup): Rename from __strndup.
60734         Remove #defines that used to map __strndup to strndup.
60735         Don't use K&R prototypes.
60736         Remove LIBC-related code, since this file is not sync'd with glibc.
60737         * lib/strndup.h: Revamp, accordingly.
60738         * m4/strndup.m4: Modernize.
60739
60740 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         * modules/savewd (Depends-on): Add 'raise'.
60743         * lib/savewd.c: Include <signal.h>, for 'raise'.
60744
60745 2006-09-26  Jim Meyering  <jim@meyering.net>
60746
60747         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60748         when we detect Darwin 8.7.0's acl_get_file bug.
60749         Rearrange to perform the new (below) run-test while $LIBS
60750         contains any acl-related library.  Set USE_ACL at the end.
60751         (gl_ACL_GET_FILE): New function.
60752
60753 2006-09-26  Eric Blake  <ebb9@byu.net>
60754
60755         * lib/verror.c: Include <config.h> unconditionally.
60756
60757 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60758
60759         * modules/clock-time (Maintainer): Add self.
60760         * modules/getlogin_r (Depends-on): Add extensions.
60761
60762 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60763
60764         * modules/clock-time: New module.
60765         * modules/nanosleep (Depends-on): Add clock-time.
60766         * modules/gethrxtime (Depends-on): Likewise.
60767         * modules/gettime (Depends-on): Likewise.
60768         * modules/settime (Depends-on): Likewise.
60769
60770         * modules/fts-lgpl: Depend on openat.
60771         * modules/mkancesdirs: Depend on savewd.
60772         * modules/mkdir-p: Likewise.
60773
60774 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60775
60776         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60777
60778         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60779         `gl_have_arbitrary_file_name_length_limit' to
60780         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60781         actually works between configure runs.
60782
60783 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60784             Bruno Haible  <bruno@clisp.org>
60785
60786         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60787
60788 2006-09-25  Jim Meyering  <jim@meyering.net>
60789
60790         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60791         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60792
60793 2006-09-25  Eric Blake  <ebb9@byu.net>
60794
60795         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60796         exec's in 2006-09-18 patch when shuffling fds.
60797
60798 2006-09-25  Bruno Haible  <bruno@clisp.org>
60799
60800         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60801         Reported by Jim Meyering.
60802
60803 2006-09-24  Jim Meyering  <jim@meyering.net>
60804
60805         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60806         compare a pointer against a literal "0".  That caused failures with
60807         at least HP-UX's hpcc.
60808
60809 2006-09-22  Simon Josefsson  <jas@extundo.com>
60810
60811         * modules/gc-sha1:
60812         * modules/gc-md4:
60813         * modules/gc-hmac-sha1:
60814         * modules/gc-hmac-md5:
60815         * modules/gc-des:
60816         * modules/gc-arcfour: Distribute more files.
60817
60818 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60819
60820         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60821         (gl_linked_iterator_from_to): Initialize struct completely.
60822         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60823         (gl_tree_iterator_from_to): Likewise
60824         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60825         * lib/gl_array_list.c [lint] (gl_array_iterator)
60826         (gl_array_iterator_from_to): Likewise.
60827         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60828         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60829         (gl_carray_iterator_from_to): Likewise.
60830
60831         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60832         * lib/md4.c (md4_process_block): Remove unused variable.
60833         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60834         parentheses for clarity.
60835
60836 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60837
60838         * modules/bison-i18n (Depends-on): Add gettext.
60839
60840 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60841
60842         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60843         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60844         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60845         also add missing comma that caused broken test.
60846         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60847         stdlib.h, for `abort'.
60848         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60849         variables.
60850         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60851         include unistd.h if present, for `rmdir'.
60852         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60853         variables.
60854         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60855         in the process include standard headers for prototypes.
60856         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60857         gets declared on GNU/Linux.
60858         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60859         unistd.h, for `rmdir'.
60860         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60861
60862         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60863         always true.
60864         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60865
60866         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60867
60868 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60869
60870         * gnulib-tool (func_version): Create output all at once.  This
60871         may help avoid triggering unnecessary SIGPIPEs, and at any
60872         rate it doesn't hurt.
60873
60874 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60875             Bruno Haible  <bruno@clisp.org>
60876
60877         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60878         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60879         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60880
60881         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60882         (gl_FUNC_VASPRINTF): Invoke it.
60883
60884 2006-09-22  Bruno Haible  <bruno@clisp.org>
60885
60886         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60887         getloadavg.c as first argument.
60888
60889 2006-09-22  Bruno Haible  <bruno@clisp.org>
60890
60891         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60892         at the beginning of the gl_INIT macro.
60893         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60894         gl_GETLOADAVG.
60895
60896 2006-09-22  Bruno Haible  <bruno@clisp.org>
60897
60898         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60899         module.
60900         Suggested by Ralf Wildenhues.
60901
60902 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         Import this patch from libc:
60905
60906         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60907
60908         * lib/regex_internal.c (re_string_reconstruct): Handle
60909         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60910         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60911         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60912         re_string_context_at.
60913
60914         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60915         now requires it.
60916         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60917         gl_REGEX now does it for us.
60918         (gl_REGEX): Add test taken from
60919         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60920
60921         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60922         Check that large offsets work.  Modernize Autoconf usages.
60923         Prefer "yes" to mean a good thing rather than a bad.
60924         Don't put "#define mkstemp" in config.h, as this might interfere
60925         with standard system headers that "#define mkstemp mkstemp64".
60926
60927         * modules/mkstemp (Depends-on): Add extensions, so that
60928         mkstemp is visible on some platforms.
60929         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60930         (Include): Change to "mkstemp.h" from <stdlib.h>.
60931         (Files): Add mkstemp.h.
60932
60933         * lib/mkstemp.h: New file, since some standard headers
60934         #define mkstemp.
60935         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60936         Include "mkstemp.h".
60937         Make the _LIBC code resemble glibc original more,
60938         e.g., use K&R style.
60939         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60940         (mkstemp): Remove, since mkstemp.h does this for us.
60941         * lib/stdlib--.h: Include mkstemp.h.
60942
60943         Import this patch from libc:
60944
60945         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60946
60947         * lib/tempname.c (__gen_tempname): Change attempts_min
60948         into a macro.  Use preprocessor to decide how to initialize
60949         attempts [Coverity CID 67].
60950
60951 2006-09-20  Bruno Haible  <bruno@clisp.org>
60952
60953         * lib/mkdtemp.c: Import from libc.
60954         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60955                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60956                 attempts_min into a macro.  Use preprocessor to decide how to
60957                 initialize attempts [Coverity CID 67].
60958         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60959                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60960                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60961
60962 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60963
60964         * gnulib-tool (func_exit): New function, to allow to pass the
60965         exit status portably through the trap.  Use everywhere.
60966         (--help, --version): Signal a write error.
60967         (trap): catch SIGPIPE, for write errors.
60968         Exit at the end of the trap, with the correct exit status.
60969
60970 2006-09-19  Karl Berry  <karl@gnu.org>
60971
60972         * doc/gnulib.texi: note about the license texinfo files.
60973
60974 2006-09-19  Eric Blake  <ebb9@byu.net>
60975
60976         * gnulib-tool: Avoid space-tab.
60977
60978 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60979
60980         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60981         that prevented coreutils 6.1 from building.  Problem reported
60982         by Petter Reinholdtsen.
60983
60984 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60985
60986         * gnulib-tool (avoidlist): Fix typo that broke options like
60987         --avoid=lock that are used by coreutils bootstrap.
60988
60989 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60990
60991         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60992         more systematically.
60993
60994 2006-09-18  Jim Meyering  <jim@meyering.net>
60995
60996         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60997
60998 2006-09-18  Bruno Haible  <bruno@clisp.org>
60999
61000         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61001
61002 2006-09-18  Bruno Haible  <bruno@clisp.org>
61003
61004         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61005         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61006         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61007         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61008         * m4/gettext.m4: Require autoconf >= 2.52.
61009         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61010         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61011         of gl_cv_header_inttypes_h.
61012
61013 2006-09-18  Bruno Haible  <bruno@clisp.org>
61014
61015         * lib/javaversion.c: Include configmake.h.
61016
61017 2006-09-18  Bruno Haible  <bruno@clisp.org>
61018
61019         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61020         avoid that the while loops be executed in a subshell.
61021
61022 2006-09-18  Bruno Haible  <bruno@clisp.org>
61023
61024         * MODULES.html.sh (func_module): Break long lines.
61025         Suggested by Bruce Korb <bkorb@gnu.org>.
61026
61027 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61028
61029         Speed up by a factor of 1.12.
61030         * gnulib-tool (nl): New variable.
61031         (func_import): Rewrite include directive extraction to only read each
61032         directive once.
61033
61034 2006-09-17  Bruno Haible  <bruno@clisp.org>
61035
61036         * modules/javaversion (Makefile.am): Remove DEFS setting.
61037         (Depends-on): Add configmake, for PKGDATADIR definition.
61038
61039 2006-09-17  Bruno Haible  <bruno@clisp.org>
61040
61041         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61042
61043 2006-09-17  Bruno Haible  <bruno@clisp.org>
61044
61045         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61046         (func_modules_transitive_closure, func_modules_add_dummy,
61047         func_modules_to_filelist, func_import, func_create_testdir,
61048         func_create_megatestdir, ...): Use it wherever possible.
61049         Suggested by Ralf Wildenhues.
61050
61051 2006-09-16  Karl Berry  <karl@gnu.org>
61052
61053         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61054         to avoid sectioning errors.
61055         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61056         [ifinfo]: blank line after @center-ed titles.
61057         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61058         Spell FSF address consistently with others.
61059         (These changes approved by rms.)
61060
61061 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61062
61063         Speed up by a factor of 1.61.
61064         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61065         already checked module names again.
61066
61067 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61068
61069         Speed up by a factor of 1.13.
61070         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61071         for new_files, and the input to func_add_or_update.
61072
61073 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61074
61075         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61076         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61077
61078 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61079
61080         * modules/mkancesdirs (Depends-on): Add fcntl.
61081         * modules/savewd: New file.
61082         * MODULES.html.sh (File system functions): Add savewd.
61083
61084         * modules/configmake (Makefile.am): Add support for the
61085         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61086
61087 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61088
61089         * m4/savewd.m4: New file.
61090
61091 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61092
61093         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61094         (dirchownmod): New arg FD.  All callers changed.
61095         Use FD rather than opening the directory ourself, as opening is
61096         now the caller's responsibility.
61097         * lib/dirchownmod.h: Likewise.
61098         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61099         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61100         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61101         (test_dir): Remove.
61102         (mkancesdirs): Return length of prefix of FILE that has already
61103         been made, or -2 if there is a child doing the work.  Redo
61104         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61105         ".", and treat ".." specially since it might stray back into
61106         already-created areas.  Use a subprocess if necessary.  New arg
61107         WD; all users changed.  MAKE_DIR function should now return 1
61108         if it creates a directory that is not readable.  Return -2 if
61109         a child process is spun off.
61110         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61111         Adjust signature to match code.
61112         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61113         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61114         all users changed.
61115         * lib/savewd.c, lib/savewd.h: New files.
61116
61117 2006-09-15  Jim Meyering  <jim@meyering.net>
61118
61119         * modules/rename-dest-slash: New module.
61120         * MODULES.html.sh (posix_compat): Add it here.
61121
61122         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61123
61124 2006-09-15  Jim Meyering  <jim@meyering.net>
61125
61126         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61127         file.
61128
61129         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61130
61131 2006-09-15  Jim Meyering  <jim@meyering.net>
61132
61133         * lib/rename-dest-slash.c (has_trailing_slash): Use
61134         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61135         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61136         test before testing whether SRC is a directory.
61137         Suggestions from Bruno Haible.
61138
61139         Avoid a warning about an unused variable.
61140         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61141         into the #ifdef block where it's used.
61142
61143         * lib/rename-dest-slash.c: New file.
61144
61145 2006-09-14  Bruno Haible  <bruno@clisp.org>
61146
61147         * lib/allocsa.c: Include <config.h> unconditionally.
61148         * lib/asnprintf.c: Likewise.
61149         * lib/asprintf.c: Likewise.
61150         * lib/c-strcasecmp.c: Likewise.
61151         * lib/c-strcasestr.c: Likewise.
61152         * lib/c-strncasecmp.c: Likewise.
61153         * lib/c-strstr.c: Likewise.
61154         * lib/classpath.c: Likewise.
61155         * lib/clean-temp.c: Likewise.
61156         * lib/concatpath.c: Likewise.
61157         * lib/copy-file.c: Likewise.
61158         * lib/csharpcomp.c: Likewise.
61159         * lib/csharpexec.c: Likewise.
61160         * lib/execute.c: Likewise.
61161         * lib/fatal-signal.c: Likewise.
61162         * lib/findprog.c: Likewise.
61163         * lib/fwriteerror.c: Likewise.
61164         * lib/gl_array_list.c: Likewise.
61165         * lib/gl_array_oset.c: Likewise.
61166         * lib/gl_avltree_list.c: Likewise.
61167         * lib/gl_avltree_oset.c: Likewise.
61168         * lib/gl_avltreehash_list.c: Likewise.
61169         * lib/gl_carray_list.c: Likewise.
61170         * lib/gl_linked_list.c: Likewise.
61171         * lib/gl_linkedhash_list.c: Likewise.
61172         * lib/gl_list.c: Likewise.
61173         * lib/gl_oset.c: Likewise.
61174         * lib/gl_rbtree_list.c: Likewise.
61175         * lib/gl_rbtree_oset.c: Likewise.
61176         * lib/gl_rbtreehash_list.c: Likewise.
61177         * lib/imaxabs.c: Likewise.
61178         * lib/imaxdiv.c: Likewise.
61179         * lib/javacomp.c: Likewise.
61180         * lib/javaexec.c: Likewise.
61181         * lib/javaversion.c: Likewise.
61182         * lib/linebreak.c: Likewise.
61183         * lib/localcharset.c: Likewise.
61184         * lib/lock.c: Likewise.
61185         * lib/mbchar.c: Likewise.
61186         * lib/mbswidth.c: Likewise.
61187         * lib/mkdtemp.c: Likewise.
61188         * lib/pipe.c: Likewise.
61189         * lib/printf-args.c: Likewise.
61190         * lib/printf-parse.c: Likewise.
61191         * lib/progname.c: Likewise.
61192         * lib/progreloc.c: Likewise.
61193         * lib/readlink.c: Likewise.
61194         * lib/sh-quote.c: Likewise.
61195         * lib/stpcpy.c: Likewise.
61196         * lib/stpncpy.c: Likewise.
61197         * lib/strcasecmp.c: Likewise.
61198         * lib/strcasestr.c: Likewise.
61199         * lib/strcspn.c: Likewise.
61200         * lib/striconv.c: Likewise.
61201         * lib/strncasecmp.c: Likewise.
61202         * lib/strnlen1.c: Likewise.
61203         * lib/strstr.c: Likewise.
61204         * lib/strtok_r.c: Likewise.
61205         * lib/tls.c: Likewise.
61206         * lib/tmpdir.c: Likewise.
61207         * lib/unicodeio.c: Likewise.
61208         * lib/unsetenv.c: Likewise.
61209         * lib/vasnprintf.c: Likewise.
61210         * lib/vasprintf.c: Likewise.
61211         * lib/wait-process.c: Likewise.
61212         * lib/xallocsa.c: Likewise.
61213         * lib/xsetenv.c: Likewise.
61214         * lib/xstriconv.c: Likewise.
61215
61216 2006-09-13  Simon Josefsson  <jas@extundo.com>
61217
61218         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61219         that internally, suggested by Ralf Wildenhues
61220         <Ralf.Wildenhues@gmx.de>.
61221
61222 2006-09-13  Simon Josefsson  <jas@extundo.com>
61223
61224         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61225         @LIBOBJS@.
61226         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61227
61228 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61229
61230         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61231         longer worry about uses that don't define HAVE_CONFIG_H.
61232         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61233         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61234         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61235         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61236         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61237         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61238         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61239         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61240         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61241         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61242         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61243         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61244         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61245         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61246         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61247         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61248         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61249         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61250         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61251         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61252         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61253         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61254         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61255         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61256         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61257         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61258         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61259         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61260         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61261         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61262         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61263         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61264         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61265         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61266         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61267         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61268         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61269         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61270         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61271         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61272         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61273         Likewise.
61274
61275 2006-09-13  Eric Blake  <ebb9@byu.net>
61276
61277         * lib/getopt.c: Fix typo in last commit.
61278
61279 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61280
61281         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61282         dgettext.
61283
61284 2006-09-12  Jim Meyering  <jim@meyering.net>
61285
61286         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61287         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61288         Reported by Nelson H. F. Beebe.
61289
61290 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61291
61292         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61293         program_invocation_name and program_invocation_short_name are
61294         initialized.
61295         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61296         and program_invocation_short_name to argp.h, so they are visible
61297         to user programs.
61298         * lib/argp.h: Likewise
61299
61300 2006-09-10  Bruno Haible  <bruno@clisp.org>
61301
61302         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61303         m4/inttypes_h.m4, m4/uintmax_t.m4.
61304
61305 2006-09-10  Bruno Haible  <bruno@clisp.org>
61306
61307         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61308         gl_AC_TYPE_UINTMAX_T.
61309
61310 2006-09-10  Bruno Haible  <bruno@clisp.org>
61311
61312         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61313
61314 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61315
61316         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61317         convention.  Text proposed by Bruno Haible.
61318         (struct argp_option): Document the use of N_() wrappers.
61319
61320         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61321         '\v', and translate the two parts separately, instead of feeding
61322         the whole string to gettext.  This allows to exclude
61323         '\v' from the strings visible to the translator by writing doc
61324         strings as N_("..") "\v" N_("..").
61325
61326 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61327
61328         * config/srclist.txt: Undo latest change; the bug was fixed.
61329
61330 2006-09-09  Bruno Haible  <bruno@clisp.org>
61331
61332         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61333         assignments if building a library without libtool.
61334         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61335         in func_emit_lib_Makefile_am.
61336         (func_import): When building a static library libfoo.a, arrange to
61337         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61338         (func_create_testdir): Likewise.
61339         * modules/gc (configure.ac, Makefile.am): If building statically,
61340         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61341         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61342         * modules/striconv (configure.ac, Makefile.am): Likewise.
61343         Based on a suggestion by Ralf Wildenhues.
61344
61345 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61348         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61349         Also:
61350
61351         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61352         Add year_2050_test to catch glibc bug 2821
61353         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61354
61355         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61356         Prefer #ifdef to #if.
61357
61358         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61359         Return from 'main' instead of calling 'exit'.
61360
61361 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61362
61363         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61364         returned the maximum time_t value rather than (time_t) -1.
61365         Problem originally reported by William Bardwell
61366         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61367
61368         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61369         Moved to here ...
61370         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61371         ... from here.
61372
61373 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61374
61375         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61376         2821 is fixed.
61377
61378 2006-09-08  Jim Meyering  <jim@meyering.net>
61379
61380         Don't make generated files read-only.  That would bother too many
61381         people.  However, do retain the ability to work when targets are
61382         read-only: remove the destination and temporary files before writing
61383         them (when generated via sed or echo), or by using the -f option for
61384         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61385         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61386         * modules/byteswap, modules/configmake, modules/fcntl:
61387         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61388         * modules/localcharset, modules/netinet_in, modules/poll:
61389         * modules/stdbool, modules/stdint, modules/sys_select:
61390         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61391
61392 2006-09-08  Jim Meyering  <jim@meyering.net>
61393
61394         Avoid new build failure on FreeBSD 6.0.
61395         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61396         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61397         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61398
61399 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61400
61401         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61402
61403 2006-09-07  Jim Meyering  <jim@meyering.net>
61404
61405         Fix global typo in last change: use chmod u-w, not chmod u-x.
61406         Spotted by Paul Eggert and Bruce Korb.
61407         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61408         * modules/byteswap, modules/configmake, modules/fcntl:
61409         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61410         * modules/localcharset, modules/netinet_in, modules/poll:
61411         * modules/stdbool, modules/stdint, modules/sys_select:
61412         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61413
61414 2006-09-06  Jim Meyering  <jim@meyering.net>
61415
61416         Make generated files be read-only.
61417         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61418         Ensure that each generated file is now read-only.
61419         * modules/argz: Likewise.
61420         * modules/arpa_inet: Likewise.
61421         * modules/byteswap: Likewise.
61422         * modules/configmake: Likewise.
61423         * modules/fcntl: Likewise.
61424         * modules/fnmatch: Likewise.
61425         * modules/getopt: Likewise.
61426         * modules/glob: Likewise.
61427         * modules/inttypes: Likewise.
61428         * modules/netinet_in: Likewise.
61429         * modules/poll: Likewise.
61430         * modules/stdbool: Likewise.
61431         * modules/stdint: Likewise.
61432         * modules/sys_select: Likewise.
61433         * modules/sys_socket: Likewise.
61434         * modules/sys_stat: Likewise.
61435         * modules/sysexits: Likewise.
61436         * modules/localcharset: Same as above, but continue using temporary
61437         file named "t-$@" (why different?) rather than the "$@-t" used
61438         everywhere else.
61439
61440         * modules/sysexits (Makefile.am): Replace literal occurrences
61441         of "sysexit.h" more readable, and more consistent, "$@".
61442
61443 2006-09-06  Bruno Haible  <bruno@clisp.org>
61444
61445         * modules/striconv: New file.
61446         * modules/xstriconv: New file.
61447         * MODULES.html.sh (Internationalization functions): Add striconv,
61448         xstriconv.
61449
61450 2006-09-06  Bruno Haible  <bruno@clisp.org>
61451
61452         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61453         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61454         not using libtool correctly.
61455
61456 2006-09-06  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/striconv.h: New file.
61459         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61460         iconvstring.c.
61461         * lib/xstriconv.h: New file.
61462         * lib/xstriconv.c: New file.
61463
61464 2006-09-06  Bruno Haible  <bruno@clisp.org>
61465
61466         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61467         lib_..._LDFLAGS.
61468
61469 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61470
61471         * lib/argz_.h: Sync from Libtool.
61472
61473         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61474                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61475
61476         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61477
61478 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61479
61480         * modules/trim: New file.
61481
61482 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61483
61484         * lib/trim.h: New file.
61485         * lib/trim.c: New file.
61486
61487 2006-09-05  Bruno Haible  <bruno@clisp.org>
61488
61489         * MODULES.html.sh (String handling): Add trim.
61490
61491 2006-09-04  Karl Berry  <karl@gnu.org>
61492
61493         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61494         until next release.
61495
61496 2006-09-03  Bruno Haible  <bruno@clisp.org>
61497
61498         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61499         correctly.
61500
61501 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61502
61503         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61504         not gl_GETLOADAVG.  Omit unneeded semicolons.
61505         Problems reported by Ralf Wildenhues in
61506         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61507         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61508         at the end, which is the usual gnulib style.
61509
61510         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61511         of doing all the work ourselves.
61512         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61513         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61514
61515 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61516
61517         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61518         Problem reported by Ralf Wildenhues in
61519         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61520
61521         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61522         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61523
61524 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61527         yesterday's patch by changing test -n to test -z.
61528
61529 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61532         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61533         the former is now obsolescent.
61534
61535         * modules/chdir-long (Depends-on): Add fcntl.
61536
61537 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61540         obsolescent, and programs should use gnulib instead.
61541         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61542         but with prefixes changed.
61543
61544 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61545
61546         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61547         or stdbool.h, because they might not exist while configuring.
61548
61549         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61550         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61551         does that for us.
61552         (O_DIRECTORY): Remove.
61553
61554 2006-08-31  Eric Blake  <ebb9@byu.net>
61555
61556         * gnulib-tool: Don't let emacs change spaces to TAB.
61557
61558 2006-08-31  Bruno Haible  <bruno@clisp.org>
61559
61560         * gnulib-tool: When calling func_import more than once, do it in a
61561         subshell.
61562         Reported by Eric Blake <ebb9@byu.net>.
61563
61564 2006-08-31  Bruno Haible  <bruno@clisp.org>
61565
61566         * gnulib-tool (nl): Remove variable.
61567         (sed_transform_lib_file): Use more robust test for config-h module.
61568         (func_import): Fix typo in 2006-08-25 patch.
61569
61570 2006-08-31  Bruno Haible  <bruno@clisp.org>
61571
61572         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61573         specified, augment Makefile.am variables instead of assigning them.
61574
61575 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61576
61577         Work around a bug in both the Linux and SunOS 64-bit kernels:
61578         nanosleep mishandles sleeps for longer than 2**31 seconds.
61579         Problem reported by Frank v Waveren in
61580         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61582         Check for nanosleep bug.
61583         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61584
61585 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         Work around a bug in both the Linux and SunOS 64-bit kernels:
61588         nanosleep mishandles sleeps for longer than 2**31 seconds.
61589         Problem reported by Frank v Waveren in
61590         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61591         * lib/nanosleep.c (BILLION): New constant.
61592         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61593         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61594         implementation.
61595
61596 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         * modules/nanosleep (Depends-on): Add gettime.
61599
61600 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61601         and Simon Josefsson  <jas@extundo.com>
61602         and Oskar Liljeblad  <oskar@osk.mine.nu>
61603
61604         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61605         * gnulib-tool (func_import): New license type 'unmodifiable license
61606         text'.
61607         * modules/fdl: Use it.  Longer description.
61608         * module/gpl, module/lgpl: New files.
61609
61610 2006-08-30  Jim Meyering  <jim@meyering.net>
61611
61612         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61613         shadowing the parameter.
61614
61615 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61616
61617         Sync from Libtool:
61618
61619         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61620
61621         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61622         sharing with gnulib.  Report by Eric Blake.
61623
61624 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61625
61626         * modules/isapipe: New file.
61627         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61628
61629 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61630
61631         * modules/configmake (Makefile.am): Add a comment, and omit
61632         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61633         by Bruno Haible.
61634
61635 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61636
61637         * m4/isapipe.m4: New file.
61638
61639 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * lib/isapipe.c, lib/isapipe.h: New files.
61642
61643 2006-08-29  Jim Meyering  <jim@meyering.net>
61644
61645         * modules/configmake (Makefile.am): Make configmake.h depend on
61646         Makefile.  Otherwise, a stale configmake.h could hang around.
61647
61648 2006-08-29  Eric Blake  <ebb9@byu.net>
61649
61650         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61651         resolution of upstream bug 3044.
61652
61653 2006-08-29  Bruno Haible  <bruno@clisp.org>
61654
61655         * modules/localcharset (Depends-on): Add configmake.
61656         (Makefile.am): Remove setting of LIBDIR through DEFS.
61657
61658 2006-08-29  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61661         defined.
61662
61663 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61664
61665         * modules/fcntl: New file.
61666         * modules/chdir-safer (Depends-on): Add fcntl.
61667         * modules/fts: Likewise.
61668         * modules/mkdir-p: Likewise.
61669
61670         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61671         This undoes the most recent change, since we're now addressing the
61672         problem in a different way.
61673
61674         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61675         into output, since the output might be called Makefile.am even
61676         if $makefile_name is something different.
61677         (func_import): Use $makefile_am rather than
61678         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61679         empty.
61680
61681         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61682
61683 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61684
61685         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61686         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61687         recent change to stdint.m4, since we're now addressing the problem in a
61688         different way.
61689
61690 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61691
61692         * m4/fcntl_h.m4: New file.
61693
61694 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61695
61696         * lib/fcntl_.h: New file.
61697         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61698         the fcntl module.
61699         * lib/dirchownmod.c: Likewise.
61700         * lib/fts.c: Likewise.
61701
61702         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61703         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61704         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61705         just before including <inttypes.h>, to avoid circular inclusion.
61706
61707 2006-08-28  Jim Meyering  <jim@meyering.net>
61708
61709         * doc/visibility.texi: Actually read and correct the grammar of the
61710         sentence affected by yesterday's change.
61711
61712 2006-08-28  Eric Blake  <ebb9@byu.net>
61713
61714         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61715         needs wrapper.
61716
61717 2006-08-28  Eric Blake  <ebb9@byu.net>
61718
61719         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61720
61721 2006-08-28  Eric Blake  <ebb9@byu.net>
61722
61723         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61724
61725 2006-08-28  Bruno Haible  <bruno@clisp.org>
61726
61727         * modules/c-strstr: New file, from GNU gettext.
61728         * MODULES.html.sh (String handling): Add c-strstr.
61729
61730 2006-08-28  Bruno Haible  <bruno@clisp.org>
61731
61732         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61733         macros.
61734         Reported by Eric Blake.
61735
61736 2006-08-28  Bruno Haible  <bruno@clisp.org>
61737
61738         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61739         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61740         * lib/vasprintf.c: Include errno.h, limits.h.
61741         (EOVERFLOW): New fallback definition.
61742         (vasprintf): Test here whether the string length is > INT_MAX.
61743         * lib/vsnprintf.c: Include errno.h, limits.h.
61744         (EOVERFLOW): New fallback definition.
61745         (vsnprintf): Fix bug when generated string was too long for the buffer.
61746         Test here whether the string length is > INT_MAX.
61747
61748 2006-08-28  Bruno Haible  <bruno@clisp.org>
61749
61750         * lib/inttypes_.h (SCNX*): Remove definitions.
61751         Reported by Eric Blake.
61752
61753 2006-08-28  Bruno Haible  <bruno@clisp.org>
61754
61755         * lib/c-strstr.h: New file, from GNU gettext.
61756         * lib/c-strstr.c: New file, from GNU gettext.
61757
61758 2006-08-28  Bruno Haible  <bruno@clisp.org>
61759
61760         * gnulib-tool: Reorder some statements.
61761
61762 2006-08-28  Bruno Haible  <bruno@clisp.org>
61763
61764         * gnulib-tool: New option --makefile-name.
61765         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61766         $makefile_name.
61767         (func_import): Write $makefile_name to the cache file, and read it from
61768         there unless explicitly specified. Use $makefile_name as file name
61769         instead of Makefile.am. Adjust the recommendations accordingly.
61770
61771 2006-08-28  Bruno Haible  <bruno@clisp.org>
61772
61773         * gnulib-tool (func_verify_module): Check against misapplying patch.
61774
61775 2006-08-28  Bruno Haible  <bruno@clisp.org>
61776
61777         * gnulib-tool (func_relativize, func_relconcat): New functions.
61778         Give an error if --local-dir is given with --update.
61779         Remove trailing slashes from $local_gnulib_dir.
61780         (func_import): Store the relativized $local_gnulib_dir in
61781         gnulib-cache.m4, and read it from there if not specified explicitly.
61782
61783 2006-08-28  Bruno Haible  <bruno@clisp.org>
61784
61785         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61786         is the current directory. Respect also $local_gnulib_dir.
61787
61788 2006-08-28  Bruno Haible  <bruno@clisp.org>
61789             Simon Josefsson  <jas@extundo.com>
61790
61791         BeOS portability.
61792         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61793
61794 2006-08-27  Jim Meyering  <jim@meyering.net>
61795
61796         * doc/visibility.texi: Remove duplicate word: "pointer".
61797
61798 2006-08-26  Bruno Haible  <bruno@clisp.org>
61799
61800         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61801         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61802         (Makefile.am): Create inttypes.h from inttypes_.h.
61803         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61804
61805         * modules/imaxabs: New file.
61806
61807         * modules/imaxdiv: New file.
61808
61809 2006-08-26  Bruno Haible  <bruno@clisp.org>
61810
61811         * m4/inttypes.m4: New file.
61812         * m4/_inttypes_h.m4: Remove file.
61813         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61814         PRI_MACROS_BROKEN.
61815         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61816
61817         * m4/imaxabs.m4: New file.
61818
61819         * m4/imaxdiv.m4: New file.
61820
61821 2006-08-26  Bruno Haible  <bruno@clisp.org>
61822
61823         * lib/inttypes_.h: New file.
61824         * lib/inttypes.h: Remove file.
61825         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61826
61827         * lib/imaxabs.c: New file.
61828
61829         * lib/imaxdiv.c: New file.
61830
61831 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61832
61833         New config-h module, so that "make" output needn't be cluttered
61834         by -DHAVE_CONFIG_H.
61835         * MODULES.html.sh (Support for building libraries and executables):
61836         Add config-h.
61837         * modules/config-h: New file.
61838         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61839         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61840         the config-h module is used.
61841
61842         New configmake module, so that "make" output needn't be cluttered
61843         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61844         * MODULES.html.sh (Support for building libraries and executables):
61845         Add configmake.
61846         * modules/configmake: New file.
61847
61848 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61849
61850         * m4/config-h.m4: New file.
61851
61852 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         * config/srclist.txt: Add elisp-comp.
61855
61856 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61857
61858         * MODULES.html.sh (Support for building libraries and executables):
61859         Add elisp-comp.
61860         * build-aux/elisp-comp: New file.
61861         * modules/elisp-comp: New file.
61862
61863 2006-08-24  Bruno Haible  <bruno@clisp.org>
61864
61865         * gnulib-tool (func_create_testdir): Use non-default values of
61866         sourcebase and m4base.
61867
61868 2006-08-24  Bruno Haible  <bruno@clisp.org>
61869
61870         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61871         HTML structure.
61872
61873 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61874
61875         * modules/openat (Depends-on): Add lchown.
61876
61877 2006-08-23  Bruno Haible  <bruno@clisp.org>
61878
61879         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61880         of gl_LOCK_EARLY instead of gl_LOCK.
61881
61882 2006-08-23  Bruno Haible  <bruno@clisp.org>
61883
61884         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61885         on OSF/1 to no.
61886         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61887
61888 2006-08-23  Bruno Haible  <bruno@clisp.org>
61889
61890         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61891         as unusable.
61892
61893         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61894         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61895         (gl_LOCK): New macro.
61896
61897 2006-08-22  Simon Josefsson  <jas@extundo.com>
61898
61899         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61900         to md5 module.
61901
61902 2006-08-22  Simon Josefsson  <jas@extundo.com>
61903
61904         * MODULES.html.sh: Add "Support for maintaining and release
61905         projects".
61906
61907         * build-aux/gnupload: New file, from coreutils.
61908
61909 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61910
61911         Avoid the need for AC_LIBSOURCES in m4 macros.
61912         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61913         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61914         * modules/check-version (EXTRA_DIST): Add check-version.h.
61915         * modules/crc (EXTRA_DIST): Add crc.h.
61916         * modules/des (EXTRA_DIST): Add des.h.
61917         * modules/gc (EXTRA_DIST): Add gc.h.
61918         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61919         * modules/getline (EXTRA_DIST): Add getline.h.
61920         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61921         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61922         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61923         * modules/md2 (EXTRA_DIST): Add md2.h.
61924         * modules/md4 (EXTRA_DIST): Add md4.h.
61925         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61926         * modules/read-file (EXTRA_DIST): Add read-file.h.
61927         * modules/readline (EXTRA_DIST): Add readline.h.
61928         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61929         rijndael-api-fst.h.
61930
61931 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         * m4/rijndael.m4 (gl_ARCFOUR):
61934         * m4/arctwo.m4 (gl_ARCTWO):
61935         * m4/check-version.m4 (gl_CHECK_VERSION):
61936         * m4/crc.m4 (gl_CRC):
61937         * m4/des.m4 (gl_DES):
61938         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61939         * m4/gc.m4 (gl_GC):
61940         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61941         * m4/getline.m4 (gl_FUNC_GETLINE):
61942         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61943         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61944         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61945         * m4/md2.m4 (gl_MD2):
61946         * m4/md4.m4 (gl_MD4):
61947         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61948         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61949         * m4/readline.m4 (gl_FUNC_READLINE):
61950         * m4/rijndael.m4 (gl_RIJNDAEL):
61951         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61952         to get the necessary .h files and whatnot.
61953
61954 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61957         gnulib rather than the other way around.
61958         * config/srclistvars.sh (COREUTILS): Remove.
61959
61960 2006-08-22  Jim Meyering  <jim@meyering.net>
61961
61962         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61963
61964         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61965
61966 2006-08-22  Eric Blake  <ebb9@byu.net>
61967
61968         * modules/regexprops-generic: New file.
61969         * MODULES.html.sh (Support for building documentation): List it.
61970
61971 2006-08-22  Eric Blake  <ebb9@byu.net>
61972
61973         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61974         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61975         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61976         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61977
61978 2006-08-22  Bruno Haible  <bruno@clisp.org>
61979
61980         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61981         and lib_LTLIBRARIES like the other lib_* variables.
61982
61983 2006-08-22  Bruno Haible  <bruno@clisp.org>
61984
61985         * build-aux/x-to-1.in: New file, from GNU gettext.
61986
61987 2006-08-22  Bruno Haible  <bruno@clisp.org>
61988
61989         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61990         <utmpx.h> exists.
61991
61992 2006-08-22  Bruno Haible  <bruno@clisp.org>
61993
61994         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61995         <utmpx.h> exists.
61996
61997 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         BeOS portability.
62000         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62001         exist.
62002         Problem reported by Bruno Haible.
62003
62004 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         Avoid the need for AC_LIBSOURCES in m4 macros.
62007         * modules/acl (EXTRA_DIST): Add acl.h.
62008         * modules/argmatch (Files): Add m4/argmatch.m4.
62009         (configure.ac): Add gl_ARGMATCH.
62010         (EXTRA_DIST): Renamed from lib_SOURCES, for
62011         consistency with the other modules.  Remove argmatch.c.
62012         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62013         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62014         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62015         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62016         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62017         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62018         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62019         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62020         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62021         * modules/closeout (EXTRA_DIST): Add closeout.h.
62022         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62023         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62024         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62025         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62026         dirname.h; remove basename.c and stripslash.c.
62027         * modules/exclude (EXTRA_DIST): Add exclude.h.
62028         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62029         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62030         * modules/file-type (EXTRA_DIST): Add file-type.h.
62031         * modules/filemode (EXTRA_DIST): Add filemode.h.
62032         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62033         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62034         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62035         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62036         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62037         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62038         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62039         * modules/getdate (EXTRA_DIST): Add getdate.c.
62040         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62041         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62042         * modules/getpass (EXTRA_DIST): Add getpass.h.
62043         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62044         * modules/group-member (EXTRA_DIST): Add group-member.h.
62045         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62046         * modules/hash (EXTRA_DIST): Add hash.h.
62047         * modules/human (EXTRA_DIST): Add human.h.
62048         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62049         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62050         * modules/lchown (EXTRA_DIST): Add lchown.h.
62051         * modules/long-options (EXTRA_DIST): Add long-options.h.
62052         * modules/lstat (EXTRA_DIST): Add lstat.h.
62053         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62054         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62055         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62056         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62057         * modules/memxor (EXTRA_DIST): Add memxor.h.
62058         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62059         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62060         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62061         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62062         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62063         * modules/physmem (EXTRA_DIST): Add physmem.h.
62064         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62065         * modules/posixver (EXTRA_DIST): Add posixver.h.
62066         * modules/quote (EXTRA_DIST): Add quote.h.
62067         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62068         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62069         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62070         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62071         regex_internal.h regexec.c.
62072         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62073         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62074         * modules/same (EXTRA_DIST): Add same.h.
62075         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62076         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62077         * modules/savedir (EXTRA_DIST): Add savedir.h.
62078         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62079         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62080         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62081         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62082         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62083         * modules/strdup (EXTRA_DIST): Add strdup.h.
62084         * modules/strftime (EXTRA_DIST): Add strftime.h.
62085         * modules/strndup (EXTRA_DIST): Add strndup.h.
62086         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62087         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62088         * modules/time_r (EXTRA_DIST): Add time_r.h.
62089         * modules/timespec (EXTRA_DIST): Add timespec.h.
62090         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62091         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62092         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62093         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62094         * modules/userspec (EXTRA_DIST): Add userspec.h.
62095         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62096         * modules/utimens (EXTRA_DIST): Add utimens.h.
62097         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62098         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62099         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62100         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62101         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62102         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62103         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62104         * modules/yesno (EXTRA_DIST): Add yesno.h.
62105
62106 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62107
62108         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62109
62110         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62111         * m4/dev-ino.m4, same-inode.m4: Remove.
62112
62113         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62114         * m4/acl.m4 (AC_FUNC_ACL):
62115         * m4/backupfile.m4 (gl_BACKUPFILE):
62116         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62117         * m4/canon-host.m4 (gl_CANON_HOST):
62118         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62119         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62120         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62121         * m4/cloexec.m4 (gl_CLOEXEC):
62122         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62123         * m4/closeout.m4 (gl_CLOSEOUT):
62124         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62125         * m4/dirname.m4 (gl_DIRNAME):
62126         * m4/exclude.m4 (gl_EXCLUDE):
62127         * m4/exitfail.m4 (gl_EXITFAIL):
62128         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62129         * m4/file-type.m4 (gl_FILE_TYPE):
62130         * m4/filemode.m4 (gl_FILEMODE):
62131         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62132         * m4/fpending.m4 (gl_FUNC_FPENDING):
62133         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62134         * m4/fts.m4 (gl_FUNC_FTS):
62135         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62136         * m4/getdate.m4 (gl_GETDATE):
62137         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62138         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62139         * m4/getpass.m4 (gl_FUNC_GETPASS):
62140         * m4/gettime.m4 (gl_GETTIME):
62141         * m4/getugroups.m4 (gl_GETUGROUPS):
62142         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62143         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62144         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62145         * m4/hash.m4 (gl_HASH):
62146         * m4/idcache.m4 (gl_IDCACHE):
62147         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62148         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62149         * m4/long-options.m4 (gl_LONG_OPTIONS):
62150         * m4/lstat.m4 (gl_FUNC_LSTAT):
62151         * m4/md5.m4 (gl_MD5):
62152         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62153         * m4/memcoll.m4 (gl_MEMCOLL):
62154         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62155         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62156         * m4/memxor.m4 (gl_MEMXOR):
62157         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62158         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62159         * m4/modechange.m4 (gl_MODECHANGE):
62160         * m4/mountlist.m4 (gl_MOUNTLIST):
62161         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62162         * m4/openat.m4 (gl_FUNC_OPENAT):
62163         * m4/pathmax.m4 (gl_PATHMAX):
62164         * m4/physmem.m4 (gl_PHYSMEM):
62165         * m4/posixtm.m4 (gl_POSIXTM):
62166         * m4/posixver.m4 (gl_POSIXVER):
62167         * m4/quote.m4 (gl_QUOTE):
62168         * m4/quotearg.m4 (gl_QUOTEARG):
62169         * m4/readtokens.m4 (gl_READTOKENS):
62170         * m4/readutmp.m4 (gl_READUTMP):
62171         * m4/regex.m4 (gl_REGEX):
62172         * m4/safe-read.m4 (gl_SAFE_READ):
62173         * m4/safe-write.m4 (gl_SAFE_WRITE):
62174         * m4/same.m4 (gl_SAME):
62175         * m4/save-cwd.m4 (gl_SAVE_CWD):
62176         * m4/savedir.m4 (gl_SAVEDIR):
62177         * m4/settime.m4 (gl_SETTIME):
62178         * m4/sha1.m4 (gl_SHA1):
62179         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62180         * m4/stat-macros.m4 (gl_STAT_MACROS):
62181         * m4/stat-time.m4 (gl_STAT_TIME):
62182         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62183         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62184         * m4/strdup.m4 (gl_FUNC_STRDUP):
62185         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62186         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62187         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62188         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62189         * m4/time_r.m4 (gl_TIME_R):
62190         * m4/timespec.m4 (gl_TIMESPEC):
62191         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62192         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62193         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62194         * m4/userspec.m4 (gl_USERSPEC):
62195         * m4/utimecmp.m4 (gl_UTIMECMP):
62196         * m4/utimens.m4 (gl_UTIMENS):
62197         * m4/xalloc.m4 (gl_XALLOC):
62198         * m4/xgetcwd.m4 (gl_XGETCWD):
62199         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62200         * m4/xreadlink.m4 (gl_XREADLINK):
62201         * m4/xstrtod.m4 (gl_XSTRTOD):
62202         * m4/yesno.m4 (gl_YESNO):
62203         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62204         to get the necessary .h files and whatnot.
62205
62206 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62207             Bruno Haible  <bruno@clisp.org>
62208
62209         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62210         /bin/sh understanding of '!' conditional negation.
62211
62212 2006-08-21  Jim Meyering  <jim@meyering.net>
62213
62214         * modules/openat (Depends-on): Really alphabetize.
62215
62216         * modules/acl (Depends-on): Add error and quote.
62217
62218         * check-module (find_included_lib_files): Add at-func.c to the
62219         ok-to-include-more-than-once white list.
62220
62221         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62222
62223 2006-08-21  Bruno Haible  <bruno@clisp.org>
62224
62225         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62226         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62227         Reported by Martin Lambers <marlam@marlam.de>.
62228
62229 2006-08-21  Bruno Haible  <bruno@clisp.org>
62230
62231         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62232         specify an installation location, don't emit a noinst_LIBRARIES or
62233         noinst_LTLIBRARIES assignment.
62234
62235 2006-08-21  Bruno Haible  <bruno@clisp.org>
62236
62237         BeOS portability.
62238         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62239         BeOS has mbrtowc() but no <wctype.h>.
62240
62241 2006-08-21  Bruno Haible  <bruno@clisp.org>
62242
62243         BeOS portability.
62244         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62245         exist.
62246
62247 2006-08-21  Bruno Haible  <bruno@clisp.org>
62248
62249         BeOS portability.
62250         * lib/mbchar.h: Include <wctype.h> only if it exists.
62251
62252 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62253
62254         Remove files that are no longer needed by their respective modules.
62255         * m4/obstack.m4: Remove.
62256         * m4/strerror_r.m4: Remove.
62257         * m4/uint32_t.m4: Remove.
62258         * m4/uintptr_t.m4: Remove.
62259         * m4/ullong_max.m4: Remove.
62260         * m4/xstrtoimax.m4: Remove.
62261         * m4/xstrtoumax.m4: Remove.
62262
62263         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62264         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62265         dependencies now capture this.
62266
62267         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62268         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62269         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62270         * m4/human.m4 (gl_HUMAN): Likewise.
62271         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62272         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62273
62274         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62275
62276         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62277         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62278         stdint.
62279         * m4/human.m4 (gl_HUMAN): Likewise.
62280         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62281         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62282         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62283         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62284         * m4/xstrtol (gl_XSTRTOL): Likewise.
62285
62286         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62287         AC_TYPE_LONG_LONG_INT.
62288         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62289         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62290         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62291         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62292
62293         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62294         on stdbool.
62295
62296         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62297         (gl_PREREQ_XSTRTOUL): Remove.
62298
62299         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62300
62301         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62302         mode.
62303
62304 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62305
62306         Add and change modules to make it easier for coreutils to use
62307         gnulib-tool.
62308         * modules/backupfile (Files): Remove m4/d-ino.m4.
62309         (Depends-on): Add d-ino.
62310         * modules/cycle-check (Depends-on): Add stdint.
62311         (lib_SOURCES): Add cycle-check.h.
62312         * modules/d-ino: New module.
62313         * modules/d-type: New module.
62314         * modules/error (Files): Remove m4/strerror_r.m4.
62315         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62316         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62317         m4/inttypes_h.m4, m4/uintmax_t.m4.
62318         (Depends-on): Add stdint.
62319         (lib_SOURCES): Add fsusage.h.
62320         * modules/getcwd (Files): Remove d-ino.m4.
62321         (Depends-on): Add d-ino.
62322         * modules/getndelim2 (Depends-on): Add stdint.
62323         * modules/glob (Files): Remove m4/d-type.m4.
62324         (Depends-on): Add d-type.
62325         * modules/host-os: New module.
62326         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62327         m4/inttypes_h.m4, m4/uintmax_t.m4.
62328         * Depends-on: Add stdint.
62329         (lib_SOURCES): Add human.h.
62330         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62331         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62332         m4/uintmax_t.m4, m4/ulonglong.m4.
62333         (Depends-on): Add stdint.
62334         (EXTRA_DIST): Add inttostr.h.
62335         * modules/lchmod: New module.
62336         * modules/link-follow: New module.
62337         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62338         (Depends-on): Add lchmod.
62339         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62340         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62341         (Depends-on): Add stdint.
62342         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62343         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62344         (Depends-on): Add stdint.
62345         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62346         * modules/perl: New module.
62347         * modules/regex (Depends-on): Add stdint.
62348         * modules/rmdir-errno: New module.
62349         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62350         m4/intmax_t.m4.
62351         (Depends-on): Add stdint.
62352         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62353         m4/uintmax_t.m4.
62354         (Depends-on): Add stdint.
62355         * modules/unlink-busy: New module.
62356         * modules/utimecmp (Depends-on): Add stdint.
62357         * modules/uptime: New module.
62358         * modules/winsz-ioctl: New module.
62359         * modules/winsz-termios: New module.
62360         * modules/xnanosleep (Depends-on): Add nanosleep.
62361         * modules/ullong_max: Remove.
62362         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62363         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62364         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62365         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62366         (Depends-on): Add inttypes.
62367         (lib_SOURCES): Add xstrtol.h.
62368         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62369         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62370         * MODULES.html.sh: Move 'assert' into the assert section.
62371         Move 'dummy' into the linking section.
62372         Remove ullong_max.
62373         Add section for compatibility checks for POSIX:2001 functions,
62374         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62375         winsz-ioctl, and winsz-termios into it.
62376         Add lchmod.
62377         Add top-level Misc section and put host-os, perl, and uptime
62378         into it.
62379
62380 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62383         now assume the stdint module.  Do not include inttypes.h.
62384         * lib/fsusage.h: Likewise.
62385         * lib/getndelim2.c: Likewise.
62386         * lib/human.h: Likewise.
62387         * lib/inttostr.h: Likewise.
62388         * lib/obstack.c: Likewise.
62389         * lib/regex_internal.h: Likewise.
62390         * lib/tempname.c: Likewise.
62391         * lib/utimecmp.c: Likewise.
62392         * lib/xstrtol.h: Likewise.
62393
62394         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62395
62396         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62397         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62398         * lib/xtime.h: Likewise.
62399
62400 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62401
62402         * modules/openat (Files): Add lib/fchmodat.c.
62403         Fixes problem reported by Jay Youngman.
62404
62405 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62406
62407         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62408         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62409
62410 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62411             Bruno Haible  <bruno@clisp.org>
62412
62413         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62414         and is a script that invokes bison. Tighten the code. Add comments.
62415
62416 2006-08-18  Jim Meyering  <jim@meyering.net>
62417
62418         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62419         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62420         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62421         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62422
62423 2006-08-18  Bruno Haible  <bruno@clisp.org>
62424
62425         * modules/bison-i18n: New file.
62426         * MODULES.html.sh (Internationalization functions): Add it.
62427
62428 2006-08-18  Bruno Haible  <bruno@clisp.org>
62429
62430         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62431         sys/statvfs.h. When getmntinfo was found, check its declaration and
62432         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62433
62434 2006-08-18  Bruno Haible  <bruno@clisp.org>
62435
62436         * m4/bison-i18n.m4: New file, from bison.
62437
62438 2006-08-18  Bruno Haible  <bruno@clisp.org>
62439
62440         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62441         (ME_DUMMY): Treat "kernfs" as a dummy.
62442         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62443
62444 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62445
62446         Update from coreutils.
62447
62448         2006-08-15  Jim Meyering  <jim@meyering.net>
62449
62450         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62451
62452         2006-01-17  Jim Meyering  <jim@meyering.net>
62453
62454         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62455
62456         2006-01-11  Jim Meyering  <jim@meyering.net>
62457
62458         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62459         Check for the lchmod function.
62460
62461 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62462
62463         Update from coreutils.
62464
62465         * lib/__fpending.h: Add copyright notice.
62466         * lib/fprintftime.h: Likewise.
62467         * lib/savedir.c: Use (C) in copyright notice.
62468         * lib/savedir.h: Likewise.
62469
62470         2006-08-15  Jim Meyering  <jim@meyering.net>
62471
62472         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62473         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62474         in support of the EXPECTED_ERRNO macro.
62475         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62476         definitions.  Instead, define the appropriate symbols and include
62477         "at-func.c".
62478         * lib/mkdirat.c (mkdirat): Likewise.
62479         * lib/fchmodat.c (fchmodat): Likewise.
62480         (ENOSYS): Remove definition.
62481         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62482         it.  Don't include "unistd--.h" -- it wasn't ever used.
62483
62484         2006-01-17  Jim Meyering  <jim@meyering.net>
62485
62486         Rewrite fts.c not to change the current working directory,
62487         by using openat, fstatat, fdopendir, etc..
62488
62489         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62490         (HAVE_OPENAT_SUPPORT): Define.
62491         [_LIBC] (fchdir): Don't undef or define; no longer used.
62492         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62493         Now, this `function' always succeeds, and consumes its file descriptor
62494         parameter -- so callers must not close such FDs.  Update callers.
62495         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62496         (diropen): Add parameter, SP.  Adjust all callers.
62497         Implement using diropen_fd, rather than open.
62498         (fts_open): Initialize new member, fts_cwd_fd.
62499         Remove fts_rft-setting code.
62500         (fts_close): Close fts_cwd_fd, if necessary.
62501         (__opendir2): Define in terms of opendir or opendirat,
62502         depending on whether the FST_NOCHDIR flag is set.
62503         (fts_build): Since fts_safe_changedir consumes its FD, and since
62504         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62505         and close the dup'd file descriptor upon failure.
62506         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62507         (fts_safe_changedir): Tweak semantics to reflect that this function
62508         now calls cwd_advance_fd and hence consumes its FD argument.
62509         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62510         [struct FTS] (fts_rft): Remove now-unused member.
62511         [struct FTS] (fts_cycle.state): Improve comment.
62512
62513         * lib/openat.c (openat_needs_fchdir): New function.
62514         * lib/openat.h (openat_needs_fchdir): Declare it.
62515
62516 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62517
62518         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62519         Problem and fix reported by Pádraig Brady in
62520         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62521
62522 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62523
62524         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62525
62526 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62527
62528         * lib/memcoll.c (memcoll): Optimize for the common case where the
62529         arguments are bytewise equal.
62530
62531 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62532
62533         * doc/regexprops-generic.texi: Add a copyright notice.
62534
62535 2006-08-15  Bruno Haible  <bruno@clisp.org>
62536
62537         * modules/tmpdir (License): Change to LGPL.
62538
62539 2006-08-15  Bruno Haible  <bruno@clisp.org>
62540
62541         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62542         module.
62543
62544 2006-08-14  Simon Josefsson  <jas@extundo.com>
62545
62546         * config/srclist.txt: Add gnupload.
62547
62548 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62549
62550         Change copyright notice from LGPL 2 to GPL 2, since that's the
62551         standard form used in the gnulib repository.
62552         * tests/test-lock.c: Likewise.
62553         * tests/test-stdint.c: Likewise.
62554         * tests/test-tls.c: Likewise.
62555
62556         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62557         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62558         Add copyright notice.
62559
62560         * check-module: Add copyright notice.  Output a copyright
62561         notice if "--version" is specified.
62562         * modules/COPYING: New file.
62563         * tests/test-getaddrinfo.c: Add copyright notice.
62564         * tests/test-verify.c: Likewise.
62565
62566 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         Change copyright notice from LGPL 2 to GPL 2, since that's the
62569         standard form used in the gnulib repository.
62570         * lib/lock.c: LGPL -> GPL.
62571         * lib/lock.h: Likewise.
62572         * lib/strnlen1.c: Likewise.
62573         * lib/strnlen1.h: Likewise.
62574         * lib/tls.c: Likewise.
62575         * lib/tls.h: Likewise.
62576         * lib/tmpdir.c: Likewise.
62577
62578         * lib/TODO: Remove; this belongs only in coreutils.
62579
62580 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62581
62582         Add copyright notices to long-enough files that lack them, since
62583         otherwise the files aren't clearly free.  Use the same notice that
62584         getdate.texi already uses.
62585         * doc/alloca-opt.texi: Add copyright notice.
62586         * doc/alloca.texi: Likewise.
62587         * doc/ctime.texi: Likewise.
62588         * doc/functions.texi: Likewise.
62589         * doc/gcd.texi: Likewise.
62590         * doc/gnulib-tool.texi: Likewise.
62591         * doc/inet_ntoa.texi: Likewise.
62592         * doc/visibility.texi: Likewise.
62593
62594         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62595         * doc/quote.texi: Add copyright notice.
62596
62597         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62598         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62599         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62600         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62601         is now obsolete, and give a pointer to the Sun list.
62602         Add copyright notice.
62603
62604 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62605
62606         * config/srclistvars.sh: Add copyright notice.
62607
62608 2006-08-14  Eric Blake  <ebb9@byu.net>
62609
62610         Import the following change from libc:
62611
62612         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62613
62614         Upstream bug 2997.
62615         * lib/misc/error.c: Add space between program name and message if file
62616         name is missing.
62617
62618 2006-08-12  Karl Berry  <karl@gnu.org>
62619
62620         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62621         remove, these originate in gnulib now.
62622
62623 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62624
62625         * doc/Makefile (standards.info standards.html standards.dvi):
62626         Also depend on make-stds.texi.
62627
62628 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62629
62630         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62631         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62632
62633         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62634         in wchar_t.  Problem reported by Eric Blake.
62635
62636         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62637         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62638         Also, help the compiler to keep LEN in a register.
62639
62640 2006-08-11  Eric Blake  <ebb9@byu.net>
62641
62642         * users.txt: Sort.  Add tar.
62643
62644 2006-08-11  Bruno Haible  <bruno@clisp.org>
62645
62646         * users.txt: New file.
62647
62648 2006-08-11  Bruno Haible  <bruno@clisp.org>
62649
62650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62651         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62652
62653 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62654
62655         * modules/snprintf (Depends-on): Remove minmax.
62656         (Maintainer): Add self and Bruno.
62657
62658 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62661         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62662         (EOVERFLOW): Define if the system does not.
62663         Do not include "minmax.h"; it wasn't used.
62664         (snprintf): Don't assume size_t promotes to an unsigned type.
62665         Fix bug when generated string was too long for the buffer: the
62666         buffer's contents are supposed to be the initial prefix of the
62667         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62668         exceeds INT_MAX; do the check ourselves.
62669
62670         Import the following changes from libc:
62671
62672         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62673
62674         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62675         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62676         set wc to the byte which couldn't be converted.
62677         (re_string_reconstruct): Don't clear valid_raw_len before calling
62678         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62679         tip_context using re_string_context_at.
62680
62681         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62682
62683         * lib/posix/regex.h: g++ still cannot handled [restrict].
62684
62685         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62686
62687         * lib/posix/regex.h: Remove special handling for VMS.
62688
62689 2006-08-10  Jim Meyering  <jim@meyering.net>
62690
62691         * modules/same-inode: New module.
62692         * modules/dev-ino: New module.
62693         * modules/cycle-check: Depend on these modules, rather than simply
62694         including their .h files.
62695         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62696         required via m4/cycle-check.m4.
62697         * modules/same: Depend on new same-inode module, rather than
62698         including same-inode.h.
62699         * modules/chdir-safer: New file.
62700
62701         * modules/chown (Depends-on): Add stat-macros.
62702
62703 2006-08-10  Jim Meyering  <jim@meyering.net>
62704
62705         * m4/cycle-check.m4: New file.
62706         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62707         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62708
62709 2006-08-10  Eric Blake  <ebb9@byu.net>
62710
62711         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62712         in from original proposal.
62713
62714 2006-08-10  Eric Blake  <ebb9@byu.net>
62715         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62716
62717         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62718         namespace.
62719
62720 2006-08-10  Bruno Haible  <bruno@clisp.org>
62721
62722         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62723         as well.
62724
62725 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62726
62727         Sync from coreutils.
62728
62729         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62730
62731         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62732         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62733
62734 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62735
62736         * modules/restrict: Remove; no longer needed now that we assume
62737         Autoconf 2.59 or later.
62738         * MODULES.html.sh: Remove 'restrict'.
62739         * modules/argp (Depends-on): Remove 'restrict'.
62740         * modules/base64 (Depends-on): Likewise.
62741         * modules/gc (Depends-on): Likewise.
62742         * modules/getaddrinfo (Depends-on): Likewise.
62743         * modules/glob (Depends-on): Likewise.
62744         * modules/inet_ntop (Depends-on): Likewise.
62745         * modules/inet_pton (Depends-on): Likewise.
62746         * modules/memxor (Depends-on): Likewise.
62747         * modules/regex (Depends-on): Likewise.
62748         * modules/strtok_r (Depends-on): Likewise.
62749         * modules/time_r (Depends-on): Likewise.
62750
62751 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62752
62753         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62754         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62755         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62756         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62757         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62758         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62759         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62760         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62761
62762         Merge from coreutils.
62763         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62764         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62765         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62766         * m4/time_r.m4 (gl_TIME_R): Likewise.
62767
62768 2006-08-09  Karl Berry  <karl@gnu.org>
62769
62770         * config/srclist.txt: no more gettext-tools, per Bruno.
62771
62772 2006-08-08  Eric Blake  <ebb9@byu.net>
62773
62774         * modules/verror: New module.
62775         * MODULES.html.sh: Document it.
62776
62777 2006-08-08  Eric Blake  <ebb9@byu.net>
62778
62779         * lib/verror.h, lib/verror.c: New files.
62780
62781 2006-08-08  Eric Blake  <ebb9@byu.net>
62782
62783         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62784         verror_at_line output complies with GNU Coding Standards even when
62785         file is NULL.
62786
62787 2006-08-07  Bruno Haible  <bruno@clisp.org>
62788
62789         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62790         versions of AIX.
62791         Reported by Ralf Wildenhues.
62792
62793 2006-08-07  Bruno Haible  <bruno@clisp.org>
62794
62795         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62796         in an AC_DEFUN. Needed so that the autoconf snippets can use
62797         AC_REQUIRE.
62798
62799 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62800
62801         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62802         Initialize pkgdata_DATA.
62803         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62804         overriding it.
62805
62806 2006-08-06  Eric Blake  <ebb9@byu.net>
62807
62808         * lib/error.h: Fold in some upstream changes from glibc.
62809         * lib/error.c: Likewise.
62810
62811 2006-08-04  Bruno Haible  <bruno@clisp.org>
62812
62813         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62814         Make the mostlyclean-local rule depend on mostlyclean-generic.
62815         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62816
62817 2006-07-31  Bruno Haible  <bruno@clisp.org>
62818
62819         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62820         <stdlib.h>, <string.h>.
62821
62822 2006-07-30  Bruno Haible  <bruno@clisp.org>
62823
62824         * modules/readlink (License): Change to LGPL.
62825
62826 2006-07-30  Bruno Haible  <bruno@clisp.org>
62827
62828         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62829         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62830         set PKGDATADIR to point to it.
62831
62832 2006-07-30  Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/csharpexec (configure.ac): Comment out macro invocation.
62835         * modules/javaexec (configure.ac): Likewise.
62836         * modules/javacomp-script (configure.ac): Likewise.
62837
62838         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62839
62840 2006-07-30  Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62843         linked-list.
62844
62845 2006-07-30  Bruno Haible  <bruno@clisp.org>
62846
62847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62848
62849 2006-07-30  Bruno Haible  <bruno@clisp.org>
62850
62851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62852         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62853         get removed.
62854
62855 2006-07-29  Bruno Haible  <bruno@clisp.org>
62856
62857         Make it possible for gnulib-tool to work with locally modified or
62858         augmented gnulib repositories.
62859         * gnulib-tool (func_usage): Document --local-dir option.
62860         (local_gnulib_dir): New variable.
62861         Handle --local-dir option.
62862         (func_lookup_file): New function.
62863         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62864         (func_get_description, func_get_filelist, func_get_description,
62865         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62866         func_get_automake_snippet, func_get_include_directive,
62867         func_get_license, func_get_maintainer): Use func_lookup_file.
62868         (func_import, func_create_testdir): Use func_lookup_file.
62869
62870 2006-07-29  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/setenv (Depends-on): Add unistd.
62873
62874 2006-07-29  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62877
62878 2006-07-29  Bruno Haible  <bruno@clisp.org>
62879
62880         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62881
62882 2006-07-29  Bruno Haible  <bruno@clisp.org>
62883
62884         * gnulib-tool (import, update): If there is no Makefile.am, look at
62885         aclocal.m4, instead of bailing out.
62886
62887 2006-07-29  Bruno Haible  <bruno@clisp.org>
62888
62889         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62890         Categorize the options by when they are useful.
62891
62892 2006-07-29  Bruno Haible  <bruno@clisp.org>
62893
62894         * gnulib-tool (func_usage): Document option --no-libtool.
62895         Handle option --no-libtool.
62896         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62897         for changed semantics of $libtool variable.
62898         (func_import): Likewise. If libtool is not used, show this through
62899         an option --no-libtool.
62900         (func_create_testdir): Update.
62901
62902 2006-07-29  Bruno Haible  <bruno@clisp.org>
62903
62904         * gnulib-tool (func_import): Extend error message about missing
62905         --doc-base.
62906
62907 2006-07-29  Bruno Haible  <bruno@clisp.org>
62908
62909         * gnulib-tool (func_import): Don't create the $docbase directory if
62910         there is no file to store there.
62911
62912 2006-07-29  Bruno Haible  <bruno@clisp.org>
62913
62914         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62915         relevant, look for configure.ac there, not in the current directory.
62916         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62917
62918 2006-07-29  Bruno Haible  <bruno@clisp.org>
62919
62920         * gnulib-tool (SORT): New variable.
62921         (func_usage): Undocument --assume-autoconf option.
62922         Remove --assume-autoconf option handling.
62923         (autoconf_minversion): Determine from the contents of configure.ac.
62924         (func_import): Remove autoconf_minversion handling.
62925         Suggested by Eric Blake.
62926
62927 2006-07-29  Bruno Haible  <bruno@clisp.org>
62928
62929         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62930
62931 2006-07-29  Bruno Haible  <bruno@clisp.org>
62932
62933         * config/srclist.txt (*setenv.[ch]): Remove rules.
62934
62935 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62936
62937         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62938
62939 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62940
62941         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62942         arpa/inet.h.
62943
62944 2006-07-28  Simon Josefsson  <jas@extundo.com>
62945
62946         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62947         * modules/inet_pton (Depends-on): Likewise.
62948
62949 2006-07-28  Simon Josefsson  <jas@extundo.com>
62950
62951         * m4/netinet_in_h.m4: New file.
62952
62953 2006-07-28  Simon Josefsson  <jas@extundo.com>
62954
62955         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62956         #include's.
62957
62958 2006-07-28  Simon Josefsson  <jas@extundo.com>
62959
62960         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62961         #include's.
62962
62963 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62964
62965         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62966         setgid on directories only if they set these bits.
62967         * lib/modechange.h: Remove obsolete comment about masks.
62968
62969 2006-07-28  Eric Blake  <ebb9@byu.net>
62970
62971         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62972         macro expansion.
62973
62974 2006-07-28  Bruno Haible  <bruno@clisp.org>
62975
62976         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62977
62978 2006-07-28  Bruno Haible  <bruno@clisp.org>
62979
62980         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62981
62982 2006-07-28  Bruno Haible  <bruno@clisp.org>
62983
62984         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62985         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62986         Define fallbacks.
62987         Avoids link error on FreeBSD 4.x.
62988         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62989
62990         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62991         encoding.
62992         * lib/mbswidth.c (iswcntrl): Likewise.
62993
62994 2006-07-27  Bruno Haible  <bruno@clisp.org>
62995
62996         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62997         test.
62998
62999 2006-07-27  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63002         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63003         defined.
63004
63005 2006-07-26  Eric Blake  <ebb9@byu.net>
63006
63007         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63008
63009 2006-07-26  Eric Blake  <ebb9@byu.net>
63010
63011         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63012         like mingw that lack mkstemp.
63013         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63014         avoid compilation warning on mingw.
63015
63016 2006-07-26  Bruno Haible  <bruno@clisp.org>
63017
63018         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63019         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63020         INT_FAST*_MIN, INTPTR_MIN.
63021
63022 2006-07-25  Bruno Haible  <bruno@clisp.org>
63023
63024         * modules/version-etc (Depends-on): Add stdarg.
63025
63026 2006-07-25  Bruno Haible  <bruno@clisp.org>
63027
63028         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63029         complex commands.
63030
63031 2006-07-25  Bruno Haible  <bruno@clisp.org>
63032
63033         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63034         defined in <stdarg.h> or config.h.
63035
63036 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63039         (gl_STDIO_SAFER): Remove.
63040
63041 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * MODULES.html.sh (File stream based Input/Output):
63044         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63045         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63046         * modules/fopen-safer, modules/tmpfile-safer: New files.
63047         * modules/stdio-safer: Remove.
63048
63049 2006-07-24  Bruno Haible  <bruno@clisp.org>
63050
63051         * modules/tmpdir: New file.
63052         * MODULES.html.sh (File system functions): Add it.
63053
63054 2006-07-24  Bruno Haible  <bruno@clisp.org>
63055
63056         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63057         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63058
63059 2006-07-24  Bruno Haible  <bruno@clisp.org>
63060
63061         * modules/clean-temp: New file.
63062
63063 2006-07-24  Bruno Haible  <bruno@clisp.org>
63064
63065         * m4/tmpdir.m4: New file, from GNU gettext.
63066
63067 2006-07-24  Bruno Haible  <bruno@clisp.org>
63068
63069         * lib/tmpdir.h: New file, from GNU gettext.
63070         * lib/tmpdir.c: New file, from GNU gettext.
63071
63072 2006-07-24  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/clean-temp.h: New file, from GNU gettext.
63075         * lib/clean-temp.c: New file, from GNU gettext.
63076
63077 2006-07-23  Eric Blake  <ebb9@byu.net>
63078
63079         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63080         (Depends-on): Add binary-io.
63081
63082 2006-07-23  Eric Blake  <ebb9@byu.net>
63083
63084         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63085
63086 2006-07-23  Eric Blake  <ebb9@byu.net>
63087
63088         * lib/tmpfile-safer.c: New file.
63089         * lib/stdio-safer.h (fopen_safer): Add prototype.
63090         * lib/stdio--.h (tmpfile): Make safer.
63091
63092 2006-07-23  Bruno Haible  <bruno@clisp.org>
63093
63094         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63095         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63096         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63097         gl_linked_remove_at): Use it.
63098
63099 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63100         and Simon Josefsson <jas@extundo.com>
63101
63102         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63103
63104         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63105
63106 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * modules/close-stream: New file.
63109         * modules/closeout (Description): Make it clear that it exits
63110         with a diagnostic on error.
63111         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63112         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63113
63114 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63115
63116         * m4/close-stream.m4: New file.
63117
63118 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63119
63120         * lib/close-stream.c, lib/close-stream.h: New files.
63121
63122 2006-07-22  Bruno Haible  <bruno@clisp.org>
63123
63124         Merge from GNU gettext 0.15.
63125
63126         2006-05-01  Bruno Haible  <bruno@clisp.org>
63127
63128                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63129
63130         2006-07-22  Bruno Haible  <bruno@clisp.org>
63131
63132                 * modules/javaversion: New file.
63133                 * MODULES.html.sh (Java): Add javaversion.
63134
63135         2006-03-12  Bruno Haible  <bruno@clisp.org>
63136
63137                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63138
63139         2005-12-04  Bruno Haible  <bruno@clisp.org>
63140
63141                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63142                 (untested).
63143
63144         2006-06-21  Bruno Haible  <bruno@clisp.org>
63145
63146                 Avoid warnings from recent versions of mcs.
63147                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63148                 -o, -L, -r any more. Use options documented since mcs-1.0
63149                 instead. Similarly for -g.
63150
63151         2005-12-04  Bruno Haible  <bruno@clisp.org>
63152
63153                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63154                 .resources, not .resource.
63155
63156         2005-07-09  Bruno Haible  <bruno@clisp.org>
63157
63158                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63159                 add a .dll suffix.
63160                 Reported by Mark Junker <mjscod@gmx.de>.
63161
63162         2006-07-22  Bruno Haible  <bruno@clisp.org>
63163
63164                 * modules/gettext: Upgrade to gettext-0.15.
63165                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63166                 m4/visibility.m4.
63167                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63168
63169 2006-07-22  Bruno Haible  <bruno@clisp.org>
63170
63171         Merge from GNU gettext 0.15.
63172
63173         2006-03-25  Bruno Haible  <bruno@clisp.org>
63174
63175                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63176
63177         2006-07-21  Bruno Haible  <bruno@clisp.org>
63178
63179                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63180                 "1.1".
63181
63182         2006-05-09  Bruno Haible  <bruno@clisp.org>
63183
63184                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63185                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63186                 for the conftestver execution.
63187
63188         2006-05-01  Bruno Haible  <bruno@clisp.org>
63189
63190                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63191                 optional target-version argument. Verify that the compiler
63192                 groks source of the specified source-version, or add -source
63193                 option as necessary. Verify that the compiler produces
63194                 bytecode in the specified target-version, or add -target and
63195                 -source options as necessary. Make the result of the test
63196                 available as variable CONF_JAVAC. Also log error output in
63197                 config.log.
63198
63199         2006-03-11  Bruno Haible  <bruno@clisp.org>
63200
63201                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63202
63203         2006-05-09  Bruno Haible  <bruno@clisp.org>
63204
63205                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63206                 CLASSPATH_SEPARATOR to a semicolon.
63207
63208         2006-03-12  Bruno Haible  <bruno@clisp.org>
63209
63210                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63211                 available as variable CONF_JAVA, for subsequent autoconf
63212                 tests. Also log error output in config.log.
63213
63214         2006-07-19  Bruno Haible  <bruno@clisp.org>
63215
63216                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63217                 that getline works on glibc2 systems. Needed to avoid trouble
63218                 in relocatable.c.
63219                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63220
63221         2005-12-04  Bruno Haible  <bruno@clisp.org>
63222
63223                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63224                 launcher (untested).
63225
63226         2005-12-04  Bruno Haible  <bruno@clisp.org>
63227
63228                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63229
63230         2006-07-22  Bruno Haible  <bruno@clisp.org>
63231
63232                 * gettext.m4: Update from GNU gettext-0.15.
63233                 * nls.m4: Likewise.
63234                 * po.m4: Likewise.
63235                 * inttypes-pri.m4: Likewise.
63236                 * inttypes-h.m4: Renamed from inttypes.m4.
63237                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63238
63239 2006-07-22  Bruno Haible  <bruno@clisp.org>
63240
63241         Merge from GNU gettext 0.15.
63242
63243         2005-07-05  Bruno Haible  <bruno@clisp.org>
63244
63245                 * printf-args.c (printf_fetchargs): Work around broken
63246                 definition of wint_t on mingw.
63247
63248         2005-02-12  Bruno Haible  <bruno@clisp.org>
63249
63250                 * xallocsa.h: Add extern "C" for C++.
63251
63252         2006-05-17  Bruno Haible  <bruno@clisp.org>
63253
63254                 Cygwin portability.
63255                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63256
63257         2006-04-30  Bruno Haible  <bruno@clisp.org>
63258
63259                 * progreloc.c: Include <mach-o/dyld.h> if available.
63260                 (find_executable): Use _NSGetExecutablePath when possible.
63261
63262         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63263
63264                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63265                 function.
63266
63267         2005-12-29  Bruno Haible  <bruno@clisp.org>
63268
63269                 * progreloc.c (set_program_name_and_installdir): Fix
63270                 compilation error.
63271
63272         2005-12-04  Bruno Haible  <bruno@clisp.org>
63273
63274                 Cygwin portability.
63275                 * progreloc.c: Include <windows.h> also on Cygwin.
63276                 (find_executable): Add support for Cygwin.
63277                 (set_program_name_and_installdir): Handle also platforms with
63278                 nonempty EXEEXT.
63279
63280         2006-07-11  Bruno Haible  <bruno@clisp.org>
63281
63282                 * javacomp.c: Fix a comment.
63283                 Reported by Jim Meyering.
63284
63285         2006-04-30  Bruno Haible  <bruno@clisp.org>
63286
63287                 * javacomp.h (compile_java_class): Add source_version,
63288                 target_version arguments.
63289                 * javacomp.c: Rewritten to choose only a compiler that
63290                 respects the specified source_version and target_version.
63291
63292         2006-06-27  Bruno Haible  <bruno@clisp.org>
63293
63294                 Assume correct S_ISDIR macro.
63295                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63296
63297         2006-07-22  Bruno Haible  <bruno@clisp.org>
63298
63299                 * javaversion.h: New file, from GNU gettext.
63300                 * javaversion.c: New file, from GNU gettext.
63301                 * javaversion.java: New file, from GNU gettext.
63302                 * javaversion.class: New file, from GNU gettext.
63303
63304         2006-05-17  Bruno Haible  <bruno@clisp.org>
63305
63306                 Cygwin portability.
63307                 * javaexec.c (execute_java_class): Test for jview program
63308                 also on Cygwin.
63309
63310         2006-04-09  Bruno Haible  <bruno@clisp.org>
63311
63312                 * fatal-signal.c: Don't include string.h.
63313                 (at_fatal_signal): Use a copying loop instead of memcpy.
63314
63315         2005-12-04  Bruno Haible  <bruno@clisp.org>
63316
63317                 * csharpexec.c: Add support for 'clix' launcher (untested).
63318                 (execute_csharp_using_sscli): New function.
63319                 (execute_csharp_program): Call it.
63320
63321         2006-06-21  Bruno Haible  <bruno@clisp.org>
63322
63323                 Avoid warnings from recent versions of mcs.
63324                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63325                 -o, -L, -r any more. Use options documented since mcs-1.0
63326                 instead. Similarly for -g.
63327
63328         2005-07-09  Bruno Haible  <bruno@clisp.org>
63329
63330                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63331                 add a .dll suffix.
63332                 Reported by Mark Junker <mjscod@gmx.de>.
63333
63334         2006-06-17  Bruno Haible  <bruno@clisp.org>
63335
63336                 * config.charset: Update for NetBSD 3.0.
63337
63338         2006-05-17  Bruno Haible  <bruno@clisp.org>
63339
63340                 Cygwin portability.
63341                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63342
63343         2006-05-16  Bruno Haible  <bruno@clisp.org>
63344
63345                 * localcharset.c [CYGWIN]: Include <windows.h>.
63346                 (get_charset_aliases): For Cygwin, return the same CPxxx
63347                 aliases list as under WIN32.
63348                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63349                 the environment variables. Fall back to GetACP().
63350
63351         2006-04-05  Bruno Haible  <bruno@clisp.org>
63352
63353                 * config.charset: Update Juan Manuel Guerrero's address.
63354
63355         2005-02-12  Bruno Haible  <bruno@clisp.org>
63356
63357                 * allocsa.h: Add extern "C" for C++.
63358
63359         2005-02-10  Bruno Haible  <bruno@clisp.org>
63360
63361                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63362                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63363
63364         2006-07-22  Bruno Haible  <bruno@clisp.org>
63365
63366                 * gettext.h: Update to GNU gettext-0.15.
63367
63368 2006-07-22  Bruno Haible  <bruno@clisp.org>
63369
63370         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63371         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63372         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63373
63374 2006-07-21  Eric Blake  <ebb9@byu.net>
63375
63376         * modules/stdlib-safer: New file.
63377         * MODULES.html.sh (File stream based Input/Output): Add
63378         stdlib-safer.
63379
63380 2006-07-21  Eric Blake  <ebb9@byu.net>
63381
63382         * lib/stdlib-safer.h: New file from coreutils, required by
63383         stdlib--.h.
63384
63385 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63388
63389 2006-07-20  Bruno Haible  <bruno@clisp.org>
63390
63391         * gnulib-tool: Recognize new option --assume-autoconf.
63392         (autoconf_minversion): New variable.
63393         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63394
63395 2006-07-20  Bruno Haible  <bruno@clisp.org>
63396
63397         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63398
63399 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63400
63401         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63402         Reindent and repaginate.
63403
63404 2006-07-19  Derek Price  <derek@ximbiot.com>
63405
63406         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63407         Correct grammar.
63408
63409 2006-07-17  Bruno Haible  <bruno@clisp.org>
63410
63411         * modules/list: New file.
63412         * modules/array-list: New file.
63413         * modules/carray-list, modules/carray-list-tests: New files.
63414         * modules/linked-list, modules/linked-list-tests: New files.
63415         * modules/avltree-list, modules/avltree-list-tests: New files.
63416         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63417         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63418         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63419         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63420         * modules/oset: New file.
63421         * modules/array-oset: New file.
63422         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63423         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63424         * tests/test-carray_list.c: New file.
63425         * tests/test-linked_list.c: New file.
63426         * tests/test-avltree_list.c: New file.
63427         * tests/test-rbtree_list.c: New file.
63428         * tests/test-linkedhash_list.c: New file.
63429         * tests/test-avltreehash_list.c: New file.
63430         * tests/test-rbtreehash_list.c: New file.
63431         * tests/test-avltree_oset.c: New file.
63432         * tests/test-rbtree_oset.c: New file.
63433         * MODULES.html.sh (Container data structures): New section.
63434
63435 2006-07-17  Bruno Haible  <bruno@clisp.org>
63436
63437         * m4/gl_list.m4: New file.
63438
63439 2006-07-17  Bruno Haible  <bruno@clisp.org>
63440
63441         * lib/gl_list.h: New file.
63442         * lib/gl_list.c: New file.
63443         * lib/gl_array_list.h: New file.
63444         * lib/gl_array_list.c: New file.
63445         * lib/gl_carray_list.h: New file.
63446         * lib/gl_carray_list.c: New file.
63447         * lib/gl_linked_list.h: New file.
63448         * lib/gl_linked_list.c: New file.
63449         * lib/gl_anylinked_list1.h: New file.
63450         * lib/gl_anylinked_list2.h: New file.
63451         * lib/gl_avltree_list.h: New file.
63452         * lib/gl_avltree_list.c: New file.
63453         * lib/gl_anyavltree_list1.h: New file.
63454         * lib/gl_anyavltree_list2.h: New file.
63455         * lib/gl_rbtree_list.h: New file.
63456         * lib/gl_rbtree_list.c: New file.
63457         * lib/gl_anyrbtree_list1.h: New file.
63458         * lib/gl_anyrbtree_list2.h: New file.
63459         * lib/gl_anytree_list1.h: New file.
63460         * lib/gl_anytree_list2.h: New file.
63461         * lib/gl_linkedhash_list.h: New file.
63462         * lib/gl_linkedhash_list.c: New file.
63463         * lib/gl_anyhash_list1.h: New file.
63464         * lib/gl_anyhash_list2.h: New file.
63465         * lib/gl_avltreehash_list.h: New file.
63466         * lib/gl_avltreehash_list.c: New file.
63467         * lib/gl_rbtreehash_list.h: New file.
63468         * lib/gl_rbtreehash_list.c: New file.
63469         * lib/gl_anytreehash_list1.h: New file.
63470         * lib/gl_anytreehash_list2.h: New file.
63471
63472         * lib/gl_oset.h: New file.
63473         * lib/gl_oset.c: New file.
63474         * lib/gl_array_oset.h: New file.
63475         * lib/gl_array_oset.c: New file.
63476         * lib/gl_avltree_oset.h: New file.
63477         * lib/gl_avltree_oset.c: New file.
63478         * lib/gl_rbtree_oset.h: New file.
63479         * lib/gl_rbtree_oset.c: New file.
63480         * lib/gl_anytree_oset.h: New file.
63481
63482 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63483
63484         * m4/mkancesdirs.m4: New file.
63485         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63486         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63487         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63488         it.
63489
63490 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63491
63492         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63493         * lib/mkancesdirs.h: New files.
63494         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63495         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63496         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63497         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63498         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63499         callers changed.  Revamp internals significantly, by not
63500         attempting to create directories that are temporarily more
63501         permissive than the final results.  Do not attempt to use
63502         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63503         This removes some race conditions, fixes some bugs, and simplifies
63504         things.  Use new dirchownmod function to do owner and mode changes.
63505         * lib/mkdir-p.h: Likewise.
63506         * lib/modechange.c (octal_to_mode): New function.
63507         (struct mode_change): New member mentioned.
63508         (make_node_op_equals): New arg mentioned.  All callers changed.
63509         (mode_compile): Keep track of which mode bits the user has explicitly
63510         mentioned.
63511         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63512         New arg PMODE_BITS, to keep track of which mode bits the user
63513         mentioned; it treats S_ISUID and S_ISGID speciall.
63514         All callers changed.
63515         * lib/modechange.h: Likewise.
63516
63517 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         * MODULES.html.sh: Add mkancestors.
63520         * modules/mkancesdirs: New module.
63521         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63522         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63523         The chdir-safer and afs files are now orphans; I'll remove them
63524         unless someone speaks up.
63525         Add lib/dirchownmod.c, lib/dirchownmod.h.
63526         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63527         Add lchown, mkancesdirs.
63528         (Maintainer): Add self.
63529
63530 2006-07-15  Karl Berry  <karl@gnu.org>
63531
63532         * gnulib-tool: help message wording/arrangement.
63533
63534 2006-07-14  Simon Josefsson  <jas@extundo.com>
63535
63536         * doc/gnulib.texi (Libtool and Windows): New section.
63537
63538 2006-07-12  Simon Josefsson  <jas@extundo.com>
63539
63540         * modules/gendocs (License): Fix license, approved by Karl.
63541
63542 2006-07-12  Eric Blake  <ebb9@byu.net>
63543
63544         * MODULES.html.sh: Add gendocs.
63545
63546 2006-07-11  Eric Blake  <ebb9@byu.net>
63547
63548         * modules/fdl: New module, to install doc/fdl.texi.
63549         * MODULES.html.sh: Add new section for documentation modules.
63550         * gnulib-tool: Avoid space-tab.
63551         (--doc-base): New option, to manage files from doc.
63552
63553 2006-07-11  Eric Blake  <ebb9@byu.net>
63554
63555         * m4/absolute-header.m4: Fix comments to match recent change.
63556
63557 2006-07-11  Eric Blake  <ebb9@byu.net>
63558
63559         * gnulib-tool: List --doc-base before --tests-base.
63560
63561 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63562
63563         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63564
63565 2006-07-11  Bruno Haible  <bruno@clisp.org>
63566
63567         * README: Mention where to put documentation.
63568
63569 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63570
63571         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63572
63573 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63574
63575         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63576         to stdint.m4.
63577
63578 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63579
63580         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63581         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63582         "no/such/file/stdint.h" when there is no such file, so that
63583         the resulting C code can be parsed by dodgy compilers.
63584         Problems reported by Bob Proulx.
63585
63586 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63587
63588         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63589         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63590         macros into the GNU _D_EXACT_NAMLEN.
63591         * lib/savedir.c:  Likewise.
63592         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63593
63594 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63595         and Paul Eggert  <eggert@cs.ucla.edu>
63596
63597         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63598         * m4/savedir.m4:
63599         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63600         macros into the GNU _D_EXACT_NAMLEN.
63601
63602 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63603
63604         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63605         around the absolute name, to work around a problem with the HP-UX
63606         11.23 native C compiler, reported by Bob Proulx.
63607
63608 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         * doc/maintain.texi, make-stds.texi: Sync from
63611         <http://savannah.gnu.org/projects/gnustandards>.
63612
63613 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63614
63615         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63616
63617 2006-07-09  Jim Meyering  <jim@meyering.net>
63618
63619         * m4/glob.m4: Remove a doubled word in a comment.
63620
63621 2006-07-09  Jim Meyering  <jim@meyering.net>
63622
63623         * lib/argp-pv.c: Remove a doubled word in a comment.
63624         * lib/check-version.c (check_version): Likewise.
63625         * lib/javacomp.c (compile_java_class): Likewise.
63626
63627 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63628
63629         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63630         for the benefit of people using Autoconf 2.60.  If you want to
63631         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63632         (or m4/onceonly.m4, if pre-2.57) manually.
63633
63634 2006-07-08  Jim Meyering  <jim@meyering.net>
63635
63636         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63637         comment.
63638         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63639         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63640         comment.
63641
63642 2006-07-08  Jim Meyering  <jim@meyering.net>
63643
63644         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63645
63646 2006-07-07  Simon Josefsson  <jas@extundo.com>
63647
63648         * tests/test-crc.c: Change expected crc value, the test vector
63649         were probably computed using the old broken crc.c?
63650
63651 2006-07-06  Simon Josefsson  <jas@extundo.com>
63652
63653         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63654         now the canonical place for the M4 file).
63655
63656         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63657         from the sys_socket dependency now.
63658
63659         * modules/inet_pton (Files): Ditto.
63660
63661         * modules/inet_ntop (Files): Ditto.
63662
63663 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63664
63665         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63666         not gl_PREREQ_GETUSERSHELL.
63667
63668 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63669
63670         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63671         with only one argument, for Autoconf 2.60.
63672         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63673         expand to nothing, so add a shell command to avoid syntax error.
63674         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63675
63676 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63677
63678         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63679
63680 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63681
63682         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63683         no longer needed.  Check for isblank decl.
63684         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63685         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63686         of existence.
63687
63688 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63689
63690         * lib/getloadavg.c: Use __VMS, not VMS.
63691         * lib/getopt.c: Likewise.
63692         * lib/getpagesize.h: Likewise.
63693         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63694         and probably does not work.
63695
63696 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63697
63698         * lib/.cppi-disable: Add wcwidth.
63699         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63700         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63701         (ISGRAPH): Remove.  All uses changed to isgraph.
63702         (FOLD) [!defined _LIBC]: Remove special case.
63703         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63704         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63705         HAVE_ISBLANK.
63706         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63707         case.
63708
63709 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63710
63711         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63712         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63713         brackets.  Other minor changes to suppress some compiler
63714         warnings.
63715
63716 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63717         and Paul Eggert  <eggert@cs.ucla.edu>
63718
63719         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63720         of invoking obsolescent AC_HEADER_DIRENT macro.
63721         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63722         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63723         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63724         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63725         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63726         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63727         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63728         * m4/readdir.m4: Remove; no longer needed.
63729
63730 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63731         and Paul Eggert  <eggert@cs.ucla.edu>
63732
63733         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63734         Don't worry about this obsolete case any more.
63735         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63736         directories.
63737         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63738         worry about this obsolete case any more.
63739         * lib/fts.c: Likewise.
63740         * lib/getcwd.c: Likewise.
63741         * lib/glob.h: Likewise.
63742         * lib/savedir.c: Likewise.
63743
63744 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63745
63746         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63747         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63748         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63749         needed.
63750         All uses removed.
63751         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63752         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63753         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63754         needed.
63755         * m4/getdate.m4 (gl_GETDATE): Likewise.
63756         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63757         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63758         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63759         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63760         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63761         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63762         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63763         needed.
63764
63765 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * lib/memcasecmp.c: Include <limits.h>.
63768         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63769         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63770         Don't assume isdigit succeeds only on '0' through '9'.
63771
63772 2006-07-05  Eric Blake  <ebb9@byu.net>
63773
63774         * modules/getaddrinfo (Depends-on): Add snprintf.
63775
63776 2006-07-05  Eric Blake  <ebb9@byu.net>
63777
63778         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63779         to avoid 'header present but could not be compiled' on cygwin.
63780
63781 2006-07-05  Eric Blake  <ebb9@byu.net>
63782
63783         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63784         missing from netdb.h.
63785         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63786
63787 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63788
63789         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63790         no longer needed.
63791         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63792         * m4/getdate.m4 (gl_GETDATE): Likewise.
63793         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63794         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63795         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63796         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63797         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63798
63799 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63800
63801         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63802         All uses of is_space replaced by isspace.
63803         * lib/exit.h: Don't talk about STDC_HEADERS.
63804         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63805         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63806         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63807         replaced by isprint etc.
63808         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63809         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63810         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63811         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63812         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63813         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63814
63815 2006-07-05  Bruno Haible  <bruno@clisp.org>
63816
63817         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63818         the function exists, before testing against AIX.
63819         Reported by Martin Lambers <marlam@marlam.de>.
63820
63821 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63824         From Mark D. Baushke.
63825
63826 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63827
63828         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63829         to the absolute name, not just one, to bypass Sun C 5.8's
63830         "warning: #include of /usr/include/... may be non-portable".
63831
63832 2006-07-04  Eric Blake  <ebb9@byu.net>
63833
63834         * modules/dirname-tests: New test module.
63835         * tests/test-dirname.c: New file, replacing dirname.c
63836         TEST_DIRNAME section that was recently deleted.
63837
63838 2006-07-04  Bruno Haible  <bruno@clisp.org>
63839
63840         Assume ANSI C header files and <ctype.h> functions.
63841         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63842         (mbsnwidth): Use isprint, iscntrl instead.
63843
63844 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         Merge from coreutils.
63847         * MODULES.html.sh: Add xstrtold.
63848         * modules/xstrtold: New file.
63849         * modules/cycle-check (Files): Add lib/same-inode.h.
63850         * modules/dirname (Files): Add m4/double-slash-root.m4.
63851         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63852         * modules/mkdir-p (Files): Add lib/same-inode.h.
63853         * modules/same (Files): Add lib/same-inode.h.
63854
63855 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63858         This is to keep the terminology clean; POSIX talks about
63859         "absolute pathnames", not "full pathnames", but the GNU
63860         Coding Standards say to use "path" for something else;
63861         so use "absolute" to keep both sides happy.
63862         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63863         Set gl_absolute_header, not gl_full_header_path.
63864         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63865         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63866         All uses changed.
63867
63868         Merge from coreutils.
63869
63870         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63871
63872         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63873         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63874         want to require the building of c-strtod.o.
63875         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63876         needs -lm directly.
63877         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63878
63879         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63880
63881         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63882         --as-needed option if available.  Problem reported by Albert Chin in
63883         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63884         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63885         cc merely issues a bunch of annoying warnings for --as-needed
63886         (this problem was reported by Bob Proulx).  Also, try linking with
63887         -lm to detect a bug in binutils 2.16 (this problem was reported
63888         by Ralf Wildenhues).
63889
63890         2006-06-18  Jim Meyering  <jim@meyering.net>
63891
63892         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63893         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63894         macro.
63895         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63896         also check for glibc-2.4's abort-inducing bug.
63897
63898         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63899         Low-probability clean-up should be to use rmdir to get rid of
63900         the just-created directory, not unlink.
63901
63902         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63903         configure fail, and request a bug report to inform us about it.
63904         Add a comment that, barring reports to the contrary, in 2007 we'll
63905         assume ftruncate is universally available.
63906
63907         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63908
63909         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63910
63911         2006-03-12  Jim Meyering  <jim@meyering.net>
63912
63913         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63914         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63915         * m4/same.m4 (gl_SAME): Likewise.
63916         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63917
63918         2006-03-11  Eric Blake  <ebb9@byu.net>
63919
63920         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63921         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63922         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63923         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63924
63925 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63926
63927         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63928         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63929         reported by Mark D. Baushke, one in
63930         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63931
63932         Merge from coreutils.
63933
63934         * lib/.cppi-disable: Add stdint_.h.
63935         * lib/.cvsignore: Add stdint.h.
63936
63937         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63938
63939         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63940         both double and long double versions.
63941         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63942         * lib/xstrtold.c: New file.
63943         * lib/xstrtod.h (xstrtold): New decl.
63944
63945         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63946
63947         * lib/filemode.c (setst): Remove.
63948         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63949         (arguably) clearer, and the generated code is a bit smaller on my
63950         Debian GNU/Linux stable x86 host.
63951
63952         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63953
63954         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63955         Assume that filemode.h includes sys/types.h and sys/stat.h.
63956         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63957         (ftypelet): Reorder to put common cases first, for efficiency.
63958         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63959         to do 'M'.
63960         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63961         of 10, for compatibility with FreeBSD.  All callers changed.
63962         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63963         types that can't be deduced solely from st_mode.  First arg is now a
63964         const pointer.
63965         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63966         (strmode): Renamed from mode_string.
63967         (filemodestring): New decl.
63968         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63969         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63970         needed.
63971         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63972
63973         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63974
63975         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63976         fsusage.h now does that.  Include fsusage.h first, to test interface.
63977         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63978         at most one method (the old code could have generated decls that
63979         didn't conform to C89, not that this was ever exercised).
63980         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63981
63982         2006-03-19  Jim Meyering  <jim@meyering.net>
63983
63984         Work even in a chroot where d_ino values for entries in "/"
63985         don't match the stat.st_ino values for the same names.
63986         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63987         number, iterate through all entries again, using lstat instead.
63988         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63989         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63990
63991         * lib/getcwd.c (__getcwd): Clarify a comment.
63992         Use memcpy in place of a call to strcpy.
63993
63994         2006-03-12  Jim Meyering  <jim@meyering.net>
63995
63996         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63997         matches that of the current directory (which we're about to chdir ".."
63998         out of), then save the dev-ino of the parent, instead.
63999
64000         * lib/same-inode.h (SAME_INODE): New file/macro.
64001         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64002         Include "same-inode.h", instead.
64003         * lib/same.c: Likewise.
64004         * lib/cycle-check.h: Include "same-inode.h".
64005         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64006         * lib/cycle-check.c (SAME_INODE): Remove definition.
64007         * lib/root-dev-ino.h: Include "same-inode.h".
64008
64009         2006-03-11  Eric Blake  <ebb9@byu.net>
64010
64011         * lib/same.c (same_name): s/base_name/last_component/
64012         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64013         * lib/filenamecat.c (file_name_concat): Likewise.
64014
64015         2006-03-11  Eric Blake  <ebb9@byu.net>,
64016                     Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64019         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64020         drive prefix.
64021         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64022         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64023         (last_component): New method.
64024         * lib/dirname.c (dir_len): Determine when drive letters need a
64025         subsequent slash.  Preserve // when it is special.
64026         (dir_name): Don't append dot when drive letter is absolute.
64027         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64028         * lib/basename.c (base_name): New semantics - malloc the result.
64029         Preserve // when it is special.  Preserve relative files that look
64030         like drive letters.
64031         (base_len): Preserve // when it is special.
64032         (last_component): New method, similar to old base_name semantics.
64033         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64034         base_name.  Strip redundant slashes from ///.
64035
64036 2006-07-03  Jim Meyering  <jim@meyering.net>
64037
64038         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64039         macro is used before the first cycle_check call.
64040
64041 2006-07-03  Eric Blake  <ebb9@byu.net>
64042
64043         * modules/dirname (Depends-on): Add xstrndup.
64044
64045 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64048         test cases, so that config.log is a bit easier to follow.
64049
64050 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64053         both are 64 bits, since this seems to be the tradition, and this
64054         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64055         we ever run into a host that prefers long long to long in this
64056         case, we'll need another configure-time test.  Problem reported by
64057         Jim Meyering.
64058
64059 2006-07-02  Eric Blake  <ebb9@byu.net>
64060
64061         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64062
64063 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * modules/inttypes (Depends-on): No longer depends on stdint.
64066         * modules/stdint (Description): Say more about assumptions.
64067         Say that the fast types might differ.  Say macros are used.
64068         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64069         (Makefile.am): Revise list of substituted symbols to match
64070         new stdint.m4.
64071         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64072         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64073         * tests/test-stdint.c (verify_same_types)
64074         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64075         the code conforms to C99/C89.
64076         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64077         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64078
64079 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64082         but fix a bug, by requiring at least 64 bits.
64083         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64084         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64085         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64086         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64087
64088         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64089         changes.  Make 2.59 a prerequisite.  Check and substitute for
64090         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64091         inttypes.h.  Do not use special include files; just use the
64092         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64093         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64094         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64095         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64096         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64097         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64098         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64099         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64100         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64101         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64102         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64103         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64104         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64105         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64106         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64107         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64108         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64109         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64110         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64111         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64112         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64113         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64114         not check for things that C99 does not require, e.g., int8_t.  If
64115         a test isn't needed unless <stdint.h> isn't working, and is
64116         unlikely to be needed for any other reason, then don't do it
64117         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64118         size_t, since we assume C89 freestanding at least.  Do not check
64119         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64120         the right thing even if the types are not defined.  Instead use:
64121         (gl_STDINT_TYPE_PROPERTIES): New macro.
64122         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64123         testing whether <sys/types.h> clashes, as Autoconf does this for
64124         us now.  All uses removed.
64125         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64126         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64127         (gl_CHECK_TYPE_SAME):
64128         Remove; no longer needed.
64129         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64130         exists, since we'll return 0 anyway in that case.
64131         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64132
64133 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64134
64135         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64136         possible collision with system files.
64137         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64138         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64139         WCHAR_MIN and WCHAR_MAX in this case.
64140         (<stddef.h>): Do not include; no longer needed.
64141         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64142         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64143         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64144         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64145         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64146         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64147         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64148         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64149         !defined(__c99))]: Include in this case too, since it's harmless
64150         now.
64151         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64152         dangerous to do so.
64153         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64154         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64155         (_STDINT_MIN, _STDINT_MAX): New macros.
64156         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64157         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64158         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64159         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64160         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64161         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64162         macros, not typedefs; this simplifies things quite a bit.
64163         Use long int for all types narrower than int64_t.
64164         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64165         Define in terms of long long int or int64_t or long int,
64166         not int64_t or int32_t.  This saves some compile-time testing.
64167         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64168         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64169         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64170         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64171         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64172         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64173         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64174         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64175         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64176         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64177         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64178         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64179         undef any previous version and define our own version, for
64180         simplicity and consistency with the new macros for types.
64181         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64182         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64183         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64184         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64185         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64186         @WINT_T_SUFFIX@ to keep things simple here.
64187         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64188         Simplify by assuming typical 8/16/32/64 host, since we're
64189         already doing that elsewhere anyway.
64190         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64191         and assume long long int is 64 bits if available.  This
64192         speeds up 'configure'.
64193
64194 2006-07-01  Eric Blake  <ebb9@byu.net>
64195
64196         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64197         Reported by Andreas Buening.
64198
64199 2006-07-01  Eric Blake  <ebb9@byu.net>
64200
64201         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64202
64203 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64204
64205         * lib/getaddrinfo.c: fixed typo
64206
64207 2006-06-29  Jim Meyering  <jim@meyering.net>
64208
64209         * modules/strftime (Maintainer): Add my name, since with the
64210         FPRINTFTIME changes strftime.c has forked from glibc.
64211
64212 2006-06-29  Eric Blake  <ebb9@byu.net>
64213
64214         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64215
64216 2006-06-29  Eric Blake  <ebb9@byu.net>
64217
64218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64219
64220 2006-06-29  Eric Blake  <ebb9@byu.net>
64221
64222         * lib/stat_.h: New file.
64223
64224 2006-06-29  Eric Blake  <ebb9@byu.net>
64225
64226         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64227         unused static function.
64228
64229 2006-06-29  Eric Blake  <ebb9@byu.net>
64230
64231         * doc/functions.texi (Function Portability): Document missing lstat
64232         on mingw.
64233
64234 2006-06-29  Eric Blake  <ebb9@byu.net>
64235
64236         * MODULES.html.sh: Add sys_stat.
64237         * modules/sys_stat: New module.
64238         * modules/mkstemp (Depends-on): Add sys_stat.
64239
64240 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64241
64242         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64243
64244 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64245
64246         * m4/c-bs-a.m4: Removed.
64247
64248 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64249
64250         * lib/strftime.c: Assume strftime() exists.
64251
64252 2006-06-29  Derek Price  <derek@ximbiot.com>
64253
64254         * modules/c-bs-a: Removed - \a is C89.
64255         * MODULES.html.sh: Remove c-bs-a.
64256
64257 2006-06-29  Bruno Haible  <bruno@clisp.org>
64258
64259         * modules/wcwidth (License): Change to LGPL.
64260
64261 2006-06-28  Simon Josefsson  <jas@extundo.com>
64262
64263         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64264         on _WIN32.
64265
64266         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64267         getnameinfo.
64268
64269 2006-06-28  Simon Josefsson  <jas@extundo.com>
64270
64271         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64272
64273 2006-06-28  Simon Josefsson  <jas@extundo.com>
64274
64275         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64276         functions there.  It will succeed on Windows XP, but on Windows
64277         2000 and (presumably) earlier, it will fail, and use the internal
64278         re-implementation.
64279         (use_win32_p): New function.
64280         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64281         Support AI_NUMERICSERV to disable getservbyname.
64282         (getnameinfo): New function, only supports
64283         NI_NUMERICHOST|NI_NUMERICSERV for now.
64284
64285         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64286         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64287         getnameinfo.
64288
64289 2006-06-28  Eric Blake  <ebb9@byu.net>
64290
64291         * modules/wcwidth: New file.
64292         * modules/mbchar (Depends-on): Add wcwidth.
64293         * modules/mbswidth (Depends-on): Add wcwidth.
64294         * MODULES.html.sh: Add wcwidth.
64295
64296 2006-06-28  Eric Blake  <ebb9@byu.net>
64297
64298         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64300
64301 2006-06-28  Eric Blake  <ebb9@byu.net>
64302
64303         * lib/xvasprintf.h: Fix comments.
64304
64305 2006-06-28  Eric Blake  <ebb9@byu.net>
64306
64307         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64308         * lib/mbswidth.c (wcwidth): Move from here...
64309         * lib/wcwidth.h: ...to this new file.
64310
64311 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64312
64313         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64314
64315         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64316         it's obsolete.
64317         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64318
64319 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64320
64321         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64322         Autoconf 2.60 says this stuff was obsolete.
64323
64324 2006-06-28  Bruno Haible  <bruno@clisp.org>
64325
64326         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64327
64328 2006-06-28  Bruno Haible  <bruno@clisp.org>
64329
64330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64331         gt_TYPE_WCHAR_T.
64332
64333 2006-06-28  Bruno Haible  <bruno@clisp.org>
64334
64335         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64336         declaration for wcwidth.
64337         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64338
64339 2006-06-28  Bruno Haible  <bruno@clisp.org>
64340
64341         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64342         (mkdir): Define using _mkdir.
64343
64344 2006-06-28  Bruno Haible  <bruno@clisp.org>
64345
64346         * lib/getaddrinfo.h: Fix POSIX URL.
64347         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64348         _WIN32.
64349         (use_win32_p): Make static.
64350         (getaddrinfo): Reject service name if it is empty or does not consist
64351         solely of decimal digits, or if its value is > 65535.
64352         (getnameinfo): Remove useless casts.
64353
64354 2006-06-27  Simon Josefsson  <jas@extundo.com>
64355
64356         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64357         Eggert and Martin Lambers.
64358
64359 2006-06-27  Simon Josefsson  <jas@extundo.com>
64360
64361         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64362         Eggert and Martin Lambers.
64363
64364 2006-06-27  Bruno Haible  <bruno@clisp.org>
64365
64366         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64367         result to 0, not to empty.
64368         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64369
64370 2006-06-27  Bruno Haible  <bruno@clisp.org>
64371
64372         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64373
64374 2006-06-26  Simon Josefsson  <jas@extundo.com>
64375
64376         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64377         present.
64378
64379 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64380
64381         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64382         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64384
64385 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64386
64387         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64388
64389 2006-06-26  Bruno Haible  <bruno@clisp.org>
64390
64391         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64392
64393 2006-06-26  Bruno Haible  <bruno@clisp.org>
64394
64395         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64396
64397 2006-06-26  Bruno Haible  <bruno@clisp.org>
64398
64399         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64400         SGI C compiler in pre-C99 mode.
64401         Suggested by Mark D. Baushke and Larry Jones.
64402
64403 2006-06-26  Bruno Haible  <bruno@clisp.org>
64404
64405         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64406         WCHAR_MAX.
64407         Reported by Mark D. Baushke and Larry Jones.
64408
64409 2006-06-26  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64412         in pre-C99 mode.
64413         Suggested by Mark D. Baushke and Larry Jones.
64414
64415 2006-06-23  Simon Josefsson  <jas@extundo.com>
64416             Bruno Haible  <bruno@clisp.org>
64417
64418         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64419         Emit mostlyclean-local rule.
64420         (func_emit_tests_Makefile_am): Likewise.
64421         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64422
64423 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64424
64425         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64426
64427 2006-06-23  Bruno Haible  <bruno@clisp.org>
64428
64429         * tests/test-stdint.c: Update to match ISO C 99 Technical
64430         Corrigendum 1.
64431
64432 2006-06-23  Bruno Haible  <bruno@clisp.org>
64433
64434         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64435
64436 2006-06-23  Bruno Haible  <bruno@clisp.org>
64437
64438         * lib/stdint_.h: Treat IRIX like OpenBSD.
64439
64440 2006-06-23  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64443         ISO C 99 Technical Corrigendum 1.
64444
64445 2006-06-22  Simon Josefsson  <jas@extundo.com>
64446
64447         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64448         MinGW.
64449
64450 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64451
64452         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64453         needed.  Some compiler complained about some of them.  Problem reported
64454         by Larry Jones in
64455         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64456
64457 2006-06-21  Simon Josefsson  <jas@extundo.com>
64458
64459         * tests/test-getaddrinfo.c: New file.
64460
64461         * modules/getaddrinfo-tests: New file.
64462
64463         * MODULES.html.sh: Add inet_pton.
64464
64465         * modules/inet_pton: New file.
64466
64467 2006-06-21  Simon Josefsson  <jas@extundo.com>
64468
64469         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64470         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64471         of using the (limited) gnulib implementation on Windows XP.
64472
64473         * m4/inet_pton.m4: New file.
64474
64475 2006-06-21  Simon Josefsson  <jas@extundo.com>
64476
64477         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64478         variable.
64479
64480         * lib/socket_.h: Don't define WINVER.
64481
64482         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64483         slightly modified to work in gnulib.
64484
64485 2006-06-21  Simon Josefsson  <jas@extundo.com>
64486
64487         * doc/gnulib.texi (Windows sockets): Add.
64488
64489 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64490
64491         * lib/read-file.c (fread_file): Start with buffer allocation of
64492         0 bytes rather than 1 byte; this simplifies the code.
64493         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64494         code to free buffer and save/restore errno.
64495         (internal_read_file): Remove unused local.
64496
64497 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64498
64499         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64500         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64501         Problem reported by Denis Excoffier in
64502         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64503
64504 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64505
64506         * modules/sys_socket, modules/socklen: Include sys/types since
64507         FreeBSD 4.x's sys/socket.h needs it.
64508
64509 2006-06-19  Simon Josefsson  <jas@extundo.com>
64510
64511         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64512
64513 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64514
64515         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64516
64517 2006-06-19  Bruno Haible  <bruno@clisp.org>
64518
64519         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64520         and FULL_PATH_INTTYPES_H in angle brackets.
64521         Reported by Mark D. Baushke <mdb@gnu.org>.
64522
64523 2006-06-17  Eric Blake  <ebb9@byu.net>
64524
64525         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64526         errno.
64527
64528 2006-06-17  Bruno Haible  <bruno@clisp.org>
64529
64530         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64531         <sys/inttypes.h>.
64532
64533 2006-06-17  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64536         whether errno is declared. Assume <errno.h> declares errno.
64537
64538 2006-06-17  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64541
64542 2006-06-17  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64545         problem on Solaris 2.5.1.
64546
64547 2006-06-16  Eric Blake  <ebb9@byu.net>
64548
64549         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64550         * lib/unicodeio.c [!defined errno]: Likewise.
64551         * lib/strtol.c [!defined errno]: Likewise.
64552         * lib/strtod.c [!defined errno]: Likewise.
64553
64554 2006-06-15  Eric Blake  <ebb9@byu.net>
64555
64556         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64557
64558 2006-06-15  Eric Blake  <ebb9@byu.net>
64559
64560         * config/srclist.txt (ssize_t.m4): Lose sync.
64561
64562 2006-06-15  Bruno Haible  <bruno@clisp.org>
64563
64564         * modules/stdint (Files): Include m4/full-header-path.m4,
64565         m4/size_max.m4, m4/wchar_t.m4.
64566         (Makefile.am): Many more substitutions.
64567         * modules/stdint-tests: New file.
64568         * tests/test-stdint.c: New file.
64569
64570 2006-06-15  Bruno Haible  <bruno@clisp.org>
64571
64572         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64573         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64574         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64575         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64576         gl_CHECK_TYPE_SAME): New macros.
64577
64578 2006-06-15  Bruno Haible  <bruno@clisp.org>
64579
64580         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64581
64582 2006-06-15  Bruno Haible  <bruno@clisp.org>
64583
64584         * lib/stdint_.h: Rewritten to be fully auto-configured.
64585         Fixes bug on HP-UX/IA64.
64586
64587 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64588
64589         * lib/getdate.y (__attribute__): Don't define if already defined.
64590         Problem reported by Larry Jones.
64591         * lib/utimens.c (__attribute__): Likewise.
64592
64593 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64596         reported by Andreas Schwab.
64597
64598 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64599             Bruno Haible  <bruno@clisp.org>
64600
64601         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64602         check for the declaration of strnlen and a run test that exposes the
64603         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64604         rpl_strndup.
64605
64606 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64607             Bruno Haible  <bruno@clisp.org>
64608
64609         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64610
64611 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64612
64613         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64614         compile test, for Tru64 4.0D.
64615
64616 2006-05-28  Karl Berry  <karl@gnu.org>
64617
64618         * config/srclist.txt (printf-args.c): lose sync.
64619
64620 2006-05-26  Martin Lambers  <marlam@marlam.de>
64621
64622         * lib/getpass.c: Updates the test for the native W32 API, and adds
64623         missing includes, thus fixing compilation warnings.
64624
64625 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64626
64627         * lib/exclude.c (exclude_fnmatch): New function.
64628         (excluded_file_name): Call exclude_fnmatch.
64629         * lib/exclude.h (excluded_file_name): New prototype
64630
64631 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64632
64633         * lib/tempname.c (small_open, large_open): New macros.
64634         (__open, __open64) [!_LIBC]: Remove.
64635         (__gen_tempname): Use small_open and large_open instead of __open
64636         and __open64.  This fixes a portability bug on HP-UX 11.11i
64637         reported by Simon Wing-Tang in
64638         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64639
64640 2006-05-24  Bruno Haible  <bruno@clisp.org>
64641
64642         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64643         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64644         Reported by Thorsten Maerz <torte@netztorte.de> via
64645         Aaron Stone <aaron@serendipity.cx>.
64646
64647 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64650         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64651         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64652         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64653         not really conditional on the cache.
64654         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64655
64656 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64657
64658         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64659         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64660         (my_usleep): Don't mishandle maximum value.
64661
64662 2006-05-19  Jim Meyering  <jim@meyering.net>
64663
64664         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64665
64666 2006-05-17  Bruno Haible  <bruno@clisp.org>
64667
64668         Cygwin portability.
64669         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64670
64671 2006-05-17  Bruno Haible  <bruno@clisp.org>
64672
64673         * lib/stdint_.h: Fix recognition of Cygwin.
64674
64675 2006-05-15  Bruno Haible  <bruno@clisp.org>
64676
64677         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64678         on libtool patch by Ralf Wildenhues.
64679
64680 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64681
64682         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64683         test for C99 conformance; (bool) 0.5 is an integer constant
64684         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64685         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64686
64687 2006-05-11  Simon Josefsson  <jas@extundo.com>
64688
64689         * m4/xvasprintf.m4: Fix obvious typo.
64690
64691 2006-05-11  Jim Meyering  <jim@meyering.net>
64692
64693         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64694         James Lemley.
64695
64696 2006-05-10  Simon Josefsson  <jas@extundo.com>
64697
64698         * lib/md4.c: Typo fix, update copyright years.
64699         (K1, K2): Don't use L because it turn computations into 64-bit on
64700         64-bit platforms.
64701
64702 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64703
64704         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64705         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64706         unwanted sign propagation, e.g., on hosts with 64-bit int.
64707         There still are some problems with reeelly weird theoretical hosts
64708         (e.g., 33-bit int) but it's not worth worrying about now.
64709         * lib/sha1.c (rol): Likewise.
64710         (K1, K2, K3, K4): Remove unnecessary L suffix.
64711
64712 2006-05-10  Bruno Haible  <bruno@clisp.org>
64713
64714         * lib/des.c: Cast to avoid warnings.
64715
64716 2006-05-09  Bruno Haible  <bruno@clisp.org>
64717
64718         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64719         (Depends-on): Depend also on xsize, stdarg.
64720         (configure.ac): Add gl_XVASPRINTF.
64721
64722 2006-05-09  Bruno Haible  <bruno@clisp.org>
64723
64724         * m4/xvasprintf.m4: New file.
64725
64726 2006-05-09  Bruno Haible  <bruno@clisp.org>
64727
64728         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64729         (EOVERFLOW): Define fallback value.
64730         (xstrcat): New function.
64731         (xvasprintf): Recognize the special case of a string concatenation.
64732
64733 2006-05-08  Eric Blake  <ebb9@byu.net>
64734
64735         * gnulib-tool (func_version): Base copyright year on CVS date.
64736         (func_emit_copyright_notice): New function.
64737         (func_emit_lib_Makefile_am): Use it.
64738         (func_emit_tests_Makefile_am): Likewise.
64739         (func_import): Likewise.
64740
64741 2006-05-08  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/stdarg: New file.
64744         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64745
64746 2006-05-08  Bruno Haible  <bruno@clisp.org>
64747
64748         * m4/stdarg.m4: New file, from GNU gettext.
64749
64750 2006-05-08  Bruno Haible  <bruno@clisp.org>
64751
64752         * config/srclist.txt (build-aux/config.rpath): different from latest
64753         release.
64754
64755 2006-05-08  Bruno Haible  <bruno@clisp.org>
64756
64757         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64758
64759 2006-05-05  Jim Meyering  <jim@meyering.net>
64760
64761         * m4/warning.m4: New file, derived from bison's file by the same name.
64762
64763 2006-05-03  Bruno Haible  <bruno@clisp.org>
64764
64765         * lib/stdint_.h: Shorter URL.
64766         * lib/inttypes.h: Likewise.
64767
64768 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64769
64770         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64771
64772 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64773
64774         * lib/verify.h: Document the internals better.  Most of this change
64775         was written by Bruno Haible.
64776
64777 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64778
64779         * doc/verify.texi: New file, partly based on a proposal by
64780         Bruno Haible.
64781
64782 2006-05-02  Bruno Haible  <bruno@clisp.org>
64783
64784         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64785         test from here...
64786         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64787
64788 2006-04-29  Bruno Haible  <bruno@clisp.org>
64789
64790         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64791         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64792
64793 2006-04-29  Bruno Haible  <bruno@clisp.org>
64794
64795         * gnulib-tool: Make --update option actually work.
64796
64797 2006-04-29  Bruno Haible  <bruno@clisp.org>
64798
64799         * doc/gcd.texi: New file.
64800         * doc/gnulib.texi: Include it.
64801
64802 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64803
64804         * lib/getdate.y (get_date): When adding relative date, start with the
64805         initial time, not with the result of the first mktime call.
64806
64807 2006-04-25  Bruno Haible  <bruno@clisp.org>
64808
64809         * gnulib-tool (func_import): Output the include directives in three
64810         blocks, sorted separately.
64811         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64812
64813 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64814
64815         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64816         to define main with arguments, for C++.  Reported by Eric Blake.
64817         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64818         Prefer 'int main ()' to 'int main (void)', for C++.
64819         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64821         for 'main', for C99 and C++.
64822
64823 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64826         Don't assume that exit status -1 is valid.
64827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64828         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64829         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64830         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64831         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64832         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64833         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64834         functions can be used without declaring them, or that you can
64835         exit with status -1.
64836         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64837
64838 2006-04-24  Karl Berry  <karl@gnu.org>
64839
64840         * config/srclist.txt (longdouble.m4): sync lost.
64841
64842 2006-04-24  Eric Blake  <ebb9@byu.net>
64843
64844         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64845
64846 2006-04-24  Bruno Haible  <bruno@clisp.org>
64847
64848         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64849         poll() implementation in AIX.
64850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64851
64852 2006-04-24  Bruno Haible  <bruno@clisp.org>
64853
64854         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64855         assigned exactly once.
64856
64857 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64858             Bruno Haible  <bruno@clisp.org>
64859
64860         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64861         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64862         for AM_CPPFLAGS.
64863
64864 2006-04-23  Bruno Haible  <bruno@clisp.org>
64865
64866         * modules/copy-file: Depend on unistd.
64867         * modules/execute: Likewise.
64868         * modules/fatal-signal: Likewise.
64869         * modules/findprog: Likewise.
64870         * modules/mkdtemp : Likewise.
64871         * modules/pipe: Likewise.
64872         * modules/wait-process: Likewise.
64873
64874 2006-04-23  Bruno Haible  <bruno@clisp.org>
64875
64876         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64877         condition was already detected.
64878         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64879
64880 2006-04-23  Bruno Haible  <bruno@clisp.org>
64881
64882         * lib/copy-file.c: Include <unistd.h> unconditionally.
64883         * lib/execute.c: Likewise.
64884         * lib/fatal-signal.c: Likewise.
64885         * lib/findprog.c: Likewise.
64886         * lib/mkdtemp.c: Likewise.
64887         * lib/pipe.h: Likewise.
64888         * lib/pipe.c: Likewise.
64889         * lib/wait-process.h: Likewise.
64890
64891 2006-04-23  Bruno Haible  <bruno@clisp.org>
64892
64893         * gnulib-tool (func_usage): Fix --import description. Document
64894         --update.
64895         (func_import): Create temporary file in a temporary directory, if
64896         --dry-run is specified. Silence errors from 'grep' when there are no
64897         m4 files in $m4dir.
64898         (func_create_testdir): Silence errors from 'grep' when there are no
64899         m4 files in $m4dir.
64900         Reported by Karl Berry <karl@freefriends.org>.
64901
64902 2006-04-20  Bruno Haible  <bruno@clisp.org>
64903
64904         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64905         one argument, so that the code will be portable to Autoconf 2.60.
64906         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64907         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64908         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64909
64910 2006-04-19  Derek Price  <derek@ximbiot.com>
64911             Eric Blake  <ebb9@byu.net>
64912
64913         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64914         rather than "/full/path.h".  Update comment to match.  Shorten &
64915         generalize m4_translit call via AS_TR_CPP.
64916
64917 2006-04-19  Derek Price  <derek@ximbiot.com>
64918             Eric Blake  <ebb9@byu.net>
64919
64920         * lib/inttypes.h: Correct grammar in comment.
64921
64922 2006-04-18  Derek Price  <derek@ximbiot.com>
64923             Paul Eggert  <eggert@cs.ucla.edu>
64924
64925         * modules/inttypes: New file.
64926         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64927
64928 2006-04-18  Derek Price  <derek@ximbiot.com>
64929             Paul Eggert  <eggert@cs.ucla.edu>
64930
64931         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64932         New files.
64933
64934 2006-04-18  Derek Price  <derek@ximbiot.com>
64935             Paul Eggert  <eggert@cs.ucla.edu>
64936
64937         * lib/inttypes.h: New file.
64938         * lib/strtoimax.c: Assume <inttypes.h>.
64939
64940 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64943         isn't mounted.  Problem reported by Kir Kolyshkin.
64944
64945 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64948         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64949         Derek R. Price.
64950         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64951         implementation.
64952
64953 2006-04-12  Eric Blake  <ebb9@byu.net>
64954
64955         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64956         is now done automatically by the corresponding Autoconf macro.
64957
64958 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64961         time_r.h.
64962
64963 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         Merge regex changes from libc, removing some of our
64966         POSIX-conformance changes that were rejected and redoing them in a
64967         less-intrusive way.
64968
64969         * lib/regcomp.c (re_compile_internal, init_dfa):
64970         Length arg is now size_t, not Idx.  All uses changed.
64971         (peek_token): Forward decl now says internal_function.
64972         (__re_error_msgid, __re_error_msgid_idx):
64973         Now static rather than extern with attribute_hidden.
64974         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64975         For some reason libc prefers K&R style defns for external functions.
64976         (regerror) [!defined _LIBC]: Likewise.
64977         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64978         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64979         (build_range_exp, build_collating_symbol):
64980         Use K&R-style defn.
64981         (re_compile_fastmap): Use '\0' to memset, not 0.
64982         (utf8_sb_map): Make the calculations more obvious.
64983         (init_dfa, parse_bracket_exp, build_charclass_op):
64984         Call calloc and cast result, as glibc does.
64985         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64986         (build_range_exp, build_collating_symbol):
64987         Now internal functions.
64988
64989         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64990
64991         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64992         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64993         Don't depend on VMS; depend on __VMS instead, for POSIX
64994         namespace cleanness.
64995         (regoff_t): Define to ssize_t, not long int.
64996
64997         Remove the REG_ macros named below.  Instead, make the old names
64998         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64999         __USE_GNU_REGEX.
65000         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65001         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65002         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65003         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65004         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65005         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65006         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65007         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65008         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65009         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65010         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65011         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65012         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65013         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65014         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65015         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65016         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65017         (REG_NREGS):
65018         Remove.  All uses replaced by the old RE_* names.
65019         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65020         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65021         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65022         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65023         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65024         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65025         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65026         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65027         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65028         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65029         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65030         Don't bother having these macros be independent of each others'
65031         values, since they no longer exist in the POSIX name space.
65032
65033         Rename the following member names back to their old names,
65034         unless !__USE_GNU_REGEX.  All uses changed back.
65035         (buffer): Renamed from re_buffer.
65036         (allocated): Renamed from re_allocated.
65037         (used): Renamed from re_used.
65038         (syntax): Renamed from re_syntax.
65039         (fastmap): Renamed from re_fastmap.
65040         (translate): Renamed from re_translate.
65041         (can_be_null): Renamed from re_can_be_null.
65042         (regs_allocated): Renamed from re_regs_allocated.
65043         (fastmap_accurate): Renamed from re_fastmap_accurate.
65044         (no_sub): Renamed from re_no_sub.
65045         (not_bol): Renamed from re_not_bol.
65046         (not_eol): Renamed from re_not_eol.
65047         (newline_anchor): Renamed from re_newline_anchor.
65048         (num_regs): Renamed from rm_num_regs.
65049         (start): Renamed from rm_start.
65050         (end): Renamed from rm_end.
65051
65052         (free_state): Move up a bit.
65053
65054         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65055         #define to be empty.
65056         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65057         when that is what is intended.
65058         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65059         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65060         (MAX): New macro.
65061         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65062         All uses changed back to re_malloc, etc.  It's now the caller's
65063         responsibility to check for overflow; all callers changed.
65064         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65065         (re_x2nrealloc): Remove.
65066         (free_state): Remove decl.
65067
65068         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65069         (re_set_registers, re_exec):
65070         Use K&R-style defn.
65071
65072         2006-01-31  Roland McGrath  <roland@redhat.com>
65073
65074         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65075         Reported by Mike Frysinger <vapier@gentoo.org>.
65076
65077         2006-01-15  Andreas Jaeger  <aj@suse.de>
65078
65079         [BZ #1950]
65080         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65081         build_wcs_upper_buffer change.
65082         (build_wcs_upper_buffer): Change return type.
65083
65084         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65085
65086         * lib/regex_internal.h: Include <stdint.h> if available.
65087
65088         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65089
65090         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65091
65092         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65093
65094         * lib/regcomp.c: Adjust for changed secondary hash function.
65095
65096         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65097
65098         * lib/regex.h: Pretty printing.
65099         Clean up namespace a bit.
65100
65101         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65102
65103         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65104         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65105
65106         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65107                     Ulrich Drepper  <drepper@redhat.com>
65108
65109         [BZ #1302]
65110         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65111         changed.
65112         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65113
65114         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65115
65116         [BZ #281]
65117         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65118         * lib/regcomp.c: Remove unnecessary uses of
65119         unsigned RE_TRANSLATE_TYPE.
65120         * lib/regex_internal.h: Likewise.
65121         * lib/regex_internal.c: Likewise.
65122         * lib/regexec.c: Likewise.
65123         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65124
65125         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65126
65127         * lib/regexec.c (find_recover_state): Remove unnecessary
65128         initialization.
65129         (transit_state_bkref): Make DFA a const pointer.
65130         (get_subexp): Likewise.
65131         (check_arrival): Likewise.
65132         (update_cur_sifted_state): Likewise.
65133         (re_search_internal): Likewise.
65134         (prune_impossible_nodes): Likewise.
65135         (acquire_init_state_context): Likewise.
65136         (proceed_next_node): Likewise.
65137         (set_regs): Likewise.
65138         (free_fail_stack_return): Likewise.
65139         (check_arrival_expand_ecl): Mark DFA parameter as const.
65140         (check_arrival_expand_ecl_sub): Likewise.
65141         (check_subexp_limits): Likewise.
65142         (sub_epsilon_src_nodes):  Likewise.
65143         (add_epsilon_src_nodes):  Likewise.
65144         (merge_state_array): Likewise.
65145         (update_regs): Likewise.
65146         (build_trtable): Likewise.
65147         (sift_states_backward): Mark MCTX parameter as const.
65148         (build_sifted_states): Likewise.
65149         (update_cur_sifted_state): Likewise.
65150         (sift_states_mkref): Likewise.
65151         (check_arrival_expand_ecl): Mark eclosure as const.
65152         (check_dst_limits_calc_pos_1): Likewise.
65153         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65154         pointer.
65155
65156         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65157
65158         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65159         (transit_state_sb): Likewise.
65160         (transit_state_mb): Likewise.
65161         (sift_states_iter_mb): Likewise.
65162         (check_arrival_add_next_nodes): Likewise.
65163         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65164         [_LIBC] (re_search_2_stub): Use mempcpy.
65165
65166         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65167         mbrtowc for very simple UTF-8 case.
65168
65169         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65170         a pointer-to-const.
65171         (re_acquire_state_context): Likewise.
65172         * lib/regex_internal.h: Adjust prototypes.
65173
65174         * lib/regex.c: Prevent using C++ compilers.
65175
65176         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65177         (re_acquire_state_context): Likewise.
65178
65179 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65180
65181         * modules/regex (Depends-on): Add ssize_t.
65182
65183 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65186         translation table.
65187
65188 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65191
65192 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65193             Bruno Haible  <bruno@clisp.org>
65194
65195         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65196         <sys/types.h> and <inttypes.h>.
65197
65198 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65199
65200         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65201         `__error_t_defined', so argp.h will not typedef the former.
65202
65203 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65204
65205         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65206         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65207         glibc names.  Even if glibc is changed to conform to POSIX, the
65208         traditional names will be available anyway, since regex depends on
65209         the extensions module.  Also, fix a longstanding typo in the
65210         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65211         reported by Emanuele Giaquinta.  Also, change sense of cached
65212         variable, so that the message makes sense.
65213
65214 2006-03-24  Simon Josefsson  <jas@extundo.com>
65215
65216         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65217         including some doc fixes.
65218         (base64_encode_alloc): Fix +1 bug on allocation failures.
65219
65220 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65221
65222         * lib/base64.c (base64_encode): Do not read past end of array with
65223         unsanitized input on systems with CHAR_BIT > 8.
65224
65225 2006-03-24  Eric Blake  <ebb9@byu.net>
65226
65227         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65228
65229 2006-03-22  Karl Berry  <karl@gnu.org>
65230
65231         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65232         * config/srclistvars.sh (COREUTILS): new var.
65233
65234 2006-03-17  Jim Meyering  <jim@meyering.net>
65235
65236         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65237         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65238
65239 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65242         no longer needs it.  Instead, check that regoff_t is as least
65243         as wide as ptrdiff_t.
65244
65245         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65246         so that our regex.h stays compatible with the installed regex.
65247         This is helpful for installers who configure --without-included-regex.
65248         Problem reported by Emanuele Giaquinta.
65249
65250 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65251
65252         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65253         Typedef to long int, not to off_, as POSIX will likely change
65254         in that direction.
65255
65256 2006-03-15  Eric Blake  <ebb9@byu.net>
65257
65258         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65259
65260 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65261
65262         * lib/argp-help.c (validate_uparams): Fix typo
65263         * lib/argp-parse.c (argp_default_options): Consistently begin help
65264         messages with a lowercase letter.
65265
65266 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65267
65268         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65269         overrun buffers and shouldn't be used (much as gets shouldn't be
65270         used).
65271         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65272
65273 2006-03-08  Simon Josefsson  <jas@extundo.com>
65274
65275         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65276         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65277
65278 2006-03-08  Simon Josefsson  <jas@extundo.com>
65279
65280         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65281         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65282
65283 2006-03-08  Simon Josefsson  <jas@extundo.com>
65284
65285         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65286         signal that configure disabled the device.
65287
65288 2006-03-08  Simon Josefsson  <jas@extundo.com>
65289
65290         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65291         languages.
65292
65293 2006-03-07  Simon Josefsson  <jas@extundo.com>
65294
65295         * modules/getopt (Depends-on): Add unistd.
65296
65297         * modules/unistd: New file.
65298
65299 2006-03-07  Simon Josefsson  <jas@extundo.com>
65300
65301         * modules/gc-random: New file.
65302
65303 2006-03-07  Simon Josefsson  <jas@extundo.com>
65304
65305         * m4/unistd_h.m4: New file.
65306
65307 2006-03-07  Simon Josefsson  <jas@extundo.com>
65308
65309         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65310         test to be side-effect free by storing the result in the cache
65311         variable gl_cv_lib_readline, and moving the assignment of
65312         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65313         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65314
65315 2006-03-07  Simon Josefsson  <jas@extundo.com>
65316
65317         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65318         error on missing devices (the functions will return an error).
65319
65320         * m4/gc.m4: Move random stuff to gc-random.m4
65321
65322 2006-03-07  Simon Josefsson  <jas@extundo.com>
65323
65324         * lib/unistd_.h: New file.
65325
65326 2006-03-07  Simon Josefsson  <jas@extundo.com>
65327
65328         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65329
65330 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65331
65332         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65333         Problem reported by Juan Manuel Guerrero.
65334
65335 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65336
65337         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65338         the unistd module.
65339         * lib/getlogin_r.c: Likewise.
65340         * lib/getlogin_r.h: Likewise.
65341         * lib/glob.c: Likewise.
65342         * lib/pagealign_alloc.c: Likewise.
65343         * lib/unistd_.h: Remove; no longer needed.
65344
65345 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65346
65347         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65348         Add unistd.
65349         * modules/c-stack (Depends-on): Add unistd.
65350         * modules/getlogin_r: Likewise.
65351         * modules/glob: Likewise.
65352         * modules/pagealign_alloc: Likewise.
65353         * modules/unistd (Files): Remove lib/unistd_.h.
65354         (EXTRA_DIST): Remove.
65355         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65356         need unistd_.h.
65357         (MOSTLYCLEANFILES): Remove unistd.h-t.
65358
65359 2006-03-03  Simon Josefsson  <jas@extundo.com>
65360
65361         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65362
65363 2006-03-03  Simon Josefsson  <jas@extundo.com>
65364
65365         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65366         libidn and bison.
65367
65368 2006-03-03  Simon Josefsson  <jas@extundo.com>
65369
65370         * build-aux/maint.mk: Add indent target.
65371
65372 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65373
65374         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65375         our replacement poll.h in any case, to avoid a differing
65376         declaration from a system header.  Seen on AIX.
65377
65378 2006-03-01  Simon Josefsson  <jas@extundo.com>
65379
65380         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65381         <kasal@ucw.cz>.
65382
65383 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65384
65385         * modules/gettime (Depends-on): Add extensions module.
65386         * modules/nanosleep (Depends-on): Likewise.
65387         * modules/settime (Depends-on): Likewise.
65388
65389 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65390
65391         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65392         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65393         pedantically.
65394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65395         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65396
65397         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65398         not "==".  Reported by Ralf Wildenhues.
65399
65400 2006-03-01  Karl Berry  <karl@gnu.org>
65401
65402         * doc/Copyright/request-*: new files, synced from gnuorg.
65403
65404 2006-03-01  Karl Berry  <karl@gnu.org>
65405
65406         * config/srclist.txt (Copyright/*): new entries.
65407
65408 2006-02-28  Simon Josefsson  <jas@extundo.com>
65409
65410         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65411
65412 2006-02-27  Simon Josefsson  <jas@extundo.com>
65413
65414         * lib/base64.h: Indent #define's.  From Jim Meyering
65415         <jim@meyering.net>.
65416
65417 2006-02-27  Jim Meyering  <jim@meyering.net>
65418
65419         Revert the change of 2006-02-24, so these files can continue
65420         to be sync'd from gettext.
65421         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65422         of `config.h'.
65423
65424 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * modules/intprops: New file.
65427         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65428         Add intprops.
65429         * modules/getloadavg (Files): Remove lib/intprops.h.
65430         (Depends-on): Add intprops.
65431         * modules/human: Likewise.
65432         * modules/inttostr: Likewise.
65433         * modules/openat: Likewise.
65434         * modules/sig2str: Likewise.
65435         * modules/userspec: Likewise.
65436         * modules/utimecmp: Likewise.
65437         * modules/xnanosleep: Likewise.
65438         * modules/xstrtol: Likewise.
65439
65440 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65441
65442         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65443         * modules/lock-tests (TESTS): Use $(EXEEXT).
65444         * modules/tls-tests: Likewise.
65445         * modules/argp-tests: Likewise.
65446         (check_PROGRAMS): New var, replacing...
65447         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65448
65449 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65450
65451         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65452         `config.h'.
65453
65454 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65457
65458 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65459
65460         Sync from coreutils.
65461         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65462         gl_CHDIR_SAFER.
65463
65464 2006-02-22  Jim Meyering  <jim@meyering.net>
65465
65466         Sync from coreutils.
65467         * m4/chdir-safer.m4: New file.
65468
65469 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65472         AT_FDCWD exceeds INT_MAX.
65473         * lib/openat.h (AT_FDCWD): Likewise.
65474
65475 2006-02-17  Eric Blake  <address@hidden>
65476
65477         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65478
65479 2006-02-16  Simon Josefsson  <jas@extundo.com>
65480
65481         * modules/getaddrinfo (Depends-on): Add sys_socket.
65482
65483 2006-02-15  Simon Josefsson  <jas@extundo.com>
65484
65485         * build-aux/maint.mk: Add dsyntax-check rule.
65486
65487 2006-02-15  Eric Blake  <ebb9@byu.net>
65488
65489         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65490         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65491         'present but cannot compile' warnings on cygwin.
65492         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65493         use ws2tcpip.h if sys/socket.h works.
65494         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65495         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65496
65497 2006-02-14  Simon Josefsson  <jas@extundo.com>
65498
65499         * modules/maintainer-makefile (Files): Rename.
65500
65501         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65502         and (the local) Makefile.cfg to maint-cfg.mk.
65503
65504         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65505         to the latter.
65506
65507         * modules/maintainer-makefile: New module.
65508
65509         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65510         severaly stripped to make it possible to build it up from scratch
65511         with reliable tests.
65512
65513         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65514         fixes to permit overriding the default actions when configure and
65515         makefile are not available.
65516
65517 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65518
65519         Sync from coreutils.
65520         * modules/lstat (Depends-on): Don't depend on xalloc.
65521         (License): Change from GPL to LGPL, since this is now simply a
65522         replacement for a libc function.
65523
65524 2006-02-14  Jim Meyering  <jim@meyering.net>
65525
65526         Sync from coreutils.
65527
65528         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65529         failure on deficient systems, and simplify gnulib lgpl dependencies.
65530         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65531         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65532
65533         * lib/xalloc-die.c: Remove unused definition of N_.
65534
65535 2006-02-14  Jim Meyering  <jim@meyering.net>
65536
65537         Sync from coreutils.
65538         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65539         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65540         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65541         double-quote uses of that variable, to accommodate the rare case in
65542         which getmntent is available in none of the libraries checked.  This
65543         happens at least on FreeBSD 5.0.
65544
65545 2006-02-13  Simon Josefsson  <jas@extundo.com>
65546
65547         * gnulib-tool (Usage): Fix --import, from
65548         karl@freefriends.org (Karl Berry).
65549
65550 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65551
65552         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65553
65554 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65555
65556         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65557         "autoupdate" on 2005-12-12.
65558
65559 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * modules/closeout (Depends-on): Remove atexit.
65562
65563 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65566         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65567
65568 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65571         __EXTENSIONS__ if this causes compilation to fail.  Problem
65572         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65573         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65574
65575 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65576
65577         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65578         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65579         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65580         All uses changed.
65581
65582 2006-01-26  Simon Josefsson  <jas@extundo.com>
65583
65584         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65585         prototype is visible on mingw32.
65586
65587         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65588         for mingw32.
65589
65590         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65591         mingw32).
65592
65593 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65596         attempt to open for write; this always fails, at least on POSIX
65597         hosts.  This reinstates the 2006-01-09 change, which was
65598         inadvertently removed.
65599
65600 2006-01-26  Bruno Haible  <bruno@clisp.org>
65601
65602         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65603         Reported by Paul Eggert.
65604
65605 2006-01-26  Bruno Haible  <bruno@clisp.org>
65606             Paul Eggert  <eggert@cs.ucla.edu>
65607
65608         * lib/stdbool_.h (_Bool)
65609         [(! (defined __cplusplus || defined __BEOS__)
65610           && !defined __GNUC__
65611           && !(defined __HP_cc || defined __xlc__
65612                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65613                || defined __sgi))]:
65614         #define to signed char in these cases too; this simplifies
65615         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65616         etc., separately) and makes it more conservative.
65617
65618 2006-01-25  Simon Josefsson  <jas@extundo.com>
65619
65620         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65621         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65622         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65623
65624 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65625
65626         * lib/argp-namefrob.h: Bugfix. Remove stray #
65627
65628 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65631         so that we test the test.
65632         Check for yet another HP-UX cc bug involving *bool |= bool.
65633
65634 2006-01-25  Karl Berry  <karl@gnu.org>
65635
65636         * config/srclist.txt (vasnprintf.c): sync lost.
65637
65638 2006-01-25  Jim Meyering  <jim@meyering.net>
65639
65640         Sync from the stable (b5) branch of coreutils:
65641
65642         * lib/fts.c (fts_children): Don't let close() clobber errno from
65643         failed fchdir().
65644
65645         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65646         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65647         a dangling symlink.  That can also happen at least for ELOOP.
65648         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65649         FYI, this bug predates the inclusion of fts.c in coreutils.
65650
65651         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65652         in their own block, so pre-c99 compilers don't object.
65653
65654         Avoid the double-free (first in fts_read, second in fts_close) that
65655         would occur when an `active' directory is made inaccessible (e.g.,
65656         via chmod a-x) during a traversal.
65657         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65658         before returning.  Reproduce this failure by
65659         mkdir -p a/b; cd a; chmod a-x . b
65660         Reported by Stavros Passas.
65661
65662 2006-01-25  Jim Meyering  <jim@meyering.net>
65663
65664         * lib/fileblocks.c: Remove more useless parentheses.
65665         * lib/readutmp.h: Likewise.
65666
65667 2006-01-25  Bruno Haible  <bruno@clisp.org>
65668
65669         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65670         warnings.
65671         Reported by Paul Eggert.
65672
65673 2006-01-25  Bruno Haible  <bruno@clisp.org>
65674
65675         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65676         rid of a trap command. For Solaris sh.
65677         Reported by Mark D. Baushke <mdb@gnu.org>.
65678
65679 2006-01-24  Simon Josefsson  <jas@extundo.com>
65680
65681         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65682         Bruno.
65683
65684 2006-01-24  Karl Berry  <karl@gnu.org>
65685
65686         * config/srclist.txt (argp-namefrob.h): sync lost.
65687
65688 2006-01-24  Jim Meyering  <jim@meyering.net>
65689
65690         * modules/openat (Files): Add lib/intprops.h.
65691         From Mark D. Baushke.
65692
65693 2006-01-24  Jim Meyering  <jim@meyering.net>
65694
65695         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65696         Reported by Mark D. Baushke.
65697
65698 2006-01-24  Jim Meyering  <jim@meyering.net>
65699
65700         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65701
65702 2006-01-24  Bruno Haible  <bruno@clisp.org>
65703
65704         * modules/strnlen (Maintainer): Change from glibc to all.
65705
65706 2006-01-24  Bruno Haible  <bruno@clisp.org>
65707
65708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65709         Patch by Paul Eggert.
65710
65711 2006-01-24  Bruno Haible  <bruno@clisp.org>
65712
65713         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65714         already has it.
65715         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65716         2005-11-26.
65717
65718         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65719         'signed char' to avoid problems with the built-in _Bool type.
65720         Reported by Paul Eggert on 2005-11-26.
65721
65722 2006-01-24  Bruno Haible  <bruno@clisp.org>
65723
65724         * gnulib-tool (func_import): Avoid constructing complicated sed
65725         expressions inside backquote.
65726         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65727
65728 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65729
65730         These changes imported from libc.
65731         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65732         test and two separate function calls.
65733         * lib/strndup.c (__strndup): Add libc_hidden_def.
65734
65735 2006-01-23  Simon Josefsson  <jas@extundo.com>
65736
65737         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65738         Remove the test_*_SOURCES variable: automake infers it by default.
65739         * modules/tls-tests: Likewise.
65740
65741 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65742
65743         Work around porting bugs reported by Dieter in
65744         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65745         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65746         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65747         Include "getopt.h" first, to check interface.
65748         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65749         !HAVE_DECL_GETENV.
65750         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65751         (__strndup): Revert to K&R-style function dfns, the glibc style.
65752         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65753         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65754         Include strnlen.h first, to get prototype properly.
65755         (strnlen): Renamed from __strnlen.
65756         Remove weak alias.
65757
65758 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65761
65762 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65763
65764         * config/srclist.txt: Adjust to reflect glibc reorganization.
65765         This affects only comments.
65766
65767 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65768
65769          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65770          Reported by Bruce Korb <bkorb@gnu.org>.
65771
65772 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65775         to pacify gcc -Wswitch-default.
65776
65777 2006-01-22  Bruno Haible  <bruno@clisp.org>
65778
65779         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65780         temporary buffer for sprintf, take into account the precision also
65781         for 'd', 'i', 'u', 'o', 'x', 'X'.
65782
65783 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65784
65785         * modules/argp-tests: New module
65786         * tests/test-argp.c: New file
65787         * tests/test-argp-2.sh: New file
65788
65789 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65790
65791         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65792         (__argp_base_name): Removed
65793         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65794         typo.
65795         (__argp_base_name): Provide macro definition or extern declaration
65796         depending on the configuration
65797
65798 2006-01-20  Simon Josefsson  <jas@extundo.com>
65799
65800         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65801
65802 2006-01-20  Simon Josefsson  <jas@extundo.com>
65803
65804         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65805
65806 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65809         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65810         Suggested by Bruno Haible.
65811
65812 2006-01-20  Karl Berry  <karl@gnu.org>
65813
65814         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65815         until changes propagate, I guess.
65816
65817 2006-01-19  Simon Josefsson  <jas@extundo.com>
65818
65819         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65820
65821 2006-01-19  Simon Josefsson  <jas@extundo.com>
65822
65823         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65824
65825 2006-01-19  Simon Josefsson  <jas@extundo.com>
65826
65827         * gnulib-tool: Set check_PROGRAMS.
65828
65829         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65830         modules/des-tests, modules/gc-arcfour-tests,
65831         modules/gc-arctwo-tests, modules/gc-des-tests,
65832         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65833         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65834         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65835         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65836         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65837         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65838         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65839         test_*_SOURCES.
65840
65841 2006-01-18  Simon Josefsson  <jas@extundo.com>
65842
65843         * modules/socklen (Depends-on): Depend on sys_socket.
65844
65845 2006-01-18  Simon Josefsson  <jas@extundo.com>
65846
65847         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65848         modules/des-tests, modules/gc-arcfour-tests,
65849         modules/gc-arctwo-tests, modules/gc-des-tests,
65850         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65851         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65852         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65853         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65854         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65855         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65856         $(EXEEXT) to automake TESTS variable, for mingw32.
65857
65858 2006-01-17  Simon Josefsson  <jas@extundo.com>
65859
65860         * modules/socklen (Include): Need sys/socket.h.
65861
65862 2006-01-17  Bruno Haible  <bruno@clisp.org>
65863
65864         * modules/ssize_t (Include): Add <sys/types.h>.
65865
65866 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65867
65868         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65869         it's not portable and it doesn't work with cross-compiles.
65870         Problem reported by Bruno Haible.  Fix missing-$ typo in
65871         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65872         -zignore from being used with Sun's C compiler.
65873
65874 2006-01-12  Simon Josefsson  <jas@extundo.com>
65875
65876         * lib/base64.c: Fix warning, reported by Bruno Haible
65877         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65878
65879 2006-01-12  Bruno Haible  <bruno@clisp.org>
65880
65881         * modules/ldd: New file.
65882         * build-aux/ldd.sh.in: New file.
65883         * MODULES.html.sh (Support for building libraries and executables): Add
65884         ldd.
65885
65886 2006-01-12  Bruno Haible  <bruno@clisp.org>
65887
65888         * m4/ldd.m4: New file.
65889
65890 2006-01-12  Bruno Haible  <bruno@clisp.org>
65891
65892         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65893         endless loop while replacing $auxdir with build-aux.
65894
65895 2006-01-11  Simon Josefsson  <jas@extundo.com>
65896
65897         * lib/stdint_.h (SIZE_MAX): Add missing (.
65898
65899 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65900
65901         Sync from coreutils.
65902         * lib/md5.c: Fix commentary typos.
65903         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65904         * lib/md5.h (__attribute__): Remove; unused.
65905         * lib/sha1.c: Fix commentary to match md5 better.
65906         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65907         so that we don't need to worry about alignment.  All uses changed.
65908         This merges the 2005-10-28 md5 change into sha1.
65909
65910 2006-01-11  Jim Meyering  <jim@meyering.net>
65911
65912         Sync from coreutils.
65913         * lib/md5.c (OP): Fix spacing.
65914
65915 2006-01-11  Bruno Haible  <bruno@clisp.org>
65916
65917         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65918         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65919         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65920
65921 2006-01-11  Bruno Haible  <bruno@clisp.org>
65922
65923         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65924         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65925         the "early" section as well.
65926
65927 2006-01-11  Bruno Haible  <bruno@clisp.org>
65928
65929         Avoid "ar: no archive members specified" error on MacOS X.
65930         * gnulib-tool (func_modules_add_dummy): New function.
65931         (func_import, func_create_testdir): Invoke it.
65932
65933 2006-01-11  Bruno Haible  <bruno@clisp.org>
65934
65935         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65936         with $auxdir in AC_CONFIG_FILES statements.
65937
65938 2006-01-11  Bruno Haible  <bruno@clisp.org>
65939
65940         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65941         Initialize also noinst_HEADERS to empty.
65942
65943 2006-01-11  Bruno Haible  <bruno@clisp.org>
65944
65945         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65946         variables.
65947         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65948         autoreconf.
65949
65950 2006-01-11  Bruno Haible  <bruno@clisp.org>
65951
65952         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65953         overridable by the user.
65954         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65955
65956 2006-01-10  Simon Josefsson  <jas@extundo.com>
65957
65958         * modules/sys_socket: New file.
65959
65960 2006-01-10  Simon Josefsson  <jas@extundo.com>
65961
65962         * m4/sys_socket_h.m4: New file.
65963
65964 2006-01-10  Simon Josefsson  <jas@extundo.com>
65965
65966         * lib/socket_.h: New file.
65967
65968 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65969
65970         * modules/readutmp (Maintainer): Add myself.
65971
65972 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65973
65974         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65975         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65976         People who are still concerned with buggy memcmp implementations
65977         can invoke gl_FUNC_MEMCMP themselves.
65978
65979 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65980
65981         * lib/regex_internal.h (BITSET_WORD_BITS):
65982         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65983         preprocessor mishandles large unsigned values as if they were signed.
65984         Problem reported by Claudio Fontana in
65985         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65986
65987 2006-01-10  Jim Meyering  <jim@meyering.net>
65988
65989         Avoid the double-free (first in fts_read, second in fts_close) that
65990         would occur when an `active' directory is made inaccessible (e.g.,
65991         via chmod a-x) during a traversal.
65992         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65993         before returning.  Reproduce this failure by
65994         mkdir -p a/b; cd a; chmod a-x . b
65995         Reported by Stavros Passas.
65996
65997         Sync from coreutils.
65998         * lib/sha1.c: Tweak grammar in a comment.
65999
66000 2006-01-10  Jim Meyering  <jim@meyering.net>
66001
66002         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66003         Patch by Joerg Sonnenberger.
66004
66005 2006-01-10  Bruno Haible  <bruno@clisp.org>
66006
66007         * modules/readutmp: Depend on module free.
66008         * modules/strtok_r: Depend on module restrict.
66009
66010 2006-01-10  Bruno Haible  <bruno@clisp.org>
66011
66012         * modules/gettext (configure.ac): Add an invocation of
66013         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66014
66015 2006-01-10  Bruno Haible  <bruno@clisp.org>
66016
66017         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66018         Reported by Werner Lemberg <wl@gnu.org>.
66019
66020 2006-01-10  Bruno Haible  <bruno@clisp.org>
66021
66022         * lib/localcharset.c: Update from GNU gettext.
66023
66024 2006-01-10  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/argp.h (__const): Remove macro. Use const instead.
66027         * lib/argp-fmtstream.h (__const): Likewise.
66028         * lib/glob_.h (__const): Remove macro.
66029         * lib/glob-libc.h: Use const instead of __const.
66030
66031 2006-01-10  Bruno Haible  <bruno@clisp.org>
66032
66033         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66034         variable.
66035         Needed to avoid an automake error regarding the 'gettext' module.
66036
66037 2006-01-09  Simon Josefsson  <jas@extundo.com>
66038
66039         * modules/inet_ntop (Depends-on): Add restrict.
66040
66041 2006-01-09  Simon Josefsson  <jas@extundo.com>
66042
66043         * modules/gc-rijndael-tests (License): Put under LGPL.
66044
66045         * modules/gc-des-tests (License): Likewise.
66046
66047         * modules/gc-arcfour-tests (License): Likewise.
66048
66049         * modules/gc-arctwo-tests (License): Likewise.
66050
66051         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66052
66053         * modules/gc-hmac-sha1-tests (Files): Likewise.
66054
66055         * modules/gc-hmac-md5-tests (License): Likewise.
66056
66057         * modules/gc-sha1-tests (License): Likewise.
66058
66059         * modules/gc-md5-tests (License): Likewise.
66060
66061         * modules/gc-md4-tests (License): Likewise.
66062
66063         * modules/gc-md2-tests (License): Likewise.
66064
66065         * modules/gc-tests (License): Likewise.
66066
66067         * modules/des-tests (License): Likewise.
66068
66069         * modules/md4-tests (License): Likewise.
66070
66071         * modules/md2-tests (License): Likewise.
66072
66073 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66074
66075         Sync from coreutils:
66076
66077         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66078         * modules/lib-ignore: New file.
66079         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66080         chdir-safer.m4, lchmod.m4.
66081         * modules/openat: Add mkdirat.c, openat-priv.h.
66082
66083 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66084
66085         Sync from coreutils.
66086         * m4/lib-ignore.m4: New file.
66087         * m4/lchmod.m4: New file.
66088
66089 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66090
66091         Sync from coreutils.
66092         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66093         for write access: POSIX says that must fail.
66094         * lib/fts.c (diropen): Likewise.
66095         * lib/save-cwd.c (save_cwd): Likewise.
66096         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66097         well, for minor improvements on hosts that lack O_DIRECTORY.
66098         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66099         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66100         Fall back on chown if open failed with EACCES.
66101
66102         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66103         Report an error at compile-time if only a 1-second nominal clock
66104         resolution is found.
66105
66106         * lib/lchmod.h: New file.
66107         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66108         (make_dir_parents): Use lchown rather than chown, and
66109         lchmod rather than chmod.
66110
66111         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66112         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66113         "proc" reported by n0dalus.
66114
66115         * lib/mountlist.c: Include <limits.h>.
66116         (dev_from_mount_options)
66117         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66118         New function.  It no longer assumes "dev=" has the System V meaning
66119         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66120         (read_file_system_list)
66121         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66122         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66123         dev= in that case.
66124
66125         * lib/posixtm.h (PDS_PRE_2000): New macro.
66126         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66127         allow_century.  All usages changed.  Reject dates outside the range
66128         1969-1999 if PDS_PRE_2000 is used.
66129
66130 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         Sync from coreutils.
66133         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66134         (Time of day items): Mention the possibility of leap seconds.
66135         Problem reported by Dr. David Alan Gilbert.
66136
66137 2006-01-09  Jim Meyering  <jim@meyering.net>
66138
66139         Sync from coreutils.
66140
66141         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66142
66143         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66144
66145         * lib/modechange.c (mode_compile): Reject an invalid mode string
66146         that starts with an octal digit.  From Andreas Gruenbacher.
66147
66148         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66149         and dup to open_safer and dup_safer, respectively.
66150         (openat_permissive): Fix typo in comment.
66151
66152         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66153         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66154         (_): Remove; no longer needed.
66155         (openat): Renamed from rpl_openat; no need for rpl_openat
66156         since openat.h renames openat for us.
66157         Replace most of the body with a call to openat_permissive,
66158         to avoid duplicate code.
66159         Port to (probably hypothetical) environments were mode_t is
66160         wider than int.
66161         (openat_permissive): Require mode arg, so that we can check
66162         types better.  Put it just after flags.  Change cwd failure
66163         indicator from pointer-to-bool to pointer-to-errno-value.
66164         All callers changed.
66165         Invoke openat_save_fail and/or openat_restore_fail if
66166         cwd_errno is null, so that openat can call us.
66167         (openat_permissive, fdopendir, fstatat, unlinkat):
66168         Simplify errno handling to avoid some duplicate code,
66169         as it's OK to set errno on success.
66170         * lib/openat.h: Revamp code so that function macros depend on
66171         __OPENAT_PREFIX only, not also on AT_FDCWD.
66172         (openat_ro): Remove.  Caller changed to use openat_permissive.
66173         (openat_permissive): Now a macro, if not a function.
66174         (openat_restore_fail, openat_save_fail): Now always functions,
66175         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66176
66177         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66178         and openat.c.
66179         * lib/mkdirat.c: Include openat-priv.h.
66180         Remove definitions of macros defined therein.
66181         * lib/openat.c: Likewise.
66182
66183         * lib/mkdirat.c (mkdirat): New file and function.
66184         * lib/openat.h (mkdirat): Declare.
66185
66186         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66187
66188         * lib/openat.h (openat_permissive): Declare.
66189         (openat_ro): Define.
66190
66191         * lib/openat.c (EXPECTED_ERRNO): New macro.
66192         (openat_permissive): New function -- used in remove.c rewrite.
66193         (all functions): Set errno just before returning, only if there
66194         was an actual failure.
66195         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66196
66197         Emulate openat-family functions using Linux's procfs, if possible.
66198         Idea and some code based on Ulrich Drepper's glibc changes.
66199
66200         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66201         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66202         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66203         before falling back on save_cwd and restore_cwd.
66204         (fdopendir, fstatat, unlinkat): Likewise.
66205
66206         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66207         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66208
66209         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66210         as second argument to va_arg.  Otherwise, some versions of gcc
66211         warn that `if this code is reached, the program will abort'.
66212
66213 2006-01-09  Jim Meyering  <jim@meyering.net>
66214
66215         Sync from coreutils.
66216         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66217         Require openat-priv.h.
66218
66219 2006-01-09  Bruno Haible  <bruno@clisp.org>
66220
66221         * modules/strnlen (Include): Use strnlen.h.
66222
66223 2006-01-09  Bruno Haible  <bruno@clisp.org>
66224
66225         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66226
66227 2006-01-09  Bruno Haible  <bruno@clisp.org>
66228
66229         * lib/sysexit_.h (EX_OK): New macro.
66230         Suggested by Martin Lambers <marlam@marlam.de>.
66231
66232 2006-01-09  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66235         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66236
66237 2006-01-09  Bruno Haible  <bruno@clisp.org>
66238
66239         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66240         numbers.
66241
66242 2006-01-09  Bruno Haible  <bruno@clisp.org>
66243
66244         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66245         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66246         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66247         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66248
66249 2006-01-09  Bruno Haible  <bruno@clisp.org>
66250
66251         * build-aux/javacomp.sh.in: New file, moved from lib/.
66252         * modules/javacomp-script (Files): Update.
66253         (configure.ac): Add AC_CONFIG_FILES invocation.
66254         (EXTRA_DIST): Remove variable.
66255
66256         * build-aux/javaexec.sh.in: New file, moved from lib/.
66257         * modules/javaexec (Files): Update.
66258         (configure.ac): Add AC_CONFIG_FILES invocation.
66259         (EXTRA_DIST): Remove javaexec.sh.in.
66260
66261         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66262         * modules/csharpcomp-script (Files): Update.
66263         (configure.ac): Add AC_CONFIG_FILES invocation.
66264         (EXTRA_DIST): Remove variable.
66265
66266         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66267         * modules/csharpexec (Files): Update.
66268         (configure.ac): Add AC_CONFIG_FILES invocation.
66269         (EXTRA_DIST): Remove csharpexec.sh.in.
66270
66271 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66272
66273         Sync from coreutils.
66274
66275         Add POSIX ACL support
66276         * lib/acl.h (copy_acl, set_acl): Add declarations.
66277         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66278         systems other than Linux.
66279         (chmod_or_fchmod): New function: use fchmod when possible,
66280         and chmod otherwise.
66281         (file_has_acl): Add a POSIX ACL implementation, with a
66282         Linux-specific subcase.
66283         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66284         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66285         acls are unsupported.
66286         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66287         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66288         are unsupported.
66289
66290 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66291
66292         Sync from coreutils.
66293         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66294
66295 2006-01-07  Bruno Haible  <bruno@clisp.org>
66296
66297         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66298         gl_EARLY.
66299
66300 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66301
66302         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66303         Problem reported for Mingw by Mark Junker.
66304
66305 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66306
66307         * README: Gnulib normally doesn't generate a tarball.
66308
66309 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66310
66311         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66312         long int, not int, for nanosecond counts, so that people who are
66313         used to POSIX struct timespec won't be surprised.  Reported by Jim
66314         Meyering.
66315
66316 2005-12-28  Bruno Haible  <bruno@clisp.org>
66317
66318         * build-aux/config.rpath: Update from GNU gettext.
66319
66320 2005-12-16  Jim Meyering  <jim@meyering.net>
66321
66322         * modules/fprintftime: New module.
66323         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66324
66325 2005-12-16  Jim Meyering  <jim@meyering.net>
66326
66327         * m4/fprintftime.m4: New file.
66328
66329 2005-12-16  Jim Meyering  <jim@meyering.net>
66330
66331         * lib/fprintftime.c, lib/fprintftime.h: New files.
66332
66333 2005-12-15  Simon Josefsson  <jas@extundo.com>
66334
66335         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66336         new m4/socklen.m4.
66337
66338 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66339
66340         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66341         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66342
66343 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66344
66345         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66346         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66347         struct uparams is valid. Fall back to the default values if it is
66348         not.
66349
66350 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66351
66352         * modules/argp (Files): Add argp-pin.c
66353         (Depends-on): dirname
66354         (lib_SOURCES): Add argp-pin.c
66355
66356 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66357
66358         * m4/argp.m4:  Check if program_invocation_name and
66359         program_invocation_short_name are declared and define appropriate
66360         macros if they are not.
66361
66362 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66363
66364         * lib/argp-help.c (__argp_base_name): New function
66365         (__argp_short_program_name): Rewrite using __argp_base_name
66366         * lib/argp-namefrob.h: Define program_invocation_name and
66367         program_invocation_short_name if requested
66368         (__argp_base_name): Add prototype
66369         * lib/argp-parse.c (argp_def): Use gettext wrappers
66370         (argp_default_parser): Use __argp_base_name
66371         * lib/argp-pin.c: New file. Defines program_invocation_name and
66372         program_invocation_short_name on systems that lack them.
66373
66374 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66375
66376         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66377         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66378         porting problem reported by Georg Schwarz in
66379         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66380
66381 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66384         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66385         porting problem reported by Georg Schwarz in
66386         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66387
66388 2005-12-05  Bruno Haible  <bruno@clisp.org>
66389
66390         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66391         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66392         Reported by Mark Junker <mjscod@gmx.de>.
66393
66394 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66395
66396         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66397         Use implementation from Albert Chin, with some
66398         comments/corrections by Stepan Kasal and myself.
66399
66400 2005-12-02  Bruno Haible  <bruno@clisp.org>
66401
66402         * gnulib-tool (func_import): Accept GPLed build tool modules when
66403         --lgpl is given.
66404         * modules/csharpcomp-script: New file.
66405         * modules/csharpcomp: Depend on it.
66406         * modules/javacomp-script: New file.
66407         * modules/javacomp: Depend on it.
66408         Suggested by Simon Josefsson.
66409
66410 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66413         statement, to work around an HP-UX 10.20 compiler bug reported by
66414         Peter O'Gorman.
66415
66416 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * modules/savedir (Depends-on): Add openat.
66419
66420 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66421
66422         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66423         (uintmax_t) [defined uintmax_t]: Do not declare.
66424         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66425         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66426         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66427         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66428         sake of portability to weird hosts that C allows (though we don't
66429         know of any practical examples).
66430
66431         * lib/savedir.h (fdsavedir): New decl.
66432         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66433         contains most of the former guts of savedir.
66434         (savedir): Use savedirstream.
66435         Include "openat.h".
66436
66437 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66438
66439         * modules/obstack (Files): Add m4/ulonglong.m4.
66440         Problem reported by Davide Angelocola.
66441
66442 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66445         coreutils no longer futzes with rounding modes.
66446
66447 2005-11-14  Jim Meyering  <jim@meyering.net>
66448
66449         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66450         replacement of mkstemp.
66451
66452 2005-11-10  Simon Josefsson  <jas@extundo.com>
66453
66454         * lib/readline.c: Remove EOL.
66455
66456 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * modules/gethrxtime (Depends-on): Add gettime.
66459
66460 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66461
66462         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66463         or gettimeofday; no longer needed.
66464
66465 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66468         time business.
66469         (gethrxtime) [! (HAVE_NANOUPTIME
66470         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66471         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66472         our own approximation.
66473
66474 2005-11-08  Eric Blake  <ebb9@byu.net>
66475
66476         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66477
66478 2005-11-08  Eric Blake  <ebb9@byu.net>
66479
66480         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66481
66482 2005-11-04  Bruno Haible  <bruno@clisp.org>
66483
66484         * gnulib-tool: Implement --update mode.
66485
66486 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66487
66488         Fix porting problem reported by Theodoros V. Kalamatianos.
66489         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66490         Don't assume that futimes failing means we must fail.
66491
66492 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66495         variables to suggest the intended function of the PATH_MAX check.
66496
66497 2005-10-30  Kean Johnston  <jkj@sco.com>
66498
66499         Trivial changes to support SCO systems.
66500         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66501         as PATH_MAX.
66502         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66503         where __ptr is null when no I/O is pending.
66504
66505 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66508         leave errno alone.  Problem reported by Dmitry V. Levin.
66509
66510 2005-10-28  Simon Josefsson  <jas@extundo.com>
66511
66512         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66513         Test more.
66514
66515         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66516
66517         * modules/md2, modules/md2-tests: New files.
66518
66519 2005-10-28  Simon Josefsson  <jas@extundo.com>
66520
66521         * m4/inet_ntop.m4: More tests.
66522
66523         * m4/gc-md2.m4, md2.m4: New file.
66524
66525 2005-10-28  Simon Josefsson  <jas@extundo.com>
66526
66527         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66528         "restrict" keywords, as per POSIX.  Protect the function
66529         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66530         Don't use K&R prototypes.  Check the sprintf return values.
66531         Re-define EAFNOSUPPORT if not present.  Indent.
66532
66533         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66534         suggested by Bruno Haible <bruno@clisp.org>.
66535
66536         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66537
66538         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66539
66540         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66541         libgcrypt).
66542
66543         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66544
66545         * lib/md2.h, lib/md2.c: New files.
66546
66547 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66548
66549         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66550         errno alone.  Problem reported by Frederic Jolliton.
66551
66552 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66553
66554         * modules/verify (License): Change from GPL to LGPL.  This is a
66555         tiny module and there are apparently near-equivalents that are
66556         under the BSD license.
66557
66558 2005-10-24  Simon Josefsson  <jas@extundo.com>
66559
66560         * modules/sha1: Relicense to LGPL.
66561
66562 2005-10-24  Simon Josefsson  <jas@extundo.com>
66563
66564         * lib/md4.h: Shrink buffer size, now that we changed the type.
66565
66566 2005-10-23  Simon Josefsson  <jas@extundo.com>
66567
66568         * gnulib-tool (func_import): Fix --tests-base.
66569
66570 2005-10-22  Simon Josefsson  <jas@extundo.com>
66571
66572         * modules/arcfour (Depends-on): Need stdint.
66573
66574 2005-10-22  Simon Josefsson  <jas@extundo.com>
66575
66576         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66577         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66578
66579 2005-10-22  Simon Josefsson  <jas@extundo.com>
66580
66581         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66582         suggested by Bruno Haible <bruno@clisp.org>.
66583
66584 2005-10-22  Simon Josefsson  <jas@extundo.com>
66585
66586         * lib/crc.h: Include stddef.h, for size_t.
66587
66588 2005-10-22  Simon Josefsson  <jas@extundo.com>
66589
66590         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66591         arcfour_context struct (simplify test vector testing in GNU
66592         Shishi).
66593
66594 2005-10-21  Simon Josefsson  <jas@extundo.com>
66595
66596         * modules/des, modules/des-tests: New files.
66597
66598         * modules/gc-des, modules/gc-des-tests: New files.
66599
66600         * tests/test-des.c, tests/test-gc-des.c: New file.
66601
66602 2005-10-21  Simon Josefsson  <jas@extundo.com>
66603
66604         * modules/arctwo, modules/arctwo-tests: New files.
66605
66606         * tests/test-arctwo.c: New file.
66607
66608         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66609
66610         * tests/test-gc-arctwo.c: New file.
66611
66612 2005-10-21  Simon Josefsson  <jas@extundo.com>
66613
66614         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66615         Bruno Haible <bruno@clisp.org>.
66616
66617         * m4/gc-des.m4: New file.
66618
66619 2005-10-21  Simon Josefsson  <jas@extundo.com>
66620
66621         * m4/arctwo.m4: New file.
66622
66623         * m4/gc-arctwo.m4: New file.
66624
66625 2005-10-21  Simon Josefsson  <jas@extundo.com>
66626
66627         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66628         block.
66629
66630 2005-10-21  Simon Josefsson  <jas@extundo.com>
66631
66632         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66633         <bruno@clisp.org>.
66634
66635         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66636
66637         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66638         Bruno Haible <bruno@clisp.org>.
66639
66640         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66641         <bruno@clisp.org>.
66642
66643 2005-10-21  Simon Josefsson  <jas@extundo.com>
66644
66645         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66646
66647 2005-10-21  Simon Josefsson  <jas@extundo.com>
66648
66649         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66650
66651 2005-10-21  Simon Josefsson  <jas@extundo.com>
66652
66653         * lib/des.h, lib/des.c: New files.
66654
66655         * lib/gc-gnulib.c: Support DES.c
66656
66657 2005-10-21  Simon Josefsson  <jas@extundo.com>
66658
66659         * lib/arctwo.h, lib/arctwo.c: New files.
66660
66661         * lib/gc-gnulib.c: Support ARCTWO.
66662
66663 2005-10-21  Simon Josefsson  <jas@extundo.com>
66664
66665         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66666         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66667
66668 2005-10-21  Simon Josefsson  <jas@extundo.com>
66669
66670         * gnulib-tool (func_import, func_create_testdir): Define automake
66671         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66672         Makefile.am snippet),
66673         suggested by Bruno Haible <bruno@clisp.org>.
66674
66675         * modules/gc (Makefile.am): Use it.
66676
66677 2005-10-21  Bruno Haible  <bruno@clisp.org>
66678
66679         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66680         patch.
66681
66682 2005-10-19  Simon Josefsson  <jas@extundo.com>
66683
66684         * tests/test-gc-rijndael.c: New file.
66685
66686         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66687
66688 2005-10-19  Simon Josefsson  <jas@extundo.com>
66689
66690         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66691         interface too.
66692
66693 2005-10-19  Simon Josefsson  <jas@extundo.com>
66694
66695         * tests/test-gc-arcfour.c: New file.
66696
66697         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66698
66699 2005-10-19  Simon Josefsson  <jas@extundo.com>
66700
66701         * modules/gc-md4, modules/gc-md4-tests: New file.
66702
66703         * tests/test-gc-md4.c: New file.
66704
66705 2005-10-19  Simon Josefsson  <jas@extundo.com>
66706
66707         * m4/gc-md4.m4: New file.
66708
66709 2005-10-19  Simon Josefsson  <jas@extundo.com>
66710
66711         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66712         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66713         <kasal@ucw.cz>.
66714
66715 2005-10-19  Simon Josefsson  <jas@extundo.com>
66716
66717         * m4/gc-arcfour.m4: New file.
66718
66719         * m4/gc-rijndael.m4: New file.
66720
66721 2005-10-19  Simon Josefsson  <jas@extundo.com>
66722
66723         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66724
66725 2005-10-19  Simon Josefsson  <jas@extundo.com>
66726
66727         * lib/gc-gnulib.c: Support ARCFOUR.
66728
66729 2005-10-19  Simon Josefsson  <jas@extundo.com>
66730
66731         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66732         support.
66733
66734         * lib/gc.h: Add ECB enum type.
66735
66736         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66737
66738 2005-10-18  Simon Josefsson  <jas@extundo.com>
66739
66740         * tests/test-md5.c: New file.
66741
66742         * modules/md5-tests: New file.
66743
66744 2005-10-18  Simon Josefsson  <jas@extundo.com>
66745
66746         * tests/test-md4.c: New file.
66747
66748         * modules/md4, modules/md4-tests: New files.
66749
66750 2005-10-18  Simon Josefsson  <jas@extundo.com>
66751
66752         * m4/md4.m4: New file.
66753
66754 2005-10-18  Simon Josefsson  <jas@extundo.com>
66755
66756         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66757
66758 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66759
66760         * gnulib-tool (func_create_testdir): Omit the second check whether
66761         BUILT_SOURCES in nonempty.
66762
66763 2005-10-17  Simon Josefsson  <jas@extundo.com>
66764
66765         * tests/test-rijndael.c: New file.
66766
66767 2005-10-17  Simon Josefsson  <jas@extundo.com>
66768
66769         * modules/sha1: Depend on stdint instead of md5.
66770
66771         * modules/md5: Depend on stdint, remove uint32_t.
66772
66773 2005-10-17  Simon Josefsson  <jas@extundo.com>
66774
66775         * modules/gc-sha1-tests: New file.
66776
66777         * tests/test-gc-sha1.c: New file.
66778
66779 2005-10-17  Simon Josefsson  <jas@extundo.com>
66780
66781         * m4/md5.m4: Remove call to uint32_t.m4.
66782
66783 2005-10-17  Simon Josefsson  <jas@extundo.com>
66784
66785         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66786
66787         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66788         md5.h.
66789
66790         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66791
66792         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66793
66794 2005-10-17  Simon Josefsson  <jas@extundo.com>
66795
66796         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66797
66798 2005-10-17  Simon Josefsson  <jas@extundo.com>
66799
66800         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66801
66802 2005-10-17  Simon Josefsson  <jas@extundo.com>
66803
66804         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66805
66806         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66807
66808 2005-10-17  Bruno Haible  <bruno@clisp.org>
66809
66810         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66811         that it can also be used in a test.
66812
66813 2005-10-16  Bruno Haible  <bruno@clisp.org>
66814
66815         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66816         TESTS_ENVIRONMENT, so that individual tests can augment it.
66817
66818         * gnulib-tool (func_create_testdir): Use an intermediate target for
66819         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66820         macros, like $(ALLOCA_H), which cannot be passed through the command
66821         line.
66822
66823 2005-10-15  Simon Josefsson  <jas@extundo.com>
66824
66825         * modules/rijndael-tests: New file.
66826
66827         * modules/rijndael: New file.
66828
66829 2005-10-15  Simon Josefsson  <jas@extundo.com>
66830
66831         * m4/rijndael.m4: New file.
66832
66833 2005-10-15  Simon Josefsson  <jas@extundo.com>
66834
66835         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66836
66837         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66838
66839 2005-10-14  Simon Josefsson  <jas@extundo.com>
66840
66841         * tests/test-arcfour.c: New file.
66842
66843         * modules/arcfour, modules/arcfour-tests: New files.
66844
66845 2005-10-14  Simon Josefsson  <jas@extundo.com>
66846
66847         * m4/arcfour.m4: New file.
66848
66849 2005-10-14  Simon Josefsson  <jas@extundo.com>
66850
66851         * lib/arcfour.h, lib/arcfour.c: New files.
66852
66853 2005-10-14  Roland McGrath  <roland@redhat.com>
66854
66855         Import from libc.  [BZ #1331]
66856         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66857         macro argument.
66858         Reported by Matej Vela <vela@debian.org>.
66859
66860 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66861
66862         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66863         include <wchar.h>; no longer needed.
66864
66865 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66868
66869 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66870         and  Ulrich Drepper  <drepper@redhat.com>
66871
66872         Import from libc.
66873         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66874         instead of inline stream orientation test and two separate
66875         function calls.  Pay no attention to USE_IN_LIBIO.
66876
66877 2005-10-13  Simon Josefsson  <jas@extundo.com>
66878
66879         * modules/gc-hmac-md5-tests: New file.
66880
66881         * tests/test-gc-hmac-sha1.c: New file.
66882
66883         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66884
66885         * modules/gc-hmac-md5-tests: New file.
66886
66887         * tests/test-gc-md5.c: New file.
66888
66889         * modules/gc-md5-tests: New file.
66890
66891 2005-10-13  Simon Josefsson  <jas@extundo.com>
66892
66893         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66894         Move memory allocation outside of loop.
66895
66896 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66897
66898         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66899         intermediate directory is in a read-only file system.  Problem
66900         reported by Eric Blake.
66901
66902 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66903
66904         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66905
66906 2005-10-12  Simon Josefsson  <jas@extundo.com>
66907
66908         * tests/test-hmac-sha1.c: New file.
66909
66910         * modules/hmac-sha1-tests: New file.
66911
66912         * modules/hmac-sha1: New file.
66913
66914 2005-10-12  Simon Josefsson  <jas@extundo.com>
66915
66916         * modules/gc-sha1: New file.
66917
66918 2005-10-12  Simon Josefsson  <jas@extundo.com>
66919
66920         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66921
66922         * tests/test-gc-pbkdf2-sha1.c: New file.
66923
66924 2005-10-12  Simon Josefsson  <jas@extundo.com>
66925
66926         * modules/gc-md5, modules/gc-hmac-md5: New files.
66927
66928         * modules/gc (Files): Remove md5, memxor and hmac files.
66929
66930 2005-10-12  Simon Josefsson  <jas@extundo.com>
66931
66932         * m4/gc-pbkdf2-sha1.m4: New file.
66933
66934         * m4/gc-hmac-sha1.m4: New file.
66935
66936         * m4/gc-sha1: New file.
66937
66938         * m4/hmac-sha1.m4: New file.
66939
66940 2005-10-12  Simon Josefsson  <jas@extundo.com>
66941
66942         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66943
66944         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66945
66946 2005-10-12  Simon Josefsson  <jas@extundo.com>
66947
66948         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66949         suggested by Bruno Haible <bruno@clisp.org>.
66950
66951 2005-10-12  Simon Josefsson  <jas@extundo.com>
66952
66953         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66954
66955 2005-10-12  Simon Josefsson  <jas@extundo.com>
66956
66957         * lib/gc-pbkdf2-sha1.c: New file.
66958
66959         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66960
66961 2005-10-12  Simon Josefsson  <jas@extundo.com>
66962
66963         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66964
66965         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66966
66967 2005-10-12  Simon Josefsson  <jas@extundo.com>
66968
66969         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66970         GC_USE_HMAC_MD5, respectively.
66971
66972         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66973         (gc_md5): Fix typo.
66974
66975         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66976
66977         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66978
66979         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66980
66981 2005-10-12  Bruno Haible  <bruno@clisp.org>
66982
66983         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66984         Reported by Stepan Kasal <kasal@ucw.cz>.
66985
66986 2005-10-11  Simon Josefsson  <jas@extundo.com>
66987
66988         * tests/test-crc.c: New file.
66989
66990         * modules/crc, modules/crc-tests: New files.
66991
66992 2005-10-11  Simon Josefsson  <jas@extundo.com>
66993
66994         * m4/crc.m4: New file.
66995
66996 2005-10-11  Simon Josefsson  <jas@extundo.com>
66997
66998         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66999
67000         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67001
67002         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67003
67004 2005-10-11  Simon Josefsson  <jas@extundo.com>
67005
67006         * lib/crc.h, lib/crc.c: New files.
67007
67008         * lib/gc.h (gc_hash_buffer): Add doc.
67009
67010 2005-10-11  Bruno Haible  <bruno@clisp.org>
67011
67012         * modules/c-strcasestr: New file.
67013         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67014
67015 2005-10-11  Bruno Haible  <bruno@clisp.org>
67016
67017         * modules/c-strcase: New file.
67018         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67019
67020 2005-10-11  Bruno Haible  <bruno@clisp.org>
67021
67022         * lib/strcasecmp.c: Include limits.h.
67023         (strcasecmp): Avoid integer overflow on exotic platforms.
67024         * lib/strncasecmp.c: Include limits.h.
67025         (strncasecmp): Avoid integer overflow on exotic platforms.
67026         Reported by Paul Eggert.
67027
67028 2005-10-11  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/c-strcasestr.h: New file, from GNU gettext.
67031         * lib/c-strcasestr.c: New file, from GNU gettext.
67032
67033 2005-10-11  Bruno Haible  <bruno@clisp.org>
67034
67035         * lib/c-strcase.h: New file, from GNU gettext.
67036         * lib/c-strcasecmp.c: New file, from GNU gettext.
67037         * lib/c-strncasecmp.c: New file, from GNU gettext.
67038
67039 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67040
67041         * modules/mempcpy (License): GPL -> LGPL.
67042         * modules/strchrnul (License): Likewise.
67043         * modules/sysexits (License): Likewise.
67044
67045 2005-10-08  Simon Josefsson  <jas@extundo.com>
67046
67047         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67048
67049 2005-10-07  Simon Josefsson  <jas@extundo.com>
67050
67051         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67052
67053 2005-10-06  Simon Josefsson  <jas@extundo.com>
67054
67055         * tests/test-hmac-md5.c: New file.
67056
67057         * modules/hmac-md5-tests: New file.
67058
67059         * modules/hmac-md5: New file.
67060
67061 2005-10-06  Simon Josefsson  <jas@extundo.com>
67062
67063         * m4/hmac-md5.m4: New file.
67064
67065         * m4/memxor.m4: Require gl_C_RESTRICT.
67066
67067 2005-10-06  Simon Josefsson  <jas@extundo.com>
67068
67069         * lib/memxor.c (memxor): Avoid casts and warnings.
67070
67071 2005-10-06  Simon Josefsson  <jas@extundo.com>
67072
67073         * lib/hmac-md5.c: New file.
67074
67075         * lib/hmac.h: New file.
67076
67077 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67078
67079         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67080         promotes to int, not unsigned int, to catch the AIX 5.3
67081         compiler bug.
67082
67083 2005-10-05  Simon Josefsson  <jas@extundo.com>
67084
67085         * modules/memxor: New file.
67086
67087         * modules/iconv (Files): Move config.rpath to havelib, it is used
67088         there.
67089
67090         * modules/havelib (Files): Add config.rpath.
67091
67092 2005-10-05  Simon Josefsson  <jas@extundo.com>
67093
67094         * m4/memxor.m4: New file.
67095
67096 2005-10-05  Simon Josefsson  <jas@extundo.com>
67097
67098         * lib/memxor.c (memxor): Fix compiler error.
67099
67100         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67101         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67102
67103         * lib/memxor.h, lib/memxor.c: New files.
67104
67105         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67106         we assume all systems have it, suggested by Jim Meyering
67107         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67108         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67109         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67110         same reasons.
67111
67112 2005-10-05  Simon Josefsson  <jas@extundo.com>
67113
67114         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67115
67116 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67117
67118         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67119         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67120         needed, since the source code now assumes these .h files.
67121
67122 2005-10-05  Derek Price  <derek@ximbiot.com>
67123
67124         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67125
67126 2005-10-05  Bruno Haible  <bruno@clisp.org>
67127
67128         * modules/stdint (License): Change to LGPL.
67129
67130 2005-10-04  Simon Josefsson  <jas@extundo.com>
67131
67132         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67133         D. Baushke" <mdb@gnu.org>.
67134
67135 2005-10-04  Bruno Haible  <bruno@clisp.org>
67136
67137         * lib/verify.h (verify_true): Provide alternative definition for C++.
67138
67139 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67142         (SSIZE_MAX): New macro, if not already defined.
67143         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67144         than 2 GiB.
67145
67146 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67147
67148         Sync from coreutils.
67149         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67150         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67151         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67152         ULLONG_MAX doesn't work with 2.7.2.1.
67153
67154 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67155
67156         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67157         From Ben Pfaff.
67158
67159         * modules/exclude (Depends-on): Depend on verify.
67160         * modules/strtoimax (Depends-on): Likewise.
67161         * modules/utimecmp (Depends-on): Likewise.
67162
67163 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67164
67165         * lib/exclude.c: Include verify.h.
67166         (verify): Remove.  All callers changed to use verify.h's version.
67167         * lib/strtoimax.c: Likewise.
67168         * lib/utimecmp.c: Likewis.e
67169
67170         Sync from coreutils.
67171         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67172         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67173         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67174         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67175         bother returning ENOSYS if settimeofday or stime fails; just let
67176         them return whatever errno they want to return.
67177         * lib/utimens.c: Include unistd.h, for dup2.
67178         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67179         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67180
67181 2005-10-02  Jim Meyering  <jim@meyering.net>
67182
67183         Sync from coreutils.
67184         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67185         from glibc-2.2.5 that fails for read-only files.
67186
67187 2005-10-02  Jim Meyering  <jim@meyering.net>
67188
67189         Sync from coreutils.
67190         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67191         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67192         `#if HAVE_CONFIG_H'.
67193         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67194         Remove AT_FDCWD test.
67195         Do not consume the fd unless successful.
67196         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67197         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67198         block, so that we don't even try to compile it if settimeofday is
67199         available.  This works around a compilation failure on OSF1 V5.1,
67200         due to stime requiring a `long int*' while tv_sec is `int'.
67201
67202 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67203
67204         Sync from coreutils.
67205         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67206         against `yes', rather than just testing for nonempty.
67207
67208 2005-10-01  Simon Josefsson  <jas@extundo.com>
67209
67210         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67211         and Darwin.
67212
67213         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67214         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67215         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67216         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67217         Check if struct addrinfo is declared.
67218
67219 2005-10-01  Simon Josefsson  <jas@extundo.com>
67220
67221         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67222         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67223         AI_* and EAI_* definitions.  Protect function declarations.
67224
67225 2005-10-01  Jim Meyering  <jim@meyering.net>
67226
67227         Sync from coreutils.
67228
67229         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67230         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67231         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67232         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67233         in the inet and nsl libraries.  Required on Solaris 5.7.
67234
67235 2005-10-01  Jim Meyering  <jim@meyering.net>
67236
67237         Sync from coreutils.
67238         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67239         in the inet and nsl libraries.  Required on Solaris 5.7.
67240
67241 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67242
67243         * lib/getdelim.c (getdelim): Remove unused variables.
67244
67245 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67246
67247         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67248         so that the code works even with ancient cpp.  Portability problem
67249         with GCC 2.7.2.1 reported by Thomas M.Ott.
67250
67251 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67252
67253         * modules/regex (Depends-on): Add strcase.
67254
67255         * modules/gethostname (Licence): Change from GPL to LGPL, since
67256         gethostname.c is a trivial implementation of a standard library
67257         function.
67258         * modules/poll (License): Change from GPL to LGPL, since it's
67259         derived from LGPL code.
67260
67261 2005-09-27  Jim Meyering  <jim@meyering.net>
67262
67263         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67264         HAVE_CONFIG_H.
67265
67266         * lib/intprops.h (signed_type_or_expr__): Define.
67267         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67268         for unsigned types.
67269
67270 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67271
67272         * lib/verify.h (verify_expr): Remove, replacing with:
67273         (verify_true): New macro that returns true instead of void.
67274         (verify_type__): Remove.
67275         (verify): Use verify_true rather than verify_type__.
67276
67277 2005-09-26  Bruno Haible  <bruno@clisp.org>
67278
67279         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67280         is necessary.
67281         (lib_SOURCES): Remove mbchar.c.
67282         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67283         (Files): Add m4/mbrtowc.m4.
67284         * modules/mbiter: Likewise.
67285         * modules/mbuiter: Likewise.
67286
67287 2005-09-26  Bruno Haible  <bruno@clisp.org>
67288
67289         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67290         compile mbchar.c if they are not both present.
67291         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67292         * m4/mbiter.m4 (gl_MBITER): Likewise.
67293         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67294         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67295         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67296
67297 2005-09-25  Jim Meyering  <jim@meyering.net>
67298
67299         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67300         also uses socklen_t.
67301
67302 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         * lib/utimens.c (ENOSYS): Define if not already defined.
67305         (futimens): Support having a null PATH if the file descriptor
67306         is nonnegative.
67307
67308         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67309         Remove.
67310         (__attribute): Define to empty unless GCC 3.1 or later.
67311         This works around a core dump on OpenBSD 3.4, which has GCC
67312         2.95.3, which dumps core when given __attribute__(()).  It also
67313         simplifies other tests, since we really don't want to bother with
67314         worrying about which ancient version of GCC supported what.
67315         Original problem reported by Yoann Vandoorselaere, with part of
67316         the fix suggested by Derek Price.
67317
67318 2005-09-24  Jim Meyering  <jim@meyering.net>
67319
67320         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67321         so we can once again use a positive bitfield width of 1 -- now we
67322         don't have to explain why we were using a bitfield width of 2.
67323
67324 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67325
67326         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67327         and similarly for the other external symbols.  Problem reported
67328         by James Gallager.
67329
67330         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67331         bug reported by Jim Meyering.
67332
67333         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67334         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67335         not needed, since socklen is a prerequisite module.
67336
67337 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67340         Problem reported by Eric Blake.
67341         (getaddrinfo): Initialize se so that it's not garbage.
67342         Redo internal storage allocation so that it doesn't make unportable
67343         assumptions about alignment.
67344         Fix a memory leak.
67345
67346         * lib/utimens.c (futimens): Use futimesat if available.
67347         Prefer it to futimes since it doesn't have the futimes bug.
67348
67349         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67350         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67351         Instead, declare a function that returns a pointer to an array,
67352         and use verify_type__ to declare the size of the array.
67353         Problem and germ of a solution reported by Bruno Haible.
67354         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67355         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67356
67357 2005-09-23  Jim Meyering  <jim@meyering.net>
67358
67359         Sync from coreutils.
67360         Correct build failure (socklen_t not defined) on at least
67361         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67362         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67363
67364 2005-09-23  Jim Meyering  <jim@meyering.net>
67365
67366         * modules/getaddrinfo (Depends-on): Add socklen.
67367
67368 2005-09-23  Bruno Haible  <bruno@clisp.org>
67369
67370         * tests/test-verify.c: New file.
67371
67372 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67373
67374         Sync from coreutils.
67375
67376         * modules/argmatch (Depends-on): Add verify.
67377         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67378         unistd-safer.
67379         * modules/save-cwd (Depends-on): Likewise.
67380
67381         * modules/openat (Files): Add lib/openat-die.c.
67382         (Depends-on): Remove error, exitfail.
67383         Add dirname.
67384
67385         * modules/verify: New file.
67386         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67387         with "verify" module.
67388
67389 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67390
67391         Sync from coreutils.
67392
67393         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67394         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67395         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67396         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67397         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67398         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67399         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67400         Don't bother checking for string.h, stdlib.h, unistd.h.
67401         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67402         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67403         module's job.
67404         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67405         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67406
67407         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67408         (gl_GETDATE): Use it.
67409
67410         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67411
67412 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67413
67414         Sync from coreutils.
67415
67416         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67417         stat-time.h.
67418         * lib/argmatch.h: Include verify.h
67419         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67420         (ARGMATCH_ASSERT): Remove; unused.
67421         * lib/canonicalize.c: Assume STDC_HEADERS.
67422         * lib/exclude.c: Include "strcase.h".
67423         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67424         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67425         and stdio-safer.h.
67426         (getusershell): Call fopen, not fopen_safer.
67427         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67428         Do not include unistd-safer.h.
67429         (save_cwd): Don't call fd_safer; no longer needed
67430         now that we include fcntl--.h.
67431
67432         * lib/getdate.y (relative_time): New type.
67433         (RELATIVE_TIME_0): New constant.
67434         (parser_control): Use relative_time instead of doing it ourselves.
67435         (%union): Add new relative_time rel member.
67436         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67437         Now typeless.
67438         (relunit, relunit_snumber): Now of type rel.
67439         (zone, rel, relunit, get_date): Adjust to above changes.
67440
67441         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67442         Do not include unistd-safer.h.
67443         (getloadavg): Don't call fd_safer; no longer needed
67444         now that we include fcntl--.h.
67445
67446         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67447         (make_dir_parents): Treat ENOSYS like EEXIST.
67448
67449         Improve quality of diagnostics on restore_cwd failure.
67450         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67451         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67452         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67453         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67454         each time through the loop.  Do not diagnose restore_cwd failure;
67455         that is the caller's job (and perhaps the caller does not care).
67456
67457         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67458         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67459         If the file already exists but is not a directory, don't bother
67460         to try to make its parents.
67461         Close potential file descriptor leak if we can't chdir("/") (!).
67462         Don't always return true if chdir($PWD) fails; return true only
67463         if the requested action was done successfully (except for the
67464         chdir($PWD)).
67465         Don't log final directory unless we actually made it.
67466         Refactor to avoid duplicate code to fix up permissions.
67467         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67468
67469         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67470         to make it a bit faster and (I hope) clearer.
67471         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67472         Fix bug in formats like %2N.
67473
67474         * lib/verify.h: New file.
67475
67476 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         Sync from coreutils.
67479         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67480
67481 2005-09-22  Jim Meyering  <jim@meyering.net>
67482
67483         Sync from coreutils.
67484
67485         * m4/lstat.m4 (gl_FUNC_LSTAT):
67486         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67487         Remove obsolete comment.
67488         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67489         * m4/xstrtod.m4: Likewise.
67490
67491         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67492
67493 2005-09-22  Jim Meyering  <jim@meyering.net>
67494
67495         Sync from coreutils.
67496
67497         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67498
67499         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67500         the .tm_year member, since otherwise gcc-4.0 would now warn about
67501         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67502
67503         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67504         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67505
67506         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67507         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67508         when run in a time zone for which daylight savings time is in effect
67509         for the starting date.
67510
67511         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67512         stop us from restricting permissions of just-created absolute-named
67513         directories.
67514         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67515         to restore initial working directory.
67516         * lib/mkdir-p.c (make_dir_parents): New parameter:
67517         different_working_dir, to tell caller if/when we change the working
67518         directory and are unable to return to the initial one.
67519         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67520         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67521         `return false'.  This fixes a bug introduced on 2004-07-30.
67522
67523         * lib/openat.c (fdopendir): Be sure to close the supplied
67524         file descriptor before returning.  This makes our replacement
67525         implementation a little closer to Solaris's, where fdopendir
67526         ties the file descriptor to the returned DIR* pointer.
67527         * lib/openat.c (unlinkat): New function.
67528         * lib/openat.h (unlinkat): Add prototype.
67529         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67530         (openat_restore_fail): Rename from openat_restore_die.
67531         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67532
67533         Provide an alternative to exiting immediately upon save_cwd or
67534         restore_cwd failure.  Now, an application can arrange e.g.,
67535         to perform a longjump in that case.
67536         * lib/openat.c: Include dirname.h.
67537         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67538         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67539         and openat_restore_die rather than calling error directly.
67540         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67541
67542         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67543         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67544         define.
67545
67546         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67547         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67548                             int utc, int nanoseconds);
67549         Background:
67550         date should not have to allocate a megabyte of virtual memory to
67551         handle a format argument like +%1048575T.  When implemented with
67552         strftime, it must allocate such a buffer, use strftime to fill it
67553         in, print it, then free it.
67554         With fprintftime, it simply prints everything and exits.
67555         With no need for memory allocation, that's one fewer way to fail.
67556         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67557         optional field width, not before, so we accept %9:z, not %:9z.
67558         (my_strftime): Be sure to use L_('x') for literals.
67559
67560         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67561         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67562         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67563         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67564         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67565         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67566         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67567         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67568         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67569         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67570         * lib/xgethostname.c, lib/xreadlink.c:
67571         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67572
67573         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67574         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67575         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67576         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67577         and don't include <sys/file.h>).
67578
67579 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67580
67581         Sync from coreutils.
67582
67583         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67584         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67585         [!LDAV_DONE]: Avoid unused variable warning.
67586
67587 2005-09-21  Bruno Haible  <bruno@clisp.org>
67588
67589         * lib/unicodeio.h (unicode_to_mb): New declaration.
67590
67591 2005-09-20  Derek Price  <derek@ximbiot.com>
67592
67593         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67594         getaddrinfo.h.
67595
67596 2005-09-20  Bruno Haible  <bruno@clisp.org>
67597
67598         * gnulib-tool: Remove trailing slashes from the values specified for
67599         --source-base, --m4-base, --tests-base, --aux-dir.
67600         Suggested by Simon Josefsson <jas@extundo.com>.
67601
67602 2005-09-20  Bruno Haible  <bruno@clisp.org>
67603
67604         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67605         func_modules_to_filelist, func_import, func_create_testdir): Make all
67606         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67607         change when gnulib-tool is invoked in a different locale.
67608
67609 2005-09-19  Simon Josefsson  <jas@extundo.com>
67610
67611         * m4/socklen.m4: Fix typo.
67612
67613 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67614
67615         Use a consistent style for including <config.h>.
67616         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67617         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67618         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67619         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67620         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67621         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67622         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67623         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67624         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67625         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67626         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67627         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67628         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67629         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67630         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67631         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67632         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67633         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67634         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67635         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67636         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67637         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67638         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67639         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67640         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67641         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67642         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67643         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67644         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67645         lib/xstrtoumax.c, lib/yesno.c:
67646         Standardize inclusion of config.h.
67647         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67648         lib/inttostr.h:  Removed inclusion of config.h from header files.
67649         * lib/inttostr.c:  Adjusted in-tree users.
67650         * lib/timespec.h: Remove superfluous warning to include config.h.
67651         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67652         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67653         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67654         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67655         config.h with HAVE_CONFIG_H.
67656
67657 2005-09-19  Jim Meyering  <jim@meyering.net>
67658
67659         * modules/pathmax (License): Change to LGPL.
67660
67661 2005-09-19  Derek Price  <derek@ximbiot.com>
67662
67663         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67664
67665 2005-09-19  Bruno Haible  <bruno@clisp.org>
67666
67667         * gnulib-tool (import): Provide default for --tests-base.
67668
67669 2005-09-19  Bruno Haible  <bruno@clisp.org>
67670
67671         * doc/quote.texi: New file, extracted from gnulib.texi.
67672         * doc/ctime.texi: New file, extracted from gnulib.texi.
67673         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67674         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67675         * doc/gnulib.texi: Include them.
67676
67677 2005-09-18  Bruno Haible  <bruno@clisp.org>
67678
67679         Portability fix.
67680         * gnulib-tool (func_readlink): New function.
67681         (func_ln_if_changed): Use it.
67682
67683 2005-09-18  Bruno Haible  <bruno@clisp.org>
67684
67685         * gnulib-tool: Support --with-tests also with --import.
67686         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67687         (func_import): Use variables $testsbase and $inctests. Emit a
67688         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67689         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67690         SUBDIRS += $testsdir.
67691         (func_create_testdir): Update.
67692
67693 2005-09-18  Bruno Haible  <bruno@clisp.org>
67694
67695         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67696         instead of $dry_run.
67697         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67698         (func_ln_if_changed): Don't handle dry-run here.
67699         (func_import): In dry-run mode, detect more precisely which actions
67700         would be performed, and don't use "...ing" verbs.
67701
67702 2005-09-18  Bruno Haible  <bruno@clisp.org>
67703
67704         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67705         (func_import): Use join on two temporary files instead of three nested
67706         loops, in order to determine which files are new or old.
67707
67708 2005-09-18  Bruno Haible  <bruno@clisp.org>
67709
67710         * gnulib-tool (func_import): Comment out code that spits out the
67711         new files with --dry-run.
67712
67713 2005-09-18  Bruno Haible  <bruno@clisp.org>
67714
67715         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67716
67717 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * lib/stat-time.h: New file.
67720         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67721         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67722         in a different way.
67723         (timespec_cmp): New function.
67724         * lib/utimecmp.c: Include stat-time.h.
67725         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67726         members exist, not on the obsolescent ST_MTIM_NSEC.
67727         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67728
67729 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67730
67731         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67732
67733 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         * MODULES.html.sh (File system functions): Add stat-time.
67736         * modules/stat-time: New file.
67737         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67738         is now done in a different way, by the stat-time module.
67739         * modules/utimecmp (Depends-on): Add stat-time.
67740
67741 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67742
67743         * m4/st_mtim.m4: Remove.  Superseded by...
67744         * m4/stat-time.m4: New file.
67745         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67746         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67747
67748 2005-09-15  Derek Price  <derek@ximbiot.com>
67749
67750         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67751
67752 2005-09-15  Derek Price  <derek@ximbiot.com>
67753
67754         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67755         * lib/regex_internal.c: Ditto, using this...
67756         (__GNUC_PREREQ): ...new macro.
67757         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67758         using...
67759         (__GNUC_PREREQ): ...this new macro.
67760
67761         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67762
67763 2005-09-15  Derek Price  <derek@ximbiot.com>
67764             Paul Eggert  <eggert@cs.ucla.edu>
67765
67766         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67767         changes, consolidating in...
67768         * lib/regex_internal.h: ...this file.
67769
67770 2005-09-13  Jim Meyering  <jim@meyering.net>
67771
67772         * lib/canon-host.c: Filter through gnu indent and reword comments
67773         slightly.
67774         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67775
67776 2005-09-13  Derek Price  <derek@ximbiot.com>
67777
67778         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67779         failure.
67780         Reported by Jim Meyering  <jim@meyering.net>.
67781
67782 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67783
67784         * lib/base64.c: Typo.
67785         (base64_encode): Put b64str in initialized data section.
67786
67787 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67788
67789         Merge glibc and coreutils changes into gnulib, plus a few
67790         extra fixes.
67791         * lib/md5.c: Use #error rather than a string.
67792         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67793         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67794         (__attribute__): Define to empty for non recent-GCC.
67795         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67796         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67797         Renamed from their non-__ counterparts, with new macros replacing
67798         them if not _LIBC.  Add __THROW attribute.
67799         (rol): Remove.
67800         (struct md5_ctx): Align buffer if using GCC.
67801         * lib/sha1.h (struct sha1_ctx): Likewise.
67802         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67803         The old name was backwards.
67804         (NOTSWAP): Remove; not used.
67805         (rol): New macro, moved here from md5.h.
67806         (sha1_process_block): Remove a FIXME that doesn't make sense.
67807
67808 2005-09-12  Derek Price  <derek@ximbiot.com>
67809
67810         Return usable errors from canon-host.
67811         * lib/canon-host.h: New file.
67812         * lib/canon-host.c (canon_host): Wrap...
67813         (canon_host_r): ...this new function, which now relies exclusively on
67814         getaddrinfo.
67815         (ch_strerror): New function.
67816         (last_cherror): New global.
67817         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67818         interface.
67819         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67820         void *.
67821         (freeaddrinfo): Free ai->ai_canonname when set.
67822
67823 2005-09-12  Derek Price  <derek@ximbiot.com>
67824
67825         Make canon-host require getaddrinfo.
67826         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67827         AC_LIBSOURCE canon-host.h.  Call...
67828         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67829         gl_GETADDRINFO.
67830         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67831
67832 2005-09-12  Derek Price  <derek@ximbiot.com>
67833
67834         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67835         LGPL.
67836         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67837
67838 2005-09-12  Derek Price  <derek@ximbiot.com>
67839
67840         * lib/gai_strerror.c: Include config.h when available.  Include
67841         getaddrinfo.h before other headers to test interface.
67842         Reported by Larry Jones <lawrence.jones@ugs.com>.
67843
67844 2005-09-12  Derek Price  <derek@ximbiot.com>
67845             Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * modules/glob (Files): Add glob-libc.h.
67848
67849 2005-09-12  Derek Price  <derek@ximbiot.com>
67850             Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67853         glob_.h, glob-libc.h.
67854         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67855
67856 2005-09-12  Derek Price  <derek@ximbiot.com>
67857             Paul Eggert  <eggert@cs.ucla.edu>
67858
67859         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67860         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67861         protecting things that should be done only in gnulib contexts.
67862         * lib/glob_.h: New file, containing only the glob things needed for
67863         gnulib.
67864         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67865         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67866         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67867         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67868         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67869         and to respect the namespace rules better.
67870
67871 2005-09-08  Simon Josefsson  <jas@extundo.com>
67872
67873         * modules/socklen: New file.
67874
67875 2005-09-08  Simon Josefsson  <jas@extundo.com>
67876
67877         * m4/socklen.m4: New file.
67878
67879 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67880
67881         * modules/utimens (Files): Add m4/utimbuf.m4, since
67882         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67883         Reported by Sergey Poznyakoff.
67884
67885 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67888         definitions, since that's the preferred style in glibc.
67889         Fix a minor spacing issue, and update copyright notice to match
67890         glibc's.
67891
67892 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67895
67896 2005-09-06  Simon Josefsson  <jas@extundo.com>
67897
67898         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67899         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67900
67901 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67904         warning.
67905
67906 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * config/srclist.txt: Add glibc bug 1302.
67909
67910 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67911
67912         Change bitset word type from unsigned int to unsigned long int,
67913         as this has better performance on typical 64-bit hosts.
67914         Port bitset code to hosts with unusual word sizes.
67915         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67916         (build_collating_symbol):
67917         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67918         argument is a bitset.  This is merely a style issue, but it makes
67919         it clearer that an entire array is expected.
67920         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67921         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67922         Port to the case where bitset_word is not the same as unsigned int.
67923         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67924         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67925         Likewise.
67926         * lib/regexec.c (check_dst_limits_calc_pos_1,
67927         check_subexp_matching_top):
67928         (build_trtable, group_nodes_into_DFAstates):
67929         Likewise.
67930         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67931         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67932         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67933         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67934         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67935         * lib/regcomp.c (optimize_subexps, lower_subexp):
67936         Work even if bitset_word has holes in its bitwise representation.
67937         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67938         * lib/regexec.c (check_dst_limits_calc_pos_1,
67939         check_subexp_matching_top):
67940         Likewise.
67941         * lib/regex_internal.c (re_string_reconstruct):
67942         Don't assume UCHAR_MAX == 255.
67943         * lib/regex_internal.h (bitset_set_all): Likewise.
67944         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67945         All uses changed.
67946         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67947         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67948         All uses changed.
67949         (BITSET_WORD_MAX): New macro.
67950         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67951         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67952         (bitset_empty, bitset_copy):
67953         Prefer sizeof (bitset) to multiplying it out ourselves.
67954         (bitset_not_merge): Remove; unused.
67955         (bitset_contain): Return bool, not unsigned int with one bit on.
67956         All callers changed.
67957         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67958         alignment than re_node_set; do this by defining a new internal
67959         type struct dests_alloc and using it to allocate memory.
67960
67961 2005-09-05  Bruno Haible  <bruno@clisp.org>
67962
67963         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67964         links.
67965
67966 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67967
67968         * modules/size_max (Makefile.am): Add size_max.h
67969
67970 2005-09-04  Derek Price  <derek@ximbiot.com>
67971
67972         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67973
67974 2005-09-03  Simon Josefsson  <jas@extundo.com>
67975
67976         * gnulib-tool: Fix typo.
67977
67978 2005-09-03  Simon Josefsson  <jas@extundo.com>
67979
67980         * config/srclist.txt: Add glibc bug 1293.
67981
67982 2005-09-03  Derek Price  <derek@ximbiot.com>
67983
67984         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67985         From Larry Jones <lawrence.jones@ugs.com>.
67986
67987 2005-09-02  Simon Josefsson  <jas@extundo.com>
67988
67989         * modules/socklen: New file.
67990
67991 2005-09-02  Simon Josefsson  <jas@extundo.com>
67992
67993         * modules/havelib: New module.
67994
67995         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67996         Use havelib.
67997
67998 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         Check for arithmetic overflow when calculating sizes, to prevent
68001         some buffer-overflow issues.  These patches are conservative, in the
68002         sense that when I couldn't determine whether an overflow was possible,
68003         I inserted a run-time check.
68004         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68005         macros.
68006         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68007         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68008         (re_xnrealloc, re_x2nrealloc): New inline functions.
68009         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68010         parse_bracket_exp):
68011         (build_equiv_class, build_charclass): Check for arithmetic overflow
68012         in size expression calculations.
68013         * lib/regex_internal.c (re_string_realloc_buffers):
68014         (build_wcs_upper_buffer, re_node_set_add_intersect):
68015         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68016         (re_dfa_add_node, register_state): Likewise.
68017         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68018         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68019         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68020         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68021
68022 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68023
68024         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68025         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68026
68027 2005-09-02  Bruno Haible  <bruno@clisp.org>
68028
68029         Support for lib vs. lib64 distinction on biarch platforms.
68030         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68031         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68032         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68033
68034 2005-09-02  Bruno Haible  <bruno@clisp.org>
68035
68036         * gnulib-tool (import): In the other first-use case, provide defaults
68037         as well.
68038
68039 2005-09-02  Bruno Haible  <bruno@clisp.org>
68040
68041         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68042         patches not yet found in the latest gettext release.
68043
68044 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68047         to avoid a collision with bits/local_lim.h in glibc.
68048         All uses changed.  Problem reported by Dmitry V. Levin in
68049         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68050
68051         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68052         bugs in int versus size_t comparisons.
68053         (re_string_context_at): Fix bug where the code assumed that
68054         Idx is signed.
68055
68056         Use bool where appropriate.
68057         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68058         All callers changed.
68059         (calc_eclosure_iter): Likewise, for ROOT arg.
68060         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68061         (build_charclass_op): Likewise, for NON_MATCH arg.
68062         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68063         (re_string_construct_common): Likewise, for ICASE arg.
68064         * lib/regexec.c (re_search_2_stub, re_search_stub):
68065         Likewise, for RET_LEN arg.
68066         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68067         (set_regs): Likewise, for FL_BACKTRACK arg.
68068         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68069         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68070         (calc_eclosure_iter, parse_bracket_exp):
68071         Use bool for internal variables that are booleans.
68072         * lib/regexec.c (re_search_internal, check_matching,
68073         proceed_next_node):
68074         (set_regs, build_sifted_states, sift_states_bkref):
68075         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68076         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68077         (find_collation_sequence_value):
68078         Likewise.
68079         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68080         (re_node_set_compare):
68081         Return bool, not int. All callers changed.
68082         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68083         (build_trtable, check_node_accept): Likewise.
68084         * lib/regex_internal.h: Include stdbool.h.
68085
68086         Fix bugs uncovered when converting to bool.
68087         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68088         failure instead of charging ahead blindly.
68089         * lib/regex_internal.c (register_state): Likewise.
68090         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68091         for freeing internal storage.
68092         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68093         bitset pieces used as boolean, to avoid undefined behavior
68094         on hosts that do int overflow checking.
68095
68096 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68097
68098         * config/srclist.txt: Add glibc bugs 1285-1287.
68099
68100 2005-09-01  Jim Meyering  <jim@meyering.net>
68101
68102         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68103         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68104         Require gl_STAT_MACROS, too.
68105
68106 2005-09-01  Bruno Haible  <bruno@clisp.org>
68107
68108         * gnulib-tool (import): In the first-use case, provide defaults.
68109
68110 2005-09-01  Bruno Haible  <bruno@clisp.org>
68111
68112         * gnulib-tool (func_import): Remove the .tmp files.
68113
68114 2005-09-01  Bruno Haible  <bruno@clisp.org>
68115
68116         * gnulib-tool (func_import): Fix handling of symbolic links.
68117
68118 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68121         old glibc regex code mishandles strings longer than 2**31 bytes.
68122         This patch fixes this when the regex code is used in gnulib
68123         (i.e., outside glibc).
68124
68125         This patch should not affect the use of the regex code inside
68126         glibc.  No doubt this problem also needs to be handled for glibc
68127         as well, but the result will be an incompatible change to the
68128         glibc ABI, and the old ABI will have to be supported too.  That
68129         can be the the subject for another patch.
68130
68131         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68132         governing whether the rest of this patch is active.  By default,
68133         the macro is disabled and the patch has no effect.
68134         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68135         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68136         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68137         (re_match_2, re_set_registers): Use the new types.
68138         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68139         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68140         New macros.
68141         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68142         (re_string_context_at, bin_tree_t, re_dfastate_t):
68143         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68144         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68145         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68146         (re_string_char_size_at, re_string_wchar_at):
68147         (re_string_elem_size_at):
68148         Use the new types and macros to port to 64-bit hosts.
68149         Use unsigned types for internal values, so that the code
68150         mostly works even for arrays larger than SSIZE_MAX.
68151         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68152         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68153         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68154         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68155         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68156         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68157         (calc_inveclosure, parse_dup_op, build_range_exp):
68158         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68159         (fetch_number, create_token_tree, mark_opt_subexp):
68160         Likewise.
68161         * lib/regex_internal.c (re_string_construct_common,
68162         create_ci_newstate):
68163         (create_cd_newstate, re_string_allocate, re_string_construct):
68164         (re_string_realloc_buffers, build_wcs_upper_buffer):
68165         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68166         (re_string_reconstruct, re_string_peek_byte_case):
68167         (re_string_fetch_byte_case, re_string_context_at):
68168         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68169         (re_node_set_init_copy, re_node_set_add_intersect):
68170         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68171         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68172         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68173         (re_acquire_state, re_acquire_state_context, register_state):
68174         Likewise.
68175         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68176         search_cur_bkref_entry):
68177         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68178         (re_search_internal, re_search_2_stub, re_search_stub)
68179         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68180         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68181         (update_cur_sifted_state, check_dst_limits):
68182         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68183         (check_subexp_limits, sift_states_bkref, merge_state_array):
68184         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68185         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68186         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68187         (expand_bkref_cache, check_node_accept_bytes):
68188         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68189         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68190         (acquire_init_state_context, check_halt_node_context):
68191         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68192         (sift_states_backward, clean_state_log_if_needed):
68193         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68194         (find_recover_state, transit_state_sb, transit_state_mb):
68195         (transit_state_bkref, build_trtable, match_ctx_clean):
68196         Likewise.
68197         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68198         to work around an assumption that REG_MISSING is negative.
68199
68200         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68201         (seek_collating_symbol_entry) [defined _LIBC]:
68202         (lookup_collation_sequence_value) [defined _LIBC]:
68203         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68204         Use prototypes rather than old-style function definitions.
68205         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68206         (transit_state_sb) [0]:
68207         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68208
68209         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68210         rm_eo.
68211
68212         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68213         (optimize_subexps, lower_subexp):
68214         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68215         since the signed shift might overflow.  Use 1u<<31 instead.
68216         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68217         Likewise.
68218         * lib/regexec.c (check_dst_limits_calc_pos_1,
68219         check_subexp_matching_top): Likewise.
68220
68221         * lib/regcomp.c (optimize_subexps, lower_subexp):
68222         Use CHAR_BIT rather than 8, for clarity.
68223         * lib/regexec.c (check_dst_limits_calc_pos_1):
68224         (check_subexp_matching_top): Likewise.
68225         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68226         have to worry about portability issues when shifting it left.
68227         Remove no-longer-needed test for table_size > 0.
68228         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68229         in a word, as the resulting behavior is undefined.
68230         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68231         in one case, a <= should have been an <, and in another case the
68232         whole test was missing.
68233         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68234         the standard name CHAR_BIT.
68235         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68236         this is not true on one's complement and signed-magnitude hosts.
68237
68238         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68239         next_last_offset.
68240         (struct re_dfa_t): Remove unused member states_alloc.
68241         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68242
68243 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68246         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68247         and large-file glibc and in 32-bit large-file Solaris.
68248
68249 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68250
68251         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68252         lengths fit in regoff_t; this isn't true if regoff_t is the same
68253         width as size_t.
68254         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68255         (= START + RANGE) instead of RANGE.  This avoids overflow
68256         problems when regoff_t is the same width as size_t.
68257         All callers changed.
68258         (re_search_2_stub): Check for overflow when adding the
68259         sizes of the two strings.
68260         (re_search_stub): Check for overflow when adding START
68261         to RANGE; if it occurs, substitute the extreme value.
68262
68263 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68266
68267 2005-08-31  Jim Meyering  <jim@meyering.net>
68268
68269         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68270         a pointer-to-const.
68271         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68272         (register_state): Likewise.
68273         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68274         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68275         (group_nodes_into_DFAstates): Likewise.
68276
68277 2005-08-31  Jim Meyering  <jim@meyering.net>
68278
68279         * check-module: Add a FIXME comment.
68280
68281 2005-08-31  Eric Blake  <ebb9@byu.net>
68282
68283         * modules/unistd-safer (Files): Add unistd--.h.
68284         * modules/stdio-safer (Files): Add stdio--.h.
68285
68286 2005-08-31  Derek Price  <derek@ximbiot.com>
68287
68288         * lib/getdelim.c (getdelim): Return EOF on EOF.
68289         Reported by Larry Jones <lawrence.jones@ugs.com>.
68290
68291 2005-08-31  Bruno Haible  <bruno@clisp.org>
68292
68293         Avoid unnecessary diffs in the generated lib/Makefile.am.
68294         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68295         the generated files.
68296         (func_import): Don't set cmd.
68297
68298 2005-08-31  Bruno Haible  <bruno@clisp.org>
68299
68300         * lib/strstr.c: Include <stddef.h>, for NULL.
68301         * lib/strcasestr.c: Likewise.
68302         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68303
68304 2005-08-31  Bruno Haible  <bruno@clisp.org>
68305
68306         * gnulib-tool: New option --macro-prefix.
68307         (func_import): Use macro_prefix.
68308         (import): Handle option --macro-prefix.
68309
68310 2005-08-31  Bruno Haible  <bruno@clisp.org>
68311
68312         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68313         Also use new variables cached_lgpl, cached_libtool.
68314
68315 2005-08-31  Bruno Haible  <bruno@clisp.org>
68316
68317         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68318         always instantiating them.
68319
68320 2005-08-31  Bruno Haible  <bruno@clisp.org>
68321
68322         * gnulib-tool (func_import): Read the previous cached settings
68323         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68324         earlier added by gnulib but are now dropped. Warn when a gnulib file
68325         overwrites a non-gnulib file.
68326
68327 2005-08-31  Bruno Haible  <bruno@clisp.org>
68328
68329         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68330         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68331         projects that don't keep autogenerated files in CVS. Put into
68332         actioncmd only the specified modules, not the transitive closure.
68333
68334 2005-08-31  Bruno Haible  <bruno@clisp.org>
68335
68336         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68337         Create directories that shall be filled.
68338         (import): Don't look for gl_* macros in configure.ac. Recurse across
68339         all directories containing a gnulib-cache.m4 files, if meaningful.
68340
68341 2005-08-31  Bruno Haible  <bruno@clisp.org>
68342
68343         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68344         (import): Set seen_libtool when we see gl_LIBTOOL.
68345
68346 2005-08-31  Bruno Haible  <bruno@clisp.org>
68347
68348         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68349         declaration macro definitions from generated gnulib.m4.
68350
68351 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68352
68353         * lib/iconvme.h: Add prototype for iconv_alloc.
68354
68355 2005-08-29  Simon Josefsson  <jas@extundo.com>
68356
68357         * lib/iconvme.c: Fix errno.
68358
68359 2005-08-29  Bruno Haible  <bruno@clisp.org>
68360
68361         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68362         that it works when the directory contains spaces.
68363
68364 2005-08-29  Bruno Haible  <bruno@clisp.org>
68365
68366         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68367
68368 2005-08-29  Bruno Haible  <bruno@clisp.org>
68369
68370         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68371         Emit more advice.
68372
68373 2005-08-29  Bruno Haible  <bruno@clisp.org>
68374         and Stepan Kasal  <kasal@ucw.cz>
68375
68376         * check-module: If more parameters are given, check each of them
68377         separately; add more exceptions, as noted by Jim Meyering.
68378         (check_module): New procedure.
68379         (%exempt_header): Now contains all exceptions.
68380
68381 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68382
68383         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68384
68385 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68386
68387         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68388
68389 2005-08-28  Bruno Haible  <bruno@clisp.org>
68390
68391         * m4/gnulib-tool.m4: New file.
68392
68393 2005-08-27  Jim Meyering  <jim@meyering.net>
68394
68395         * modules/unistd-safer (Files): Add pipe-safer.c.
68396         * modules/fcntl-safer (Files): Add creat-safer.c.
68397
68398 2005-08-27  Jim Meyering  <jim@meyering.net>
68399
68400         * m4/stdlib-safer.m4: New file.  From coreutils.
68401         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68402         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68403         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68404         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68405         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68406
68407 2005-08-27  Jim Meyering  <jim@meyering.net>
68408
68409         * lib/fopen-safer.c: Merge minor changes from coreutils.
68410         * lib/dup-safer.c: Likewise.
68411         * lib/fd-safer.c: Likewise.
68412
68413         Merge from coreutils.
68414         * lib/stdio--.h: New file.
68415         * lib/stdlib--.h: New file.
68416         * lib/mkstemp-safer.c: New file.
68417
68418         GNU tar needs these.
68419         * lib/pipe-safer.c: New file.
68420         * lib/creat-safer.c: New file.
68421         * lib/fcntl--.h (creat): Define to creat_safer.
68422         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68423         * lib/unistd--.h (pipe): Define to pipe_safer.
68424         * lib/unistd-safer.h: Declare pipe_safer.
68425
68426 2005-08-26  Simon Josefsson  <jas@extundo.com>
68427
68428         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68429         Haible <bruno@clisp.org>.
68430
68431 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * lib/regex_internal.h: Remove all references to
68434         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68435         or better.
68436         (bitset_not, bitset_merge, bitset_not_merge):
68437         (bitset_mask, re_string_allocate, re_string_construct):
68438         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68439         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68440         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68441         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68442         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68443         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68444         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68445         (re_acquire_state_context):
68446         Remove unnecessary forward decls.
68447         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68448         Put __attribute at function definition,
68449         now that the function decl has been removed.
68450         * lib/regex_internal.c (re_string_peek_byte_case):
68451         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68452         Likewise.
68453
68454 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68455
68456         * m4/regex.m4: Add AC_PREREQ(2.50).
68457         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68458
68459 2005-08-25  Simon Josefsson  <jas@extundo.com>
68460
68461         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68462         __fsetlocking.
68463
68464 2005-08-25  Simon Josefsson  <jas@extundo.com>
68465
68466         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68467         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68468         GLIBC specific code.
68469
68470 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68471
68472         Make regex safe for g++.  This fixes one real bug (an "err"
68473         that should have been "*err").  g++ problem reported by
68474         Sam Steingold.
68475         * lib/regex_internal.h (re_calloc): New macro, consistent with
68476         re_malloc etc.  All callers of calloc changed to use re_calloc.
68477         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68478         not int.  All callers changed.
68479         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68480         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68481         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68482         (find_recover_state): Change "err" to "*err"; this fixes what
68483         appears to be a real bug.
68484         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68485         versus int.
68486
68487 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         * modules/regex (Depends-on): Add malloc, since the code
68490         assumes that !malloc(0) means failure.
68491
68492 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68495
68496         alloca modernization/simplification for regex.
68497         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68498         needs to be at the start of the file, and can be moved into
68499         regex_internal.h and simplified.
68500         * lib/regex_internal.h: Include <alloca.h>.
68501         (__libc_use_alloca) [!defined _LIBC]: New macro.
68502         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68503         now works outside glibc.
68504
68505 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68506
68507         * config/srclist.txt: Add glibc bugs 1241, 1245.
68508
68509 2005-08-25  Jim Meyering  <jim@meyering.net>
68510
68511         * lib/open-safer.c: Include <config.h>.
68512         Otherwise, we'd lose LARGEFILE support in any file using
68513         e.g. "fcntl--.h"
68514
68515 2005-08-25  Bruno Haible  <bruno@clisp.org>
68516
68517         * m4/minmax.m4: Require autoconf 2.52.
68518         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68519         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68520         alternatives of translit over the alphabet.
68521         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68522
68523 2005-08-24  Simon Josefsson  <jas@extundo.com>
68524
68525         * tests/test-getpass.c: New file.
68526
68527 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68528
68529         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68530         for GNU regex features.
68531
68532 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68535         * lib/regex.h (regerror): Likewise.
68536
68537         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68538         requires this.  (The code never needed it.)
68539
68540         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68541         All uses of recently-renamed identifiers changed to use the new,
68542         POSIX-compliant names.  The code will build and run just fine
68543         without these changes, but it's better to eat our own dog food
68544         and use the standard-conforming names.
68545
68546         * lib/regex.h: Fix a multitude of POSIX name space violations.
68547         These changes have an effect only for programs that define
68548         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68549         do not change anything for programs compiled in the normal way.
68550         Also, there is no effect on the ABI.
68551
68552         (_REGEX_SOURCE): New macro.
68553         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68554         defined and _GNU_SOURCE is not; this fixes a name space violation.
68555
68556         Rename the following macros to obey POSIX requirements.
68557         The old names are still visible as macros if _REGEX_SOURCE is defined.
68558         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68559         RE_BACKSLASH_ESCAPE_IN_LISTS.
68560         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68561         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68562         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68563         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68564         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68565         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68566         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68567         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68568         (REG_INTERVALS): renamed from RE_INTERVALS.
68569         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68570         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68571         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68572         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68573         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68574         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68575         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68576         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68577         RE_UNMATCHED_RIGHT_PAREN_ORD.
68578         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68579         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68580         (REG_DEBUG): renamed from RE_DEBUG.
68581         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68582         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68583         unusual, since we can't clash with the POSIX REG_ICASE.
68584         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68585         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68586         (REG_NO_SUB): renamed from RE_NO_SUB.
68587         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68588         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68589         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68590         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68591         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68592         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68593         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68594         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68595         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68596         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68597         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68598         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68599         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68600         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68601         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68602         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68603         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68604         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68605         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68606         (REG_FIXED): Renamed from REGS_FIXED.
68607         (REG_NREGS): Renamed from RE_NREGS.
68608
68609         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68610         of other REG_* macros, since POSIX says the user is allowed to
68611         #undef these macros selectively.
68612
68613         (reg_errcode_t): Update comment stating what other tables need
68614         to be consistent.
68615
68616         Rename the following enum values to obey POSIX requirements.
68617         The old names are still visible as macros.
68618         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68619         is not defined, since GNU is supposed to be a superset of POSIX as
68620         much as possible, and since we want reg_errcode_t to be a signed
68621         type for implementation consistency.
68622         (_REG_NOERROR): Renamed from REG_NOERROR.
68623         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68624         (_REG_BADPAT): Renamed from REG_BADPAT.
68625         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68626         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68627         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68628         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68629         (_REG_EBRACK): Renamed from REG_EBRACK.
68630         (_REG_EPAREN): Renamed from REG_EPAREN.
68631         (_REG_EBRACE): Renamed from REG_EBRACE.
68632         (_REG_BADBR): Renamed from REG_BADBR.
68633         (_REG_ERANGE): Renamed from REG_ERANGE.
68634         (_REG_ESPACE): Renamed from REG_ESPACE.
68635         (_REG_BADRPT): Renamed from REG_BADRPT.
68636         (_REG_EEND): Renamed from REG_EEND.
68637         (_REG_ESIZE): Renamed from REG_ESIZE.
68638         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68639         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68640         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68641         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68642         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68643
68644         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68645         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68646         changed.  But support the old name if the new one is not defined
68647         and if _REGEX_SOURCE.
68648
68649         Change the following member names in struct re_pattern_buffer.
68650         The old names are still supported if !_REGEX_SOURCE.
68651         The new names are always supported, regardless of _REGEX_SOURCE.
68652         (re_buffer): Renamed from buffer.
68653         (re_allocated): Renamed from allocated.
68654         (re_used): Renamed from used.
68655         (re_syntax): Renamed from syntax.
68656         (re_fastmap): Renamed from fastmap.
68657         (re_translate): Renamed from translate.
68658         (re_can_be_null): Renamed from can_be_null.
68659         (re_regs_allocated): Renamed from regs_allocated.
68660         (re_fastmap_accurate): Renamed from fastmap_accurate.
68661         (re_no_sub): Renamed from no_sub.
68662         (re_not_bol): Renamed from not_bol.
68663         (re_not_eol): Renamed from not_eol.
68664         (re_newline_anchor): Renamed from newline_anchor.
68665
68666         Change the following member names in struct re_registers.
68667         The old names are still supported if !_REGEX_SOURCE.
68668         The new names are always supported, regardless of _REGEX_SOURCE.
68669         (rm_num_regs): Renamed from num_regs.
68670         (rm_start): Renamed from start.
68671         (rm_end): Renamed from end.
68672
68673         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68674         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68675         Prepend __ to parameter names.
68676
68677         Undo yesterday's changes.
68678
68679 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68680
68681         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68682         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68683         lib/regex.c.
68684
68685 2005-08-24  Jim Meyering  <jim@meyering.net>
68686
68687         Sync from coreutils.
68688         * m4/fcntl-safer.m4: New file.
68689
68690         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68691         and object files for this module.
68692
68693 2005-08-24  Jim Meyering  <jim@meyering.net>
68694
68695         Sync from coreutils.
68696         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68697
68698 2005-08-24  Jim Meyering  <jim@meyering.net>
68699
68700         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68701         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68702
68703 2005-08-24  Jim Meyering  <jim@meyering.net>
68704
68705         * modules/fcntl-safer: New module.
68706         * modules/fts (Depends-on): Add fcntl-safer.
68707         * MODULES.html.sh (File descriptor based Input/Output):
68708         Add fcntl-safer.
68709
68710 2005-08-24  Bruno Haible  <bruno@clisp.org>
68711
68712         Support for unit test modules.
68713         * modules/README: Mention tests modules.
68714         * modules/TEMPLATE-TESTS: New file.
68715         * gnulib-tool: New options --extract-tests-module, --with-tests and
68716         --tests-base (unused for the moment).
68717         (testsbase, inctests): New variables.
68718         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68719         (func_verify_module): Exclude TEMPLATE-TESTS.
68720         (func_verify_nontests_module, func_verify_tests_module): New functions.
68721         (func_get_dependencies): Add implicit dependency for tests modules.
68722         (func_get_tests_module): New function.
68723         (func_modules_transitive_closure): When --with-tests was specified,
68724         include the unit tests as well, unless explicitly avoided.
68725         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68726         (func_emit_tests_Makefile_am): New function.
68727         (func_create_testdir): When --with-tests was specified, emit a
68728         tests/ directory.
68729         * MODULES.html.sh (Future developments): Update.
68730
68731 2005-08-24  Bruno Haible  <bruno@clisp.org>
68732
68733         * modules/tls-tests: New file.
68734         * tests/test-tls.c: New file, from GNU gettext.
68735
68736 2005-08-24  Bruno Haible  <bruno@clisp.org>
68737
68738         * modules/lock-tests: New file.
68739         * tests/test-lock.c: New file, from GNU gettext.
68740
68741 2005-08-24  Bruno Haible  <bruno@clisp.org>
68742
68743         * lib/lock.h: Add multiple inclusion guard.
68744         * lib/tls.h: Add multiple inclusion guard.
68745
68746 2005-08-24  Bruno Haible  <bruno@clisp.org>
68747
68748         * gnulib-tool: Add support for the --aux-dir option to
68749         --create-testdir, --create-megatestdir, --test, --megatest.
68750         (func_create_testdir, func_create_megatestdir): Optionally emit a
68751         AC_CONFIG_AUX_DIR directive.
68752         (create-testdir, create-megatestdir, test, megatest): Provide a
68753         default value for $auxdir.
68754
68755 2005-08-24  Bruno Haible  <bruno@clisp.org>
68756
68757         * gnulib-tool (import): Use compound statement instead of subshell
68758         where possible.
68759
68760 2005-08-24  Bruno Haible  <bruno@clisp.org>
68761
68762         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68763
68764 2005-08-24  Bruno Haible  <bruno@clisp.org>
68765
68766         * gnulib-tool (func_version): Update.
68767
68768 2005-08-24  Bruno Haible  <bruno@clisp.org>
68769
68770         * gnulib-tool (func_import, func_create_testdir,
68771         func_create_megatestdir): Quote all autoconf macro arguments.
68772
68773 2005-08-24  Bruno Haible  <bruno@clisp.org>
68774
68775         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68776         option --force, because --force causes the aclocal.m4 of each
68777         subdirectory to be newer than the corresponding config.h.in.
68778
68779 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68782         All contents moved to gl_REGEX.
68783         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68784         assume that it does.
68785
68786 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         * lib/regex.h (REG_NOSYS)
68789         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68790         Define, since POSIX requires it as of 2001.
68791         (_REG_ENOSYS)
68792         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68793         New private symbol, used to keep the enum signed in all cases.
68794         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68795         Youngman in
68796         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68797
68798         * lib/regex_internal.c (re_string_skip_chars, register_state):
68799         (calc_state_hash):
68800         Remove forward decls; no longer needed now that we use prototypes.
68801         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68802         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68803         (clean_state_log_if_needed): Likewise.
68804
68805 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         * config/srclist.txt: Add glibc bugs 1231-1233.
68808
68809 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68810
68811         Fix problems reported by Sam Steingold in
68812         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68813         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68814         assumed that reg_errcode_t is a signed type, which is not
68815         necessarily true if _XOPEN_SOURCE is not defined.
68816         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68817         since some compilers warn about it otherwise.
68818
68819 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68822         (init_word_char, create_initial_state, duplicate_node_closure):
68823         (fetch_token, peek_token_bracket, build_range_exp):
68824         (build_collating_symbol): Remove forward decls; no longer needed
68825         now that we use prototypes.
68826
68827         * lib/regcomp.c:
68828         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68829         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68830         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68831         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68832         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68833         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68834         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68835         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68836         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68837         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68838         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68839         (build_charclass, build_charclass_op, fetch_number, create_tree):
68840         (create_token_tree, mark_opt_subexp, duplicate_tree):
68841         Use prototypes rather than old-style definitions.
68842
68843         * lib/regex_internal.c:
68844         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68845         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68846         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68847         (re_string_reconstruct, re_string_peek_byte_case):
68848         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68849         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68850         (re_node_set_init_copy, re_node_set_add_intersect):
68851         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68852         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68853         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68854         (re_acquire_state, re_acquire_state_context, register_state):
68855         (create_ci_newstate, create_cd_newstate, free_state):
68856         Likewise.
68857         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68858         re_search_2):
68859         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68860         (re_search_internal, prune_impossible_nodes):
68861         (acquire_init_state_context, check_matching, static):
68862         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68863         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68864         (update_regs, sift_states_backward, build_sifted_states):
68865         (clean_state_log_if_needed, merge_state_array):
68866         (update_cur_sifted_state, add_epsilon_src_nodes):
68867         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68868         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68869         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68870         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68871         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68872         (check_arrival, check_arrival_add_next_nodes):
68873         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68874         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68875         (check_node_accept_bytes, check_node_accept, extend_buffers):
68876         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68877         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68878         (sift_ctx_init):
68879         Likewise.
68880
68881         * lib/regex_internal.h:
68882         (re_string_allocate, re_string_construct, re_string_reconstruct):
68883         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68884         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68885         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68886         (re_string_context_at, re_string_peek_byte_case):
68887         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68888         is defined, since we now use prototypes always.
68889
68890         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68891         C89 or better.  All uses removed.
68892
68893 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68894
68895         * config/srclist.txt: Add glibc bugs 1220-1227.
68896
68897 2005-08-20  Jim Meyering  <jim@meyering.net>
68898
68899         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68900         of unused local, dfa.
68901
68902 2005-08-20  Bruno Haible  <bruno@clisp.org>
68903
68904         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68905
68906 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68909         (re_node_set_insert_last, re_dfa_add_node):
68910         Rename local variables to avoid GCC shadowing warnings.
68911
68912 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68915         [defined lint]: Suppress bogus uninitialized-variable warnings.
68916
68917         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68918         and let the caller return REG_ESPACE if out of space.  This
68919         removes an uninitialied-variable warning with GCC 4.0.1, and also
68920         avoids taking the address of a local variable.  All callers
68921         changed.
68922
68923 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68926         $LIBCSRC/posix/regexec.c.
68927         Add glibc bug 1217 for regcomp.c.
68928
68929 2005-08-19  Jim Meyering  <jim@meyering.net>
68930
68931         * lib/regexec.c (proceed_next_node): Redo local variables to
68932         avoid GCC shadowing warnings.
68933
68934 2005-08-18  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/strstr.c (strstr): Fix return value in multibyte case.
68937         * lib/strcasestr.c (strcasestr): Likewise.
68938
68939 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68942
68943 2005-08-17  Jim Meyering  <jim@meyering.net>
68944
68945         Make the %s format (seconds since the epoch) work for a negative
68946         number and when used with a zero-padded field width, e.g. %015s.
68947
68948         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68949         label so that it precedes the code to set `digits'.  Otherwise,
68950         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68951         print `00-22'.  Now, it prints `-0022', as it should.
68952
68953 2005-08-17  Bruno Haible  <bruno@clisp.org>
68954
68955         * modules/strstr (Files): Add m4/mbrtowc.m4.
68956         (Depends-on): Add mbuiter.
68957
68958 2005-08-17  Bruno Haible  <bruno@clisp.org>
68959
68960         * modules/strcasestr: New file.
68961         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68962         strcasestr.
68963
68964 2005-08-17  Bruno Haible  <bruno@clisp.org>
68965
68966         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68967
68968 2005-08-17  Bruno Haible  <bruno@clisp.org>
68969
68970         * modules/mbuiter: New file.
68971         * MODULES.html.sh (Extended multibyte and wide character utilities):
68972         Add mbuiter.
68973
68974 2005-08-17  Bruno Haible  <bruno@clisp.org>
68975
68976         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68977         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68978
68979 2005-08-17  Bruno Haible  <bruno@clisp.org>
68980
68981         * m4/strcasestr.m4: New file.
68982
68983 2005-08-17  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68986         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68987
68988 2005-08-17  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/strcasestr.h: New file.
68991         * lib/strcasestr.c: New file.
68992
68993 2005-08-17  Bruno Haible  <bruno@clisp.org>
68994
68995         * lib/strcasecmp.c: Use mbuiter.h.
68996
68997 2005-08-17  Bruno Haible  <bruno@clisp.org>
68998
68999         * lib/mbuiter.h: New file.
69000
69001 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69004         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69005         and gl_GETOPT are both invoked via different paths (as happens
69006         with GNU tar CVS because it uses both argp and getopt), the former
69007         wins.
69008
69009 2005-08-16  Bruno Haible  <bruno@clisp.org>
69010
69011         * modules/tls: New file.
69012         * MODULES.html.sh (Multithreading): Add tls.
69013
69014 2005-08-16  Bruno Haible  <bruno@clisp.org>
69015
69016         * modules/strnlen1: New file.
69017         * MODULES.html.sh (String handling): Add strnlen1.
69018
69019 2005-08-16  Bruno Haible  <bruno@clisp.org>
69020
69021         * modules/strcase (Files): Add m4/mbrtowc.m4.
69022         (Depends-on): Add strnlen1, mbchar.
69023
69024 2005-08-16  Bruno Haible  <bruno@clisp.org>
69025
69026         * modules/mbiter: New file.
69027         * MODULES.html.sh (Extended multibyte and wide character utilities):
69028         Add mbiter.
69029
69030 2005-08-16  Bruno Haible  <bruno@clisp.org>
69031
69032         * modules/mbfile: New file.
69033         * MODULES.html.sh (Extended multibyte and wide character utilities):
69034         Add mbfile.
69035
69036 2005-08-16  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/mbchar: New file.
69039         * MODULES.html.sh (Extended multibyte and wide character utilities):
69040         New section.
69041
69042 2005-08-16  Bruno Haible  <bruno@clisp.org>
69043
69044         * m4/tls.m4: New file, from GNU gettext.
69045
69046 2005-08-16  Bruno Haible  <bruno@clisp.org>
69047
69048         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69049         always.
69050         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69051
69052 2005-08-16  Bruno Haible  <bruno@clisp.org>
69053
69054         * m4/mbiter.m4: New file.
69055
69056 2005-08-16  Bruno Haible  <bruno@clisp.org>
69057
69058         * m4/mbfile.m4: New file.
69059
69060 2005-08-16  Bruno Haible  <bruno@clisp.org>
69061
69062         * m4/mbchar.m4: New file.
69063
69064 2005-08-16  Bruno Haible  <bruno@clisp.org>
69065
69066         * lib/tls.h: New file, from GNU gettext.
69067         * lib/tls.c: New file, from GNU gettext.
69068
69069 2005-08-16  Bruno Haible  <bruno@clisp.org>
69070
69071         * lib/strnlen1.h: New file.
69072         * lib/strnlen1.c: New file.
69073
69074 2005-08-16  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69077         (mbi_init): Update.
69078         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69079         NUL byte, not after it.
69080
69081 2005-08-16  Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/strcase.h (strcasecmp): Add note in comments.
69084         * lib/strncasecmp.c: Use code from strcasecmp.c.
69085         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69086         (strcasecmp): Work correctly in multibyte locales.
69087
69088 2005-08-16  Bruno Haible  <bruno@clisp.org>
69089
69090         * lib/mbiter.h: New file.
69091
69092 2005-08-16  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/mbfile.h: New file.
69095
69096 2005-08-16  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/mbchar.h: New file.
69099         * lib/mbchar.c: New file.
69100
69101 2005-08-16  Bruno Haible  <bruno@clisp.org>
69102
69103         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69104         the valid ones. Makes the comparison operations transitive:
69105         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69106         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69107
69108 2005-08-15  Simon Josefsson  <jas@extundo.com>
69109
69110         * modules/ssize_t (License): Change to 'unlimited'.
69111
69112         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69113
69114 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69117         Add comments for each pending glibc patch.
69118
69119 2005-08-15  Bruno Haible  <bruno@clisp.org>
69120
69121         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69122         __cplusplus is defined.
69123
69124 2005-08-14  Jim Meyering  <jim@meyering.net>
69125
69126         Sync from coreutils.
69127
69128         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69129         Use the hash-table-based cycle-detection code not just when
69130         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69131         Reported by James Youngman in
69132         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69133         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69134         FTS_TIGHT_CYCLE_CHECK.
69135         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69136         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69137         once again.
69138         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69139         * lib/fts.c (fd_safer): Remove decl.
69140         Include fcntl--.h rather than unistd-safer.h
69141         (fts_safe_changedir): Don't call fd_safer; no longer needed
69142         now that we include fcntl--.h.
69143
69144 2005-08-12  Simon Josefsson  <jas@extundo.com>
69145
69146         * modules/getndelim2: Use ssize_t module.
69147         * modules/getnline: Likewise.
69148         * modules/safe-read: Likewise.
69149         * modules/xreadlink: Likewise.
69150
69151         * modules/ssize_t: New file.
69152
69153 2005-08-12  Simon Josefsson  <jas@extundo.com>
69154
69155         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69156
69157 2005-08-12  Simon Josefsson  <jas@extundo.com>
69158
69159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69160         ssize_t.
69161
69162 2005-08-12  Simon Josefsson  <jas@extundo.com>
69163
69164         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69165         readline, getdelim and check_version.
69166         (Support for systems lacking ISO C 99: Sizes of integer types):
69167         Add size_max.
69168
69169 2005-08-12  Bruno Haible  <bruno@clisp.org>
69170
69171         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69172
69173 2005-08-11  Simon Josefsson  <jas@extundo.com>
69174
69175         * modules/readline: New file.
69176
69177         * modules/strnlen (Files): Add strnlen.h.
69178
69179 2005-08-11  Simon Josefsson  <jas@extundo.com>
69180
69181         * m4/readline.m4: New file.
69182
69183 2005-08-11  Simon Josefsson  <jas@extundo.com>
69184
69185         * lib/readline.h, readline.c: New file.
69186
69187 2005-08-11  Simon Josefsson  <jas@extundo.com>
69188
69189         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69190         gl_AVOID.
69191
69192 2005-08-11  Bruno Haible  <bruno@clisp.org>
69193
69194         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69195
69196 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69197
69198         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69199
69200 2005-08-10  Simon Josefsson  <jas@extundo.com>
69201
69202         * tests/test-iconvme.c: New file.
69203
69204 2005-08-10  Simon Josefsson  <jas@extundo.com>
69205
69206         * m4/strnlen.m4: New file.
69207
69208         * m4/strndup.m4: Don't check for strnlen declaration, done in
69209         strnlen.m4.
69210
69211 2005-08-10  Simon Josefsson  <jas@extundo.com>
69212
69213         * lib/strndup.c: Use strnlen.h.
69214
69215         * lib/strnlen.h: New file.
69216
69217 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69218
69219         * README: Typos.
69220
69221 2005-08-02  Simon Josefsson  <jas@extundo.com>
69222
69223         * modules/readline: New file.
69224
69225 2005-08-02  Simon Josefsson  <jas@extundo.com>
69226
69227         * modules/getdelim: New file.
69228
69229         * modules/getline: Rewrite, don't use getndelim2.
69230
69231 2005-08-02  Simon Josefsson  <jas@extundo.com>
69232
69233         * m4/getline.m4: Separate out getdelim stuff into separate module.
69234
69235         * m4/getdelim.m4: New file.
69236
69237 2005-08-02  Simon Josefsson  <jas@extundo.com>
69238
69239         * lib/getline.h, getline.c: Rewrite.
69240
69241         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69242
69243 2005-07-31  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/lock.h (gl_lock_initializer): New macro.
69246         (gl_lock_define_initialized): Use it.
69247         (gl_rwlock_initializer): New macro.
69248         (gl_rwlock_define_initialized): Use it.
69249         (gl_recursive_lock_initializer): New macro.
69250         (gl_recursive_lock_define_initialized): Use it.
69251
69252 2005-07-30  Karl Berry  <karl@gnu.org>
69253
69254         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69255         Report from Ben Pfaff, regarding getopt.
69256
69257 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69258
69259         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69260         normal way.
69261         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69262         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69263         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69264         (gl_GETOPT): Use the new macros.  Most of the implementation
69265         is moved to the new macros.  This is for programs like Emacs
69266         that don't want all the functionality of gl_GETOPT.
69267
69268 2005-07-26  Bruno Haible  <bruno@clisp.org>
69269
69270         * m4/lock.m4: Update from GNU gettext.
69271
69272 2005-07-26  Bruno Haible  <bruno@clisp.org>
69273
69274         * lib/lock.h: Update from GNU gettext.
69275         * lib/lock.c: Update from GNU gettext.
69276
69277 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69280         obsolescent AC_TRY_RUN.  Include the default includes files, for
69281         'exit'.
69282
69283 2005-07-24  Bruno Haible  <bruno@clisp.org>
69284
69285         * modules/visibility: New file.
69286         * MODULES.html.sh (Misc): Add visibility.
69287
69288 2005-07-24  Bruno Haible  <bruno@clisp.org>
69289
69290         * m4/visibility.m4: New file.
69291
69292 2005-07-24  Bruno Haible  <bruno@clisp.org>
69293
69294         * doc/visibility.texi: New file.
69295
69296 2005-07-22  Bruno Haible  <bruno@clisp.org>
69297
69298         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69299         $(ALLOCA_H), redundant through BUILT_SOURCES.
69300         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69301         redundant through BUILT_SOURCES.
69302         * modules/byteswap (Makefile.am): Remove explicit dependency on
69303         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69304         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69305         $(FNMATCH_H), redundant through BUILT_SOURCES.
69306         * modules/getopt (Makefile.am): Remove explicit dependency on
69307         $(GETOPT_H), redundant through BUILT_SOURCES.
69308         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69309         redundant through BUILT_SOURCES.
69310         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69311         redundant through BUILT_SOURCES.
69312         * modules/stdbool (Makefile.am): Remove explicit dependency on
69313         $(STDBOOL_H), redundant through BUILT_SOURCES.
69314         * modules/stdint (Makefile.am): Remove explicit dependency on
69315         $(STDINT_H), redundant through BUILT_SOURCES.
69316         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69317         Remove explicit dependency on $(SYSEXITS_H).
69318         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69319
69320 2005-07-18  Simon Josefsson  <jas@extundo.com>
69321
69322         * lib/check-version.c (check_version): Accept identical versions too.
69323
69324 2005-07-18  Bruno Haible  <bruno@clisp.org>
69325
69326         * modules/lock: New file.
69327         * MODULES.html.sh (Multithreading): New section.
69328
69329 2005-07-18  Bruno Haible  <bruno@clisp.org>
69330
69331         * m4/lock.m4: New file, from GNU gettext.
69332
69333 2005-07-18  Bruno Haible  <bruno@clisp.org>
69334
69335         * lib/lock.h: New file, from GNU gettext.
69336         * lib/lock.c: New file, from GNU gettext.
69337
69338 2005-07-18  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/lock.h (gl_once_t): New type.
69341         (gl_once_define, gl_once): New macros.
69342         * lib/lock.c (fresh_once): New variable.
69343         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69344         functions.
69345
69346 2005-07-16  Simon Josefsson  <jas@extundo.com>
69347
69348         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69349         workaround, suggested by Bruno.
69350
69351 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * modules/xalloc (Depends-on): Add xalloc-die.
69354         * modules/xvasprintf (Depends-on): Add xalloc-die.
69355
69356 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69359         with a minor change.
69360
69361 2005-07-15  Bruno Haible  <bruno@clisp.org>
69362
69363         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69364         When using lib/poll.c, define poll as rpl_poll.
69365
69366 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69367
69368         * modules/argp (Depends-on): Remove unlocked-io.
69369
69370 2005-07-14  Derek Price  <derek@ximbiot.com>
69371
69372         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69373         for glob symlink bug.
69374
69375 2005-07-14  Bruno Haible  <bruno@clisp.org>
69376
69377         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69378         Instead, test for *_unlocked function declarations directly.
69379
69380 2005-07-11  Simon Josefsson  <jas@extundo.com>
69381
69382         * modules/size_max: New file.
69383
69384         * modules/xsize: Depend on size_max module for size_max.m4.
69385
69386 2005-07-11  Simon Josefsson  <jas@extundo.com>
69387
69388         * lib/size_max.h: New file.
69389
69390 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69393         copyright symbol and the year.
69394         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69395         (version_etc_va): Use parameterized copyright notice.
69396         Reword to conform to the current GNU coding standards.
69397
69398 2005-07-11  Karl Berry  <karl@gnu.org>
69399
69400         * doc/gnulib.texi (Quoting): new node.
69401         (Initial import): more info, from Patrice.
69402
69403 2005-07-11  Bruno Haible  <bruno@clisp.org>
69404
69405         * gnulib-tool (func_usage): Document option --avoid.
69406         (Command line options): Handle --avoid.
69407         (func_acceptable): New function.
69408         (func_modules_transitive_closure): Use it.
69409
69410 2005-07-11  Bruno Haible  <bruno@clisp.org>
69411
69412         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69413         Reported by Jim Meyering.
69414
69415 2005-07-10  Bruno Haible  <bruno@clisp.org>
69416
69417         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69418         Needed when size_t is smaller than 'unsigned int'.
69419         Reported by Paul Eggert.
69420
69421 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69422
69423         * modules/argp (Depends-on): Add unlocked-io
69424
69425 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69426
69427         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69428         block of defines.
69429
69430 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69433         fix now.
69434
69435 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69436         and Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69439         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69440
69441 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69442
69443         * modules/regex (Files): Add lib/regex_internal.c,
69444         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69445         (Depends-on): Add extensions.
69446         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69447
69448 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69451         pathconf.
69452         * m4/same.m4 (gl_SAME): Likewise.
69453         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69454
69455         * m4/regex.m4: Adjust to new libc regex implementation.
69456         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69457         all the .c and .h parts of (the new) regex.
69458         Quote the m4 stuff better.
69459         Check for RE_ICASE bug of old gnulib.
69460         Check for REG_STARTEND of recent libc.
69461         Rename local variables from jm_* to gl_*.
69462         Quote operand of "test -f".
69463         Say "recent enough" version of libc, not "version 2".
69464         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69465         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69466         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69467         Remove check for btowc, isascii.
69468         Require AM_LANGINFO_CODESET.
69469
69470 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69471
69472         * lib/regex.c, regex.h: Sync from libc.
69473         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69474         * lib/regexec.c:
69475         New files, synced from libc, except that regex_internal.h
69476         currently has a small porting fix.
69477
69478 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69481         regex_internal.c, regexec.c.
69482         Add regex_internal.h too, but as a comment, since the libc version
69483         is currently broken in gnulib mode.
69484
69485 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         Support programs like Emacs that use gnulib but not gettext.
69488         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69489         * modules/gettext-h: New file.
69490         * modules/gettext (Files): Remove lib/gettext.h.
69491         (Depends-on): Add gettext-h.
69492         (Makefile.am): Remove lib_SOURCES.
69493         * modules/argmatch, modules/c-stack, modules/closeout:
69494         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69495         * modules/execute, modules/file-type, modules/getaddrinfo:
69496         * modules/getopt, modules/human, modules/javacomp:
69497         * modules/javaexec, modules/mkdir-p, modules/obstack:
69498         * modules/openat, modules/pagealign_alloc, modules/pipe:
69499         * modules/quotearg, modules/regex, modules/rpmatch:
69500         * modules/unicodeio, modules/userspec, modules/version-etc:
69501         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69502         * modules/xsetenv:
69503         Depend on gettext-h, not gettext.
69504
69505 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69506
69507         * gnulib-tool (func_import): Add support for 'public domain' license.
69508         * modules/alloca, modules/atexit, modules/memmove:
69509         Now public domain, not GPL.
69510         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69511         * modules/realloc, modules/strerror, modules/strtod:
69512         Now LGPL, not GPL.
69513
69514 2005-07-05  Bruno Haible  <bruno@clisp.org>
69515
69516         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69517         autoconf CVS. Needed for mingw.
69518
69519 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         Remove the dependency of the strftime module on the tzset module.
69522         * modules/strftime (Depends-on): Remove dependency on tzset.
69523
69524 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69525
69526         Remove the dependency of the strftime module on the tzset module.
69527         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69528         gl_FUNC_TZSET_CLOBBER.
69529
69530 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         Remove the dependency of the strftime module on the tzset module.
69533         * lib/strftime.c (my_strftime)
69534         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69535         Copy the input structure, to work around some of the bug with
69536         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69537         Solaris releases, you should also use the tzset module, but we won't
69538         require it as a dependency any more since we don't want LGPLed code
69539         to depend on GPLed code.
69540
69541 2005-07-02  Jim Meyering  <jim@meyering.net>
69542
69543         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69544         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69545         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69546         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69547
69548 2005-07-02  Jim Meyering  <jim@meyering.net>
69549
69550         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69551
69552 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69553
69554         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69555         declares only 'struct timespec;' (!).
69556
69557 2005-07-01  Jim Meyering  <jim@meyering.net>
69558
69559         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69560         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69561         * lib/save-cwd.c, tempname.c:
69562         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69563         and don't include <sys/file.h>).
69564
69565 2005-06-29  Jim Meyering  <jim@meyering.net>
69566
69567         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69568         type name.  Use the variable name instead.
69569         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69570         Likewise.
69571
69572 2005-06-28  Simon Josefsson  <jas@extundo.com>
69573
69574         * modules/check-version (Files): Add check-version.m4.
69575
69576 2005-06-28  Simon Josefsson  <jas@extundo.com>
69577
69578         * m4/check-version.m4: New file, suggested by Jim Meyering
69579         <jim@meyering.net>.
69580
69581 2005-06-28  Simon Josefsson  <jas@extundo.com>
69582
69583         * lib/check-version.h, lib/check-version.c: New files.
69584
69585 2005-06-28  Simon Josefsson  <jas@extundo.com>
69586
69587         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69588         collision with global variable.  Better indentation.  Don't
69589         increment buffer pointer beyond buffer end.  Based on comments
69590         from Paul Eggert <eggert@cs.ucla.edu>.
69591
69592         * lib/base64.h: Indent.
69593
69594 2005-06-28  Simon Josefsson  <jas@extundo.com>
69595
69596         * doc/gnulib.texi (Library version handling): New section.
69597
69598 2005-06-28  Jim Meyering  <jim@meyering.net>
69599
69600         * check-module (find_included_lib_files): Hard-code another
69601         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69602         but modules/fts-lgpl (correctly) does not list those files.
69603
69604         * modules/canonicalize (Files): Add lib/pathmax.h.
69605
69606 2005-06-25  Simon Josefsson  <jas@extundo.com>
69607
69608         * modules/check-version: New file.
69609
69610 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69613         initializer of struct addrinfo, as an indication that we don't
69614         care how many members the structure has.
69615
69616 2005-06-24  Derek Price  <derek@ximbiot.com>
69617         and Bruno Haible  <bruno@clisp.org>
69618
69619         Remove stat module & update lstat.
69620         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69621         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69622         * m4/stat.m4: Remove this file.
69623
69624 2005-06-24  Derek Price  <derek@ximbiot.com>
69625         and Bruno Haible  <bruno@clisp.org>
69626
69627         Remove stat module & update lstat.
69628         * lib/stat.c: Remove this file...
69629         (slash_aware_lstat): ...moving this content and its support...
69630         * lib/lstat.c (rpl_lstat): ...into here.
69631         * lib/lstat.h: New file.
69632
69633 2005-06-24  Derek Price  <derek@ximbiot.com>
69634         and Bruno Haible  <bruno@clisp.org>
69635
69636         Remove stat module & update lstat.
69637         * config/srclist.txt (libc sources): Remove stat.
69638
69639 2005-06-24  Derek Price  <derek@ximbiot.com>
69640         and Bruno Haible  <bruno@clisp.org>
69641
69642         Remove stat module & update lstat.
69643         * MODULES.html.sh (stat): Remove.
69644         * MODULES.html: Regenerated.
69645         * modules/lstat (Description): Correct function name.
69646         (Files): Add "lstat.h".
69647         (Depends-on): Remove stat, add xalloc, stat-macros.
69648         * modules/stat: Remove this file.
69649         (Include): Add "lstat.h", remove <sys/stat.h>.
69650
69651 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69654         (ranged_convert): Don't save conversion in a temporary struct.
69655         This causes a warning with GCC 4.0.0, and anyway in the typical
69656         case it's not worth the extra 100 bytes or so of code.
69657         (ranged_convert, __mktime_internal): When calling a function via a
69658         pointer P, use P () rather than (*P) (), as we now assume C89 or
69659         better.
69660
69661 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69662
69663         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69664         "who -r" failed to give output.  Problem reported by Tim Waugh.
69665
69666         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69667         (xcalloc): Use it to avoid needless tests.
69668         Problem reported by Jim Meyering.
69669
69670 2005-06-20  Derek Price  <derek@ximbiot.com>
69671
69672         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69673         unnecessary for Autoconfs > 2.59c.
69674
69675 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69676
69677         * lib/argp.h (__option_is_short): Check upper limit of
69678         __key. Isprint() requires its argument to have the value
69679         of an unsigned char or EOF.
69680
69681 2005-06-16  Jim Meyering  <jim@meyering.net>
69682
69683         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69684         when either N or S is zero.
69685
69686 2005-06-16  Derek Price  <derek@ximbiot.com>
69687
69688         * m4/bison.m4: Declare YACC & YFLAGS precious.
69689
69690 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69693         multibyte string or pattern, fall back on unibyte matching.
69694         Problem reported by James Youngman.
69695
69696 2005-06-08  Bruno Haible  <bruno@clisp.org>
69697
69698         * modules/csharpcomp: New file.
69699         * MODULES.html.sh (C#): Add csharpcomp.
69700
69701 2005-06-08  Bruno Haible  <bruno@clisp.org>
69702
69703         * m4/csharpcomp.m4: New file, from GNU gettext.
69704
69705 2005-06-08  Bruno Haible  <bruno@clisp.org>
69706
69707         * lib/csharpcomp.h: New file, from GNU gettext.
69708         * lib/csharpcomp.c: New file, from GNU gettext.
69709         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69710
69711 2005-06-08  Bruno Haible  <bruno@clisp.org>
69712
69713         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69714         warning on mingw.
69715
69716 2005-06-07  Derek Price  <derek@ximbiot.com>
69717
69718         Sync from CVS.
69719         * lib/glob_.h: Indent nested #ifdef.
69720
69721 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         Sync from coreutils.
69724         Use "file name" when talking about file names, instead of "filename"
69725         or "path", as per the GNU coding standards.
69726         * lib/mkdir-p.c: Renamed from makepath.c.
69727         (make_dir_parents): Renamed from make_path.  All callers changed.
69728         * lib/mkdir-p.h: Likewise.  All includers changed.
69729         * lib/filenamecat.c: Renamed from path-concat.c.
69730         (file_name_concat): Renamed from path_concat.  All callers changed.
69731         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69732         * lib/filenamecat.h: Likewise.  All includers changed.
69733         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69734         in comments or local variable names.
69735         * lib/basename.c: Likewise.
69736         * lib/canonicalize.c, canonicalize.h: Likewise.
69737         * lib/dirname.c, dirname.h: Likewise.
69738         * lib/euidaccess.c: Likewise.
69739         * lib/exclude.c: Likewise
69740         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69741         * lib/fsusage.c, fsuage.h: Likewise.
69742         * lib/fts.c, fts_.h: Likewise.
69743         * lib/getcwd.c: Likewise.
69744         * lib/getloadavg.c: Likewise.
69745         * lib/mkstemp.c: Likewise.
69746         * lib/mountlist.c, mountlist.h: Likewise.
69747         * lib/openat.c, openat.h: Likewise.
69748         * lib/readlink-stub.c: Likewise.
69749         * lib/readutmp.c, readutmp.h: Likewise.
69750         * lib/rename.c: Likewise.
69751         * lib/rmdir.c: Likewise.
69752         * lib/same.c: Likewise.
69753         * lib/savedir.c: Likewise.
69754         * lib/stripslash.c: Likewise.
69755         * lib/tempname.c: Likewise.
69756         * lib/xreadlink.c: Likewise.
69757         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69758         All uses changed.
69759         * lib/exclude.h: Likewise.
69760
69761         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69762         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69763         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69764         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69765         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69766         files have been getting away with it for years (MORE/BSD 4.3
69767         is extinct now).
69768         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69769         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69770
69771         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69772         Define to 256, not 255, as per modern POSIX.
69773
69774 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69775
69776         Sync from coreutils.
69777         Use "file name" when talking about file names, instead of "filename"
69778         or "path", as per the GNU coding standards.
69779         * MODULES.html.sh: mkdir-p renamed from makepath.
69780         filenamecat renamed from path-concat.
69781         * modules/filenamecat: Renamed from modules/path-concat.
69782         (Files): filenamecat.h and filenamecat.c renamed from
69783         path-concat.h and path-concat.c.
69784         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69785         (Include): filenamecat.h, not path-concat.h.
69786         * modules/mkdir-p: Renamed from modules/makepath.
69787         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69788         makepath.c.
69789         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69790         (Include): mkdir-p.h, not makepath.h.
69791
69792 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         Sync from coreutils.
69795         * m4/mkdir-p.m4: Renamed from makepath.m4.
69796         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69797         Rename files from makepath.c to mkdir-p.c, and from
69798         makepath.h to mkdir-p.h.
69799         * m4/filenamecat.m4: Renamed from path-concat.m4.
69800         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69801         Rename files from path-concat.c to filenamecat.c,
69802         and from path-concat.h to filenamecat.h.
69803         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69804         "file name" in local variables or comments.
69805         * m4/rename.m4: Likewise.
69806
69807 2005-06-01  Bruno Haible  <bruno@clisp.org>
69808
69809         * modules/csharpexec: New file.
69810         * MODULES.html.sh (C#): New section.
69811
69812 2005-06-01  Bruno Haible  <bruno@clisp.org>
69813
69814         * m4/csharp.m4: New file, from GNU gettext.
69815         * m4/csharpexec.m4: New file, from GNU gettext.
69816
69817 2005-06-01  Bruno Haible  <bruno@clisp.org>
69818
69819         * lib/csharpexec.h: New file, from GNU gettext.
69820         * lib/csharpexec.c: New file, from GNU gettext.
69821         * lib/csharpexec.sh.in: New file, from GNU gettext.
69822
69823 2005-05-31  Derek Price  <derek@ximbiot.com>
69824             Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         Sync from cvs.
69827         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69828
69829 2005-05-31  Derek Price  <derek@ximbiot.com>
69830             Paul Eggert  <eggert@cs.ucla.edu>
69831
69832         Sync from cvs.
69833         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69834
69835 2005-05-29  Derek Price  <derek@ximbiot.com>
69836
69837         * config/srclist.txt (glob_.h, glob.c): Add these files.
69838
69839 2005-05-29  Derek Price  <derek@ximbiot.com>
69840
69841         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69842         * modules/glob: New file.
69843         * modules/getlogin_r: Add link to POSIX spec in description.
69844
69845 2005-05-29  Derek Price  <derek@ximbiot.com>
69846             Paul Eggert  <eggert@cs.ucla.edu>
69847
69848         * m4/glob.m4: New file.
69849
69850 2005-05-29  Derek Price  <derek@ximbiot.com>
69851             Paul Eggert  <eggert@cs.ucla.edu>
69852
69853         * lib/glob_.h, lib/glob.c: New files.
69854
69855 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69858         * modules/fts-lgpl (Depends-on): Remove gettext.
69859
69860 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69863         and don't require gt_INTTYPES_PRI.
69864
69865 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69866
69867         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69868
69869         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69870         the configuration hassle isn't worth it.
69871         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69872         (LONGEST_MODIFIER, PRIuMAX): Remove.
69873
69874 2005-05-27  Bruno Haible  <bruno@clisp.org>
69875
69876         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69877
69878 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69881         _POSIX_PTHREAD_SEMANTICS for Solaris.
69882
69883 2005-05-25  Derek Price  <derek@ximbiot.com>
69884
69885         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69886
69887 2005-05-25  Derek Price  <derek@ximbiot.com>
69888             Paul Eggert  <eggert@cs.ucla.edu>
69889
69890         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69891         * lib/getlogin_r.c, getlogin_r.h: New files.
69892
69893 2005-05-25  Bruno Haible  <bruno@clisp.org>
69894             Derek Price  <derek@ximbiot.com>
69895
69896         * lib/getlogin_r.h: Simplify API documentation.
69897
69898 2005-05-23  Derek Price  <derek@ximbiot.com>
69899
69900         * modules/minmax (Files): Add m4/minmax.m4.
69901         (configure.ac): Add gl_MINMAX.
69902
69903 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69904
69905         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69906         so that unistd-safer.h (GPL'ed code) need not be included.
69907
69908 2005-05-22  Bruno Haible  <bruno@clisp.org>
69909
69910         * m4/minmax.m4: New file.
69911         Based on a patch by Derek Price <derek@ximbiot.com>.
69912
69913 2005-05-22  Bruno Haible  <bruno@clisp.org>
69914
69915         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69916         (INT64_MIN): Fix definition.
69917         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69918
69919         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69920         NEED_SIGNED_INT_TYPES.
69921
69922         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69923         HAVE_SYSTEM_INTTYPES.
69924
69925 2005-05-22  Bruno Haible  <bruno@clisp.org>
69926
69927         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69928         Also include <sys/param.h> if it defines MIN, MAX.
69929         Based on a patch by Derek Price <derek@ximbiot.com>.
69930
69931 2005-05-21  Jim Meyering  <jim@meyering.net>
69932
69933         * modules/fts (Files): Add m4/inttypes-pri.m4.
69934         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69935
69936 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         New fts module.
69939         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69940         (setup_dir, free_dir): New functions.
69941         (enter_dir, leave_dir): Define trivial
69942         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69943         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69944         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69945         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69946         Move to fts-cycle.c.
69947         (fts_open): Use setup_dir.
69948         (fts_close): Use free_dir.
69949         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69950         This adds a label and some gotos, but the alternatives were messier.
69951         Check for memory allocation failure when entering a dir.
69952         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69953         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69954         (FTS): New member fts_cycle, that is a union that contains the
69955         old active_dir_ht and cycle_state.  All uses changed to mention
69956         fts_cycle.ht and fts_cycle.state.
69957         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69958         fts.c, with the following changes:
69959         (setup_dir, free_dir): New functions.
69960         (enter_dir): Now returns bool.  Return true if successful, false
69961         if memory exhausted.  All callers changed.
69962         Do not bother partly cleaning up on
69963         memory allocation failure; that is free_dir's job.
69964         However, free ad if hash_insert fails, to avoid memory leak.
69965         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69966         fts->fts_options to see which union member to use.
69967
69968 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69971         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69972
69973 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69976
69977 2005-05-20  Jim Meyering  <jim@meyering.net>
69978
69979         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69980         Now a macro, to pacify GCC.
69981
69982 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69983
69984         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69985         of -1.
69986
69987 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69988
69989         * lib/chown.c (rpl_chown): Return -1 on failure.
69990
69991 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69994         Don't check for stddef.h.
69995         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69996         don't use its results.
69997         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69998         since we include them unconditionally.  Don't require
69999         AM_STDBOOL_H, since stdbool is a prerequisite.
70000         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70001         since we assume C89 or better.
70002         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70003         as we don't use their results.
70004         Don't check for fchdir, memmove, memset, strrchr, as we use
70005         them unconditionally.
70006         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70007         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70008
70009 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70012         Include <stddef.h> unconditionally, since we assume C89 now.
70013         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70014         * lib/fts.c: Include fts_.h first, to check interface.
70015         Do not include intprops.h; no longer needed.
70016         Include cycle-check.h and hash.h, since fts_.h no longer does.
70017         Remove unnecessary casts of closedir to void.
70018         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70019         decide whether to decrement nlinks.
70020         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70021         (FTS): Use struct hash_table * instead of Hash_table, so that
70022         we no longer need to include hash.h here.
70023
70024 2005-05-18  Jim Meyering  <jim@meyering.net>
70025
70026         * modules/dirfd (License): Change to LGPL.  Most of the code
70027         is already in the public domain.
70028
70029 2005-05-18  Jim Meyering  <jim@meyering.net>
70030
70031         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70032         Reported by Yoann Vandoorselaere.
70033
70034 2005-05-17  Jim Meyering  <jim@meyering.net>
70035
70036         * m4/fts.m4: New file, from coreutils.
70037
70038 2005-05-17  Jim Meyering  <jim@meyering.net>
70039
70040         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70041
70042 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70043
70044         Sync from coreutils.
70045         * m4/unlinkdir.m4: New file.
70046
70047 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         Sync from coreutils.
70050         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70051         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70052         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70053         White space changes only.
70054         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70055         special.
70056         * lib/yesno.c: Include getline.h, not ctype.h.
70057         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70058         Use getline to remove arbitrary restriction on response length.
70059
70060 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         * config/srclist-update: Spell out "Street" in FSF postal
70063         mail address; this is the style the FSF seems to prefer.
70064
70065         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70066         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70067         this updates FSF postal mail address.
70068
70069         Sync from coreutils.
70070         * modules/unlinkdir: New file.
70071         * modules/yesno (Depends-on): Add getline.
70072         * MODULES.html.sh (File system functions): Add unlinkdir.
70073
70074 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70077         lib/strsep.h:
70078         Change the initial comment to refer to GPL, not LGPL.
70079         gnulib-tool will change it to LGPL as needed.
70080
70081         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70082         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70083         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70084         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70085         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70086         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70087         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70088         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70089         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70090         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70091         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70092         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70093         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70094         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70095         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70096         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70097         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70098         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70099         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70100         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70101         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70102         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70103         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70104         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70105         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70106         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70107         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70108         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70109         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70110         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70111         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70112         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70113         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70114         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70115         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70116         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70117         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70118         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70119         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70120         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70121         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70122         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70123         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70124         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70125         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70126         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70127         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70128         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70129         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70130         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70131         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70132         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70133         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70134         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70135         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70136         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70137         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70138         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70139         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70140         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70141         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70142         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70143         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70144         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70145         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70146         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70147         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70148         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70149         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70150         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70151         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70152         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70153         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70154         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70155         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70156         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70157         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70158         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70159         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70160         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70161         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70162         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70163         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70164         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70165         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70166         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70167         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70168         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70169         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70170         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70171         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70172         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70173         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70174         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70175         lib/yesno.c, lib/yesno.h:
70176         Update FSF postal mail address.
70177
70178 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70179
70180         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70181         tests/test-memmem.c, tests/test-stpncpy.c:
70182         Update FSF postal mail address.
70183
70184 2005-05-13  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70187         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70188         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70189         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70190         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70191         Add support for 64-bit integers in the MSVC compiler.
70192
70193 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70194
70195         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70196
70197 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70198
70199         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70200
70201 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70202
70203         * doc/getdate.texi (General date syntax): Don't say that date
70204         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70205         Problem reported by Nic Ferrier.
70206
70207 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70208
70209         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70210         specified in ai_socktype. Fix invalid ai_protocol
70211         check. ai_protocol is usually set to 0 or depending on
70212         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70213         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70214         ai_socktype / ai_protocol in the returned addrinfo structure.
70215
70216 2005-05-10  Simon Josefsson  <jas@extundo.com>
70217
70218         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70219         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70220
70221 2005-05-10  Karl Berry  <karl@gnu.org>
70222
70223         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70224         (from http://www.gnu.org/licenses).
70225         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70226         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70227         fdl.texi suffices.
70228
70229 2005-05-10  Karl Berry  <karl@gnu.org>
70230
70231         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70232         (COPYING.DOC): remove.
70233
70234         * config/srclist-update: new FSF address.
70235
70236 2005-05-10  Derek Price  <derek@ximbiot.com>
70237
70238         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70239         possible.
70240
70241 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70242             Bruno Haible  <bruno@clisp.org>
70243
70244         * modules/inet_ntop: New file.
70245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70246         inet_ntop.
70247
70248 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70249             Bruno Haible  <bruno@clisp.org>
70250
70251         * m4/inet_ntop.m4: New file.
70252
70253 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70254             Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/inet_ntop.h: New file.
70257         * lib/inet_ntop.c: New file, from glibc with modifications.
70258
70259 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70260
70261         * modules/time_r (License): Change to LGPL.
70262         * modules/extensions (License): Change to LGPL.  Actually,
70263         the license is more permissive than that, but currently gnulib-tool
70264         doesn't know how to handle more-permissive licenses.
70265
70266         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70267         Problem reported by Dave Love.
70268
70269 2005-05-08  Jim Meyering  <jim@meyering.net>
70270
70271         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70272         blank.
70273
70274 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70275
70276         * modules/argmatch (Depends-on): Add stdbool.
70277         * modules/backupfile (Depends-on): Likewise.
70278         * modules/chdir-long (Depends-on): Likewise.
70279         * modules/closeout (Depends-on): Likewise.
70280         * modules/cycle-check (Depends-on): Likewise.
70281         * modules/dirname (Depends-on): Likewise.
70282         * modules/fnmatch (Depends-on): Likewise.
70283         * modules/fsusage (Depends-on): Likewise.
70284         * modules/fwriteerror (Depends-on): Likewise.
70285         * modules/getcwd (Depends-on): Likewise.
70286         * modules/getloadavg (Depends-on): Likewise.
70287         * modules/hard-locale (Depends-on): Likewise.
70288         * modules/makepath (Depends-on): Likewise.
70289         * modules/mountlist (Depends-on): Likewise.
70290         * modules/nanosleep (Depends-on): Likewise.
70291         * modules/posixtm (Depends-on): Likewise.
70292         * modules/quotearg (Depends-on): Likewise.
70293         * modules/readtokens (Depends-on): Likewise.
70294         * modules/readtokens0 (Depends-on): Likewise.
70295         * modules/readutmp (Depends-on): Likewise.
70296         * modules/save-cwd (Depends-on): Likewise.
70297         * modules/strftime (Depends-on): Likewise.
70298         * modules/userspec (Depends-on): Likewise.
70299         * modules/utimecmp (Depends-on): Likewise.
70300         * modules/xgetcwd (Depends-on): Likewise.
70301         * modules/xnanosleep (Depends-on): Likewise.
70302         * modules/xstrtod (Depends-on): Likewise.
70303         * modules/yesno (Depends-on): Likewise.
70304
70305 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70308         needless checks.
70309
70310 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70311
70312         Merge from coreutils.  Among other things,
70313         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70314         * lib/fd-safer.c: New file.
70315         * lib/fcntl-safer.h, open-safer.c: Remove.
70316         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70317         * lib/dup-safer.c: Include unistd-safer.h first.
70318         Don't include errno.h.
70319         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70320         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70321         * lib/file-type.c: Rely on file-type.h change.
70322         * lib/getloadavg.c: Include unistd-safer.h.
70323         (getloadavg): Use safer open.
70324         * lib/getusershell.c: Include "stdio-safer.h".
70325         (getusershell): Use safer fopen.
70326         * lib/long-options.c (long_options): Use NULL rather than 0.
70327         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70328         'free'.
70329         * lib/modechange.c: Likewise.
70330         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70331         (MODE_DONE): New constant.
70332         (struct mode_change): Remove 'next' member.
70333         (make_node_op_equals): New function; like the old one of the
70334         same name, except it allocates an array.
70335         (mode_compile, mode_create_from_ref): Use it.
70336         (mode_compile): Allocate result as an array, not a linked list.
70337         Parse octal string ourself, so that we catch mistakes like "+0".
70338         (mode_adjust): Arg is an array, not a linked list.
70339         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70340         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70341         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70342         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70343         Remove.  This is now stat-macros.h's job.
70344         (talloc): Remove.  All callers replaced by xalloc, so that
70345         our invokers don't have to worry about reporting memory failures.
70346         (make_node_op_equals): Remove.
70347         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70348         New constants.
70349         (struct mode_change): Moved here from modechange.h.
70350         (mode_append_entry): Remove.
70351         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70352         apps to have incorrect behavior.  Use simpler algorithm for head
70353         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70354         Detect more invalid usages rather than having somewhat-random behavior.
70355         Don't insert an "a=" action, as that leads to incorrect behavior.
70356         (mode_compile, mode_create_from_ref): Return NULL on error instead
70357         of an enum, since now there's only one way to have an error.  All
70358         callers changed.
70359         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70360         at the correct time.  Simplify calculation of "+u" and its ilk.
70361         Don't mishandle "+X".
70362         (mode_free): Remove "register" and localize decls.
70363         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70364         (struct mode_change): Move to modechange.c; callers don't
70365         need to see this stuff.
70366         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70367         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70368         (mode_change, mode_adjust): Reflect the new signatures noted above.
70369         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70370         that might redefine system include files.
70371         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70372         (my_usleep): Use NULL rather than (void *) 0.
70373         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70374         Use siginterrupt to specify that system calls should be interrupted.
70375         (rpl_nanosleep): Move initialization of suspended closer to call of
70376         my_usleep.
70377         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70378         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70379         (desirable_utmp_entry): New function.
70380         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70381         using x2nrealloc, to simplify logic.
70382         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70383         size calculation.  Do not assume utmp file is a regular file.
70384         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70385         (READ_UTMP_CHECK_PIDS): New constant.
70386         * lib/save-cwd.c: Include unistd-safer.h.
70387         (save_cwd): Use fd_safer.
70388         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70389         [!_LIBC] Include "stat-macros.h" instead.
70390         * lib/unistd-safer.h (fd_safer): New decl.
70391
70392 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70393
70394         * modules/getloadavg (Depends-on): Add unistd-safer.
70395         * modules/getusershell (Depends-on): Add stdio-safer.
70396         * modules/lstat (Depends-on): Remove xalloc.
70397         * modules/mkstemp (Depends-on): Add stat-macros.
70398         * modules/modechange (Depends-on): Remove xstrtol.
70399         Add stat-macros, xalloc.
70400         * modules/save-cwd (Depends-on): Add unistd-safer.
70401         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70402         * modules/unistd-safer (Files): Add lib/fd-safer.c
70403         (Makefile.am): Remove lib_SOURCES.
70404
70405         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70406         Remove fcntl-safer; unistd-safer supersedes it.
70407
70408 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70409
70410         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70411         AC_HEADER_STAT.
70412         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70413         (gl_PREREQ_CHOWN): Remove.
70414         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70415         it.  Don't require AC_HEADER_STAT.
70416         (gl_PREREQ_LSTAT): Remove.
70417         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70418         Don't require AC_HEADER_STAT.
70419         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70420         (gl_PREREQ_RMDIR): Remove.
70421         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70422         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70423         the stat-macros module a prerequisite.
70424         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70425         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70426         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70427         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70428         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70429         variable names.
70430         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70431         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70432         variable prefixes.
70433         * m4/fcntl-safer.m4: Remove.
70434         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70435         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70436         Invoke gl_PREREQ_FD_SAFER.
70437         (gl_PREREQ_FD_SAFER): New macro.
70438         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70439         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70440         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70441         Remove duplicate call to AC_LIBOBJ(readutmp).
70442         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70443
70444         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70445         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70446
70447 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * MODULES.html.sh (Misc): Add byteswap.
70450
70451 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70452
70453         * modules/getcwd (Depends-on): Add extensions.
70454         * modules/openat (Depends-on): Likewise.
70455
70456 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70457
70458         * modules/byteswap: New file.
70459
70460 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70461
70462         * m4/byteswap.m4: New file.
70463
70464 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70465
70466         * lib/byteswap_.h: New file.
70467
70468 2005-04-25  Karl Berry  <karl@gnu.org>
70469
70470         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70471
70472 2005-04-25  Albert Chin  <china@thewrittenword.com>
70473
70474         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70475         Toolkit C bug.
70476
70477 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70478
70479         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70480         (func_ln_if_changed): Remove forcibly for no error message
70481         in case file does not exist.
70482
70483 2005-04-19  Simon Josefsson  <jas@extundo.com>
70484
70485         * gnulib-tool (Options): Make --symlink mean --symbolic.
70486
70487 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70488
70489         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70490
70491 2005-04-16  Simon Josefsson  <jas@extundo.com>
70492
70493         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70494
70495 2005-04-15  Simon Josefsson  <jas@extundo.com>
70496
70497         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70498
70499 2005-04-15  Simon Josefsson  <jas@extundo.com>
70500
70501         * gnulib-tool: Rename --symlink to --symbolic.
70502
70503 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70504
70505         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70506         symbolic links to files instead of copying/moving.  Add --aux-dir,
70507         specifying directory relative --dir where auxiliary build tools
70508         are placed.
70509
70510 2005-04-14  Bruno Haible  <bruno@clisp.org>
70511
70512         * modules/allocsa (License): Change to LGPL.
70513         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70514
70515 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70518         that "UTC +1 second" continues to work.  Problem reported
70519         by Dmitry V. Levin.
70520         (relunit_snumber): New rule.
70521         (relunit): Use it.
70522
70523 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70524
70525         * lib/getdate.y (universal_time_zone_table): New constant.
70526         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70527         universal_time_zone_table.
70528         (lookup_zone): Prefer universal_time_zone_table to
70529         local_time_zone_table, so that "GMT" time stamps are allowed in
70530         London during the summer.  Problem reported by Ian Abbott.
70531
70532 2005-04-12  Jim Meyering  <jim@meyering.net>
70533
70534         * lib/human.c (humblock): Set *options even when returning due to
70535         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70536         warning from gcc-4.
70537
70538 2005-04-09  Jim Meyering  <jim@meyering.net>
70539
70540         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70541         -Wuninitialized: initialize tm0.tm_year.
70542
70543 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70544
70545         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70546         count, since there's no maximum.  All uses changed.
70547         Add member dsts_seen.
70548         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70549         not being INT_MAX.
70550         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70551         Use pc_rels_seen to decide whther a date is absolute.
70552
70553         * lib/getdate.y (number): Don't overwrite year.
70554         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70555         check.
70556
70557 2005-04-02  Simon Josefsson  <jas@extundo.com>
70558
70559         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70560         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70561
70562 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70563
70564         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70565         where no absolute path name can be longer than PATH_MAX.
70566
70567 2005-03-27  Jim Meyering  <jim@meyering.net>
70568
70569         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70570
70571 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70574         "one's complement" -> "ones' complement" in comment, as per Knuth.
70575         "value of type" -> "type or expression" in comment.
70576         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70577
70578 2005-03-26  Jim Meyering  <jim@meyering.net>
70579
70580         Comment nits.
70581         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70582         Correct typos: s/or/of/.
70583
70584 2005-03-26  Jim Meyering  <jim@meyering.net>
70585
70586         * modules/check-include-files: Move to ../ and rename to...
70587         * check-module: ...this.
70588
70589 2005-03-25  Jim Meyering  <jim@meyering.net>
70590
70591         * modules/xvasprintf (Files): Add xalloc.h.
70592
70593 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         * modules/gettext (Files): config/config.rpath ->
70596         build-aux/config.rpath
70597         * modules/iconv (Files): Likewise.
70598         Problem reported by Oskar Liljeblad.
70599
70600 2005-03-23  Jim Meyering  <jim@meyering.net>
70601
70602         * modules/check-include-files: New script to check for
70603         missing dependencies, multiple includes, etc.
70604
70605         * modules/c-strtold (Depends-on): Add xalloc.
70606         * modules/c-strtod (Depends-on): Add xalloc.
70607         * modules/hash (Depends-on): Add xalloc.
70608         (Files): Remove lib/xalloc.h.
70609
70610         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70611         * modules/userspec (Files): Add lib/inttostr.h.
70612
70613 2005-03-23  Jim Meyering  <jim@meyering.net>
70614
70615         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70616
70617 2005-03-22  Jim Meyering  <jim@meyering.net>
70618
70619         * modules/stat-macros: New module.
70620         * modules/canonicalize, modules/euidaccess, modules/file-type,
70621         * modules/filemode, modules/lchown, modules/makepath,
70622         * modules/rmdir, modules/stat: Depend on new stat-macros module
70623         rather than listing lib/stat-macros.h manually.
70624         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70625
70626 2005-03-22  Jim Meyering  <jim@meyering.net>
70627
70628         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70629
70630 2005-03-22  Bruno Haible  <bruno@clisp.org>
70631
70632         * config/srclist.txt: Replace target directory 'config' with
70633         'build-aux'.
70634         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70635         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70636         ../build-aux/.
70637
70638 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70639
70640         * modules/chdir-long (Depends-on): Add mempcpy.
70641
70642         * modules/acl, modules/backupfile, modules/c-strtod,
70643         modules/c-strtold, modules/canon-host, modules/canonicalize,
70644         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70645         modules/exclude, modules/exitfail, modules/file-type,
70646         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70647         modules/getdate, modules/getline, modules/getpagesize,
70648         modules/getpass, modules/getugroups, modules/group-member,
70649         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70650         modules/inttostr, modules/long-options, modules/makepath,
70651         modules/md5, modules/memcasecmp, modules/memcoll,
70652         modules/modechange, modules/mountlist, modules/path-concat,
70653         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70654         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70655         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70656         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70657         modules/strftime, modules/strndup, modules/strverscmp,
70658         modules/timespec, modules/unlocked-io, modules/userspec,
70659         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70660         modules/yesno:
70661         Remove lib_SOURCES line from Makefile.am section, as this is now
70662         done automatically by the corresponding Autoconf macro.
70663
70664 2005-03-21  Jim Meyering  <jim@meyering.net>
70665
70666         Changes imported from coreutils.
70667
70668         * lib/cycle-check.c: Don't include xalloc.h.
70669
70670         * lib/path-concat.c: Don't include assert.h.
70671         (path_concat): Remove assertion that would have triggered
70672         for ABASE starting with more than one slash.
70673         Reported by Andreas Schwab.
70674
70675         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70676         properly when ABASE is an absolute file name.
70677         Correct the description of this function.
70678         Include <assert.h>.
70679         Add an assertion and a test driver.
70680         This fixes a bug introduced on 2004-07-02.
70681         Andreas Schwab reported the resulting failure of cp --parents:
70682         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70683
70684 2005-03-21  Jim Meyering  <jim@meyering.net>
70685
70686         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70687         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70688
70689 2005-03-21  Jim Meyering  <jim@meyering.net>
70690         and  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70693         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70694         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70695         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70696         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70697         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70698         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70699         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70700         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70701         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70702         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70703         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70704         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70705         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70706         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70707         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70708         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70709         for these modules.
70710
70711 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70714         (which shouldn't happen), generate nothing instead of returning 0
70715         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70716
70717 2005-03-16  Bruno Haible  <bruno@clisp.org>
70718
70719         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70720         HAVE_LONGLONG_64BIT.
70721
70722 2005-03-16  Bruno Haible  <bruno@clisp.org>
70723
70724         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70725         HAVE_LONGLONG_64BIT.
70726
70727 2005-03-16  Bruno Haible  <bruno@clisp.org>
70728
70729         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70730         HAVE_LONGLONG_64BIT.
70731
70732 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70735         reliably distinguish strftime failure from empty output on POSIX
70736         hosts.
70737
70738 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70741         (iconv_string): Don't guess a size-zero buffer, as that might cause
70742         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70743         result would be 'too large', where 'too large' is (heuristically)
70744         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70745         overflow concerns.  This will prevent some unwanted malloc failures
70746         when the inputs are very large.
70747
70748 2005-03-15  Karl Berry  <karl@gnu.org>
70749
70750         * config/srclist.txt (config.rpath): from gettext.
70751         * config/config.rpath: update.
70752
70753 2005-03-15  Bruno Haible  <bruno@clisp.org>
70754
70755         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70756         to 'negate'.
70757
70758         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70759         variable.
70760
70761         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70762         results.
70763
70764 2005-03-14  Simon Josefsson  <jas@extundo.com>
70765
70766         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70767         <fx@gnu.org>.
70768
70769 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70770
70771         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70772         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70773         intprops.h.
70774         * lib/strtol.c: Likewise.
70775
70776 2005-03-14  Jim Meyering  <jim@meyering.net>
70777
70778         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70779         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70780         to be nonzero so that we (and caller) can detect the difference
70781         between a valid zero-length expansion and an error return, even
70782         when the underlying strftime fails before writing anything into
70783         that location.
70784
70785 2005-03-14  Bruno Haible  <bruno@clisp.org>
70786
70787         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70788         Update from GNU gettext 0.14.3.
70789
70790 2005-03-10  Jim Meyering  <jim@meyering.net>
70791
70792         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70793
70794 2005-03-10  Jim Meyering  <jim@meyering.net>
70795
70796         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70797         so that this module works on systems without fchdir.
70798
70799 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         Factor int-properties macros into a single file, except for
70802         glibc-related files.
70803         * lib/intprops.h: New file.
70804         * lib/getloadavg.c: Include it instead of limits.h.
70805         (INT_STRLEN_BOUND): Remove.
70806         * lib/human.c: Include intprops.h.
70807         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70808         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70809         302/1000.
70810         * lib/inttostr.h: Include intprops.h instead of limits.h.
70811         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70812         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70813         for consistency with intprops.h.
70814         (time_t_is_integer, twos_complement_arithmetic): Use them.
70815         * lib/sig2str.h: Include <signal.h>, intprops.h.
70816         (INT_STRLEN_BOUND): Remove.
70817         * lib/strftime.c (TYPE_SIGNED): Remove.
70818         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70819         * lib/strtol.c: Adjust comments to match intprops.h.
70820         * lib/userspec.c: Include intprops.h.
70821         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70822         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70823         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70824         instead of rolling our own expressions.
70825         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70826
70827         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70828         instead of int.
70829         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70830         the right thing even if adding 1900 would overflow.  Similarly
70831         for tm_mon + 1 and tm_yday + 1.
70832         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70833         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70834         (DO_SIGNED_NUMBER): New macro.
70835         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70836
70837 2005-03-07  Bruno Haible  <bruno@clisp.org>
70838
70839         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70840
70841 2005-03-07  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70844
70845 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70846
70847         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70848         (func_import): Only replace files via --import when they have actually
70849         changed.
70850
70851 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70852
70853         * m4/mmap-anon.m4: New file.
70854         * m4/pagealign_alloc.m4: New file.
70855
70856 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70857             Bruno Haible  <bruno@clisp.org>
70858
70859         * modules/pagealign_alloc: New file.
70860         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70861
70862 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70863             Bruno Haible  <bruno@clisp.org>
70864
70865         * lib/pagealign_alloc.h: New file.
70866         * lib/pagealign_alloc.c: New file.
70867
70868 2005-03-03  Bruno Haible  <bruno@clisp.org>
70869
70870         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70871         Use an all-permissive copyright notice, recommended by RMS.
70872
70873 2005-03-02  Bruno Haible  <bruno@clisp.org>
70874
70875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70876         of AIX, the replacement has to be done only after <string.h> is
70877         included, therefore not in config.h. stpncpy.h does the replacement,
70878         and stpncpy.c uses it.
70879
70880 2005-03-02  Bruno Haible  <bruno@clisp.org>
70881
70882         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70883         stpncpy.c uses it.
70884
70885 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70888         The workaround isn't strictly needed for POSIX conformance, and
70889         it's too much of a pain to configure and maintain.  We'll ask
70890         people to fix their kernels instead.
70891         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70892         (NANOSLEEP_BUG_WORKAROUND): Remove.
70893         (xnanosleep): Remove the workaround.
70894
70895 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70898         Reported by Derek Price.
70899         (Include): Add "timespec.h".
70900
70901         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70902
70903 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70906         to detect nanosleep bug.
70907
70908 2005-03-01  Bruno Haible  <bruno@clisp.org>
70909
70910         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70911
70912 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70913
70914         * modules/gethrxtime: New file.
70915         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70916         (Depends-on): Add gethrxtime.
70917         (configure.ac): Add gl_XNANOSLEEP.
70918         (Makefile.am): Remove lib_SOURCES line.
70919
70920 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70923         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70924
70925 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70926
70927         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70928         * lib/timespec.h (gettime): Return void, since it always
70929         succeeds now.  All uses changed.
70930         * lib/gettime.c (gettime): Likewise.
70931         [HAVE_NANOTIME]: Prefer nanotime.
70932         Assume gettimeofday succeeds, as POSIX requires.
70933         Assime time () succeeds, since other code already does.
70934         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70935         (timespec_subtract): Remove.
70936         (NANOSLEEP_BUG_WORKAROUND): New constant.
70937         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70938         things considerably.  Use it only on GNU/Linux hosts, since the
70939         workaround shouldn't be needed elsewhere.
70940
70941 2005-02-24  Bruno Haible  <bruno@clisp.org>
70942
70943         * modules/gettext (Files): Add m4/glibc2.m4.
70944
70945 2005-02-24  Bruno Haible  <bruno@clisp.org>
70946
70947         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70948         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70949         * m4/progtest.m4:
70950         Update from GNU gettext 0.14.2.
70951         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70952
70953 2005-02-24  Bruno Haible  <bruno@clisp.org>
70954
70955         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70956         * lib/config.charset: Update from GNU gettext 0.14.2.
70957
70958 2005-02-24  Bruno Haible  <bruno@clisp.org>
70959
70960         * lib/gettext.h: Update from GNU gettext 0.14.2.
70961
70962 2005-02-23  Simon Josefsson  <jas@extundo.com>
70963
70964         * m4/iconvme.m4: New file.
70965
70966 2005-02-23  Jim Meyering  <jim@meyering.net>
70967
70968         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70969         change.
70970         Thanks to Bruno Haible for catching it.
70971
70972 2005-02-22  Simon Josefsson  <jas@extundo.com>
70973
70974         * modules/iconvme: New file.
70975
70976         * MODULES.html.sh: Add iconvme.
70977
70978 2005-02-22  Simon Josefsson  <jas@extundo.com>
70979
70980         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70981
70982 2005-02-22  Simon Josefsson  <jas@extundo.com>
70983
70984         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70985
70986 2005-02-22  Jim Meyering  <jim@meyering.net>
70987
70988         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70989         s/ifndef/ifdef/.
70990
70991 2005-02-20  Neil Conway  <neilc@samurai.com>
70992
70993         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70994         returned by OSX/Darwin if the specified buffer is not large
70995         enough for the hostname.
70996
70997 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70998
70999         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71000         pass it to _help, otherwise the latter coredumps trying to
71001         dereference state.root_argp.
71002
71003 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         * modules/chdir-long (Depends-on): Add memrchr.
71006         * modules/memrchr (Files): Add lib/memrchr.h.
71007         (Include): "memrchr.h".
71008
71009 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71010
71011         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71012
71013 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71014
71015         * lib/memrchr.h: New file.
71016         * lib/chdir-long.c: Include it.
71017         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71018         Don't bother including stddef.h.
71019
71020 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71021
71022         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71023         inclusion.
71024         Include <sys/types.h>, for dev_t.
71025         (ME_DUMMY, ME_REMOTE): Move from here....
71026         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71027         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71028         Dmitry V. Levin.
71029         Include mountlist.h first, to test the interface.
71030
71031 2005-01-29  Bruno Haible  <bruno@clisp.org>
71032
71033         * lib/progname.c (program_name): Initialize.
71034         Needed when linking statically on MacOS X.
71035
71036 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         Sync from coreutils.
71039         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71040         (Depends-on): Add c-strtod.
71041         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71042
71043 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         Sync from coreutils.
71046         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71047
71048         Remove files that are specific to coreutils.
71049         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71050
71051 2005-01-28  Bruno Haible  <bruno@clisp.org>
71052
71053         * modules/javacomp: New file.
71054         * MODULES.html.sh (Java): Add javacomp.
71055
71056 2005-01-28  Bruno Haible  <bruno@clisp.org>
71057
71058         * m4/javacomp.m4: New file, from GNU gettext.
71059
71060 2005-01-28  Bruno Haible  <bruno@clisp.org>
71061
71062         * lib/javacomp.sh.in: New file, from GNU gettext.
71063         * lib/javacomp.h: New file, from GNU gettext.
71064         * lib/javacomp.c: New file, from GNU gettext.
71065
71066 2005-01-26  Simon Josefsson  <jas@extundo.com>
71067
71068         * lib/gai_strerror.c: Use GPL in header.
71069
71070 2005-01-26  Bruno Haible  <bruno@clisp.org>
71071
71072         * modules/javaexec: New file.
71073         * MODULES.html.sh (Java): Add javaexec.
71074
71075 2005-01-26  Bruno Haible  <bruno@clisp.org>
71076
71077         * m4/javaexec.m4: New file, from GNU gettext.
71078
71079 2005-01-26  Bruno Haible  <bruno@clisp.org>
71080
71081         * lib/javaexec.sh.in: New file, from GNU gettext.
71082         * lib/javaexec.h: New file, from GNU gettext.
71083         * lib/javaexec.c: New file, from GNU gettext.
71084
71085 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71086
71087         * modules/lchown (Depends-on): Remove lchown.h
71088
71089 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71090
71091         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71092         must be defined if the header file was not found, in order
71093         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71094
71095 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71096
71097         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71098         initializers for struct pentry_state.
71099         (__argp_error): Check return value of __asprintf
71100         (__argp_failure): Translate error message
71101
71102         * lib/argp-parse.c: Removed braces around the expansion of N_()
71103
71104 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71107         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71108         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71109         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71110         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71111         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71112         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71113         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71114         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71115         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71116         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71117         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71118         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71119         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71120         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71121         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71122         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71123         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71124         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71125         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71126         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71127         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71128         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71129         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71130         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71131         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71132         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71133         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71134         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71135         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71136         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71137         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71138         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71139         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71140         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71141         Use an all-permissive copyright notice, recommended by RMS.
71142
71143 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         * modules/chdir-long (Depends-on): Remove mempcpy.
71146
71147 2005-01-21  Jim Meyering  <jim@meyering.net>
71148
71149         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71150         same value as for Solaris 9.
71151
71152         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71153         component length.  This included changing the parameter to be
71154         of type `char *' rather than `char const *'.
71155         * lib/chdir-long.h (chdir_long): Update prototype.
71156
71157         * lib/openat.c (fdopendir, fstatat): New functions.
71158         * lib/openat.h: Include headers required for use of DIR and struct
71159         stat.
71160         [AT_SYMLINK_NOFOLLOW]: Define.
71161         (fdopendir, fstatat): Add prototypes.
71162
71163 2005-01-21  Bruno Haible  <bruno@clisp.org>
71164
71165         * modules/classpath: New file.
71166         * MODULES.html.sh (Java): Add classpath.
71167
71168 2005-01-21  Bruno Haible  <bruno@clisp.org>
71169
71170         * lib/classpath.h: New file, from GNU gettext.
71171         * lib/classpath.c: New file, from GNU gettext.
71172
71173 2005-01-20  Simon Josefsson  <jas@extundo.com>
71174
71175         * modules/version-etc-fsf: New file.
71176
71177 2005-01-20  Simon Josefsson  <jas@extundo.com>
71178
71179         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71180         * lib/version-etc.c: Remove version_etc_copyright.
71181         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71182         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71183
71184 2005-01-20  Simon Josefsson  <jas@extundo.com>
71185
71186         * lib/base64.h (isbase64): Add.
71187
71188         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71189         using a unsigned prototype, don't inline.
71190         (base64_decode): Use it.
71191
71192 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71193
71194         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71195         it.
71196
71197 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71198
71199         * lib/save-cwd.c (save_cwd): Remove code to support the case
71200         where fchdir is missing or flaky.
71201
71202 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71203
71204         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71205
71206 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71209         AC_LIBSOURCES now does this.
71210         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71211         with new ullong_max module.
71212
71213 2005-01-19  Bruno Haible  <bruno@clisp.org>
71214
71215         * modules/sh-quote: New file.
71216         * MODULES.html.sh (Executing programs): Add sh-quote.
71217
71218 2005-01-19  Bruno Haible  <bruno@clisp.org>
71219
71220         * lib/sh-quote.h: New file, from GNU gettext.
71221         * lib/sh-quote.c: New file, from GNU gettext.
71222
71223 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         Merge from coreutils.
71226         * m4/ullong_max.m4: New file.
71227         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71228         (gl_MACROS): Assume localeconv exists.
71229
71230 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         Merge changes from coreutils, as described below in several
71233         changelogs dated today.
71234
71235         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71236         (O_DIRECTORY): Remove; not needed here, since "." must be
71237         a directory.  All uses removed.
71238         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71239         universal on Suns, and we also need to test for IRIX.
71240         Revamp code to use 'if' rather than '#if'.
71241         Avoid unnecessary comparison of cwd->desc to 0.
71242
71243         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71244         for known valid error numbers rather than observed invalid ones.
71245
71246 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71247
71248         * modules/ullong_max: New file.
71249
71250         * modules/chdir-long, modules/openat: New files.
71251         * modules/save-cwd (Depends-on): Depend on chdir-long.
71252         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71253
71254 2005-01-18  Jim Meyering  <jim@meyering.net>
71255
71256         Merge from coreutils.
71257         * m4/chdir-long.m4, m4/openat.m4: New files.
71258         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71259         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71260         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71261         is sane and DOES follow symlinks.  Besides, testing 20 different
71262         systems found no broken chown implementations.
71263         Prompted by a change in rsync's copy of this macro.
71264         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71265
71266         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71267
71268         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71269         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71270         NULL-means-set-to-current-time semantics.
71271         Remove temporary file immediately, rather than waiting
71272         for configure's at-exit trap code to do it.
71273
71274 2005-01-18  Jim Meyering  <jim@meyering.net>
71275
71276         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71277
71278         * lib/utimens.c (futimens): Account for the fact that futimes
71279         can also fail with errno == ENOSYS or errno == ENOENT.
71280         Patch from Dmitry V. Levin.
71281
71282         Change the name of the robust chdir function from chdir to chdir_long.
71283         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71284         (restore_cwd): Use chdir_long, not chdir.
71285         * lib/chdir-long.c: Renamed from chdir.c.
71286         * lib/chdir-long.h: Renamed from chdir.h.
71287         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71288         Hurd.
71289
71290 2005-01-18  Bruno Haible  <bruno@clisp.org>
71291
71292         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71293         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71294         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71295         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71296         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71297         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71298         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71299         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71300         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71301         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71302         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71303         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71304         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71305         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71306         Use an all-permissive copyright notice, recommended by RMS.
71307
71308 2005-01-18  Bob Proulx  <bob@proulx.com>
71309
71310         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71311         simplify offsetof() macro construct to avoid compile failure with
71312         native HP-UX 11.0 ANSI C compiler.
71313
71314 2005-01-17  Bruno Haible  <bruno@clisp.org>
71315
71316         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71317         redundant because stpncpy.m4 takes care of it.
71318
71319 2005-01-17  Bruno Haible  <bruno@clisp.org>
71320
71321         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71322
71323 2005-01-17  Bruno Haible  <bruno@clisp.org>
71324
71325         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71326         used.
71327
71328 2005-01-17  Bruno Haible  <bruno@clisp.org>
71329
71330         * lib/fwriteerror.h (fwriteerror): Change specification to include
71331         fclose.
71332         * lib/fwriteerror.c: Include <stdbool.h>.
71333         (fwriteerror): At the end, close the file stream. Record whether
71334         stdout was already closed.
71335
71336 2005-01-17  Bruno Haible  <bruno@clisp.org>
71337
71338         * lib/execute.c (environ): Declare if needed.
71339         * lib/pipe.c (environ): Likewise.
71340         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71341
71342 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71343
71344         * modules/argp: Depend on vsnprintf
71345
71346 2005-01-10  Jim Meyering  <jim@meyering.net>
71347
71348         * modules/closeout (Depends-on): Add atexit.
71349
71350 2005-01-06  Bruno Haible  <bruno@clisp.org>
71351
71352         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71353
71354 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71355
71356         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71357         definitions to be after all include files, to avoid collisions.
71358         Problem reported by Bob Proulx.
71359
71360 2005-01-04  Jim Meyering  <jim@meyering.net>
71361
71362         Changes imported from coreutils.
71363         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71364         as the mkstemp template, use a temporary directory and an
71365         8.3-friendly template to avoid trouble on systems like DJGPP.
71366         Reported by Juan M. Guerrero via Stepan Kasal.
71367         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71368         close. Remove the temporary directory right away, rather than waiting
71369         for configure's at-exit trap code to do it.
71370         Suggestion from Stepan Kasal.
71371
71372 2005-01-01  Simon Josefsson  <jas@extundo.com>
71373
71374         * gnulib-tool: Print #include directives when --import'ing.
71375
71376 2004-12-28  Simon Josefsson  <jas@extundo.com>
71377
71378         * tests/test-base64.c: Include required header files.  Remove
71379         unused variables.
71380
71381 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         * modules/error (Depends-on): Remove gettext.
71384
71385 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71386
71387         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71388         not needed.  This removes a dependency on the gettext module.
71389         [defined _LIBC]: Do not include <libintl.h>; not needed.
71390
71391 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71394         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71395
71396 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71399         HAVE_DECL_STRTOLD.
71400
71401 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71402
71403         * modules/getdate (Depends-on): Remove alloca-opt.
71404
71405 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71408
71409 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * lib/argp-parse.c: Include <stddef.h>.
71412         (alignof, alignto): New macros.
71413         (parser_init): Don't assume that void * is aligned sufficiently
71414         for struct option.
71415
71416         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71417         need to extend the stack.
71418         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71419         large.
71420
71421 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71422
71423         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71424
71425 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71426
71427         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71428         (2004-10-24) change.  Apparently this was a false alarm.
71429
71430         * modules/getdate: Depend on alloca-opt, not alloca.
71431
71432 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71433
71434         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71435         Remove now-obsolete comment about AIX.
71436         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71437         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71438         (YYMAXDEPTH): New macro.
71439
71440 2004-12-18  Simon Josefsson  <jas@extundo.com>
71441
71442         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71443
71444 2004-12-18  Bruno Haible  <bruno@clisp.org>
71445
71446         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71447
71448 2004-12-18  Bruno Haible  <bruno@clisp.org>
71449
71450         * lib/fatal-signal.c (fatal_signals): Make non-const.
71451         (init_fatal_signals): New function.
71452         (uninstall_handlers, install_handlers): Ignore signals that were set to
71453         SIG_IGN.
71454         (at_fatal_signal): Call init_fatal_signals.
71455         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71456         SIG_IGN.
71457         Reported by Paul Eggert.
71458
71459 2004-12-18  Bruno Haible  <bruno@clisp.org>
71460
71461         * doc/alloca.texi: New file.
71462         * doc/alloca-opt.texi: New file.
71463
71464 2004-12-17  Jim Meyering  <jim@meyering.net>
71465
71466         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71467         Otherwise, install-sh could exit with improper exit status when
71468         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71469
71470 2004-12-16  Simon Josefsson  <jas@extundo.com>
71471
71472         * tests/test-base64.c: Add license.
71473
71474 2004-12-15  Stepan Kasal  <address@hidden>
71475
71476         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71477
71478 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71479
71480         * modules/getcwd (Files): Add m4/d-ino.m4.
71481         Suggested by Mark D. Baushke.
71482
71483 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71484
71485         * lib/getdate.y (textint): New member "negative".
71486         (time_zone_hhmm): New function.
71487         Expect 14 shift-reduce conflicts, not 13.
71488         (o_colon_minutes): New rule.
71489         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71490         (yylex): Set the "negative" member of signed numbers.
71491
71492 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * doc/getdate.texi (Time of day items, Time zone items):
71495         Describe new formats +00:00, UTC+00:00.
71496
71497 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71498
71499         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71500         spurious "-l"s.  Problem reported by Stepan Kasal.
71501
71502 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71505         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71506
71507 2004-12-04  Simon Josefsson  <jas@extundo.com>
71508
71509         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71510         Vandoorselaere <yoann@prelude-ids.org>.
71511
71512 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         Changes imported from coreutils.
71515         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71516         exist.
71517         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71518
71519 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         Changes imported from coreutils.
71522         * lib/hard-locale.c: Assume <locale.h> exists.
71523         Include "strdup.h".
71524         (GLIBC_VERSION): New macro.
71525         (hard_locale): Assume setlocale exists.
71526         Rewrite to avoid #ifdef.
71527         Use strdup rather than malloc + strcpy.
71528         * lib/human.c: Assume <locale.h> exists.
71529         (human_readable): Assume localeconv exists.
71530
71531 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * modules/hard-locale (Depends-on): Add strdup.
71534
71535 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71536
71537         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71538         convert T2, not T.  (Imported from libc.)
71539
71540 2004-11-30  Simon Josefsson  <jas@extundo.com>
71541
71542         * modules/restrict (License): Change to LGPL.
71543
71544 2004-11-30  Simon Josefsson  <jas@extundo.com>
71545
71546         * m4/restrict.m4: Add copyright and copying conditions.
71547
71548 2004-11-30  Simon Josefsson  <jas@extundo.com>
71549
71550         * m4/base64.m4: New file.
71551
71552 2004-11-30  Simon Josefsson  <jas@extundo.com>
71553
71554         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71555         base64.
71556
71557         * tests/test-base64.c: New file.
71558
71559         * modules/base64: New file.
71560
71561 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71564         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71565
71566         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71567
71568 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71571         (__getcwd.c): Don't restore errno; glibc doesn't.
71572         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71573         first, falling back to our code only if its results look suspicious.
71574         Ensure that the resulting buffer is only as large as necessary.
71575
71576         * lib/readutmp.c: Include readutmp.h first.
71577         Include <errno.h>, since readutmp.h no longer does that.
71578         * lib/readutmp.h: Don't include <errno.h>,
71579         <sys/param.h>, <time.h>; not needed to establish interface.
71580         (errno): Remove decl.
71581         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71582         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71583         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71584
71585 2004-11-28  Simon Josefsson  <jas@extundo.com>
71586
71587         * lib/base64.h, base64.c: New file.
71588
71589 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71592
71593 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71596         (Depends-on): Remove pathmax, same.  Add mempcpy.
71597         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71598         (Makefile.am): Append getcwd.h to lib_SOURCES.
71599         (Include): Add getcwd.h.
71600         (Maintainer): Change from Jim Meyering to "all, glibc",
71601         since getdate now uses intended-for-glibc code.
71602         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71603         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71604
71605 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71608         HP's ANSI C compiler.
71609         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71610         Declaring int functions causes warnings on some modern systems and
71611         shouldn't be needed to compile on ancient ones.
71612         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71613         defined.
71614
71615         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71616         with the following changes.
71617         (__set_errno): Parenthesize properly.
71618         Include <stdbool.h>.
71619         (MIN, MAX, MATCHING_INO): New macros.
71620         (__getcwd): Define with prototype, not K&R form.
71621         Use heuristics to allocate default buffer on stack if possible.
71622         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71623         behavior, and to avoid the PATH_MAX limit when computing
71624         ../../../../...
71625         Use MATCHING_INO to compare inode number to file.
71626         Check for arithmetic overflow in size calculations.
71627         Fix bug in reallocation of dot array that caused getcwd to fail
71628         on directories nested deeper than 75.
71629         Be more careful about saving errno on error.
71630         Do not use realloc; use only free+malloc, as this is a bit
71631         more flexible and avoids a needless copy operation.
71632         Do not inspect st_dev and st_ino for symbolic links; POSIX
71633         doesn't specify the latter.
71634         Check for closedir errors.
71635         Avoid needless casts.
71636         Use "#ifdef weak_alias" around weak_alias, to be like other
71637         glibc code.
71638         The following changes to getcwd.c have effect only when used in
71639         gnulib; they have no effect inside glibc proper.
71640         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71641         as alloca isn't used.
71642         (alloca, __alloca): Likewise.
71643         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71644         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71645         unconditionally, as gnulib assumes C89 or better.
71646         Do not include <sys/param.h>.
71647         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71648         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71649         better.
71650         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71651         Include <dirent.h> in a way that is compatible with modern Autoconf.
71652         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71653         New macros, if not already defined.
71654         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71655         Use "_LIBC", not "defined _LIBC", for consistency.
71656         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71657         a mempcpy module.
71658         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71659         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71660         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71661         credit only to Jim Meyering and adjust the copyright dates.
71662         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71663         <stdlib.h>, <unistd.h>, "pathmax.h".
71664         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71665         (INITIAL_BUFFER_SIZE): Remove.
71666         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71667
71668 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71671         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71672         Use the _ONCE methods, for efficiency.
71673         Check for fcntl.h.  In test program, include <errno.h>
71674         and <fcntl.h> if available.  Remove old K&R cruft from
71675         test program.  Check for common errors in GNU/Linux,
71676         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71677         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71678         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71679         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71680         name accordingly.
71681         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71682         accommodate new getcwd.c.
71683         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71684         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71685         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71686         that's all we need now.
71687
71688 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71689
71690         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71691         argp-parse.c depends on getopt internals, that means we should
71692         always use our getopt, to be on the safe side.
71693         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71694         order not to spoil the result of an eventual previous invocation
71695         of gl_GETOPT_SUBSTITUTE.
71696
71697 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71698
71699         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71700         redefinition warnings. To avoid them, include the defines
71701         in `#if !defined __need_getopt ... #endif'. The only place
71702         where __getopt_argv_const is used is in definitions
71703         of getopt_long and getopt_long_only below, which are as well
71704         protected by `#ifndef __need_getopt'.
71705         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71706         __need_getopt after including <stdio.h> and <unistd.h> These
71707         headers might have defined it.
71708
71709 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71710
71711         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71712
71713 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71716         (futimens): New function, which uses futimes if available.
71717         (futimens, utimens): Support timespec==NULL, with same semantics
71718         as utime and utimens.
71719         * lib/utimens.h (futimens): New decl.
71720
71721 2004-11-23  Jim Meyering  <jim@meyering.net>
71722
71723         * lib/getopt_.h: Remove trailing blanks.
71724
71725 2004-11-23  Jim Meyering  <jim@meyering.net>
71726
71727         * lib/__fpending.c: Add comment.
71728
71729 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * modules/canonicalize (Depends-on): Add xreadlink.
71732         Problem reported by James Youngman.
71733
71734 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71735
71736         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71737         New macros.
71738         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71739         optopt): Use them instead of invoking ## directly; otherwise, the
71740         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71741
71742 2004-11-19  Bruno Haible  <bruno@clisp.org>
71743
71744         * lib/strtok_r.c: Move comments from here...
71745         * lib/strtok_r.h: ... to here.
71746
71747 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71748
71749         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71750         implementations that mishandle size_t overflow.
71751
71752 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71755         might fail.  Problem reported by Yoann Vandoorselaere.
71756         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71757         implementations that mishandle size_t overflow.
71758
71759 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71760
71761         * modules/canon-host (Depends-on): Add strdup.
71762
71763 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71764
71765         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71766
71767 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * lib/canon-host.c: Include "strdup.h".
71770         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71771         Use strdup instead of malloc/strcpy to duplicate strings.
71772
71773         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71774         (human_space_before_unit): New constant.
71775         * lib/human.c (human_readable): Support it.
71776
71777         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71778         (xgetcwd): Set errno correctly when failing.
71779         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71780         the failure is actually due to a PATH_MAX problem.
71781
71782         Further getopt changes to make it more likely that glibc will
71783         buy the changes back.
71784         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71785         (getopt): Use it, so to preserve glibc semantic
71786         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71787         when compiling for libc.
71788         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71789         (getopt_long, getopt_long_only): Use it.
71790
71791         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71792         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71793         (getopt): Argv is now char * const *, as per standard.
71794         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71795         not char *__getopt_argv_const *.
71796         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71797         _getopt_long_only_r): Likewise.
71798         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71799         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71800         _getopt_long_r, _getopt_long_only_r): Likewise.
71801         * lib/getopt_.h (__getopt_argv_const): Remove.
71802         (getopt): Argv is now char * const *, as per standard.
71803
71804         * lib/getdate.y (tORDINAL): New token.
71805         (day, relunit): Allow it for relative times.
71806         (relative_time_table): Use tORDINAL for ordinals.
71807
71808 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71811         Document that "second" isn't allowed as an ordinal number.
71812
71813 2004-11-16  Jim Meyering  <jim@meyering.net>
71814
71815         * modules/closeout (Depends-on): Add fpending.
71816
71817 2004-11-15  Jim Meyering  <jim@meyering.net>
71818
71819         * lib/closeout.c: Include "__fpending.h" once again.
71820         Include <stdbool.h>.
71821         (close_stdout): Don't fail just because stdout was closed initially,
71822         since some programs don't write to stdout in the normal course of
71823         operation (other than --version and --help), and we don't want this
71824         function to make e.g. `touch file >&-' fail.
71825         But do fail if it was closed and someone has tried to write to it.
71826         E.g., `printf foo >&-' must fail.
71827
71828 2004-11-13  Jim Meyering  <jim@meyering.net>
71829
71830         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71831
71832 2004-11-12  Simon Josefsson  <jas@extundo.com>
71833
71834         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71835         small doc fix is still pending.
71836
71837 2004-11-11  Simon Josefsson  <jas@extundo.com>
71838
71839         * modules/strtok_r: New file.
71840
71841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71842         strtok_r.
71843
71844 2004-11-11  Simon Josefsson  <jas@extundo.com>
71845
71846         * m4/strtok_r.m4: New file.
71847
71848         * m4/getopt.m4: Replace opterr.
71849
71850 2004-11-11  Simon Josefsson  <jas@extundo.com>
71851
71852         * lib/strtok_r.h, strtok_r.c: New file.
71853
71854 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71857         of replacing opterr, getopt, etc.  This should handle the
71858         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71859
71860 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71863         we can stop lying to compilers about the constness of argv when we
71864         are compiled outside glibc.
71865         (getopt, getopt_long, getopt_long_only): Use it.
71866         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71867         _getopt_internal, getopt): Likewise.
71868         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71869         _getopt_long_only_r): Likewise.
71870         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71871         _getopt_long_r, _getopt_long_only_r): Likewise.
71872
71873         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71874         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71875         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71876         the other external symbols.
71877         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71878         declaration, since the above renaming now works around collisions.
71879
71880 2004-11-11  Jim Meyering  <jim@meyering.net>
71881
71882         * lib/linebreak.c: Remove trailing blanks.
71883         * lib/alloca_.h: Likewise.
71884         * lib/acosl.c: Likewise.
71885         * lib/euidaccess.c: Likewise.
71886         * lib/allocsa.h: Likewise.
71887
71888 2004-11-10  Simon Josefsson  <jas@extundo.com>
71889
71890         * m4/getaddrinfo.m4: New file.
71891
71892 2004-11-10  Simon Josefsson  <jas@extundo.com>
71893
71894         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71895
71896 2004-11-10  Simon Josefsson  <jas@extundo.com>
71897
71898         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71899         getaddrinfo.
71900
71901         * modules/getaddrinfo: New file.
71902
71903 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71904
71905         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71906
71907 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * lib/mktime.c (SHR): New macro, which is a portable
71910         substitute for >> that should work even on Crays.
71911         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71912         Problem reported by Mark D. Baushke in
71913         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71914         * lib/getdate.y (SHR): Likewise.
71915         (tm_diff): Use it.
71916         * lib/strftime.c (SHR): Likewise.
71917         (tm_diff): Use it.
71918         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71919         quote_these_too, so that right shifts are well defined.  All uses
71920         changed.
71921
71922 2004-11-10  Jim Meyering  <jim@meyering.net>
71923
71924         Ensure that no close failure goes unreported.
71925         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71926         return early when it seems there's nothing to flush.
71927         Don't include __fpending.h.
71928
71929 2004-11-10  Jim Meyering  <jim@meyering.net>
71930
71931         * modules/closeout (Depends-on): Remove fpending.
71932
71933 2004-11-10  Jim Meyering  <jim@meyering.net>
71934
71935         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71936
71937 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71940         gl_FUNC_STRFTIME.
71941         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71942         and AC_REQUIRE when possible, to avoid duplicate checks.
71943         Check for <wchar.h>.
71944
71945 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71946
71947         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71948
71949 2004-11-09  Bruno Haible  <bruno@clisp.org>
71950
71951         * m4/sockpfaf.m4: New file.
71952
71953 2004-11-05  Bruno Haible  <bruno@clisp.org>
71954
71955         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71956         Reported by Mark D. Baushke <mdb@cvshome.org>.
71957
71958 2004-11-04  Bruno Haible  <bruno@clisp.org>
71959
71960         2004-09-11  Bruno Haible  <bruno@clisp.org>
71961                 * allocsa.valgrind: New file.
71962         2004-02-06  Bruno Haible  <bruno@clisp.org>
71963                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71964                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71965                 Reported by Christopher Seip <chris.seip@hp.com>.
71966
71967 2004-11-04  Bruno Haible  <bruno@clisp.org>
71968
71969         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71970         (Makefile.am): Distribute it.
71971
71972 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71973
71974         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71975         with errno == ERANGE if the buffer is too small.
71976         Problem reported by Mark D. Baushke.
71977
71978 2004-11-03  Albert Chin  <china@thewrittenword.com>
71979             Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71982         equivalent, substitute $ac_type for equivalent type rather than
71983         blindly using uint32_t *always* which won't work if uint32_t is not
71984         available.  Define _UINT32_T to work around typedef of uint32_t if
71985         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71986         2.5.1.
71987
71988 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * m4/jm-macros.m4: Sync from coreutils.
71991         (gl_MACROS): Check for mbrlen, for pathchk.
71992         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71993
71994 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71995
71996         * lib/xreadlink.c (MAXSIZE): New macro.
71997         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71998         size does not exceed MAXSIZE.  Avoid cast.
71999         As suggested by Mark D. Baushke in
72000         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72001         if readlink fails with buffer size just under MAXSIZE, try again
72002         with MAXSIZE.
72003
72004 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72007
72008 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72009         and  Paul Eggert  <eggert@cs.ucla.edu>
72010
72011         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72012         (get_date): Overparenthesize to avoid GCC warning.
72013
72014 2004-11-02  Bruno Haible  <bruno@clisp.org>
72015
72016         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72017         returns void.
72018
72019 2004-11-02  Bruno Haible  <bruno@clisp.org>
72020
72021         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72022         function returns void.
72023
72024 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72025
72026         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72027         fflush_unlocked, flockfile, funlockfile, funlockfile,
72028         fputs_unlocked, putc_unlocked.
72029
72030 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72031
72032         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72033         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72034         already declared.
72035
72036 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         * modules/getdate (Files): Add doc/getdate.texi.
72039         (Depends-on): Add setenv, xalloc.
72040
72041 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * lib/getdate.y: Add support for TZ="foo" within a date string.
72044         Fix some bugs near time_t boundaries.  Reject dates with
72045         out-of-range components, e.g., "Sept 31".
72046         Include <stdlib.h>, "setenv.h", "xalloc.h".
72047         (ISDIGIT_LOCALE): Remove; unused.
72048         Note that the TZ and time functions used here are not reentrant.
72049         (mktime_ok, get_tz): New functions.
72050         (TZBUFSIZE): New constant.
72051         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72052         This requires that we sometimes generate our own TZ="XXX..." setting.
72053
72054 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * doc/getdate.texi: New file, from coreutils with modifications for
72057         the new TZ parsing.
72058
72059 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72060
72061         * lib/mktime.c (not_equal_tm): Remove redundant check.
72062
72063 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72064
72065         * modules/regex (lib_SOURCES): Add regex.c.
72066         Reported by James Youngman in
72067         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72068
72069 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * lib/getdate.y: Use Bison 1.875 features, and some minor
72072         code cleanups.  This change does not affect semantics.
72073         Don't include <stdlib.h>; no longer needed.
72074         Don't include unlocked-io.h; only the "#if TEST" code uses
72075         stdio, and performance isn't crucial there.
72076         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72077         Bison 1.875 features as described below.
72078         All uses of "PC." replaced by "pc->".
72079         (YYSTYPE): Add a forward declaration.
72080         (yylex, yyerror): Use full prototypes in forward decls.
72081         Use "%pure-parser" rather than obsolescent "%pure_parser".
72082         Use %parse-param and %lex-param instead of obsolescent
72083         YYPARSE_PARAM and YYLEX_PARAM.
72084         (meridian_table, month_and_day_table, time_units_table,
72085         relative_time_table, time_zone_table, military_table,
72086         lookup_zone, lookup_word, get_date):
72087         Use NULL instead of 0 where appropriate.
72088         (to_hour): Avoid abort (), to avoid a dependency on
72089         stdlib.h.
72090         (yyerror, yylex): Now accepts parser_control * arg.
72091         (main) [TEST]: Use '\0' rather than 0 for char.
72092
72093 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72094
72095         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72096
72097 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72100         It's now the caller's responsibility to handle the case where
72101         !HAVE_GETPAGESIZE && !defined getpagesize.
72102
72103         * lib/mktime.c (leapyear): Arg is long int, not int.
72104
72105 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72108
72109 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72110
72111         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72112         missing.  Problem reported by James Youngman.
72113
72114 2004-10-16  Simon Josefsson  <jas@extundo.com>
72115
72116         * gnulib-tool: Fix comments.  Fix parse problem.
72117         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72118
72119 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72122         implementation of getopt_long.  Problem reported by Alexander Taler in:
72123         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72124
72125 2004-10-15  Bruno Haible  <bruno@clisp.org>
72126
72127         * gnulib-tool: Untabify. Initialize supplied_libname.
72128         (func_usage): More homogenous output.
72129         (func_modules_transitive_closure, func_modules_to_filelist,
72130         func_emit_lib_Makefile_am): New functions.
72131         (func_import): New function, extracted from big case statement. Use
72132         func_get_license, func_modules_transitive_closure,
72133         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72134         opt_lgpl. Don't use test -a, as it's not portable.
72135         (func_create_testdir): Use func_modules_transitive_closure,
72136         func_modules_to_filelist, func_emit_lib_Makefile_am.
72137
72138 2004-10-15  Bruno Haible  <bruno@clisp.org>
72139
72140         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72141
72142 2004-10-15  Bruno Haible  <bruno@clisp.org>
72143
72144         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72145         the portions belonging to each module.
72146         Suggested by Derek Robert Price <derek@ximbiot.com>.
72147
72148 2004-10-12  Simon Josefsson  <jas@extundo.com>
72149
72150         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72151         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72152         to real functions.
72153
72154 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72155
72156         * modules/vsnprintf: New file.
72157
72158 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72159
72160         * m4/vsnprintf.m4: New file.
72161
72162 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72163
72164         * lib/vsnprintf.h: New file.
72165         * lib/vsnprintf.c: New file.
72166
72167 2004-10-11  Bruno Haible  <bruno@clisp.org>
72168
72169         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72170         vsnprintf.
72171
72172 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72173
72174         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72175
72176 2004-10-07  Bruno Haible  <bruno@clisp.org>
72177
72178         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72179         fits into the provided buffer.
72180
72181 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * lib/diacrit.c, diacrit.h: Add GPL notice.
72184
72185         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72186         notice.
72187         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72188         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72189         This avoids a potential constant-folding bug.
72190
72191 2004-10-05  Bruno Haible  <bruno@clisp.org>
72192
72193         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72194         for the declaration of strsep.
72195
72196 2004-10-05  Bruno Haible  <bruno@clisp.org>
72197
72198         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72199
72200 2004-10-04  Simon Josefsson  <jas@extundo.com>
72201
72202         * modules/memmem: New file.
72203         * tests/test-memmem.c: New file.
72204         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72205
72206 2004-10-04  Simon Josefsson  <jas@extundo.com>
72207
72208         * m4/memmem.m4: New file.
72209
72210 2004-10-04  Simon Josefsson  <jas@extundo.com>
72211
72212         * lib/memmem.h: New file.
72213         * lib/memmem.c: New file, taken from glibc.
72214
72215 2004-10-04  Simon Josefsson  <jas@extundo.com>
72216
72217         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72218         '#ifdef USE_UNLOCKED_IO'.
72219
72220 2004-10-04  Simon Josefsson  <jas@extundo.com>
72221
72222         * config/srclist.txt: Add memmem from glibc.
72223
72224 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72225
72226         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72227
72228         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72229         modules/exclude, modules/getdate, modules/getline,
72230         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72231         modules/getusershell, modules/linebuffer, modules/md5,
72232         modules/mountlist, modules/posixtm, modules/readtokens,
72233         modules/readutmp, modules/regex, modules/sha1,
72234         modules/version-etc, modules/yesno:
72235         Remove dependency on unlocked-io.
72236
72237 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72240
72241         * m4/unlocked-io.m4: Add copyright notice.
72242         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72243
72244 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72247         * lib/xmalloc.c (xmemdup): Likewise.
72248         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72249         XFREE): Remove these long-obsolescent macros.
72250         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72251         * lib/xstrdup.c: Remove.
72252
72253         * lib/regex.c (re_comp): Cast gettext return value to char *,
72254         Problem reported by Martin Neitzel via Mark D. Baushke.
72255
72256 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72257
72258         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72259         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72260         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72261         regex.c, sha1.c, version-etc.c, yesno.c:
72262         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72263         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72264         the includer's responsibility.
72265
72266         Sync from coreutils.
72267
72268         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72269         points to the start of a string, as the C Standard says the
72270         resulting behavior is undefined.
72271
72272         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72273         simple -> simple_backups, numbered_existing ->
72274         numbered_existing_backups, numbered -> numbered_backups
72275         to avoid shadowing problems.  All uses changed.
72276         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72277         * lib/backupfile.c (check_extension, numbered_backup):
72278         Rename locals to avoid shadowing 'basename'.
72279         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72280         once.
72281
72282         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72283         * lib/.cvsignore: Add getopt.h.
72284
72285 2004-10-04  Bruno Haible  <bruno@clisp.org>
72286
72287         * modules/README: New file.
72288         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72289         not a module.
72290
72291 2004-10-02  Jim Meyering  <jim@meyering.net>
72292
72293         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72294
72295 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72296
72297         * modules/strsep: New file.
72298
72299 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72300
72301         * m4/strsep.m4: New file.
72302
72303 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72304
72305         * lib/strsep.h: New file.
72306         * lib/strsep.c: New file.
72307
72308 2004-10-01  Simon Josefsson  <jas@extundo.com>
72309
72310         * lib/snprintf.c (snprintf): Handle size==0.
72311
72312 2004-10-01  Simon Josefsson  <jas@extundo.com>
72313             Bruno Haible  <bruno@clisp.org>
72314
72315         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72316         (snprintf): Declare 'args'.
72317
72318 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * lib/snprintf.c: Remove comments as to why each header is needed.
72321
72322 2004-10-01  Bruno Haible  <bruno@clisp.org>
72323
72324         * MODULES.html.sh: Add strsep.
72325
72326 2004-09-30  Simon Josefsson  <jas@extundo.com>
72327
72328         * modules/snprintf: New file.
72329
72330 2004-09-30  Simon Josefsson  <jas@extundo.com>
72331
72332         * m4/snprintf.m4: New file.
72333
72334 2004-09-30  Simon Josefsson  <jas@extundo.com>
72335
72336         * lib/snprintf.h, lib/snprintf.c: New files.
72337
72338 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72339
72340         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72341         (hol_entry_help): Never translate an empty string.
72342         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72343         * lib/argp.h (OPTION_NO_TRANS): New option.
72344
72345 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72346
72347         * modules/argp (Maintainer): Replace Simon Josefsson
72348         by Sergey Poznyakoff.
72349
72350 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72351
72352         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72353         changes merged back into glibc.
72354
72355 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72358
72359 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72360
72361         * lib/xvasprintf.c: Include xalloc.h.
72362         (xvasprintf): Use xalloc_die, not xmalloc_die.
72363
72364 2004-09-29  Bruno Haible  <bruno@clisp.org>
72365
72366         * modules/alloca-opt: New file, derived from modules/alloca.
72367         * modules/allocsa: Depend on alloca-opt instead of alloca.
72368         * modules/setenv: Likewise.
72369         * modules/vasnprintf: Likewise.
72370         * MODULES.html.sh: Add alloca-opt.
72371
72372 2004-09-28  Simon Josefsson  <jas@extundo.com>
72373
72374         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72375         LGPL, and to replace license template from GPL to LGPL.
72376
72377 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72378
72379         * modules/dummy: Change license to LGPL.
72380
72381 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72384
72385 2004-09-24  Simon Josefsson  <jas@extundo.com>
72386
72387         * modules/minmax (License): Change from GPL to LGPL.
72388
72389 2004-09-23  Simon Josefsson  <jas@extundo.com>
72390
72391         * gnulib-tool (--import): Typo.
72392
72393 2004-09-23  Simon Josefsson  <jas@extundo.com>
72394
72395         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72396
72397 2004-09-22  Bruno Haible  <bruno@clisp.org>
72398
72399         * modules/*: Add 'License' field.
72400         * gnulib-tool: Accept --extract-license option.
72401         (func_get_license): New function.
72402
72403 2004-09-21  Bruno Haible  <bruno@clisp.org>
72404
72405         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72406         Reported by Simon Josefsson.
72407
72408 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72411         gl_AC_TYPE_LONG_LONG.
72412
72413 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72416
72417 2004-09-18  Simon Josefsson  <jas@extundo.com>
72418         and  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72421         calls with autoreconf.  Define GL_LIB.
72422
72423 2004-09-14  Karl Berry  <karl@gnu.org>
72424
72425         * config/srclist.txt: unsync setenv.c, sigh.
72426
72427 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72430         Problem reported by Bruno Haible in:
72431         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72432
72433 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         * config/srclist.txt: Comment out argp-pvh.c.
72436
72437 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72440         in case some system header has #define'd it.  Problem reported by
72441         Soeren D. Schulze in
72442         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72443
72444 2004-09-09  Karl Berry  <karl@gnu.org>
72445
72446         * regex.[ch]: delete from the root.  These were supposed to be
72447                 synced with emacs cvs, but this has not happened for about
72448                 a year, and anyway nothing else uses emacs regex.[ch].
72449                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72450                 lib/regex[.ch] is untouched.
72451
72452 2004-09-09  Bruno Haible  <bruno@clisp.org>
72453
72454         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72455
72456 2004-09-09  Bruno Haible  <bruno@clisp.org>
72457
72458         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72459         modifications.
72460         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72461
72462 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72463
72464         * modules/xvasprintf: New file.
72465         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72466
72467 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72468
72469         * lib/xvasprintf.h: New file.
72470         * lib/xvasprintf.c: New file.
72471         * lib/xasprintf.c: New file.
72472
72473 2004-09-08  Bruno Haible  <bruno@clisp.org>
72474
72475         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72476
72477 2004-09-08  Bruno Haible  <bruno@clisp.org>
72478
72479         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72480         length is > INT_MAX.
72481         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72482         more.
72483
72484 2004-09-08  Bruno Haible  <bruno@clisp.org>
72485
72486         * lib/stdint_.h: New file, taken from GNU clisp.
72487
72488 2004-09-08  Bruno Haible  <bruno@clisp.org>
72489             Oskar Liljeblad  <oskar@osk.mine.nu>
72490
72491         * modules/stdint: New file.
72492         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72493
72494 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72495
72496         Import from coreutils.
72497         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72498         strings on unbounded length.  alloca's performance benefits aren't
72499         that important here.
72500         (V_STRDUP): Remove.
72501         (parse_with_separator): New function, with most of the internals
72502         of the old parse_user_spec.  Allow user to omit both user and group,
72503         for compatibility with FreeBSD.
72504         Clone only the user name, not the entire spec.
72505         Do not set *uid, *gid unless entirely successful.
72506         Avoid memory leak in some failing cases.
72507         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72508         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72509         (parse_user_spec): Rewrite to use parse_with_separator.
72510
72511 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72512
72513         * modules/userspec: Don't depend on alloca.
72514
72515 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72516
72517         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72518
72519 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72522         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72523         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72524
72525 2004-08-16  Simon Josefsson  <jas@extundo.com>
72526
72527         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72528         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72529         Add --dry-run for --import.
72530         Let user provided command line parameters override configure.ac
72531         settings.
72532
72533 2004-08-12  Simon Josefsson  <jas@extundo.com>
72534
72535         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72536         as discussed with Paul Eggert in threads rooted at
72537         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72538         and
72539         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72540         Before, the test was empty, and relied on ELIDE_CODE in source
72541         code.)
72542         (gl_PREREQ_GETOPT): New macro.
72543         (gl_GETOPT): Use them.
72544
72545 2004-08-12  Simon Josefsson  <jas@extundo.com>
72546
72547         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72548         * lib/getopt_.h: Renamed from getopt.h.
72549
72550 2004-08-12  Simon Josefsson  <jas@extundo.com>
72551
72552         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72553         Change default library name from libfoo to libgnu.
72554         Now, if you have a configure.ac that says:
72555                 gl_SOURCE_BASE(gl)
72556                 gl_M4_BASE(gl/m4)
72557                 gl_MODULES(error getopt etcetera)
72558                 gl_INIT
72559         you can import all you need by running:
72560                 ../gnulib/gnulib-tool --import
72561
72562         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72563         (Makefile.am): Rewrite, use logic from argz.
72564         (Include): Use <getopt.h> instead of "getopt.h".
72565
72566 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * modules/argp (Files): Add m4/unlocked-io.m4.
72569         (Depends-on): Add extensions.
72570
72571 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72572
72573         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72574         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72575         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72576         Check for program_invocation_name, program_invocation_short_name,
72577         flockfile, funlockfile, features.h, _getopt_long_only_r.
72578
72579 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72582         its complicated substitute.
72583         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72584         and program_invocation_name.
72585         (__argp_basename) [!_LIBC]: Remove; the only use was
72586         replaced by its body.
72587         (__argp_short_program_name): Change condition from
72588         !defined __argp_short_program_name to
72589         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72590         to match argp-namefrob.h.
72591         (__argp_failure): Don't assume strerror_r returns char *.
72592         * lib/argp-parse.c (N_): Define unconditionally.
72593         (argp_default_options): Fill out initializers with 0 to avoid
72594         gcc warnings.
72595
72596 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72597
72598         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72599         getopt1.c.
72600
72601 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72602
72603         Merge from coreutils.
72604
72605         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72606
72607         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72608         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72609
72610 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72611
72612         Merge from coreutils.
72613
72614         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72615         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72616         for Reliant Unix 5.43.
72617
72618         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72619         (union fooround): Use uintmax_t, not long int.
72620         The rest is a merge from libc:
72621         [defined _LIBC]: Include <shlib-compat.h>.
72622         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72623
72624         * lib/settime.c (settime): Recode to avoid warning with
72625         Sun Forte C 6U2.
72626
72627         * lib/strverscmp.c: Convert to UTF-8.
72628
72629 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72632         m4/uintmax_t.m4.
72633
72634 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * modules/xalloc-die: New file.
72637         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72638
72639         * modules/md5 (Files): Add m4/uint32_t.m4.
72640         * modules/sha1: Renamed from modules/sha.
72641         (Files):
72642         Rename lib/sha.h to lib/sha1.h.
72643         Rename lib/sha.c to lib/sha1.c.
72644         Rename m4/sha.m4 to m4/sha1.m4.
72645         (lib_SOURCES): Likewise.
72646         (configure.ac): Rename gl_SHA to gl_SHA1.
72647         (Include): sha.h -> sha1.h.
72648
72649 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72652         * m4/sha1.m4: Renamed from sha.m4.
72653         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72654
72655 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72656
72657         * lib/obstack.h (obstack_empty_p):
72658         Don't assume that chunk->contents is suitably aligned.
72659         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72660         Likewise. Problem reported by Benno in
72661         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72662
72663         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72664         readable.  This could be improved further but it'd take some work.
72665
72666 2004-08-08  Simon Josefsson  <jas@extundo.com>
72667
72668         * modules/xgethostname (Depends-on): Remove exit and error (not
72669         used).
72670
72671         * modules/getpass-gnu: Add getpass.h.
72672         (Depends-on): Add stdbool.
72673         * modules/getpass: Add getpass.h.
72674
72675 2004-08-08  Simon Josefsson  <jas@extundo.com>
72676
72677         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72678         Check getpass declaration.
72679
72680 2004-08-08  Simon Josefsson  <jas@extundo.com>
72681
72682         * lib/xgethostname.c: Don't include error.h (not used).
72683
72684         * lib/getpass.h: Add.
72685         * lib/getpass.c: Include getpass.h first.
72686
72687 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72688
72689         * lib/xalloc-die.c: New file.
72690         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72691         All uses removed.
72692         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72693         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72694         xalloc-die.c.
72695         (_, N_, xalloc_die): Move to xalloc-die.c.
72696         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72697         so that we needn't mess with xalloc_msg_memory_exhausted.
72698
72699         * lib/sha1.h: Renamed from sha.h.
72700         (SHA1_H): Renamed from _SHA_H.
72701         (sha1_ctx): Renamed from sha_ctx.
72702         (sha1_init_ctx): Renamed from sha_init_ctx.
72703         (sha1_process_block): Renamed from sha_process_block.
72704         (sha1_process_bytes): Renamed from sha_process_bytes.
72705         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72706         (sha1_read_ctx): Renamed from sha_read_ctx.
72707         (sha1_stream): Renamed from sha_stream.
72708         (sha1_buffer): Renamed from sha_buffer.
72709         * lib/sha1.c: Likewise; renamed from sha.c.
72710         Do not include <sys/types.h>.
72711         Include <stddef.h> rather than <stdlib.h>.
72712
72713 2004-08-08  Bruno Haible  <bruno@clisp.org>
72714
72715         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72716         FILESYSTEM_PREFIX_LEN.
72717         * lib/progreloc.c: Likewise.
72718         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72719
72720 2004-08-06  Simon Josefsson  <jas@extundo.com>
72721
72722         * modules/progname (Depends-on): Don't depend on stdbool.
72723
72724 2004-08-06  Simon Josefsson  <jas@extundo.com>
72725
72726         * modules/getsubopt: New file.
72727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72728         getsubopt.
72729
72730 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72731
72732         More merge from coreutils.
72733
72734         * m4/utimens.m4, m4/utimecmp.m4: New files.
72735         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72736         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72737         prereq.m4, sha.m4: Import changes from coreutils.
72738
72739 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72740
72741         More merge from coreutils.
72742         * modules/raise, modules/readtokens0, modules/utimens:
72743         * modules/utimecmp, module/xnanosleep: New files.
72744         * modules/strftime: Add lib/strftime.h.
72745         Change include from <time.h> to "strftime.h".
72746         * modules/yesno: Add lib/yesno.h.
72747         * modules/backupfile: Remove lib/addext.c.
72748         * modules/euidaccess: Add stat-macros.h.
72749         * modules/canonicalize, modules/euidaccess,
72750         modules/filemode, modules/lchown, modules/makepath,
72751         modules/rmdir, modules/stat: Likewise.
72752
72753 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         Merge from tar.
72756         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72757         SIZE_MAX is a valid preprocessor constant.
72758         (__argp_basename): Change from "#ifndef _LIBC"
72759         to "#ifndef __argp_short_program_name", so that
72760         we don't compile these functions for tar.
72761
72762         More merges from coreutils.
72763         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72764         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72765         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72766         * lib/addext.c: Remove; no longer needed.
72767         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72768         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72769         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72770         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72771         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72772         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72773         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72774         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72775         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72776         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72777         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72778         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72779         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72780         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72781         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72782         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72783         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72784         Import changes from coreutils.
72785
72786 2004-08-05  Simon Josefsson  <jas@extundo.com>
72787
72788         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72789
72790 2004-08-05  Simon Josefsson  <jas@extundo.com>
72791
72792         * m4/getsubopt.m4: New file.
72793
72794 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72795
72796         Merge from coreutils.
72797
72798         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72799         * m4/getcwd-path-max.m4: New files.
72800
72801         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72802         FILESYSTEM_PREFIX_LEN ->
72803         FILE_SYSTEM_PREFIX_LEN.
72804         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72805         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72806         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72807         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72808
72809         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72810         prerequisite modules now handle the DOS stuff.
72811         Don't check for unistd.h.
72812
72813 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72814
72815         Merge from coreutils.
72816
72817         * lib/.gdb-history: Remove; this doesn't belong here.
72818
72819         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72820         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72821         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72822         * lib/getcwd.c: New files.
72823
72824         * lib/dirname.h: Include <stdbool.h>.
72825         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72826         for consistency with POSIX terminology.  All uses changed.
72827         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72828         (strip_trailing_slashes): Use bool for booleans.
72829         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72830
72831         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72832         sometimes returns a positive errno value even when it succeeds.
72833         (print_errno_message) [!LIBC]: Fall back on strerror if
72834         __strerror_r fails.
72835
72836         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72837         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72838         (longest_relative_suffix): New function.
72839         (path_concat): Use it.  Assume first argument is not NULL.
72840         Port to DOS.  Omit redundant separators.
72841         Report an error instead of returning NULL.
72842         Use mempcpy instead of memcpy.
72843         (xpath_concat): Remove: not declared or used.
72844
72845         * lib/same.h: Include <stdbool.h>
72846         (same_name): Return bool, not int.
72847         * lib/same.c (same_name): Likewise.
72848         (errno): Don't declare; we assume C89 or better now.
72849
72850         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72851         if not already defined.
72852
72853         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72854         * lib/dup-safer.c (errno): Likewise.
72855
72856 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72857
72858         Merge from coreutils.
72859         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72860         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72861         * modules/path-concat: Don't depend on strdup.
72862
72863 2004-08-03  Simon Josefsson  <jas@extundo.com>
72864
72865         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72866         * lib/progname.h: Don't include stdbool.h.
72867
72868 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72871         * MODULES.html.sh (func_all_modules): Remove fatal.
72872
72873 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72876
72877 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72880         working.
72881
72882 2004-08-02  Simon Josefsson  <jas@extundo.com>
72883
72884         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72885         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72886         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72887
72888 2004-08-01  Simon Josefsson  <jas@extundo.com>
72889
72890         * lib/xgetdomainname.c: Include stdlib.h, for free().
72891
72892 2004-07-19  Bruno Haible  <bruno@clisp.org>
72893
72894         * MODULES.html.sh (func_all_modules): Add dummy.
72895
72896 2004-07-16  Simon Josefsson  <jas@extundo.com>
72897
72898         * modules/dummy: New file.
72899
72900 2004-07-16  Simon Josefsson  <jas@extundo.com>
72901
72902         * lib/dummy.c: New file.
72903
72904 2004-07-16  Bruno Haible  <bruno@clisp.org>
72905
72906         * lib/backupfile.h: Add extern "C" for C++.
72907         * lib/closeout.h: Likewise.
72908         * lib/copy-file.h: Likewise.
72909         * lib/findprog.h: Likewise.
72910         * lib/full-write.h: Likewise.
72911         * lib/pathname.h: Likewise.
72912         * lib/progname.h: Likewise.
72913         * lib/stpcpy.h: Likewise.
72914         * lib/stpncpy.h: Likewise.
72915         * lib/strcase.h: Likewise.
72916         * lib/strstr.h: Likewise.
72917         * lib/xalloc.h: Likewise.
72918
72919         * lib/mbswidth.h: Add extern "C" for C++.
72920         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72921
72922 2004-07-13  Robert Millan  <robertmh@gnu.org>
72923
72924         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72925
72926 2004-07-09  Simon Josefsson  <jas@extundo.com>
72927
72928         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72929         failed without this.)
72930
72931 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72932
72933         * modules/chown (Files): Add lib/fchown-stub.c, since
72934         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72935
72936 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * lib/fchown-stub.c: New file.
72939
72940 2004-06-24  Jim Meyering  <jim@meyering.net>
72941
72942         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72943
72944 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         * modules/argz: Omit "#include".
72947
72948         * MODULES.html.sh (func_all_modules): Add calloc, to match
72949         2004-06-01 addition of calloc module.
72950
72951 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         * m4/argz.m4: New file, which is autoupdated from libtool.
72954
72955 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72958         libtool.
72959
72960 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         * config/srclist-update: Don't insist on "USA." before the
72963         close-comment, as libtool omits the period and puts the */ on a
72964         separate line.
72965         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72966         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72967
72968 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72969
72970         * modules/argz: New file.
72971         * MODULES.html.sh (func_all_modules): Add argz.
72972
72973 2004-06-12  Jim Meyering  <jim@meyering.net>
72974         and  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         * modules/hash (Files): Add lib/xalloc.h.
72977         * modules/pipe (Depends-on): Add wait-process.
72978         * modules/stat (Depends-on): Add xalloc.
72979         * modules/userspec (Files): Add lib/userspec.h.
72980         * modules/xstrto
72981
72982         Upgrade from gettext-0.13.
72983         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72984         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72985         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72986
72987 2004-06-10  Jim Meyering  <jim@meyering.net>
72988
72989         * lib/calloc.c: New file.
72990
72991 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72992
72993         * lib/getdate.y (yylex): Allow space between sign and number.
72994         Problem reported by Dan Jacobson.
72995
72996 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72997
72998         Merge from coreutils CVS.
72999
73000         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73001         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73002         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73003         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73004         xstrtol.m4: Fix copyright date and/or serial number.
73005
73006         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73007         See if we need an fchown replacement.
73008         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73009         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73010         and use the replacement function if we detect either defect.
73011
73012         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73013         gl_UTIMECMP.
73014
73015 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73016         and  Jim Meyering  <jim@meyering.net>
73017
73018         Merge from coreutils CVS.
73019
73020         * lib/stat-macros.h: New file, with contents from file-type.h
73021         and coreutils' system.h.
73022         * lib/file-type.c: Include "stat-macros.h".
73023         * lib/file-type.h (file_type): Move all macro definitions to new file,
73024         stat-macros.h.
73025
73026         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73027         Wrap old code with this conditional.
73028         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73029         function that does not dereference symlinks.
73030         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73031
73032         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73033         dependency problems.
73034         (xreadlink): Accept new arg SIZE, for efficiency.
73035         All decls and uses changed.
73036         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73037
73038         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73039         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73040
73041         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73042         sysexits.h.
73043
73044 2004-06-01  Jim Meyering  <jim@meyering.net>
73045
73046         * m4/calloc.m4: New file.
73047
73048 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73049
73050         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73051         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73052         Also, fix a typo in a diagnostic.
73053
73054 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73057         or AC_FUNC_REALLOC.
73058
73059 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73060
73061         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73062         macros to be defined.
73063         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73064         the allocator returns NULL because the requested size is zero.
73065
73066 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73069         var.  Add comment explaining why libc still defines it.  This
73070         merges the following patch from glibc:
73071         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73072
73073 2004-05-20  Andreas Schwab  <schwab@suse.de>
73074
73075         * m4/free.m4: Replace free if it not known to work, not the other
73076         way round.
73077
73078 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73079
73080         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73081         present in glibc since revision 1.1 of this file.
73082         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73083         obstack_alignment_mask, obstack_alloc, obstack_base,
73084         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73085         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73086         obstack_grow0, obstack_init, obstack_int_grow,
73087         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73088         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73089         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73090         nonexistent functions.
73091
73092 2004-05-18  Karl Berry  <karl@gnu.org>
73093
73094         * config/srclist.txt: break link for vasnprintf.c.
73095
73096 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         Port obstack to the AS/400, where pointers are 16 bytes wide and
73099         you cannot cast an integer to a valid pointer.  This patch is
73100         currently waiting to be integrated into glibc; see
73101         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73102
73103         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73104         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73105         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73106         (struct obstack): temp member is now a union of a pointer and
73107         an integer, instead of an integer.  All integer uses changed.
73108         This does not affect the physical layout of struct obstack,
73109         except on hosts (like the AS/400) where the size or alignment of
73110         void * is greater than that of ptrdiff_t.
73111         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73112         __STDC__)]: Store temporary in pointer member of union, not
73113         integer member.
73114         * lib/obstack.c: Include <stddef.h>, for offsetof.
73115         (struct fooalign): Remove; it doesn't need a name.
73116         (union fooround): Change double to long double, and add void *.
73117         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73118         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73119         not a macro.  Hence the values are always int; so remove all
73120         casts-to-int in uses.
73121
73122 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73123
73124         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73125         we can get this patch merged into glibc.
73126
73127 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73128             Paul Eggert  <eggert@cs.ucla.edu>
73129
73130         * m4/argp: Depend on alloca.
73131
73132 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73133             Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73136         freecoding.
73137
73138 2004-05-17  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73141         precision that consists of a '.' followed by an empty digit string.
73142         Patch by Tor Lillqvist <tml@iki.fi>.
73143
73144 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73147         for backward compatibility with older code.  We need our own
73148         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73149         it under some other name, and our alloca.h will define it.
73150
73151 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73152             Derek Price  <derek@ximbiot.com>
73153
73154         * lib/alloca.c: Include <alloca.h>, to get our interface.
73155         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73156         include <alloca.h> first.  Use C89 prototype for alloca; this
73157         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73158         Use #elif for simplicity, since we can assume C89 now.
73159         Don't try to source the system alloca.h since it will not be found
73160         and to prevent recursively including its replacement.
73161         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73162         * lib/regex.c: Likewise.
73163
73164 2004-05-16  Derek Price  <derek@ximbiot.com>
73165             Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         getline cleanup.  This changes the getndelim2 API: both order of
73168         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73169         no delimiter).
73170
73171         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73172         interface does that.
73173         (getline): Always use getdelim, so that we don't have two
73174         copies of this code.
73175         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73176         if available.
73177         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73178         (GETNDELIM2_MAXIMUM): New macro.
73179         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73180         instead of the old practice of delim2==0.  All callers changed.
73181         Return -1 on overflow, instead of returning junk.
73182         Do not set *linesize unless allocation succeeds.
73183         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73184         that we include sys/types.h.
73185         * lib/getnline.h: Likewise.
73186         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73187         (getndelim2): Reorder arguments.
73188         * lib/getnline.c (getnline, getndelim):
73189         Don't discard the NMAX argument.
73190         (getnline): Invoke getndelim, to avoid code duplication.
73191         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73192         of (size_t) -1 by callers of the getnline family.
73193
73194 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73197         Check for gettimeofday.
73198         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73199         Check for settimeofday, stime.
73200
73201 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * lib/nanosleep.c (suspended): Change its type from int to
73204         sig_atomic_t volatile.
73205         (first_call): Make it private to rpl_nanosleep, and have it
73206         be zero initially as that's a bit faster.
73207         (my_usleep): Round up fractional times instead of truncating them,
73208         as this is the usual meaning for 'sleep'.
73209
73210         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73211         doesn't work.
73212         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73213         (ENOSYS): Define if not defined.
73214         (settime): Fall back on stime if it exists and settimeofday fails.
73215         But don't bother with fallbacks if a method fails with errno == EPERM.
73216
73217 2004-05-11  Jim Meyering  <jim@meyering.net>
73218
73219         Prior to this change, the save_cwd caller required read access to the
73220         current directory on most systems (ones with the fchdir function).
73221
73222         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73223         fails, try write-only, and finally, resort to using xgetcwd.
73224
73225 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         * lib/obstack.c, obstack.h: Import changes from libc.
73228
73229 2004-04-28  Bruno Haible  <bruno@clisp.org>
73230
73231         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73232         also implicitly appends .exe to executables.
73233         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73234         accepts Windows pathnames.
73235         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73236         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73237         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73238         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73239         Reported by Derek Robert Price <derek@ximbiot.com>.
73240
73241 2004-04-21  Karl Berry  <karl@gnu.org>
73242
73243         * config/srclist.txt (localcharset.c): break sync.
73244
73245 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73246
73247         * m4/host-os.m4: Add a copyright notice.
73248
73249 2004-04-20  Jim Meyering  <jim@meyering.net>
73250
73251         Change UTILS_ to gl_ in AC_DEFINE'd names.
73252         Change utils_- and jm_-prefixed variables, too.
73253         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73254         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73255         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73256
73257         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73258         Don't emit trailing blanks.
73259         Also rename jm_-prefixed variables to have gl_ prefix.
73260
73261         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73262         Also rename jm_-prefixed variables to have gl_ prefix.
73263
73264         * m4/jm-macros.m4: Reflect the renamings.
73265         * m4/prereq.m4: Likewise.
73266
73267 2004-04-20  Jim Meyering  <jim@meyering.net>
73268
73269         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73270         memory.
73271
73272 2004-04-20  Jim Meyering  <jim@meyering.net>
73273             Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73276         memory when realloc fails.
73277
73278 2004-04-19  Jim Meyering  <jim@meyering.net>
73279
73280         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73281         now that readutmp.c may call `free (0)'.
73282
73283 2004-04-19  Bruno Haible  <bruno@clisp.org>
73284
73285         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73286         * m4/inttypes_h.m4: Likewise.
73287         * m4/stdint_h.m4: Likewise.
73288         * m4/intmax_t.m4: Likewise.
73289         * m4/uintmax_t.m4: Likewise.
73290
73291 2004-04-18  Jim Meyering  <jim@meyering.net>
73292
73293         * m4/prereq.m4: Don't forbid jm_ prefix.
73294
73295         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73296         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73297         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73298         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73299         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73300         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73301         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73302         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73303         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73304         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73305         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73306         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73307         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73308         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73309         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73310         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73311         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73312         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73313         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73314
73315 2004-04-18  Jim Meyering  <jim@meyering.net>
73316
73317         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73318         failure, don't leak memory and do call END_UTMP_ENT.
73319
73320 2004-04-16  Jim Meyering  <jim@meyering.net>
73321
73322         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73323         coreutils' stat program.
73324         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73325
73326 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73327
73328         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73329         C89.
73330         (CHAR_BIT): Remove, since we assume C89.
73331         Include <stdint.h> if available, as per current Autoconf CVS advice.
73332
73333 2004-03-31  Jim Meyering  <jim@meyering.net>
73334
73335         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73336         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73337         * m4/xalloc.m4: Likewise.
73338
73339 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73340
73341         Merge from coreutils.
73342
73343         * m4/inttostr.m4: New file.
73344         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73345         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73346         Require gl_CLOCK_TIME.
73347         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73348
73349 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73350
73351         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73352         not bool, to be more consistent with Unix conventions.
73353         Suggested by Bruno Haible.
73354
73355         Merge from coreutils.
73356
73357         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73358         * lib/umaxtostr.c: New files.
73359
73360         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73361         the usual <time.h> dance.
73362         (get_date): Change signature to support fractional time stamps.
73363         All callers changed.
73364         * lib/getdate.y: Include "getdate.h" first, as we can now
73365         assume C89 and don't need to worry about 'const'.
73366         Similarly, include "unlocked-io.h" near start, not in middle.
73367         Include <limits.h>.
73368         (textint.value): Use long int rather than int.
73369         (textint.digits): Use size_t rather than int.
73370         (BILLION, LOG10_BILLION): New constants.
73371         (parser_control): New member rel_ns.  Members day_ordinal,
73372         time_zone, month, day, hour, minutes, rel_year, rel_month,
73373         rel_day, rel_hour, rel_minutes, rel_seconds
73374         are now long int, not int.  Member seconds is now struct timespec,
73375         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73376         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73377         not int.
73378         (%union.intval): Now long int, not int.
73379         New member timespec.
73380         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73381         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73382         (spec): Now is a timespec or an item list.
73383         (timespec, items): New nonterminals.
73384         (time, rel, relunit, number, get_date):
73385         Add support for fractional seconds.
73386         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73387         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73388         (to_hour): First arg is now long int, not int.
73389         (to_year): Returns long int, not int.
73390         Don't treat year -70 like 70.
73391         (tm_diff): Returns long int, not int.
73392         (lookup_word): Use bool instead of int when appropriate.
73393         (yylex): Use size_t for count, not int.
73394         Detect overflow when parsing large integer constants.
73395         Add support for fractions.
73396         (get_date): Make pointers 'const' if possible.
73397         Use more-portable code to detect integer overflow.
73398         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73399         Don't use ctime; it's not reliable if the year has >4 digits.
73400
73401         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73402         This is for compatibility with BSD.
73403
73404         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73405         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73406         From coreutils' system.h.
73407
73408         * lib/userspec.c: Don't include "posixver.h".
73409         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73410         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73411         compatible extension.  Simplify code by removing a boolean int
73412         that was always nonzero if a string was nonnull.
73413
73414 2004-03-30  Jim Meyering  <jim@meyering.net>
73415
73416         Merge from coreutils.
73417
73418         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73419         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73420         on some systems one must include <grp.h> before it.
73421         Reported by Christian Krackowizer.
73422
73423 2004-03-30  Jim Meyering  <jim@meyering.net>
73424
73425         Merge from coreutils.
73426
73427         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73428
73429         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73430         an empty input stream.
73431
73432         * lib/readtokens.c: Include <stdbool.h>.
73433         (readtoken): Use `size_t' rather than int/long.
73434         All callers adjusted.
73435         Use `bool' rather than `int' where appropriate.
73436         Use memset rather than an explicit loop.
73437         Use x2nrealloc rather than xrealloc.
73438         Allow the use of `\0' as a delimiter.
73439         (readtokens): Likewise.
73440         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73441
73442 2004-03-30  Jim Meyering  <jim@meyering.net>
73443
73444         * m4/realloc.m4: Remove file, since now it does no more than
73445         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73446         the `configure.ac' section of module/realloc.
73447         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73448
73449 2004-03-30  Bruno Haible  <bruno@clisp.org>
73450
73451         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73452         nonnull.
73453
73454 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73455
73456         Merge changes to getloadavg.c from coreutils and Emacs.
73457
73458         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73459         Define to an expression, not to the empty string.
73460         Include cloexec.h and xalloc.h.
73461         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73462         Use set_cloexec_flag rather than rolling our own.
73463         * lib/cloexec.c, lib/cloexec.h: New files.
73464
73465 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73466
73467         * m4/cloexec.m4: New file.
73468
73469 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73470
73471         * lib/getopt.h: Sync with libc CVS.
73472
73473 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73474             Bruno Haible  <bruno@clisp.org>
73475
73476         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73477         mbswidth.
73478
73479 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73480             Bruno Haible  <bruno@clisp.org>
73481
73482         * lib/mbswidth.h: Include <wchar.h> only if
73483         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73484         <wchar.h>.
73485         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73486
73487 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73488
73489         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73490         Sync with libc CVS.
73491         * lib/getopt_int.h: New file, also synced from libc.
73492
73493 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73494
73495         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73496         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73497         Bring back getopt.c, getopt.h, getopt1.c.
73498
73499 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73500
73501         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73502         All uses changed.  Check for sa_sigaction member; this fixes
73503         a bug first reported by Jason Andrade in
73504         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73505
73506 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73507
73508         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73509         '#if' expressions.  Unlike the code it replaces, it does not
73510         depend on (defined _SC_PAGESIZE).  However, it does depend on
73511         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73512         first reported by Jason Andrade in
73513         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73514
73515 2004-02-25  Simon Josefsson  <jas@extundo.com>
73516
73517         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73518
73519 2004-02-25  Simon Josefsson  <jas@extundo.com>
73520
73521         * lib/strdup.h: New file.
73522         * lib/strdup.c: Include it.
73523         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73524         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73525
73526 2004-02-23  Karl Berry  <karl@gnu.org>
73527
73528         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73529         (from fencepost.gnu.org:/gd/gnuorg).
73530
73531 2004-02-23  Karl Berry  <karl@gnu.org>
73532
73533         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73534         * config/srclist.txt: add maintain/standards documents.
73535
73536 2004-02-18  Bruno Haible  <bruno@clisp.org>
73537
73538         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73539         Reported by Derek Robert Price <derek@ximbiot.com>.
73540
73541 2004-02-16  Karl Berry  <karl@gnu.org>
73542
73543         * config/mkinstalldirs, install-sh: update from automake.
73544
73545 2004-02-06  Karl Berry  <karl@gnu.org>
73546
73547         * m4/po.m4: update from gettext 0.14.1.
73548
73549 2004-02-06  Karl Berry  <karl@gnu.org>
73550
73551         * lib/config.charset: update from gettext 0.14.1.
73552
73553 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73554
73555         Add comments and code, prompted by suggestions from Bruno Haible
73556         for sh-quote.
73557         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73558         describing the enum quoting_style values.
73559         * lib/quotearg.c (quotearg_alloc): New function.
73560         (quotearg_buffer_restyled): Treat lone { and } as special.
73561         Treat = as special.  Work around bug with older shells
73562         that "see" a '\' that is really the 2nd byte of a multibyte char.
73563         Quote empty string with shell_quoting_style.
73564
73565 2004-02-03  Bruno Haible  <bruno@clisp.org>
73566
73567         * m4/pipe.m4: New file, from GNU gettext.
73568
73569 2004-02-03  Bruno Haible  <bruno@clisp.org>
73570
73571         * lib/pipe.h: New file, from GNU gettext.
73572         * lib/pipe.c: New file, from GNU gettext.
73573
73574 2004-01-27  Bruno Haible  <bruno@clisp.org>
73575
73576         * m4/execute.m4: New file, from GNU gettext.
73577
73578 2004-01-27  Bruno Haible  <bruno@clisp.org>
73579
73580         * lib/execute.h: New file, from GNU gettext.
73581         * lib/execute.c: New file, from GNU gettext.
73582         * lib/w32spawn.h: New file, from GNU gettext.
73583
73584 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73585
73586         Merge from diffutils.
73587
73588         * lib/file-type.c (file_type): Add typed memory objects.
73589         * lib/file-type.h (S_TYPEISTMO): New macro.
73590
73591         * lib/c-stack.h (c_stack_action): Remove argv argument.
73592         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73593         (die): Don't calculate message unless segv_action returns.
73594         (get_stack_location, min_address_from_argv, max_address_from_argv,
73595         volatile stack_base, volatile_stack_size): Remove.
73596         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73597         that every segmentation violation is a stack overflow.  (Ouch!)
73598         See Debian bug 136249 (still outstanding) for more info about why
73599         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73600
73601 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73602
73603         Exit-status fix from coreutils.
73604
73605         Use exit_failure consistently in place of EXIT_FAILURE,
73606         so that program exit statuses are consistent on failure.
73607
73608         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73609         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73610         * lib/argmatch.h: Comment fix to match the above.
73611         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73612         Now a macro referring to exit_failure, instead of a separate
73613         variable.  Include "exitfail.h" to get it.
73614         * lib/xstrtol.h: Include "exitfail.h".
73615         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73616
73617         * lib/long-options.c (parse_long_options): Use prototype
73618         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73619         for clarity.
73620
73621 2004-01-21  Jim Meyering  <jim@meyering.net>
73622
73623         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73624         so as not to conflict with a different-sized __mktime_internal
73625         function in GNU libc.
73626         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73627         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73628
73629 2004-01-20  Karl Berry  <karl@gnu.org>
73630
73631         * config/config.guess: update from config.
73632
73633         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73634
73635 2004-01-20  Bruno Haible  <bruno@clisp.org>
73636
73637         Safer stack allocation.
73638         * lib/setenv.c: Include allocsa.h.
73639         (alloca): Remove fallback definition.
73640         (freea): Remove macro.
73641         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73642         instead of freea.
73643
73644 2004-01-20  Bruno Haible  <bruno@clisp.org>
73645
73646         * m4/eealloc.m4: New file, from GNU gettext.
73647
73648 2004-01-20  Bruno Haible  <bruno@clisp.org>
73649
73650         * m4/allocsa.m4: New file, from GNU gettext.
73651
73652 2004-01-20  Bruno Haible  <bruno@clisp.org>
73653
73654         * lib/xallocsa.h: New file, from GNU gettext.
73655         * lib/xallocsa.c: New file, from GNU gettext.
73656
73657 2004-01-20  Bruno Haible  <bruno@clisp.org>
73658
73659         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73660
73661 2004-01-20  Bruno Haible  <bruno@clisp.org>
73662
73663         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73664         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73665         specially.
73666
73667 2004-01-20  Bruno Haible  <bruno@clisp.org>
73668
73669         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73670         patch.
73671
73672 2004-01-20  Bruno Haible  <bruno@clisp.org>
73673
73674         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73675
73676 2004-01-20  Bruno Haible  <bruno@clisp.org>
73677
73678         * lib/eealloc.h: New file.
73679
73680 2004-01-20  Bruno Haible  <bruno@clisp.org>
73681
73682         * lib/binary-io.h: Avoid warnings on Cygwin.
73683
73684 2004-01-20  Bruno Haible  <bruno@clisp.org>
73685
73686         * lib/allocsa.h: New file, from GNU gettext.
73687         * lib/allocsa.c: New file, from GNU gettext.
73688
73689 2004-01-18  Karl Berry  <karl@gnu.org>
73690
73691         * doc/gpl.texi, doc/lgpl.texi: new files.
73692
73693 2004-01-18  Karl Berry  <karl@gnu.org>
73694
73695         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73696         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73697
73698 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73699
73700         Merge from coreutils.
73701
73702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73703         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73704         (gl_DEFAULT_POSIX2_VERSION): Move
73705         the documentation from 'configure' into 'config.hin',
73706         so that 'configure --help' isn't burdened by it and
73707         we don't have to worry about its formatting there.
73708         Reword the documentation so that it's more succinct
73709         and can be run together into a single paragraph.
73710         * m4/same.m4 (gl_SAME): Check for pathconf.
73711
73712 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73713
73714         Merge from coreutils.
73715
73716         * lib/posixver.c: Include posixver.h.
73717
73718         * lib/same.c: Include <stdbool.h>, <limits.h>.
73719         (_POSIX_NAME_MAX): Define if not defined.
73720         (MIN): New macro.
73721         (same_name): If file names are silently truncated, report
73722         that the file names are the same if they are the same after
73723         the silent truncation.
73724
73725         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73726         conversion function.
73727         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73728         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73729         longer needed.
73730
73731 2004-01-15  Jim Meyering  <jim@meyering.net>
73732
73733         Merge from coreutils.
73734
73735         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73736         if no library is required.
73737         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73738         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73739         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73740         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73741         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73742         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73743         value, $ac_cv_search_crypt, if it's "none required".
73744         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73745         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73746         not gl_FUNC_GETLOADAVG.
73747         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73748         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73749
73750 2004-01-15  Jim Meyering  <jim@meyering.net>
73751
73752         Merge from coreutils.
73753
73754         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73755         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73756         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73757
73758         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73759         optional configure-time default.
73760
73761         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73762
73763         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73764
73765 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73766
73767         Merge from coreutils.
73768
73769         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73770         value, $ac_cv_search_nanosleep, if it's "none required".
73771
73772 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73773
73774         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73775         with like-named macro in fnmatch.c.
73776         (EXT): Use an internal constant instead.
73777
73778         Merge fnmatch patches from glibc.
73779         * lib/fnmatch.c (mbsinit): Remove define.
73780         Add libc_hidden_ver (__fnmatch, fnmatch).
73781         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73782         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73783
73784 2004-01-14  Karl Berry  <karl@gnu.org>
73785
73786         * config/install-sh: update from automake.
73787
73788 2004-01-13  Karl Berry  <karl@gnu.org>
73789
73790         * config/install-sh: update from automake.
73791
73792 2004-01-09  Karl Berry  <karl@gnu.org>
73793
73794         * config/install-sh: update from automake.
73795
73796 2004-01-05  Karl Berry  <karl@gnu.org>
73797
73798         * config/config.{sub,guess}: update from config.
73799
73800 2003-12-31  Karl Berry  <karl@gnu.org>
73801
73802         * config/depcomp: update from automake.
73803
73804 2003-12-14  Karl Berry  <karl@gnu.org>
73805
73806         * lib/config.charset: update from gettext-runtime.
73807
73808 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73809
73810         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73811         Bug reported by Alfred M. Szmidt.
73812
73813 2003-12-03  Bruno Haible  <bruno@clisp.org>
73814
73815         * m4/gettext.m4: Upgrade from gettext-0.13.
73816         * m4/po.m4: Upgrade from gettext-0.13.
73817         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73818         * m4/intmax.m4: New file, from gettext-0.13.
73819         * m4/printf-posix.m4: New file, from gettext-0.13.
73820
73821 2003-11-29  Karl Berry  <karl@gnu.org>
73822
73823         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73824
73825 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73826             Bruno Haible  <bruno@clisp.org>
73827
73828         * lib/printf-parse.h: Don't include sys/types.h.
73829         (ARG_NONE): New macro.
73830         (char_directive): Change type of *arg_index fields to size_t.
73831         * lib/printf-parse.c: Don't include sys/types.h.
73832         (SSIZE_MAX): Remove macro.
73833         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73834         Remove unnecessary overflow check.
73835         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73836         fields.
73837
73838 2003-11-25  Bruno Haible  <bruno@clisp.org>
73839
73840         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73841
73842 2003-11-25  Bruno Haible  <bruno@clisp.org>
73843
73844         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73845         gt_TYPE_SSIZE_T.
73846
73847 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73848
73849         * modules/alloca: Remove dependency on xalloc.
73850
73851 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73852
73853         * lib/alloca.c: Remove dependency on xalloc module.
73854         (xalloc_die): Remove.
73855         (memory_full) [!defined emacs]: New macro.
73856         [!defined emacs]: Don't include xalloc.h.
73857         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73858         address arithmetic overflows.  Change datatypes a bit to avoid
73859         unnecessary casts.
73860
73861 2003-11-22  Jim Meyering  <jim@meyering.net>
73862
73863         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73864         s/size/size_t/.
73865
73866 2003-11-21  Karl Berry  <karl@gnu.org>
73867
73868         * config/config.{sub,guess}: update from config.
73869
73870 2003-11-18  Karl Berry  <karl@gnu.org>
73871
73872         * config/config.{sub,guess}: update from config.
73873
73874         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73875
73876 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73877
73878         * README: Mention that S+T cannot overflow if S is the size of
73879         an existing object and T is sufficiently small.
73880
73881 2003-11-17  Jim Meyering  <jim@meyering.net>
73882
73883         On systems without utime and without a utimes function capable of
73884         dealing with a NULL struct utimbuf* argument, this utime replacement
73885         could -- in unusual circumstances -- leak a file descriptor.
73886         * lib/utime.c: Include <unistd.h> and <errno.h>.
73887         (utime_null): Be sure to close `fd' and to preserve errno.
73888         Reported by Geoff Collyer via Arnold Robbins.
73889
73890 2003-11-17  Bruno Haible  <bruno@clisp.org>
73891
73892         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73893         (Depends-on): Add xsize.
73894
73895 2003-11-17  Bruno Haible  <bruno@clisp.org>
73896
73897         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73898
73899 2003-11-17  Bruno Haible  <bruno@clisp.org>
73900
73901         * lib/vasnprintf.c (alloca): Remove fallback definition.
73902         (freea): Remove definition.
73903         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73904         Reported by Paul Eggert.
73905
73906 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73907             Bruno Haible  <bruno@clisp.org>
73908
73909         Protect against address arithmetic overflow.
73910         * lib/printf-args.h: Include stddef.h.
73911         (arguments): Change type of field 'count' to size_t.
73912         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73913         'unsigned int' where appropriate.
73914         * lib/printf-parse.h: Include sys/types.h.
73915         (char_directive): Change type of *arg_index fields to ssize_t.
73916         (char_directives): Change type of fields 'count', max_*_length to
73917         size_t.
73918         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73919         (SSIZE_MAX): Define fallback value.
73920         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73921         instead of 'int' where appropriate. Check a_allocated, d_allocated
73922         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73923         * lib/vasnprintf.c: Include xsize.h.
73924         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73925         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73926         overflow. Avoid wraparound when converting a width or precision from
73927         decimal to binary.
73928
73929 2003-11-16  Bruno Haible  <bruno@clisp.org>
73930
73931         Update from GNU gettext.
73932         * lib/printf-parse.c: Generalize to it can be compiled for wide
73933         strings.
73934         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73935         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73936         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73937         SNPRINTF): New macros.
73938         Don't include <alloca.h> if the file is used inside libintl.
73939         (local_wcslen): New function, for Solaris 2.5.1.
73940         (VASNPRINTF): Use it instead of wcslen.
73941
73942 2003-11-16  Bruno Haible  <bruno@clisp.org>
73943
73944         * lib/xsize.h (xmax): New function.
73945         (xsum, xsum3, xsum4): Declare as "pure" functions.
73946
73947 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73948
73949         * modules/xalloc (Files): Undo latest change, since xalloc.h
73950         no longer needs SIZE_MAX or PTRDIFF_MAX.
73951
73952 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73953
73954         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73955         gl_PTRDIFF_MAX.
73956
73957 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73958
73959         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73960         "return", to pacify some unknown compiler.  Problem reported
73961         by Joerg Schilling.
73962
73963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73964
73965         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73966         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73967         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73968         heuristic is just as accurate as far as we know, and it removes a
73969         dependency on size_max.m4 and ptrdiff_max.m4.
73970
73971 2003-11-11  Bruno Haible  <bruno@clisp.org>
73972
73973         * modules/xsize (Files): Add m4/size_max.m4.
73974         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73975
73976 2003-11-11  Bruno Haible  <bruno@clisp.org>
73977
73978         * m4/size_max.m4: New file.
73979         * m4/ptrdiff_max.m4: New file.
73980         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73981         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73982         (gl_XALLOC): Invoke it.
73983
73984 2003-11-11  Bruno Haible  <bruno@clisp.org>
73985
73986         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73987         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73988         defined.
73989
73990 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73991
73992         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73993         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73994         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73995         From Bruno Haible.
73996         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73997         not (size_t) -1, since it's defined here.
73998
73999 2003-11-09  Karl Berry  <karl@gnu.org>
74000
74001         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74002
74003 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74004
74005         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74006         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74007         Reject sizes of exactly SIZE_MAX bytes.
74008         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74009         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74010
74011 2003-11-05  Bruno Haible  <bruno@clisp.org>
74012
74013         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74014         SIZE_MAX defined in <limits.h> on Solaris.
74015
74016 2003-11-04  Jim Meyering  <jim@meyering.net>
74017
74018         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74019         variable names, rather than @VAR@.
74020         * modules/poll: Likewise.
74021
74022 2003-11-04  Bruno Haible  <bruno@clisp.org>
74023
74024         * modules/xsize: New file.
74025         * modules/linebreak: Depend on xsize.
74026         * MODULES.html.sh (func_all_modules): Add xsize.
74027
74028 2003-11-04  Bruno Haible  <bruno@clisp.org>
74029
74030         * m4/xsize.m4: New file.
74031
74032 2003-11-04  Bruno Haible  <bruno@clisp.org>
74033
74034         * lib/xsize.h: New file.
74035         * lib/linebreak.c: Include xsize.h.
74036         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74037         argument for overflow.
74038         Suggested by Paul Eggert.
74039
74040 2003-11-03  Karl Berry  <karl@gnu.org>
74041
74042         * config/config.{guess,sub}: update from config.
74043
74044 2003-11-03  Jim Meyering  <jim@meyering.net>
74045
74046         * modules/userspec (lib_SOURCES): Add userspec.h.
74047         (Include): Add "userspec.h".
74048         Improve description.
74049
74050 2003-11-03  Jim Meyering  <jim@meyering.net>
74051
74052         * lib/userspec.c: Include "userspec.h".
74053         * lib/userspec.h: New file.
74054
74055 2003-11-03  Bruno Haible  <bruno@clisp.org>
74056
74057         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74058
74059 2003-11-03  Bruno Haible  <bruno@clisp.org>
74060
74061         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74062         available, to avoid (extremely rare) race condition.
74063         Suggested by Paul Eggert.
74064
74065 2003-11-02  Karl Berry  <karl@gnu.org>
74066
74067         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74068
74069 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74070
74071         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74072         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74073         (read_filesystem_list): Set and use me_type_malloced.
74074         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74075         whatever the type happens to be), for brevity and consistency.
74076         Check for size calculation overflow on Alphas running OSF/1.
74077
74078 2003-10-31  Jim Meyering  <jim@meyering.net>
74079
74080         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74081
74082         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74083
74084 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74085             Bruno Haible  <bruno@clisp.org>
74086
74087         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74088         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74089
74090 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74093         netbsd*-gnu*.  Suggested by Robert Millan.
74094
74095 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74096
74097         * modules/group-member: Depend on stdbool.
74098
74099 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74100
74101         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74102
74103 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74104
74105         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74106         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74107         after the 'gnu' in these cases.  This fixes some bugs in the
74108         previous change, and is based on suggestions by Robert Millan.
74109
74110 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74111
74112         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74113         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74114         no longer needed.
74115         * lib/quotearg.c (quotearg_n_options): Use it.
74116         * lib/group-member.c: Include <stdbool.h>.
74117         (free_group_info): Arg is now const *; don't free arg.
74118         (get_group_info): Now returns bool and accepts struct group_info *,
74119         rather than returning a malloc'ed struct group_info *.
74120         All uses changed.  Check for overflow in internal size calculation.
74121
74122         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74123         rather than xmalloc/xrealloc.
74124         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74125         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74126         conformance bug: the old code used a pointer after freeing the
74127         storage that it addressed.
74128         * lib/hash.c (hash_initialize): Simplify the code by using
74129         xalloc_oversized rather than doing it by hand.
74130         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74131         the buffer preserved.  Use free and xmalloc instead.
74132         * lib/quotearg.c (quotearg_n_options): Likewise.
74133         Use a simpler test for size overflow.  Don't use xalloc_oversized
74134         because unsigned int might be wider than size_t (!); this suggests
74135         that we should switch from unsigned int to size_t for slot numbers.
74136
74137 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74138
74139         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74140         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74141         NetBSD kernels.  Requested by Richard Stallman.
74142
74143 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74144
74145         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74146         to allocate the returned structure.  Do not allocate a subarray,
74147         as x2nrealloc will do that.
74148         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74149         instead of xnrealloc.
74150         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74151
74152 2003-10-27  Bruno Haible  <bruno@clisp.org>
74153
74154         * lib/stdbool_.h: Better support for BeOS.
74155
74156 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74157
74158         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74159         now uses inline.
74160
74161 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74162
74163         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74164         callers that want to do their own size-overflow checking.  Include
74165         <stdbool.h>, since xalloc_oversized returns bool.
74166         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74167         to use xalloc_oversized.
74168
74169         Add two functions x2realloc, x2nrealloc, for programs that grow
74170         arrays dynamically by doubling their sizes.
74171         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74172         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74173         New functions.
74174
74175         Port to C99 semantics for 'inline' of external functions.
74176         Bug reported by Bruno Haible.
74177         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74178         with the old contents of xnmalloc.
74179         (xnmalloc, xmalloc): Use it.
74180         (xnrealloc_inline): New static inline function,
74181         with the old contents of xnrealloc.
74182         (xnrealloc, xrealloc): Use it.
74183
74184         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74185         that.
74186
74187 2003-10-26  Karl Berry  <karl@gnu.org>
74188
74189         * config/srclist.txt (COPYING.DOC): no longer available from
74190         /gd/gnuorg; don't know where the ultimate source is.
74191
74192 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74193
74194         Fix several address-calculation bugs in the hash modules,
74195         plus some minor code cleanup.
74196
74197         * lib/hash.h: Include <stdbool.h>, for bool.
74198         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74199         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74200         hash_get_n_entries, hash_get_max_bucket_length,
74201         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74202         hash_rehash): Use size_t rather than unsigned.
74203         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74204         hash_get_n_buckets_used, hash_get_n_entries,
74205         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74206         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74207         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74208         Likewise.
74209         (SIZE_MAX): Define if not defined.
74210         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74211         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74212         hash_print):
74213         Use const * when possible.
74214         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74215         (check_tuning): Fix bug: if tuning parameters were very close to
74216         0 or 1, rounding errors could have caused subscript violations.
74217         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74218         (hash_initialize): Add 'fail:' label
74219         to free table and return NULL, and use it to simplify code.
74220         Use calloc rather than clearing the storage ourself.
74221         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74222         buffer size calculations.
74223         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74224         Include <stddef.h>, for size_t.
74225         * lib/hash-pjw.c (hash_pjw): Likewise.
74226         Switch to method described by Bruno Haible.
74227         Include <limits.h>, for CHAR_BIT.
74228         (SIZE_BITS): New macro.
74229
74230 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74231
74232         * m4/getline.m4 (AM_FUNC_GETLINE):
74233         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74234         hosts.  Problem reported by Derek Robert Price in
74235         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74236         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74237         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74238
74239 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74240
74241         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74242         ceiling the allocation at NMAX bytes rather than silently
74243         discarding input bytes before NMAX is reached.  This makes
74244         a difference only if NMAX exceeds SIZE_MAX / 2.
74245
74246         * lib/obstack.c: Merge from glibc.
74247         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74248         Add libc_hidden_def (_obstack_newchunk).
74249         (_obstack_free) [! defined _LIBC]: Remove.
74250         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74251         a clone of the function body.
74252         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74253         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74254
74255         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74256         glibc.
74257         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74258         arg to memcpy.
74259
74260         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74261         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74262         Don't use lvalue casts, as GCC plans to remove support for them
74263         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74264         was also present in the non-GCC version, indicating that this
74265         code had always been buggy and had never been widely used.
74266         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74267         Use the fast variant of each macro, rather than copying the
74268         definiens of the fast variant; that way, we'll be more likely to
74269         catch future bugs in the fast variants.
74270
74271 2003-10-20  Bruno Haible  <bruno@clisp.org>
74272
74273         * modules/wait-process: New file.
74274         * MODULES.html.sh (func_all_modules): Add wait-process.
74275
74276 2003-10-20  Bruno Haible  <bruno@clisp.org>
74277
74278         * m4/wait-process.m4: New file.
74279
74280 2003-10-20  Bruno Haible  <bruno@clisp.org>
74281
74282         * lib/wait-process.h: New file, from GNU gettext.
74283         * lib/wait-process.c: New file, from GNU gettext.
74284
74285 2003-10-19  Jim Meyering  <jim@meyering.net>
74286
74287         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74288         HPUX 10.20.
74289
74290 2003-10-18  Karl Berry  <karl@gnu.org>
74291
74292         * config/config.guess: update from config.
74293
74294 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74295
74296         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74297         (getgroups): First arg is int, not size_t.
74298         Don't let 'free' mangle errno.
74299
74300 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74301
74302         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74303
74304 2003-10-16  Karl Berry  <karl@gnu.org>
74305
74306         * config/config.{guess,sub}: update from config.
74307
74308 2003-10-16  Jim Meyering  <jim@meyering.net>
74309
74310         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74311         memcpy.
74312
74313 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74314
74315         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74316         (SIZE_MAX): Remove.
74317         (new_exclude, add_exclude_file): Initial size no longer needs to
74318         be a power of 2.
74319         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74320         our own address arithmetic overflow checking.
74321
74322         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74323         (fnmatch): Do not alloca more than 2000 wide characters;
74324         instead, use malloc for large buffers.
74325         Check for address arithmetic overflow, and return -1
74326         with errno set to ENOMEM in that case.
74327         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74328         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74329         instead, return -1.  Check for address arithmetic overflow.
74330
74331 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74332
74333         Handle invalid suffixes and overflow independently, so that
74334         callers can treat them independently as needed.  Fix some bugs in
74335         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74336         suffix for a human-readable blocksize.  The major caller-visible
74337         change is the addition of a new
74338         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74339         that both overflow and suffix chars were found.
74340
74341         * lib/human.c (humblock): Don't check separately for invalid suffix
74342         char; that is xstrtoumax's job (now that its bug is fixed).
74343         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74344         INTMAX_MAX]: New macros.
74345         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74346         TYPE_MAXIMUM): New macros.
74347         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74348         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74349         if overflow occurs, as it's what __strtol does and it's more useful
74350         in practice.
74351         (__xstrtol): If __strtol reports some error other than ERANGE,
74352         reflect it to the caller as LONGINT_INVALID.  If it reports
74353         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74354         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74355         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74356         value.
74357         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74358         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74359         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74360         [defined UINTMAX_MAX]: New macros.
74361
74362 2003-10-14  Bruno Haible  <bruno@clisp.org>
74363
74364         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74365
74366 2003-10-14  Bruno Haible  <bruno@clisp.org>
74367
74368         * m4/sig_atomic_t: New file, from GNU gettext.
74369         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74370
74371 2003-10-14  Bruno Haible  <bruno@clisp.org>
74372
74373         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74374         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74375         Also use volatile where needed.
74376
74377 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74378
74379         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74380         Change maintainer from Bruno Haible to 'all'.
74381
74382 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74383
74384         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74385
74386 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74387
74388         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74389         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74390         and define in terms of the other primitives.
74391         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74392         (SIZE_MAX): Define if not already defined.
74393         (array_size_overflow): New function.
74394         (xalloc_die): Abort instead of exiting if 'error' returns.
74395         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74396         (xmalloc, xrealloc): Use them.
74397         (xcalloc): Check for address arithmetic overflow.
74398         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74399         a bit faster than strcpy.
74400
74401 2003-10-10  Simon Josefsson  <jas@extundo.com>
74402
74403         * modules/argp (Depends-on): Add restrict and strcase.
74404
74405 2003-10-10  Simon Josefsson  <jas@extundo.com>
74406
74407         * m4/argp.m4: Add AC_C_INLINE.
74408
74409 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74410
74411         Merge getpass from libc, plus a few fixes.
74412
74413         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74414         Include <stdbool.h>.
74415         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74416         __fsetlocking to empty.
74417         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74418         do include <bits/libc-lock.h>.
74419         Do not include <fcntl.h>; not needed.
74420         [_LIBC]: Include <wchar.h>.
74421         (NOTCANCEL_MODE): New macro.
74422         (flockfile, funlockfile) [_LIBC]: New macros.
74423         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74424         [!_LIBC]: New macros.
74425         (call_fclose): New function.
74426         (getpass): Use it.  Save tty stream separately; this simplifies the
74427         code and makes it more reliable if stdin happens to equal stdout.
74428         Invoke __fsetlocking on tty.
74429         Handle thread cancellation if needed.
74430         Namespace cleanup (use __tcgetattr, __getline).
74431         Use bool for Booleans.
74432         [USE_IN_LIBIO]: Handle wide streams.
74433         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74434         stream might go where.
74435
74436         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74437         doesn't have to include <stdio.h> before us.
74438         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74439         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74440         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74441         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74442         if not declared, so that we can use getpass.c code from libc without
74443         rewriting it.
74444         (flockfile, ftrylockfile, funlockfile): New macros.
74445
74446 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74447
74448         * modules/getpass: Depend on stdbool.
74449
74450 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74451
74452         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74453
74454 2003-10-07  Karl Berry  <karl@gnu.org>
74455
74456         * config/config.{guess,sub}: update from config.
74457
74458 2003-10-06  Jim Meyering  <jim@meyering.net>
74459             Bruno Haible  <bruno@clisp.org>
74460
74461         This lets translators provide better translations for the
74462         "Written by ..." part of --version output.
74463         * lib/version-etc.h: Include stdarg.h.
74464         (version_etc_copyright): Declare as readonly.
74465         (version_etc): Make this function variadic with a NULL-terminated list
74466         of author name strings.
74467         (version_etc_va): New declaration.
74468         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74469         (version_etc_copyright): Declare as readonly.
74470         (version_etc_va): New function. Provide a different translatable string
74471         for each possible number of authors < 10. Abbreviate when there are 10
74472         authors or more.
74473         (version_etc): Make this function variadic. Call version_etc_va.
74474         Suggestion from Gary V. Vaughan.
74475
74476         * lib/long-options.h (parse_long_options): Change prototype: the
74477         authors string is moved to the end and becomes variadic.
74478         * lib/long-options.c: Include stdarg.h.
74479         (parse_long_options): Make this function variadic, too.
74480         Call version_etc_va, not version_etc.
74481
74482 2003-10-06  Bruno Haible  <bruno@clisp.org>
74483
74484         * modules/version-etc-2: Remove file.
74485         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74486
74487 2003-10-06  Bruno Haible  <bruno@clisp.org>
74488
74489         * modules/fatal-signal: New file.
74490         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74491
74492 2003-10-06  Bruno Haible  <bruno@clisp.org>
74493
74494         * m4/fatal-signal.m4: New file.
74495         * m4/signalblocking.m4: New file, from GNU gettext.
74496
74497 2003-10-06  Bruno Haible  <bruno@clisp.org>
74498
74499         * lib/version-etc-2.h: Remove file.
74500         * lib/version-etc-2.c: Remove file.
74501
74502 2003-10-06  Bruno Haible  <bruno@clisp.org>
74503
74504         * lib/fatal-signal.h: New file, from GNU gettext.
74505         * lib/fatal-signal.c: New file, from GNU gettext.
74506
74507 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74508
74509         * README: Rework advice for preventing empty .o files.
74510         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74511         not <sys/types.h>.
74512
74513 2003-10-04  Karl Berry  <karl@gnu.org>
74514
74515         * lib/argp*: update from libc.
74516
74517 2003-10-04  Karl Berry  <karl@gnu.org>
74518
74519         * config/config.{guess,sub}: update from config.
74520
74521 2003-10-02  Bruno Haible  <bruno@clisp.org>
74522
74523         * modules/lchown (Include): Add lchown.h.
74524         * modules/time_r (Include): Use "..." syntax.
74525         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74526
74527 2003-10-01  Simon Josefsson  <jas@extundo.com>
74528
74529         * MODULES.html.sh (func_all_modules): Move gethostname from section
74530         'based on' to section 'lacking' POSIX:2001.
74531
74532 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74533
74534         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74535         to output mode on the same stream.
74536
74537 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74538
74539         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74540         Fix arg typo in previous patch.
74541
74542 2003-09-28  Jim Meyering  <jim@meyering.net>
74543
74544         * lib/error.c: Correct cpp indentation.
74545
74546 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74547
74548         * modules/free: New file.
74549
74550 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74551
74552         * m4/free.m4: New file.
74553
74554 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74555
74556         * lib/minmax.h (MIN, MAX)
74557         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74558         Omit the special code that used __typeof__, since we worry that
74559         it could be more trouble than it's worth.  See:
74560         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74561         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74562
74563         * lib/free.c: New file.
74564
74565 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74566
74567         Trivial fixes to Makefile.am parts of module listings.
74568         * modules/strstr: Append strstr.h to lib_SOURCES.
74569         * modules/strcase: Likewise, for strcase.h.
74570
74571 2003-09-27  Karl Berry  <karl@gnu.org>
74572
74573         * config/mkinstalldirs: update from automake.
74574
74575 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74576
74577         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74578         (error_tail): Do not loop, reallocating temporary buffer, since
74579         the output cannot contain more wide characters than the input
74580         contains bytes, the size must be big enough already.  This avoids
74581         one potential size overflow calculation.  Check for size overflow
74582         when calculating temporary buffer size.  Free temporary buffer
74583         when done, if it was allocated with malloc; this plugs a memory
74584         leak.  Remove casts from void * to pointers, that are no longer
74585         needed now that we're assuming C89 or better.
74586
74587         Merge error changes from glibc.
74588
74589         * lib/error.c, error.h: Update copyright notice header to match glibc.
74590         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74591         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74592         Disable cancellation while printing error.
74593         * lib/error.h: Prepend __ to parameter names.
74594
74595 2003-09-26  Jim Meyering  <jim@meyering.net>
74596
74597         * lib/error.c (error_tail): Move some declarations
74598         into inner scope where the local variables are used.
74599
74600 2003-09-26  Bruno Haible  <bruno@clisp.org>
74601
74602         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74603         stpncpy().
74604         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74605
74606 2003-09-26  Bruno Haible  <bruno@clisp.org>
74607
74608         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74609         (stpncpy): Define as alias for gnu_stpncpy.
74610         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74611
74612 2003-09-25  Simon Josefsson  <jas@extundo.com>
74613
74614         * lib/xgetdomainname.h: New file.
74615         * lib/xgetdomainname.c: New file.
74616
74617 2003-09-25  Simon Josefsson  <jas@extundo.com>
74618             Bruno Haible  <bruno@clisp.org>
74619
74620         * modules/getdomainname: New file.
74621         * modules/xgetdomainname: New file.
74622         * MODULES.html.sh (func_all_modules): Add getdomainname,
74623         xgetdomainname.
74624
74625 2003-09-25  Simon Josefsson  <jas@extundo.com>
74626             Bruno Haible  <bruno@clisp.org>
74627
74628         * m4/getdomainname.m4: New file.
74629
74630 2003-09-25  Simon Josefsson  <jas@extundo.com>
74631             Bruno Haible  <bruno@clisp.org>
74632
74633         * lib/getdomainname.h: New file.
74634         * lib/getdomainname.c: New file.
74635
74636 2003-09-25  Karl Berry  <karl@gnu.org>
74637
74638         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74639
74640 2003-09-25  Karl Berry  <karl@gnu.org>
74641
74642         * config/install-sh: update from automake.
74643
74644 2003-09-25  Bruno Haible  <bruno@clisp.org>
74645
74646         * modules/version-etc-2: New file, from modules/version-etc with
74647         modifications.
74648         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74649
74650 2003-09-25  Bruno Haible  <bruno@clisp.org>
74651
74652         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74653         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74654
74655 2003-09-24  Simon Josefsson  <jas@extundo.com>
74656
74657         * modules/xgethostname: Add xgethostname.h.
74658
74659 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74660
74661         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74662         the buffer associated with the argument.  Bug reported by
74663         Simon Josefsson.
74664
74665 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74666
74667         * README: Document assumptions that 'int' is at least 32 bits
74668         wide, that integer arithmetic is 2's complement without overflow,
74669         that there are no holes in integer values, that adding sizes of
74670         two nonoverlapping objects can't overflow, and that all-bits-zero
74671         yields scalar zero.  Fix spelling and capitalization typos.
74672
74673 2003-09-19  Karl Berry  <karl@gnu.org>
74674
74675         * lib/argp.h: update from libc.
74676
74677 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74678
74679         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74680         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74681         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74682
74683 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74684
74685         * gnulib-tool: Use "test -h", not "test -L", for portability
74686         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74687         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74688         (sed_extract_prog): Issue s commands one-by-one, rather than
74689         using \| in one s command.
74690
74691 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74692
74693         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74694         input error, instead of returning NULL the next time we are called
74695         (and therefore losing track of errno).
74696
74697 2003-09-16  Bruno Haible  <bruno@clisp.org>
74698
74699         * gnulib-tool (func_create_testdir): Warn about duplicated
74700         dependencies.
74701
74702 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74703
74704         * modules/argmatch, modules/fatal, modules/obstack,
74705         modules/xalloc, modules/xgethostname: Sort dependencies by
74706         importance, not alphabetically.
74707
74708 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74709
74710         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74711         fails, so that the caller gets the proper errno.
74712
74713         * lib/readutmp.c (read_utmp): Likewise.
74714         Check for fstat error.  Close stream and free storage
74715         when failing.
74716
74717 2003-09-14  Karl Berry  <karl@gnu.org>
74718
74719         * config/srclist.txt (strdup.c): disable for c89 changes.
74720
74721 2003-09-14  Jim Meyering  <jim@meyering.net>
74722
74723         * lib/getloadavg.c: Correct cpp indentation.
74724         * lib/strdup.c: Likewise.
74725         * lib/vasnprintf.c: Likewise.
74726
74727 2003-09-14  Bruno Haible  <bruno@clisp.org>
74728
74729         * modules/fwriteerror: New file.
74730         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74731
74732 2003-09-14  Bruno Haible  <bruno@clisp.org>
74733
74734         * lib/fwriteerror.h: New file.
74735         * lib/fwriteerror.c: New file.
74736
74737 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74738
74739         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74740         modules/xgethostname, modules/xalloc: Depend on exit.
74741
74742 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74743
74744         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74745
74746         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74747         and AC_MINIX, too, so that their extensions are available.
74748
74749         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74750         This macro has been superseded by gl_BACKUPFILE.
74751
74752         More patches to assume C89 or better.
74753
74754         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74755
74756         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74757         unconditionally.
74758         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74759         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74760         Include <string.h>, <stdlib.h> unconditionally.
74761         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74762         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74763         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74764         headers or for string.h.
74765         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74766         or strtoul.
74767
74768         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74769         headers.
74770         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74771         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74772         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74773         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74774         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74775         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74776         memcpy, memset.
74777         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74778         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74779         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74780         strtol.
74781         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74782         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74783         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74784         strtoul.
74785
74786 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74787
74788         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74789         * lib/obstack.c [!defined _LIBC]: Likewise.
74790         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74791         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74792         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74793
74794         More changes to assume C89 or better.
74795
74796         * lib/error.c (error_tail): Assume vprintf.
74797
74798         * lib/argmatch.c (getenv): Remove decl.
74799         * lib/progreloc.c (get_full_program_name): Define via prototype.
74800         * lib/setenv.c (clearenv): Likewise.
74801         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74802         needed.
74803         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74804         (malloc, memcpy): Remove decls.
74805         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74806         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74807         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74808         (memcpy): Remove macro.
74809         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74810         (__P): Remove.  All uses removed.
74811         (PTR): Remove.  All uses changed to void *.
74812         (CHAR_BIT, NULL): Remove.
74813         (spaces, zeros, memset_space, memset_zero)
74814         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74815         Remove.
74816         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74817         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74818         Define with prototype.
74819         Remove now-unnecessary prototype decl.
74820         (extra_args_spec): Assume ANSI C.  All uses changed.
74821         (extra_args_spec_iso): Remove.
74822         (my_strftime, emacs_strftimeu): Define via prototype.
74823         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74824         unconditionally.
74825         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74826         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74827         (strtoul, strtol): Remove decls.
74828         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74829         LONG_MAX): Remove.
74830         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74831         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74832         (LOCALE_PARAM_PROTO): New macro.
74833         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74834         (INTERNAL (strtol), strtol): Define with a prototype.
74835         (PARAMS): Remove.  All uses removed.
74836         * lib/tempname.c: Include <string.h> unconditionally.
74837         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74838         * lib/xgethostname.c (main): Define with a prototype.
74839         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74840         Include <stdlib.h> unconditionally.
74841         (calloc, malloc, realloc, free): Remove decls.
74842         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74843         Include <stdlib.h> unconditionally.  Sort include file names.
74844         (strtod): Remove.
74845         (xstrtod): Define with a prototype.
74846         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74847         (strtol, strtoul): Remove decls.
74848
74849 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74850
74851         More patches to assume C89 or better.
74852         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74853         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74854         string.h, memchr, STDC_HEADERS.
74855
74856 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74857
74858         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74859         Include <stdlib.h>, <string.h> unconditionally.
74860         Remove now-unnecessary cast to char *.
74861         * lib/strnlen.c: Include <string.h> unconditionally.
74862         * lib/yesno.c (yesno): Define with a prototype.
74863
74864 2003-09-11  Bruno Haible  <bruno@clisp.org>
74865
74866         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74867
74868 2003-09-10  Jim Meyering  <jim@meyering.net>
74869
74870         * lib/error.c: Correct indentation of cpp directives.
74871
74872 2003-09-10  Bruno Haible  <bruno@clisp.org>
74873
74874         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74875         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74876         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74877         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74878         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74879         <stdlib.h> and <string.h> checks.
74880         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74881         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74882
74883 2003-09-10  Bruno Haible  <bruno@clisp.org>
74884
74885         * lib/strcspn.c: Include <string.h> unconditionally.
74886         * lib/strpbrk.c: Include <string.h> unconditionally.
74887         * lib/strstr.c: Include <string.h> unconditionally.
74888         * lib/unicodeio.c: Include <string.h> unconditionally.
74889         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74890         * lib/unsetenv.c: Likewise.
74891         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74892         * lib/yesno.c: Include <stdlib.h> unconditionally.
74893         (rpmatch): Add prototype.
74894
74895 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74896
74897         More patches to assume C89 or better.
74898         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74899         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74900         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74901         or for string.h.
74902         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74903         stdlib.h.
74904         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74905         C headers.
74906         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74907         string.h.
74908         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74909         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74910         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74911         or for string.h.
74912         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74913         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74914         C headers.
74915         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74916         memcpy.
74917         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74918         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74919         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74920         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74921         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74922         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74923         string.h, free.
74924         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74925         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74926         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74927         C headers, or for string.h.
74928         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74929         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74930         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74931         headers, memory.h, stdlib.h, string.h, strings.h.
74932         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74933         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74934         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74935         strchr.
74936         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74937         headers, memory.h, string.h.
74938         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74939         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74940         free.
74941         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74942         headers.
74943         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74944         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74945         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74946         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74947         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74948
74949 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74950
74951         More K&R removal.
74952
74953         * lib/acosl.c (main): Use a prototype.
74954         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74955         tanl.c: Likewise.
74956
74957         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74958
74959         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74960         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74961         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74962         with a prototype.
74963         * lib/getopt.c (const): Remove macro.
74964         Include <string.h> unconditionally.
74965         (my_index): Remove; all uses changed to strchr.
74966         (strlen): Remove decl.
74967         (exchange): Remove forward decl; no longer needed.
74968         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74969         Define with prototype.
74970         * lib/getopt1.c (const): Remove macro.
74971         (getopt_long, getopt_long_only, main): Define with prototype.
74972
74973         * lib/getugroups.c: Include <string.h> unconditionally.
74974
74975         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74976         (getusershell, setusershell, endusershell, readname, main):
74977         Define with prototypes.
74978
74979         * lib/group-member.c: Include group-member.h first.
74980         Include <stdlib.h> unconditionally.
74981
74982         * lib/hard-locale.c: Include hard-locale.h first.
74983         Include <stdlib.h>, <string.h> unconditionally.
74984
74985         * lib/hash.c (free, malloc): Remove decls.
74986         Include <stdlib.h> unconditionally.
74987
74988         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74989         (getenv): Do not declare.
74990
74991         * lib/idcache.c: Include <string.h> unconditionally.
74992
74993         * lib/long-options.c: Include long-options.h first, to test interface.
74994         Include <stdlib.h> unconditionally.
74995
74996         * lib/makepath.c: Include makepath.h first, to test interface.
74997         Include <stdlib.h> and <string.h> unconditionally.
74998
74999         * lib/linebuffer.c: Include <stdlib.h>.
75000         (free): Remove decl.
75001
75002         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75003         stddef.h. rpl_malloc returns void *, not char *.
75004         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75005         prototype.
75006
75007         * lib/md5.h: Include <limits.h> unconditionally.
75008         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75009         (__P): Remove; all uses removed.
75010         * lib/md5.c: Include "md5.h" first.
75011         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75012         md5_buffer, md5_process_bytes, md5_process_block):
75013         Define with prototypes.
75014         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75015         * lib/sha.c: Include "sha.h" first.
75016         Include <stdlib.h>, <string.h> unconditionally.
75017
75018         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75019         * lib/memcmp.c (__ptr_t): Likewise.
75020         * lib/memrchr.c (__ptr_t): Likewise.
75021         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75022         Include <string.h> unconditionally.
75023         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75024         * lib/memchr.c: Include <stdlib.h> unconditionally.
75025         * lib/memchr.c (LONG_MAX): Remove.
75026         * lib/memrchr.c (LONG_MAX): Likewise.
75027         * lib/memchr.c (__memchr): Define via a prototype.
75028         * lib/memrchr.c (__memrchr): Likewise.
75029         * lib/memcmp.c (__P): Remove, and remove all uses.
75030         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75031         Remove forward decls; no longer needed.
75032         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75033         Use types required by C89 in prototype.
75034
75035         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75036         * lib/savedir.c: Likewise.
75037         * lib/mkdir.c (free): Remove decl.
75038         * lib/rmdir.c (rmdir): Define with a prototype.
75039         * lib/savedir.c: Include savedir.h first, to test interface.
75040
75041         * lib/mktime.c (STDC_HEADERS): Remove.
75042         Include <stdlib.h>, <string.h> unconditionally.
75043
75044         * lib/modechange.c: Include <stdlib.h> unconditionally.
75045         (malloc): Remove decl.
75046
75047         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75048         (free): Remove decl.
75049
75050         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75051         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75052         (This type really should be intptr_t, but that's a C99ism.)
75053         (_obstack_memcpy): Remove: all uses changed to memcpy.
75054         Include <string.h> unconditionally.
75055         (struct obstack): Assume __STDC__ for types of members
75056         chunkfun, freefun, extra_arg.
75057         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75058         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75059         obstack_begin, obstack_specify_allocation,
75060         obstack_specify_allocation_with_arg, obstack_chunkfun,
75061         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75062         Remove unprototyped decls and the macros that use them.
75063         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75064         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75065         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75066         (defined __STDC__ && __STDC__)]:
75067         Remove nonprototyped code.
75068         Include <stdlib.h> unconditionally.
75069         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75070         _obstack_allocated_p, _obstack_free, obstack_free,
75071         _obstack_memory_used, print_and_abort):
75072         Define using prototypes.
75073         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75074         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75075         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75076         obstack_next_free, obstack_object_size, obstack_room) [0]:
75077         Remove unused, unprototyped code.
75078
75079         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75080
75081         * lib/physmem.c (physmem_total, physmem_available, main): Define
75082         with prototypes.
75083
75084         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75085         (main): Define with a prototype.
75086
75087         * lib/posixver.c (getenv): Remove decl.
75088
75089         * lib/putenv.c (malloc): Returns void *, not char *.
75090         Include <string.h> unconditionally.
75091         (strchr, memcpy, NULL): Do not define.
75092
75093         * lib/readtokens.c: Include readtokens.h first, to test interface.
75094         Include <stdlib.h>, <string.h> unconditionally.
75095         (init_tokenbuffer): Define with a prototype.
75096
75097         * lib/regex.c (PARAMS): Remove.  All uses removed.
75098         All uses of _RE_ARGS removed, too.
75099         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75100         unconditionally.
75101         (bzero): Assume memset exists.
75102         (memcmp, memcpy, NULL): Remove.
75103         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75104         char, or assignments to local vars of type signed char.
75105         (init_syntax_once, PREFIX(extract_number_and_incr),
75106         PREFIX(print_partial_compiled_pattern),
75107         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75108         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75109         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75110         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75111         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75112         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75113         wcs_compile_range, byte_compile_range, truncate_wchar,
75114         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75115         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75116         count_mbs_length, wcs_re_match_2_internal,
75117         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75118         PREFIX(alt_match_null_string_p),
75119         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75120         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75121         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75122         now-unnecessary declaration, if any.
75123         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75124         regcomp, regexec):
75125         Remove now-unnecessary casts among pointer types.
75126         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75127
75128         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75129         (free): Remove decl.
75130
75131         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75132
75133         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75134         (free): Remove decl.
75135
75136         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75137         * lib/xgetcwd.c: Likewise.
75138
75139         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75140         (free): Remove decl.
75141
75142         * lib/strchrnul.c (strchrnul): Define with a prototype.
75143         Fix bug: c_in was not converted to char before searching.
75144
75145         The following changes are not K&R related:
75146
75147         * lib/group-member.h: Include <sys/types.h>, so that this file is
75148         self-contained.
75149         * lib/makepath.h: Likewise.
75150
75151         * lib/getusershell.c (readname, default_index, line_size, readname):
75152         Use size_t, not int, for sizes.
75153         (readname): If the size overflows, report an error instead of
75154         looping forever.
75155
75156 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75157
75158         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75159         libc.
75160
75161 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75162
75163         * README: New section: portability guidelines.
75164
75165 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75166
75167         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75168         C89 spec.
75169
75170 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75171
75172         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75173
75174 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75175
75176         Assume C89 or better; remove K&R cruft.
75177         A few of these changes were first proposed by Derek Robert Price
75178         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75179
75180         * lib/addext.c: Include <string.h> unconditionally.
75181         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75182         Don't declare getenv or malloc.
75183
75184         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75185         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75186         (NULL): Remove.
75187         (find_stack_direction, alloca): Use prototypes.
75188
75189         * lib/atexit.c (atexit): Define using a prototype.
75190
75191         * lib/basename.c, dirname.c, stripslash.c:
75192         Include <string.h> unconditionally.
75193
75194         * lib/bcopy.c: Include <stddef.h>.
75195         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75196
75197         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75198
75199         * lib/error.h (error, error_at_line, error_print_progname)
75200         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75201         * lib/error.c: Include error.h first, to check interface.
75202         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75203         (VA_START): Remove; all uses changeed to va_start.
75204         (exit, strerror): Remove decls.
75205         (error_print_progname): Prototype uncondionally.
75206         Don't include <errno.h>; no longer needed.
75207         (private_strerror): Remove.
75208         (error_tail): Always define.
75209         (error, error_at_line): Assume C89 or better; always use prototypes.
75210         * lib/fatal.c: Include "fatal.h" first, to test interface.
75211         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75212         (VA_START): Remove; all uses changed to va_start.
75213         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75214         this case.
75215         (exit): Remove decl.
75216         (fatal): Prototype unconditionally.  Assume va_start works.
75217         Abort at end, to pacify gcc.
75218
75219         * lib/euidaccess.c (main): Define with a prototype.
75220
75221         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75222
75223         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75224
75225         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75226         prototypes.
75227         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75228         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75229         (getenv): Remove decl.
75230         (fnmatch): Define using a prototype.
75231         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75232         (FCT): Define using a prototype.
75233
75234         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75235
75236         * lib/gethostname.c: Include <stddef.h>.
75237         (gethostname): Define with prototype.  Length is size_t, not int.
75238
75239 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75240
75241         Assume C89 or better; remove K&R cruft.
75242         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75243         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75244         string.h, getenv, malloc.
75245         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75246         headers.
75247         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75248         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75249         do not check for strerror.
75250         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75251         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75252         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75253         do not check for doprnt or vprintf.
75254         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75255         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75256
75257 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75258
75259         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75260         getversion.c should have been removed then, but was accidentally
75261         preserved.
75262
75263         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75264         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75265
75266 2003-09-08  Karl Berry  <karl@gnu.org>
75267
75268         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75269                 config, forget about prep.
75270
75271         * config/depcomp, missing: update from automake.
75272
75273 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75274
75275         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75276         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75277
75278 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75279
75280         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75281         copy_tm_result.  Bug reported by Simon Josefsson in
75282         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75283
75284 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75285
75286         * m4/time_r.m4: New file.
75287         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75288         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75289         is. Check for timegm declaration.
75290         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75291         Do not check for gmtime_r.
75292         Replace mktime if __mktime_internal does not exist and if mktime
75293         hasn't been replaced already.
75294
75295 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75296
75297         * lib/time_r.c, lib/time_r.h: New files.
75298
75299         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75300         __localtime_r.
75301         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75302         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75303
75304         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75305         __gmtime_r.
75306         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75307         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75308         Include <time_r.h>.
75309
75310         * lib/timegm.c: Switch to glibc implementation, with the following
75311         changes:
75312         [defined HAVE_CONFIG_H]: Include <config.h>.
75313         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75314         (__mktime_internal) [!defined _LIBC]: New decl.
75315         (__gmtime_r) [!defined _LIBC]: New macro and function.
75316         (timegm): Use a prototype, since gnulib assumes C89.
75317         Do not bother declaring tmp to be const, as it's not really usefu.
75318         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75319         (timegm): Declare only if HAVE_DECL_TIMEGM.
75320
75321 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75322
75323         * MODULES.html.sh (func_all_modules): Add time_r.
75324         * modules/time_r: New file.
75325         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75326         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75327
75328 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75329
75330         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75331         Bug reported by Lute Kamstra in
75332         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75333
75334         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75335         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75336         course with correspondingly smaller numbers for tomorrow and
75337         yesterday.  From Tadayoshi Funaba.  Originally installed into
75338         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75339         coreutils merge?).
75340
75341 2003-08-31  Simon Josefsson  <jas@extundo.com>
75342
75343         * modules/timegm: New file.
75344         * MODULES.html.sh (func_all_modules): Add timegm.
75345
75346 2003-08-31  Simon Josefsson  <jas@extundo.com>
75347
75348         * m4/timegm.m4: New file.
75349
75350 2003-08-31  Simon Josefsson  <jas@extundo.com>
75351
75352         * lib/timegm.h: New file.
75353         * lib/timegm.c: New file.  Based on
75354         wget-1.8.2/src/http.c:mktime_from_utc.
75355
75356 2003-08-31  Karl Berry  <karl@gnu.org>
75357
75358         * lib/argp.h: update from libc.
75359
75360 2003-08-28  Bruno Haible  <bruno@clisp.org>
75361
75362         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75363         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75364         followed by '#define fnmatch fnmatch_posix' gives an error.
75365
75366 2003-08-28  Bruno Haible  <bruno@clisp.org>
75367
75368         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75369         warning on QNX, which defines O_BINARY to 000000.
75370
75371 2003-08-27  Jim Meyering  <jim@meyering.net>
75372
75373         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75374         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75375         would fail after 32.  Reported by Danny Levinson.  Details here:
75376         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75377
75378 2003-08-24  Bruno Haible  <bruno@clisp.org>
75379
75380         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75381         MSVC7 <stdio.h> is included later.
75382
75383 2003-08-22  Simon Josefsson  <jas@extundo.com>
75384
75385         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75386
75387 2003-08-20  Karl Berry  <karl@gnu.org>
75388
75389         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75390
75391 2003-08-20  Bruno Haible  <bruno@clisp.org>
75392
75393         * modules/progname: New file.
75394         * MODULES.html.sh (func_all_modules): Add progname.
75395
75396 2003-08-20  Bruno Haible  <bruno@clisp.org>
75397
75398         * lib/progname.h: New file, from GNU gettext.
75399         * lib/progname.c: New file, from GNU gettext.
75400         * lib/progreloc.c: New file, from GNU gettext.
75401
75402 2003-08-19  Jim Meyering  <jim@meyering.net>
75403
75404         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75405         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75406
75407 2003-08-19  Bruno Haible  <bruno@clisp.org>
75408
75409         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75410         more.
75411
75412 2003-08-19  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/xstrdup.c: Assume <string.h> exists.
75415
75416 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75417
75418         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75419         in makefile rules.
75420
75421 2003-08-18  Jim Meyering  <jim@meyering.net>
75422
75423         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75424         * m4/lib-ld.m4: Likewise.
75425
75426 2003-08-18  Jim Meyering  <jim@meyering.net>
75427
75428         * lib/setenv.h: Indent nested cpp directive.
75429         * lib/vasnprintf.c: Remove trailing blanks.
75430
75431 2003-08-17  Simon Josefsson  <jas@extundo.com>
75432
75433         * modules/xstrndup: New file.
75434         * MODULES.html.sh (func_all_modules): Add xstrndup.
75435
75436 2003-08-17  Simon Josefsson  <jas@extundo.com>
75437
75438         * modules/argp: Fix autoconf macro name. Add more dependencies.
75439
75440 2003-08-17  Simon Josefsson  <jas@extundo.com>
75441
75442         * m4/xstrndup.m4: New file.
75443
75444 2003-08-17  Simon Josefsson  <jas@extundo.com>
75445
75446         * m4/argp.m4: New file.
75447
75448 2003-08-17  Simon Josefsson  <jas@extundo.com>
75449             Bruno Haible  <bruno@clisp.org>
75450
75451         * lib/xstrndup.h: New file.
75452         * lib/xstrndup.c: New file.
75453
75454 2003-08-17  Bruno Haible  <bruno@clisp.org>
75455
75456         * modules/strndup (Files, Include): Add lib/strndup.h.
75457
75458 2003-08-17  Bruno Haible  <bruno@clisp.org>
75459
75460         * modules/euidaccess (Files): Add lib/euidaccess.h.
75461
75462 2003-08-17  Bruno Haible  <bruno@clisp.org>
75463
75464         * lib/strndup.h: New file.
75465
75466 2003-08-17  Bruno Haible  <bruno@clisp.org>
75467
75468         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75469         like AC_GNU_SOURCE.
75470         * modules/extensions (configure.ac): Comment out the invocation of
75471         gl_USE_SYSTEM_EXTENSIONS.
75472
75473 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75474
75475         Merges from coreutils, etc.
75476         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75477         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75478         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75479         fixing a typo.
75480         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75481         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75482
75483 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75484
75485         Document merge from coreutils.
75486         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75487         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75488         * modules/utime: Add m4/utimes-null.m4.
75489
75490 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75491
75492         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75493         space, undoing this 2003-08-12 change:
75494         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75495
75496 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75497
75498         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75499         strtoul.c from libc, undoing this 2003-08-12 change:
75500         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75501
75502 2003-08-16  Jim Meyering  <jim@meyering.net>
75503
75504         Merges from coreutils.
75505         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75506         prefix.  Adjust cache variables similarly.  Create 500 rather than
75507         just 300 files, to exercise bug on Darwin6.5, too.
75508         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75509         $missing_dir.
75510         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75511         AM_SYS_POSIX_TERMIOS.
75512         Reported by mkc@mathdogs.com.
75513         Also change use of $am_cv_sys_posix_termios
75514         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75515         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75516         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75517         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75518         in /proc/mounts until it finds one with matching device number.  This
75519         is unnecessary when the FILE argument *is* a mount point.  No stat call
75520         is necessary in that case.  So, disable the statvfs-testing code on
75521         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75522         as RedHat bug# 84846.
75523         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75524         to 1MB, so as not to render systems with no stack size limit (e.g.,
75525         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75526         Include <unistd.h>.  On some systems,
75527         it is required for the definition of _SC_PAGESIZE.
75528
75529 2003-08-16  Jim Meyering  <jim@meyering.net>
75530
75531         Merge from coreutils.
75532         * lib/xstrtoimax.c: #else #if -> #elif.
75533         * lib/xstrtoumax.c: Likewise.
75534
75535 2003-08-16  Jim Meyering  <jim@meyering.net>
75536
75537         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75538         * m4/utimes.m4: Removed.
75539         * m4/utimes-null.m4: Renamed from utimes.m4.
75540
75541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75542         to 1MB, so as not to render systems with no stack size limit (e.g.,
75543         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75544         Include <unistd.h>.  On some systems,
75545         it is required for the definition of _SC_PAGESIZE.
75546
75547 2003-08-16  Jim Meyering  <jim@meyering.net>
75548         and Paul Eggert  <eggert@cs.ucla.edu>
75549
75550         Merges from coreutils, etc.
75551
75552         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75553         using the latest version from cvs.  This avoids problems with #line
75554         directives using a vendor (Sun) compiler.
75555         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75556         Don't set GETGROUPS_LIB here; now it's
75557         done via getgroups.m4's wrapper function.
75558         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75559         rather than just in sh-util/configure.in, so that the
75560         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75561         same.
75562         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75563         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75564         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75565         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75566         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75567         Remove code that is now done by the newly-required macros.
75568         Append $(EXEEXT) to DF_PROG.
75569         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75570         Do not invoke or require the following here,
75571         since prereq.m4 or some gnulib .m4 now does this for us:
75572         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75573         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75574         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75575         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75576         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75577         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75578         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75579         AC_FUNC_OBSTACK.
75580         Do not replace the following functions, as this is now the job
75581         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75582         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75583         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75584         atexit getpass, strdup, getpagesize.
75585         Replace 'raise'.
75586         Do not check for the following functions, as this is now the job
75587         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75588         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75589         setregid.
75590         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75591         Check for sys/sysctl.h.
75592         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75593         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75594         of checking for ssize_t ourselves.
75595
75596         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75597         Require every macro that gnulib/modules/* suggests for us.
75598         (jm_PREREQ_ADDEXT): New macro.
75599         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75600         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75601
75602         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75603         (gl_PHYSMEM): Use it.
75604         Also check for `table' function.
75605         Check for new headers and functions.
75606         Add check for sys/sysmp.h.
75607         With suggestions from Kaveh Ghazi.
75608         Ignore headers that are present but cannot be compiled.  This
75609         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75610         C 5.4.
75611
75612 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75613
75614         Document merge from coreutils.
75615         * modules/userspec: Depend on posixver.
75616         * modules/strftime: Depend on tzset.
75617
75618 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75619
75620         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75621         rather than tab, after '#' in shell-script copyright notices.
75622         Suggested by Bruno Haible.
75623
75624 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75625
75626         * config/srclist-update: Use three spaces, rather than tab, after '#'
75627         in shell-script copyright notices.  Suggested by Bruno Haible.
75628         Remove unnecessary parenthesization in regular expression.
75629
75630 2003-08-15  Jim Meyering  <jim@meyering.net>
75631
75632         Merge from coreutils.
75633         * lib/xgethostname.c: Include <stdlib.h>.
75634         (xghostname): Don't exit for anything other than memory-related
75635         failure; just return NULL.
75636         * lib/userspec.c: Include "posixver.h".
75637         (parse_user_spec): Accept `.' as a separator only
75638         in pre-POSIX-200112 mode.
75639         * lib/strtoimax.c: Use #elif rather than #else #if.
75640         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75641         Remove function, now that we can rely on a working tzset function.
75642         [!_LIBC]: Ensure that the required autoconf test has been run.
75643         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75644         Use underlying_strftime for %r.
75645         * lib/sha.c: Merge in some clean-up and optimization changes from
75646         glibc.
75647         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75648         Ensure that it is a multiple of 64.
75649         Rearrange loop exit tests so as to avoid performing an
75650         additional fread after encountering an error or EOF.
75651         * lib/realloc.c: Update copyright date.
75652
75653 2003-08-15  Jim Meyering  <jim@meyering.net>
75654         and Paul Eggert  <eggert@twinsun.com>
75655
75656         Merge from coreutils.
75657         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75658         member but strut utmpx does not.  Needed for AIX 4.3.3.
75659         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75660
75661 2003-08-15  Jim Meyering  <jim@meyering.net>
75662         and Paul Eggert  <eggert@cs.ucla.edu>
75663
75664         Merges from coreutils, etc.
75665         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75666         Require gl_FUNC_TZSET_CLOBBER.
75667         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75668         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75669         members.
75670
75671 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75672
75673         Help the merge from coreutils.
75674         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75675         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75676         * m4/tzset.m4: Use it too.
75677
75678 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75679
75680         * modules/tzset: New file.
75681
75682 2003-08-14  Jim Meyering  <jim@meyering.net>
75683
75684         Merges from coreutils.
75685         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75686         variable names, rather than @FNMATCH_H@.
75687         * modules/alloca: Likewise for $(ALLOCA_H).
75688
75689         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75690         the three copies of the literal target, `fnmatch.h'.
75691         * modules/alloca (alloca.h): Likewise.
75692
75693 2003-08-14  Jim Meyering  <jim@meyering.net>
75694
75695         Merge from coreutils.
75696         * m4/tzset.m4: New file.
75697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75698         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75699         otherwise, AIX 5.1 systems would end up using the latter.
75700         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75701         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75702         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75703         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75704
75705 2003-08-14  Jim Meyering  <jim@meyering.net>
75706
75707         Merge from coreutils.
75708         * lib/obstack.h: Whitespace changes.
75709         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75710         and xcalloc return values.
75711         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75712         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75713         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75714         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75715         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75716         error from mntctl.
75717         Use mntctl's return value to drive the entry-processing loop, since
75718         we can't rely on the value of the vmt_length member in the last
75719         entry.  On some systems doing so could result in exhausting
75720         virtual memory.  Based in part on a patch from Mike Jetzer.
75721
75722 2003-08-14  Jim Meyering  <jim@meyering.net>
75723         and Paul Eggert  <eggert@twinsun.com>
75724
75725         Merges from coreutils, plus other fixes.
75726         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75727         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75728         for credits and details.  Thanks to Kaveh Ghazi for helping
75729         to keep these files in sync.
75730         (ARRAY_SIZE): Define it.
75731         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75732         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75733         (memcasecmp): Don't assume size_t fits in unsigned int.
75734         Remove casts and duplicate code.
75735         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75736         (memcpy): Remove definition.
75737         Merge in some clean-up and optimization changes from glibc.
75738         [BLOCKSIZE]: Move definition to top of file.
75739         Ensure that it is a multiple of 64.
75740         Rearrange loop exit tests so as to avoid performing an
75741         additional fread after encountering an error or EOF.
75742         * lib/md5.h (md5_uintptr): Define.
75743         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75744         return to the initial working directory.  Preserve errno
75745         for caller.
75746         * lib/idcache.c: Include "xalloc.h".
75747         (xmalloc, xrealloc): Remove decls.
75748         (getuser): Remove casts no longer required in C89.
75749         * lib/human.c: Include stdio.h, for sprintf.
75750         * lib/group-member.c: Include "xalloc.h".
75751         (xmalloc, xrealloc): Remove decls.
75752         (get_group_info): Remove casts no longer required in C89.
75753         * lib/getusershell.c (readname): Remove casts no longer required in
75754         C89.
75755         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75756         * lib/getline.c: Whitespace fix, from coreutils.
75757
75758 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75759
75760         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75761         Check for isascii.
75762
75763         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75764         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75765         Undo previous (whitespace-only) change.
75766
75767 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75768
75769         * lib/exclude.c: Include <ctype.h>
75770         (IN_CTYPE_DOMAIN): New macro.
75771         (is_space): New fn.
75772         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75773         and empty lines.
75774
75775         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75776         Undo previous (whitespace-only) change.
75777
75778 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75779
75780         * config/srclist-update: Change update back to the old behavior,
75781         leaving whitespace alone.  Use one 'sed' command rather than a
75782         pipeline.
75783         (fixlicense): Now a variable, not a function.
75784         (remove_trailing_blanks): Remove.
75785         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75786         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75787         Undo previous (whitespace-only) change.
75788
75789 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75790
75791         Merge from coreutils.
75792         * modules/euidaccess: Add lib_SOURCES, include for new
75793         file euidaccess.h
75794
75795 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75796
75797         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75798         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75799         Normalize leading white space and remove trailing white space.
75800
75801         Merge from coreutils
75802         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75803
75804         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75805         0.12.1.  These files are now being upgraded automatically by
75806         ../config/srclist-update.
75807
75808 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75809
75810         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75811         Normalize leading white space and remove trailing white space.
75812         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75813         notice, as per ../config/srclist-update.
75814
75815         Merge from coreutils.
75816         * lib/euidaccess.h: New file.
75817         * lib/euidaccess.c: Include it.
75818         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75819         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75820         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75821
75822 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75823
75824         * config/srclist-update: Add copyright notice.
75825         (remove_id_lines, remove_trailing_blanks): New constants.
75826         (fixfile): Use them to normalize spacing a bit in copied files.
75827         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75828         Normalize leading white space and remove trailing white space.
75829
75830         * config/texinfo.tex: Sync with texinfo.
75831
75832         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75833         strtoul.c from libc, to merge coreutils whitespace changes.
75834
75835         * config/srclist.txt: Get the following m4 files from gettext:
75836         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75837         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75838         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75839         wint_t.m4.
75840
75841 2003-08-12  Karl Berry  <karl@gnu.org>
75842
75843         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75844         been made.
75845
75846 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75847
75848         * modules/gnu-source, m4/gnu-source.m4:
75849         Remove; we're assuming Autoconf 2.54 or later now.
75850         Suggested by Bruno Haible.
75851         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75852
75853 2003-08-11  Bruno Haible  <bruno@clisp.org>
75854
75855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75856
75857 2003-08-11  Bruno Haible  <bruno@clisp.org>
75858
75859         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75860         (vasnprintf): Use it instead of wcslen.
75861
75862 2003-08-11  Bruno Haible  <bruno@clisp.org>
75863
75864         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75865         value to ensure that _Bool promotes to int. Use #define for _Bool when
75866         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75867
75868 2003-08-10  Karl Berry  <karl@gnu.org>
75869
75870         * lib/regex.h: update from libc (whitespace fix).
75871
75872 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75873
75874         Merge some files from coreutils.  These changes were
75875         originally made by Jim Meyering.
75876         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75877         many older Unixes require this.
75878         * lib/alloca.c (alloca): Remove cast to argument of free;
75879         no longer needed in C89.
75880         * lib/alloca_.h, regex.h: Fix white space to match
75881         what GNU indent does.
75882
75883 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75884
75885         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75886         apparently Emacs's Unicode mode got confused before my 2003-08-05
75887         checkin.
75888
75889 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75890
75891         * m4/extensions.m4: New file.
75892         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75893         Require gl_USE_SYSTEM_EXTENSIONS.
75894         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75895         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75896
75897 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75898
75899         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75900         * modules/extensions, modules/gnu-source: New files.
75901         * modules/timespec, modules/unlocked-io: Depend on extensions.
75902
75903 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75904
75905         * modules/restrict: New file.
75906         * MODULES.html.sh (func_all_modules): Add restrict.
75907         * modules/regex: Depend on restrict.
75908
75909 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75910
75911         * m4/restrict.m4: New file.
75912         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75913
75914 2003-08-07  Bruno Haible  <bruno@clisp.org>
75915
75916         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75917         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75918
75919 2003-08-07  Bruno Haible  <bruno@clisp.org>
75920
75921         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75922         makes the module 'getndelim2' compatible with the module 'getline'.
75923
75924 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75925
75926         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75927         byte with "\201" to avoid glitches when editing that source file
75928         with multi-gnome-terminal.
75929
75930 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75931
75932         * lib/bumpalloc.h: Remove.
75933
75934 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75935
75936         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75937         * modules/bumpalloc: Remove.
75938
75939 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75940
75941         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75942         GNU coding style.
75943
75944         Merge from coreutils.
75945         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75946         1. From glibc.
75947         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75948         from Karl Berry, implemented by Jim Meyering.
75949         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75950         from Dmitry V. Levin.
75951         Remove anachronistic cast of xrealloc.
75952         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75953         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75954         type. Otherwise, it wouldn't compile with at least /bin/cc on
75955         ymp-cray-unicos9.0.2.X.
75956         Combine two mostly-identical uses of alloca into one.
75957         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75958
75959 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75960
75961         [From Emacs.]
75962
75963         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75964         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75965         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75966         obsolete NLIST_NAME_UNION.
75967         [__GNU__]: Undef BSD and FSCALE.
75968         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75969
75970 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75971
75972         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75973         an enum type, so that it's guaranteed to promote to int.  See:
75974         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75975
75976 2003-08-03  Karl Berry  <karl@gnu.org>
75977
75978         * config/depcomp: update from automake.
75979
75980 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75981
75982         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75983         (strerror): Don't assume that a printable int fits in 14 bytes.
75984
75985 2003-07-31  Bruno Haible  <bruno@clisp.org>
75986
75987         * modules/getpass-gnu: New file.
75988         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75989
75990 2003-07-31  Bruno Haible  <bruno@clisp.org>
75991
75992         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75993
75994 2003-07-24  Karl Berry  <karl@gnu.org>
75995
75996         * config/missing: update from automake.
75997
75998 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75999             Bruno Haible  <bruno@clisp.org>
76000
76001         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76002         * lib/getline.c (getline, getdelim): Likewise.
76003         Remove _GNU_SOURCE define; now it's defined in config.h through
76004         m4/getline.m4.
76005
76006 2003-07-23  Karl Berry  <karl@gnu.org>
76007
76008         * config/config.sub: update from prep.
76009
76010 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76011
76012         * modules/xalloc (Depends-on): Add exitfail.
76013         * modules/xmemcoll: Likewise.
76014
76015 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76016
76017         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76018         over-parenthesization in macros.
76019
76020         Sync with coreutils.
76021
76022         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76023         required by C99.
76024
76025         Use `exit_failure' for xalloc and xmemcoll instead of their own
76026         private exit-failure variables.
76027         * lib/xalloc.h (xalloc_exit_failure): Remove.
76028         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76029         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76030         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76031         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76032         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76033
76034 2003-07-20  Jim Meyering  <jim@meyering.net>
76035
76036         * modules/closeout (Depends-on): Add exitfail.
76037         Suggestion from Bruno Haible.
76038
76039 2003-07-19  Karl Berry  <karl@gnu.org>
76040
76041         * config/config.sub: update from prep.
76042
76043 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76044
76045         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76046         Remove.
76047         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76048         to test that it can stand by itself.  Include "exitfail.h".
76049         Clients should set exit_failure instead.
76050         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76051
76052 2003-07-18  Bruno Haible  <bruno@clisp.org>
76053
76054         * modules/getndelim2: New file.
76055         * modules/getline: Share files with module getndelim2.
76056         * modules/getnline: Depend on getndelim2 instead of sharing files with
76057         it. Add getnline.c to lib_SOURCES.
76058         * MODULES.html.sh (func_all_modules): Add getndelim2.
76059
76060 2003-07-18  Bruno Haible  <bruno@clisp.org>
76061
76062         * m4/getndelim2.m4: New file.
76063         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76064         invoke gl_PREREQ_GETNDELIM2.
76065         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76066         gl_PREREQ_GETNDELIM2.
76067         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76068         gl_GETNDELIM2.
76069
76070 2003-07-18  Bruno Haible  <bruno@clisp.org>
76071
76072         * lib/getndelim2.h: New file.
76073         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76074         getndelim2.h.
76075         (getndelim2): Make non-static. Change return type to ssize_t.
76076         * lib/getline.h: Change argument names.
76077         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76078         * lib/getnline.c: Include getndelim2.h.
76079
76080 2003-07-18  Andreas Schwab  <schwab@suse.de>
76081
76082         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76083
76084 2003-07-17  Karl Berry  <karl@gnu.org>
76085
76086         * config/config.sub: update from prep.
76087
76088 2003-07-17  Bruno Haible  <bruno@clisp.org>
76089
76090         * modules/getnline: New file.
76091         * modules/getline: Add lib/getndelim2.c to source file list.
76092         * MODULES.html.sh (func_all_modules): Add getnline.
76093
76094 2003-07-17  Bruno Haible  <bruno@clisp.org>
76095
76096         * m4/getnline.m4: New file.
76097
76098 2003-07-17  Bruno Haible  <bruno@clisp.org>
76099
76100         * m4/Makefile.am.in: Remove file.
76101         * m4/Makefile.am: Remove file.
76102         * m4/Makefile.in: Remove file.
76103
76104 2003-07-17  Bruno Haible  <bruno@clisp.org>
76105
76106         * lib/getnline.h: New file.
76107         * lib/getnline.c: New file.
76108         * lib/getndelim2.c: New file, extracted from getline.c.
76109         (getndelim2): Renamed from getdelim2, with added nmax argument.
76110         * lib/getline.c: Include getndelim2.c.
76111         (getdelim2): Moved out to getndelim2.c.
76112         (getline, getdelim): Update.
76113
76114 2003-07-17  Bruno Haible  <bruno@clisp.org>
76115
76116         * lib/Makefile.am: Remove file.
76117         * lib/Makefile.in: Remove file.
76118
76119 2003-07-17  Bruno Haible  <bruno@clisp.org>
76120
76121         * configure.in: Remove file.
76122         * Makefile.in: Remove file.
76123
76124 2003-07-17  Bruno Haible  <bruno@clisp.org>
76125
76126         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76127
76128 2003-07-16  Karl Berry  <karl@gnu.org>
76129
76130         * config/srclist-update: was running fixlicense twice, which caused
76131                 texinfo.tex to be nullified for some reason.  Simplify,
76132                 $gplsrc is no longer needed as far as I can see?
76133
76134 2003-07-16  Jim Meyering  <jim@meyering.net>
76135
76136         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76137
76138 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76139
76140         * config/srclist.txt: Get the following files from gettext-runtime/intl
76141         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76142         ref-del.sin.  From Bruno Haible.
76143         * config/srclist-update (fixfile): Change grep pattern again, since the
76144         previous fix didn't work (there was another trailing $).  Use
76145         '[$]' to escape the $s.
76146
76147 2003-07-15  Karl Berry  <karl@gnu.org>
76148
76149         * lib/vasnprintf.c: update from gettext.
76150
76151 2003-07-15  Karl Berry  <karl@gnu.org>
76152
76153         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76154         gets expanded when surrounded by '$'.
76155
76156 2003-07-15  Jim Meyering  <jim@meyering.net>
76157
76158         * modules/save-cwd: Don't depend on error.  From Derek Price.
76159
76160 2003-07-15  Jim Meyering  <jim@meyering.net>
76161
76162         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76163
76164 2003-07-14  Simon Josefsson  <jas@extundo.com>
76165
76166         * modules/mempcpy: New file.
76167         * MODULES.html.sh (func_all_modules): Add mempcpy.
76168
76169 2003-07-14  Simon Josefsson  <jas@extundo.com>
76170
76171         * m4/mempcpy.m4: New file.
76172
76173 2003-07-14  Simon Josefsson  <jas@extundo.com>
76174
76175         * lib/mempcpy.h: New file.
76176         * lib/mempcpy.c: New file.
76177
76178 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76179
76180         * modules/getdate, modules/posixtm: Depend on mktime.
76181
76182 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76183
76184         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76185         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76186         unicodeio.c, unicodeio.h, unlocked-io.h:
76187         Switch from LGPL to GPL.
76188
76189 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76190
76191         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76192         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76193         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76194         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76195         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76196         updated automatically by ../config/srclist-update.  This changes
76197         their license from LPGL to GPL.
76198
76199 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76200
76201         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76202         assumed to refer to the root of the most recent stable gettext version.
76203         * config/srclistvars.sh: Add defaults for eggert.
76204         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76205         Match "This program" as well as "The program".  This is needed
76206         for gettext.
76207
76208 2003-07-14  Jim Meyering  <jim@meyering.net>
76209
76210         Don't emit diagnostics.  Let callers do that.
76211         * lib/save-cwd.c: Don't include "error.h".
76212         (save_cwd): Don't call error.  Ensure that errno is valid
76213         when returning nonzero.
76214
76215         * lib/save-cwd.h (restore_cwd): Update prototype.
76216         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76217         Simplify.  Don't call error upon failure.  Let callers do that.
76218         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76219         when auditing is enabled.  But don't bother updating the #if.
76220
76221 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76222
76223         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76224         it breaks C++ compilation.
76225         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76226
76227 2003-07-10  Simon Josefsson  <jas@extundo.com>
76228
76229         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76230
76231 2003-07-10  Jim Meyering  <jim@meyering.net>
76232
76233         * m4/clock_time.m4: Remove trailing blank.
76234         * m4/intmax_t.m4: Likewise.
76235
76236 2003-07-10  Jim Meyering  <jim@meyering.net>
76237
76238         * lib/vasnprintf.c: Remove trailing blanks.
76239         Make cpp indentation consistent.
76240
76241 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76242
76243         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76244         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76245         Switch from LGPL to GPL.
76246
76247 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76248
76249         * config/srclist.txt: Sort sublists.  Add
76250         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76251         that differ from gnulib for one reason or another; we'd like this list
76252         to be smaller but for now let's document what we have.
76253
76254 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76255
76256         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76257         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76258         and sweeter "eval x=$x".
76259         * config/srclist.txt: Get lib/argp* from glibc.
76260
76261 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76262
76263         * lib/mktime.c: Fix some boundary cases and remove need for floating
76264         point.
76265
76266         Issue a compile-time diagnostic if time_t is floating point, or if
76267         two's complement arithmetic is not in effect, or if arithmetic
76268         right shift does not propagate the sign.  These assumptions were
76269         all in the original code but they weren't checked.
76270
76271         (TIME_T_MIDPOINT, verify): New macros.
76272         (__isleap): Remove; it has integer overflow problems.
76273         (leapyear): New function, without those problems.
76274         (ydhms_tm_diff): Remove; splitting into two parts.
76275         (ydhms_diff): New function, containing the arithmetic part of
76276         the old ydhms_tm_diff function.  Issue a compile-time
76277         diagnostic if we are not using C99 integer division.
76278         Avoid casts when possible.
76279         (guess_time_tm): New function, containing the checking part of
76280         the old ydhms_tm_diff function.  Return the new value, rather than
76281         the difference between it and the old.  Accept a new argument T
76282         so that *T specifies the old value.  Check for overflow in the result.
76283
76284         (__mktime_internal): Use a time_t offset, not a long int offset.
76285         This undoes the 2003-06-04 change, which is no longer needed now
76286         that we have better overflow checking.
76287         (localtime_offset): Likewise.
76288
76289         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76290         and long are 64-bit but int is only 32-bit.
76291         (ydhms_diff): Use long int to store year1 and yday1.
76292         Issue a compile-time diagnostic if long int is not wide enough.
76293
76294         (__mktime_internal): Use long int to store adjusted year and yday.
76295         Use plain C rather than preprocessor commands, if that doesn't
76296         affect efficiency.
76297         Check for overflow (and try to repair) after each probe
76298         rather than checking only at the very end.  This avoids some bugs
76299         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76300         does not equal GMT offset at maximum time).
76301         Use integer to check for overflow rather than floating point; this
76302         is more portable to non-IEEE hosts, and is a tad faster.
76303         When we detect that we are oscillating between two values,
76304         don't check whether tm_isdst has the requested value, since
76305         we already know the answer.  When tm_isdst has the wrong value,
76306         use a different heuristic to find the right one, based on the
76307         extreme values actually observed in practice in tz2003a,
76308         rather than the (overly optimistic) "previous 3 calendar quarters".
76309
76310         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76311         "T const" to accommodate glibc style.
76312         (check_result): Use less-confusing report format.  "long" -> "long int.
76313         (main): Likewise.
76314         Don't loop if the iteration overflows time_t.
76315         Allow a negative step in the iteration.
76316
76317 2003-07-06  Karl Berry  <karl@gnu.org>
76318
76319         * config/depcomp: update from automake.
76320         * config/config.sub: update from prep.
76321
76322 2003-07-03  Karl Berry  <karl@gnu.org>
76323
76324         * config/config.guess: update from prep.
76325
76326 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76327
76328         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76329         xreadlink.c now includes it unconditionally.
76330
76331 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76332
76333         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76334         having it depend on HAVE_SYS_TYPES_H.
76335
76336 2003-07-01  Bruno Haible  <bruno@clisp.org>
76337
76338         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76339         <sys/types.h> should be sufficient.
76340         Reported by Paul Eggert.
76341
76342 2003-06-26  Karl Berry  <karl@gnu.org>
76343
76344         * config/depcomp: update from automake.
76345
76346 2003-06-26  Bruno Haible  <bruno@clisp.org>
76347
76348         * modules/human: Depend on module stdbool.
76349
76350 2003-06-25  Bruno Haible  <bruno@clisp.org>
76351
76352         * modules/readlink: New file.
76353         * modules/xreadlink: Depend on it.
76354         * MODULES.html.sh (func_all_modules): Add readlink.
76355
76356 2003-06-25  Bruno Haible  <bruno@clisp.org>
76357
76358         * m4/readlink.m4: New file.
76359
76360 2003-06-25  Bruno Haible  <bruno@clisp.org>
76361
76362         * lib/readlink.c: New file.
76363
76364 2003-06-22  Karl Berry  <karl@gnu.org>
76365
76366         * config/srclist.txt: update mkinstalldirs from automake.
76367         * config/mkinstalldirs: update.
76368
76369 2003-06-22  Bruno Haible  <bruno@clisp.org>
76370
76371         Portability to mingw32.
76372         * m4/ssize_t.m4: New file, from GNU gettext.
76373         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76374         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76375
76376 2003-06-22  Bruno Haible  <bruno@clisp.org>
76377
76378         * modules/safe-read: Add m4/ssize_t.m4.
76379         * modules/xreadlink: Add m4/ssize_t.m4.
76380
76381 2003-06-20  Bruno Haible  <bruno@clisp.org>
76382
76383         Assume C89, so PARAMS isn't needed.
76384         * lib/unicodeio.h (PARAMS): Remove.
76385         * lib/unicodeio.c: Don't use PARAMS.
76386
76387 2003-06-18  Karl Berry  <karl@gnu.org>
76388
76389         * config/config.{guess,sub}: update from prep.
76390
76391 2003-06-18  Jim Meyering  <jim@meyering.net>
76392
76393         Merge changes from coreutils.
76394         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76395         Remove explicit declarations of xmalloc and realloc.
76396         Include xalloc.h.
76397         (read_utmp): Remove anachronistic cast of xmalloc.
76398
76399 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76400
76401         Assume C89, so PARAMS isn't needed.
76402         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76403         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76404         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76405         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76406         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76407         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76408         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76409         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76410         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76411         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76412         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76413         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76414         no longer needed. Anyway, config.h should always be included before any
76415         other file.
76416
76417 2003-06-11  Simon Josefsson  <jas@extundo.com>
76418
76419         * modules/sysexits: New file.
76420         * MODULES.html.sh (func_all_modules): Add sysexits.
76421
76422 2003-06-11  Simon Josefsson  <jas@extundo.com>
76423
76424         * lib/sysexit_.h: New file.
76425
76426 2003-06-11  Derek Price  <derek@ximbiot.com>
76427
76428         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76429         necessary.
76430
76431 2003-06-11  Bruno Haible  <bruno@clisp.org>
76432
76433         * m4/sysexits.m4: New file.
76434
76435 2003-06-10  Simon Josefsson  <jas@extundo.com>
76436
76437         * lib/argp.h: New file, from glibc.
76438         * lib/argp-ba.c: New file, from glibc.
76439         * lib/argp-eexst.c: New file, from glibc.
76440         * lib/argp-fmtstream.c: New file, from glibc.
76441         * lib/argp-fmtstream.h: New file, from glibc.
76442         * lib/argp-fs-xinl.c: New file, from glibc.
76443         * lib/argp-help.c: New file, from glibc.
76444         * lib/argp-namefrob.h: New file, from glibc.
76445         * lib/argp-parse.c: New file, from glibc.
76446         * lib/argp-pv.c: New file, from glibc.
76447         * lib/argp-pvh.c: New file, from glibc.
76448         * lib/argp-xinl.c: New file, from glibc.
76449
76450 2003-06-10  Simon Josefsson  <jas@extundo.com>
76451
76452         * modules/strchrnul: New file.
76453
76454 2003-06-10  Simon Josefsson  <jas@extundo.com>
76455
76456         * modules/argp: New file.
76457
76458 2003-06-10  Simon Josefsson  <jas@extundo.com>
76459
76460         * m4/strchrnul.m4: New file.
76461
76462 2003-06-10  Simon Josefsson  <jas@extundo.com>
76463
76464         * lib/strchrnul.h: New file.
76465         * lib/strchrnul.c: New file.
76466
76467 2003-06-10  Bruno Haible  <bruno@clisp.org>
76468
76469         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76470
76471 2003-06-07  Karl Berry  <karl@gnu.org>
76472
76473         * config/config.{guess,sub}: update from prep.
76474
76475 2003-06-07  Jim Meyering  <jim@meyering.net>
76476
76477         * modules/strtod: Use $(...) notation, not @...@ for
76478         AC_REPLACE'd variables.
76479         * modules/localcharset: Likewise.
76480
76481 2003-06-07  Jim Meyering  <jim@meyering.net>
76482
76483         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76484         in place of my name in the copyright comment.
76485         Remove definition and uses of __P.
76486
76487         From coreutils.
76488         * lib/stat.c: Don't declare xmalloc explicitly.
76489         Instead, include "xalloc.h".
76490         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76491         xrealloc, and xcalloc return values.
76492         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76493         Improve comment.
76494         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76495
76496 2003-06-07  Bruno Haible  <bruno@clisp.org>
76497
76498         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76499         avoid AC_CONFIG_LINKS.
76500         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76501         fnmatch.h, to avoid AC_CONFIG_LINKS.
76502         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76503
76504 2003-06-07  Bruno Haible  <bruno@clisp.org>
76505
76506         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76507         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76508         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76509         directory.
76510         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76511         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76512         directory.
76513
76514 2003-06-06  Jim Meyering  <jim@meyering.net>
76515
76516         Merge from coreutils.
76517         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76518         Consolidate declarations and initializations of *_base* locals.
76519
76520         Merge from coreutils.
76521         This avoids a core dump on systems without GNU putenv,
76522         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76523         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76524         (unsetenv): New static function, from GNU libc.
76525         (rpl_putenv): Use it.
76526
76527         * lib/modechange.c: Remove trailing blanks.
76528
76529         Merge from coreutils.
76530         * lib/fsusage.c: Remove declaration of statfs.
76531         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76532
76533         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76534
76535 2003-06-06  Jim Meyering  <jim@meyering.net>
76536
76537         * lib/stdbool_.h: Renamed from stdbool.h.in.
76538
76539 2003-06-06  Jim Meyering  <jim@meyering.net>
76540             Bruno Haible  <bruno@clisp.org>
76541
76542         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76543         Adjust Makefile.am snippet not to redirect directly to target.
76544         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76545
76546 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76547
76548         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76549         mismatch, look in future quarters as well as past.  This fixes a
76550         bug when processing fall-backwards gaps immediately after a long
76551         period of daylight-saving time.
76552
76553         * lib/mktime.c: Assume freestanding C89 or better.
76554         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76555         (__P): Remove; not used.
76556         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76557         (mktime, not_equal_tm, print_tm, check_result,
76558         main): Use prototypes.  Use const * where appropriate.
76559         (main): Fix typo in testing code that uncovered by above changes.
76560         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76561
76562 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76563
76564         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76565         locale.h, localeconv.  This merges changes from coreutils.
76566
76567         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76568         It can be removed after the next Autoconf is released.
76569         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76570         needed.
76571
76572 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76573
76574         * lib/mktime.c: Fix Debian bug 177940
76575         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76576         (localtime_offset): Now long int, not time_t, because we want it
76577         to be guaranteed to be signed.  All uses changed.
76578         (__mktime_internal): If overflow would occur when adding offset,
76579         don't add it.
76580
76581         Merge 'human' changes from coreutils.  Rewrite to support
76582         locale-specific notations like thousands separators.
76583         * lib/human.c: Simplify authorship notice.
76584         Include human.h immediately after config.h.
76585         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76586         <limits.h>: Do not include, since human.h does.
76587         (SIZE_MAX, UINTMAX_MAX): New macros.
76588         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76589         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76590         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76591         (power_letter): Renamed from suffixes.
76592         (generate_suffix_backwards): Remove.
76593         (adjust_value): Now takes int style (because of human.h changes)
76594         and long double value (for greater precision on some platforms).
76595         (group_number): New function.
76596         (human_readable): Use it.  Use integer options, not enum.
76597         Put the options before the sizes in the arg list.
76598         Support all the new options.
76599         The old human_readable function has been removed;
76600         use inttostr.h instead.
76601         (human_readable, default_block_size, humblock):
76602         Use uintmax_t, not int, for block sizes.
76603         (human_readable_inexact, block_size_types): Remove.
76604         (block_size_opts): New constant.
76605         (human_options): Renamed from human_block_size, with new signature
76606         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76607         * lib/human.h: Add copyright and authorship notice.
76608         Include <limits.h> and <stdbool.h> unconditionally.
76609         (PARAMS): Remove.  All uses removed.
76610         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76611         (enum human_inexact_style): Remove tag; now a nameless enum.
76612         (human_floor, human_ceiling, human_round_to_even): Now have
76613         values 2, 0, 1 rather than -1, 1, 0.
76614         (human_group_digits, human_suppress_point_zero, human_autoscale,
76615         human_base_1024, human_SI, human_B): New constants.
76616         (human_readable_inexact, human_block_size): Remove.
76617         (human_readable): Size args are now uintmax_t, not int.
76618         (human_options): New decl.
76619
76620         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76621         unnecessary now that we assume C89 or better.  This change
76622         imported from coreutils.
76623
76624         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76625         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76626         in the 2003-05-30 sync from glibc.
76627
76628         .h files should stand alone, but we shouldn't include <sys/types.h>
76629         if we can get away with just <stddef.h>.
76630
76631         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76632         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76633         rather than <sys/types.h>, as we merely need size_t.
76634         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76635         to get size_t.
76636         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76637         Include <stdio.h>, to get FILE.
76638         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76639         memcasecmp.h has included <stddef.h> and all we need is size_t.
76640         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76641         our interface, instead of including <sys/types.h>
76642
76643 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76644
76645         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76646         now, as glibc mktime is buggy on non-glibc systems.
76647
76648 2003-06-03  Karl Berry  <karl@gnu.org>
76649
76650         * config/config.sub: update from prep.
76651
76652 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76653
76654         [from coreutils]
76655         Fix some minor time-related bugs with POSIX time arguments.
76656         Some valid time stamps were being rejected (notably -1, and
76657         time stamps before 1900 on 64-bit hosts).  And some invalid
76658         time stamps were being accepted, e.g. September 31.
76659
76660         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76661         that we can return (time_t) -1 successfully.
76662         * lib/posixtm.c: Likewise.
76663         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76664         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76665         (t): Remove static var.
76666         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76667         of static var.  All uses changed.
76668         (year): Do not reject years before 1900; they can occur with
76669         64-bit time_t.
76670         (posix_time_parse): Do not check for out-of-range components;
76671         that is now the caller's responsibility, since our checks were
76672         only approximations.
76673         (posixtime): Use mktime to check for out-of-range components,
76674         since it knows them exactly.
76675         If mktime returns (time_t) -1, check whether an error actually occurred
76676         by invoking localtime on -1.
76677         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76678         posixtime failures better.
76679         Improve the test data (in comments only).
76680
76681 2003-06-02  Karl Berry  <karl@gnu.org>
76682
76683         * config/mkinstalldirs (version): new variable.
76684         (--version): new option.
76685         (usage): improve message.
76686
76687 2003-05-30  Karl Berry  <karl@gnu.org>
76688
76689         * lib/mktime.c: update from libc.
76690
76691 2003-05-30  Bruno Haible  <bruno@clisp.org>
76692
76693         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76694         * config/config.rpath: Upgrade to gettext-0.12.1.
76695
76696 2003-05-30  Bruno Haible  <bruno@clisp.org>
76697
76698         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76699         * m4/nls.m4: New file, from gettext-0.12.1.
76700         * m4/po.m4: New file, from gettext-0.12.1.
76701         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76702
76703 2003-05-30  Bruno Haible  <bruno@clisp.org>
76704
76705         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76706         * lib/localcharset.h: Likewise.
76707         * lib/localcharset.c: Likewise.
76708
76709 2003-05-29  Karl Berry  <karl@gnu.org>
76710
76711         * config/config.rpath: update from gettext.
76712
76713 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76714
76715         Assume the headers required for C89 freestanding compilers.
76716         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76717         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76718         * m4/human.m4 (gl_HUMAN): Likewise.
76719         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76720         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76721         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76722         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76723         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76724         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76725
76726 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76727
76728         Assume the headers required for C89 freestanding compilers.
76729         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76730         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76731         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76732         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76733         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76734         define, since <limits.h> is guaranteed to do that.
76735         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76736         * lib/exclude.c: Include <stdbool.h> unconditionally.
76737         * lib/tempname.c: Include <stddef.h> unconditionally.
76738         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76739         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76740         <stddef.h> does that.
76741         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76742         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76743         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76744         needed.
76745         * lib/xstrtol.c: Likewise.
76746         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76747         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76748
76749         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76750         warnings on some platforms.
76751
76752         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76753         arbitrarily.
76754
76755 2003-05-26  Jim Meyering  <jim@meyering.net>
76756
76757         Merge in a change from coreutils:
76758         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76759         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76760         that condition, rather than `-1' which is slightly misleading.
76761         Change the name of the cache variable to have the gl_ prefix.
76762         Prompted by a patch from Richard Dawe for DJGPP.
76763
76764 2003-05-24  Karl Berry  <karl@gnu.org>
76765
76766         * config/config.guess: update from prep.
76767
76768 2003-05-22  Karl Berry  <karl@gnu.org>
76769
76770         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76771
76772 2003-05-20  Karl Berry  <karl@gnu.org>
76773
76774         * config/config.guess: update from prep.
76775
76776 2003-05-18  Karl Berry  <karl@gnu.org>
76777
76778         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76779         might actually be set by the user.
76780
76781         * config/depcomp, install-sh, mdate-sh: update from automake.
76782
76783 2003-05-17  Bruno Haible  <bruno@clisp.org>
76784
76785         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76786         invalid expansion for AC_EGREP_CPP.
76787         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76788         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76789         Suggested by Akim Demaille <akim@epita.fr> in
76790         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76791
76792 2003-05-12  Jim Meyering  <jim@meyering.net>
76793
76794         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76795         the space-padded-by-default conversion specifiers, %e, %k, %l.
76796
76797 2003-05-12  Bruno Haible  <bruno@clisp.org>
76798
76799         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76800         the string is longer than 4 KB.
76801
76802 2003-05-11  Karl Berry  <karl@gnu.org>
76803
76804         * config/config.{guess,sub}: update from prep.
76805
76806 2003-05-09  Bruno Haible  <bruno@clisp.org>
76807
76808         * modules/error: Add m4/strerror_r.m4 to file list.
76809
76810 2003-05-03  Bruno Haible  <bruno@clisp.org>
76811
76812         Upgrade to Unicode-4.0.
76813         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76814         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76815         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76816         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76817         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76818         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76819         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76820         Change width of U+E0100..U+E01EF from 1 to 0.
76821
76822 2003-04-25  Jim Meyering  <jim@meyering.net>
76823
76824         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76825         of type size_t, not int.
76826
76827 2003-04-25  Bruno Haible  <bruno@clisp.org>
76828
76829         * lib/copy-file.c: Include <stddef.h>, for size_t.
76830
76831 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76832
76833         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76834         code which expansion is under static control.  Patch imported from
76835         Akim Demaille's patch to Bison; see
76836         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76837
76838 2003-04-14  Bruno Haible  <bruno@clisp.org>
76839
76840         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76841
76842 2003-04-11  Jim Meyering  <jim@meyering.net>
76843
76844         Merge changes from Coreutils.
76845
76846         2003-03-22  Jim Meyering  <jim@meyering.net>
76847
76848         * lib/strftime.c (widen): Cast alloca return value to proper type.
76849
76850         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76851
76852         From GNU libc.
76853         * lib/strftime.c (my_strftime): Handle very large width
76854         specifications for numeric values correctly.  Improve checks for
76855         overflow.
76856
76857         2003-01-19  Jim Meyering  <jim@meyering.net>
76858
76859         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76860         definitions.
76861         (nl_get_alt_digit) [! defined my_strftime]: Define.
76862         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76863         _nl_get_alt_digit and _nl_get_walt_digit.
76864
76865         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76866         libc. These changes have no effect outside of _LIBC.
76867
76868 2003-04-10  Bruno Haible  <bruno@clisp.org>
76869
76870         * modules/findprog: New file.
76871         * MODULES.html.sh (func_all_modules): Add it.
76872
76873 2003-04-10  Bruno Haible  <bruno@clisp.org>
76874
76875         * m4/findprog.m4: New file.
76876         * m4/eaccess.m4: New file.
76877
76878 2003-04-10  Bruno Haible  <bruno@clisp.org>
76879
76880         * lib/findprog.h: New file, from GNU gettext.
76881         * lib/findprog.c: New file, from GNU gettext.
76882
76883 2003-04-05  Jim Meyering  <jim@meyering.net>
76884
76885         Merge changes from Coreutils.
76886
76887         * lib/exclude.h (PARAMS): Remove definition and uses.
76888         * lib/exclude.c: Remove uses of `PARAMS'.
76889
76890         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76891         Add test-cases for DOS filenames. Declare program_name.
76892         (main): Set up program_name.  Patch by Rich Dawe.
76893
76894         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76895         error from mntctl.
76896         Use mntctl's return value to drive the entry-processing loop, since
76897         we can't rely on the value of the vmt_length member in the last
76898         entry.  On some systems doing so could result in exhausting
76899         virtual memory.  Based in part on a patch from Mike Jetzer.
76900
76901 2003-04-04  Bruno Haible  <bruno@clisp.org>
76902
76903         * modules/linebreak: New file.
76904         * MODULES.html.sh (func_all_modules): Add it.
76905
76906 2003-04-04  Bruno Haible  <bruno@clisp.org>
76907
76908         * m4/linebreak.m4: New file.
76909
76910 2003-04-04  Bruno Haible  <bruno@clisp.org>
76911
76912         * lib/linebreak.h: New file, from GNU gettext.
76913         * lib/linebreak.c: New file, from GNU gettext with slight
76914         modifications.
76915         * lib/lbrkprop.h: New file, from GNU gettext.
76916
76917 2003-04-03  Bruno Haible  <bruno@clisp.org>
76918
76919         * modules/utf8-ucs4: New file.
76920         * modules/utf16-ucs4: New file.
76921         * modules/ucs4-utf8: New file.
76922         * modules/ucs4-utf16: New file.
76923         * MODULES.html.sh (func_all_modules): Add them.
76924
76925 2003-04-03  Bruno Haible  <bruno@clisp.org>
76926
76927         * m4/utf-ucs4.m4: New file.
76928         * m4/ucs4-utf.m4: New file.
76929
76930 2003-04-03  Bruno Haible  <bruno@clisp.org>
76931
76932         * lib/utf8-ucs4.h: New file, from GNU gettext.
76933         * lib/utf16-ucs4.h: New file, from GNU gettext.
76934         * lib/ucs4-utf8.h: New file, from GNU gettext.
76935         * lib/ucs4-utf16.h: New file, from GNU gettext.
76936
76937 2003-04-02  Bruno Haible  <bruno@clisp.org>
76938
76939         * modules/binary-io: New file.
76940         * MODULES.html.sh (func_all_modules): Add it.
76941
76942 2003-04-02  Bruno Haible  <bruno@clisp.org>
76943
76944         * lib/binary-io.h: New file, from GNU gettext.
76945
76946 2003-04-01  Bruno Haible  <bruno@clisp.org>
76947
76948         * modules/pathname: New file.
76949         * MODULES.html.sh (func_all_modules): Add it.
76950
76951 2003-04-01  Bruno Haible  <bruno@clisp.org>
76952
76953         * lib/pathname.h: New file, from GNU gettext.
76954         * lib/concatpath.c: New file, from GNU gettext.
76955
76956 2003-03-30  Bruno Haible  <bruno@clisp.org>
76957
76958         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76959
76960 2003-03-30  Bruno Haible  <bruno@clisp.org>
76961
76962         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76963         function chown() doesn't exist.
76964
76965 2003-03-28  Bruno Haible  <bruno@clisp.org>
76966
76967         * modules/copy-file: New file.
76968         * MODULES.html.sh (func_all_modules): Add it.
76969
76970 2003-03-28  Bruno Haible  <bruno@clisp.org>
76971
76972         * m4/copy-file.m4: New file.
76973
76974 2003-03-28  Bruno Haible  <bruno@clisp.org>
76975
76976         * lib/copy-file.h: New file, from GNU gettext.
76977         * lib/copy-file.c: New file, from GNU gettext.
76978
76979 2003-03-18  Jim Meyering  <jim@meyering.net>
76980
76981         * lib/quote.c (quote_n): Fix typo in comment.
76982
76983 2003-03-18  Bruno Haible  <bruno@clisp.org>
76984
76985         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76986         checking.
76987         * m4/onceonly_2_57.m4: Likewise.
76988
76989 2003-03-17  Bruno Haible  <bruno@clisp.org>
76990
76991         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76992         (m4_quote): Remove macro.
76993         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76994
76995 2003-03-14  Jim Meyering  <jim@meyering.net>
76996
76997         Merge changes from Coreutils.
76998         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76999         to be const, in order to avoid warnings.
77000         (obstack_room): Likewise.
77001         (obstack_empty_p): Likewise.
77002
77003 2003-03-14  Bruno Haible  <bruno@clisp.org>
77004
77005         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77006         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77007
77008 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77009
77010         Merge changes from Bison.
77011         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77012         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77013         when compiling Bison 1.875's `bitset bset = obstack_alloc
77014         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77015         * lib/hash.c: Include <stdbool.h> unconditionally.
77016
77017 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77018
77019         * m4/onceonly.m4 (m4_quote): New macro.
77020         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77021         Quote AC_FOREACH variable-expansions properly.
77022
77023 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77024
77025         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77026
77027 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77028
77029         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77030         Reported by Bruce Becker; see:
77031         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77032
77033 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77034             Bruno Haible  <bruno@clisp.org>
77035
77036         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77037         Reported by John Hughes, see
77038         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77039
77040 2003-02-20  Bruno Haible  <bruno@clisp.org>
77041
77042         * MODULES.html.sh (func_all_modules): Add poll.
77043
77044 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77045
77046         * modules/poll: New file.
77047
77048 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77049
77050         * lib/poll_.h: New file.
77051         * lib/poll.c: New file.
77052
77053 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77054
77055         * m4/poll.m4: New file.
77056
77057 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77058
77059         * modules/mathl: New file.
77060
77061 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77062
77063         * lib/mathl.h: New file.
77064         * lib/acosl.c: New file.
77065         * lib/asinl.c: New file.
77066         * lib/atanl.c: New file.
77067         * lib/ceill.c: New file.
77068         * lib/cosl.c: New file.
77069         * lib/expl.c: New file.
77070         * lib/floorl.c: New file.
77071         * lib/frexpl.c: New file.
77072         * lib/ldexpl.c: New file.
77073         * lib/logl.c: New file.
77074         * lib/sincosl.c: New file.
77075         * lib/sinl.c: New file.
77076         * lib/sqrtl.c: New file.
77077         * lib/tanl.c: New file.
77078         * lib/trigl.c: New file.
77079         * lib/trigl.h: New file.
77080
77081 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77082
77083         * m4/mathl.m4: New file.
77084
77085 2003-02-18  Bruno Haible  <bruno@clisp.org>
77086
77087         * MODULES.html.sh (func_all_modules): Add mathl.
77088
77089 2003-02-17  Bruno Haible  <bruno@clisp.org>
77090
77091         * modules/mkdtemp: New module.
77092         * MODULES.html.sh (func_all_modules): Add it.
77093
77094 2003-02-17  Bruno Haible  <bruno@clisp.org>
77095
77096         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77097
77098 2003-02-17  Bruno Haible  <bruno@clisp.org>
77099
77100         * lib/mkdtemp.h: New file, from GNU gettext.
77101         * lib/mkdtemp.c: New file, from GNU gettext.
77102
77103 2003-02-02  Jim Meyering  <jim@meyering.net>
77104
77105         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77106         e.g. glibc-2.2.93.
77107
77108 2003-01-31  Bruno Haible  <bruno@clisp.org>
77109
77110         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77111         'rpl_rename'.
77112         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77113         'rpl_strnlen'.
77114         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77115         'rpl_strtod'.
77116         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77117         'rpl_utime'.
77118
77119 2003-01-31  Bruno Haible  <bruno@clisp.org>
77120
77121         * lib/rename.c: #undef rename before defining rpl_rename.
77122         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77123
77124 2003-01-30  Bruno Haible  <bruno@clisp.org>
77125
77126         * modules/vasnprintf, modules/vasprintf: New modules.
77127         * MODULES.html.sh (func_all_modules): Add them.
77128
77129 2003-01-30  Bruno Haible  <bruno@clisp.org>
77130
77131         * m4/signed.m4: New file, from GNU gettext.
77132         * m4/longdouble.m4: New file, from GNU gettext.
77133         * m4/wchar_t.m4: New file, from GNU gettext.
77134         * m4/wint_t.m4: New file, from GNU gettext.
77135         * m4/vasnprintf.m4: New file.
77136         * m4/vasprintf.m4: New file.
77137
77138 2003-01-30  Bruno Haible  <bruno@clisp.org>
77139
77140         * lib/printf-args.h: New file, from GNU gettext.
77141         * lib/printf-args.c: New file, from GNU gettext.
77142         * lib/printf-parse.h: New file, from GNU gettext.
77143         * lib/printf-parse.c: New file, from GNU gettext.
77144         * lib/vasnprintf.h: New file, from GNU gettext.
77145         * lib/vasnprintf.c: New file, from GNU gettext.
77146         * lib/asnprintf.c: New file, from GNU gettext.
77147         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77148         * lib/vasprintf.c: New file, from GNU gettext.
77149         * lib/asprintf.c: New file, from GNU gettext.
77150
77151 2003-01-29  Bruno Haible  <bruno@clisp.org>
77152
77153         * modules/stpncpy: New module.
77154         * MODULES.html.sh (func_all_modules): Add it.
77155
77156 2003-01-29  Bruno Haible  <bruno@clisp.org>
77157
77158         * m4/stpncpy.m4: New file.
77159
77160 2003-01-29  Bruno Haible  <bruno@clisp.org>
77161
77162         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77163         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77164
77165 2003-01-28  Bruno Haible  <bruno@clisp.org>
77166
77167         * modules/c-ctype: New module.
77168         * MODULES.html.sh (func_all_modules): Add it.
77169
77170 2003-01-28  Bruno Haible  <bruno@clisp.org>
77171
77172         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77173         Paul Eggert.
77174         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77175         Paul Eggert.
77176
77177 2003-01-27  Bruno Haible  <bruno@clisp.org>
77178
77179         * modules/xsetenv: New module.
77180         * MODULES.html.sh (func_all_modules): Add it.
77181
77182 2003-01-27  Bruno Haible  <bruno@clisp.org>
77183
77184         * lib/xsetenv.h: New file, from GNU gettext.
77185         * lib/xsetenv.c: New file, from GNU gettext.
77186
77187 2003-01-23  Jim Meyering  <jim@meyering.net>
77188
77189         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77190         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77191
77192 2003-01-23  Bruno Haible  <bruno@clisp.org>
77193
77194         * modules/minmax: New module.
77195         * MODULES.html.sh (func_all_modules): Add it.
77196
77197 2003-01-23  Bruno Haible  <bruno@clisp.org>
77198
77199         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77200         Eggert.
77201
77202 2003-01-22  Bruno Haible  <bruno@clisp.org>
77203
77204         * modules/exit: New module.
77205         * MODULES.html.sh (func_all_modules): Add it.
77206
77207 2003-01-22  Bruno Haible  <bruno@clisp.org>
77208
77209         * lib/exit.h: New file, from GNU gettext.
77210
77211 2003-01-19  Bruno Haible  <bruno@clisp.org>
77212
77213         * gnulib-tool: Recognize option --extract-maintainer.
77214         (func_get_maintainer): New function.
77215         * modules/*: Add Maintainer entry.
77216
77217 2003-01-16  Jim Meyering  <jim@meyering.net>
77218
77219         * m4/regex.m4: The `regex' struct is both input and output.
77220         Initialize it before each use.  Patch by Tim Waugh.
77221
77222 2003-01-16  Bruno Haible  <bruno@clisp.org>
77223
77224         * MODULES.html.sh: Add a table of contents. Add the module name as
77225         leftmost column. Add hyperlinks.
77226
77227 2003-01-15  Bruno Haible  <bruno@clisp.org>
77228
77229         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77230
77231 2003-01-15  Bruno Haible  <bruno@clisp.org>
77232
77233         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77234         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77235         suffix.
77236
77237 2003-01-15  Bruno Haible  <bruno@clisp.org>
77238
77239         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77240
77241 2003-01-15  Bruno Haible  <bruno@clisp.org>
77242
77243         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77244         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77245
77246 2003-01-14  Jim Meyering  <jim@meyering.net>
77247
77248         * lib/same.c (same_name): Tweak a comment.
77249
77250 2003-01-14  Bruno Haible  <bruno@clisp.org>
77251
77252         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77253         when a string comparison is sufficient.
77254
77255 2003-01-14  Bruno Haible  <bruno@clisp.org>
77256
77257         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77258         'unsigned int'.
77259
77260 2003-01-14  Bruno Haible  <bruno@clisp.org>
77261
77262         * lib/hash-pjw.c: Add comment about low quality of this function.
77263
77264 2003-01-13  Bruno Haible  <bruno@clisp.org>
77265
77266         * modules/stpcpy: Distribute lib/stpcpy.h.
77267         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77268
77269 2003-01-13  Bruno Haible  <bruno@clisp.org>
77270
77271         * modules/*: Add a description.
77272         * modules/strpbrk: Fix Makefile.am snippet.
77273         * modules/strtoimax: Fix dependencies.
77274         * modules/strtoumax: Likewise.
77275
77276 2003-01-13  Bruno Haible  <bruno@clisp.org>
77277
77278         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77279         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77280         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77281
77282 2003-01-13  Bruno Haible  <bruno@clisp.org>
77283
77284         * gnulib-tool (func_create_testdir): Store config/* files in the main
77285         directory.
77286         * config.rpath: Move to ...
77287         * config/config.rpath: ... here.
77288         * modules/gettext: Contains config/config.rpath, not config.rpath.
77289         * modules/iconv: Likewise.
77290
77291 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77292
77293         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77294         to avoid collisions with libcurses and libreadline.
77295
77296         * m4/getstr.m4: Remove.
77297         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77298
77299 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77300
77301         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77302         to avoid collisions with libcurses and libreadline.
77303
77304         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77305         * lib/getstr.h, getstr.c: Remove.
77306         * lib/getline.c: Include "getline.h", to check interface.
77307         Move body of old getstr.c here: this defines MIN_CHUNK and
77308         declares getdelim2, which is renamed from getstr.
77309         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77310
77311         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77312         All uses changed.
77313         * lib/linebuffer.h: Likewise.
77314         (readline): Remove backward-compatibility macro.
77315
77316 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77317
77318         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77319         to avoid collisions with libcurses and libreadline.
77320         * getstr: Remove.
77321         * MODULES.html.sh: Remove getstr.
77322         * modules/getline: Depend on unlocked-io, not getstr.
77323
77324 2003-01-12  Jim Meyering  <jim@meyering.net>
77325
77326         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77327
77328 2003-01-10  Bruno Haible  <bruno@clisp.org>
77329
77330         * modules/alloca: Change Makefile.am requirements. Simplify Include
77331         requirements. Add lib/alloca_.h to file list.
77332
77333 2003-01-10  Bruno Haible  <bruno@clisp.org>
77334
77335         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77336
77337 2003-01-10  Bruno Haible  <bruno@clisp.org>
77338
77339         * lib/alloca_.h: New file.
77340         * lib/getdate.y: Unconditionally include alloca.h.
77341         * lib/makepath.c: Likewise.
77342         * lib/setenv.c: Likewise.
77343         * lib/userspec.c: Likewise.
77344
77345 2003-01-09  Karl Berry  <karl@gnu.org>
77346
77347         * MODULES.html.sh: include `dirname $0` in PATH, to find
77348         gnulib-tool.
77349
77350 2003-01-09  Bruno Haible  <bruno@clisp.org>
77351
77352         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77353         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77354
77355 2003-01-09  Bruno Haible  <bruno@clisp.org>
77356
77357         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77358
77359 2003-01-09  Bruno Haible  <bruno@clisp.org>
77360
77361         * lib/stdbool.h.in: New file.
77362
77363 2003-01-09  Bruno Haible  <bruno@clisp.org>
77364
77365         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77366         * MODULES.html.sh: Likewise.
77367
77368 2003-01-08  Jim Meyering  <jim@meyering.net>
77369
77370         * lib/full-write.c: Undefine and define-away `const' after inclusion
77371         of errno.h, not before.  Suggestion from Bruno Haible.
77372
77373 2003-01-08  Bruno Haible  <bruno@clisp.org>
77374
77375         * modules/full-read: Depend on full-write.
77376
77377 2003-01-08  Bruno Haible  <bruno@clisp.org>
77378
77379         * lib/safe-read.c: Include specification header first, to ensure its
77380         selfcontainedness.
77381         * lib/full-write.c: Likewise.
77382
77383 2003-01-07  Jim Meyering  <jim@meyering.net>
77384
77385         * lib/full-write.c: Rework so that it may serve to define full_read,
77386         too.
77387         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77388
77389 2003-01-07  Bruno Haible  <bruno@clisp.org>
77390
77391         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77392         <inttypes.h>.
77393         * lib/xstrtol.h: Likewise.
77394         * lib/xstrtoimax.c: Likewise.
77395         * lib/xstrtoumax.c: Likewise.
77396         * lib/human.h: Likewise.
77397
77398         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77399         on systems that have <inttypes.h> but not <stdint.h>.
77400
77401 2003-01-07  Bruno Haible  <bruno@clisp.org>
77402
77403         * MODULES.html.sh: Add copyright notice.
77404         (missed_files): Omit CVS directory entries.
77405         (func_module): Make it work with sed-3.02.
77406         * MODULES.txt: Remove file.
77407
77408 2003-01-06  Jim Meyering  <jim@meyering.net>
77409
77410         * lib/version-etc.c: Update year in translatable copyright string.
77411
77412 2003-01-03  Karl Berry  <karl@gnu.org>
77413
77414         * config/config.{guess,sub}: update from prep.
77415
77416 2003-01-02  Karl Berry  <karl@gnu.org>
77417
77418         * doc/COPYING.DOC: belatedly updated to 1.2.
77419
77420 2003-01-01  Karl Berry  <karl@gnu.org>
77421
77422         * gnulib-tool (func_verify_module): report module name $module in
77423         error message, not $1.
77424         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77425         be created, only if it doesn't exist.
77426         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77427
77428 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77429
77430         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77431
77432 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77433
77434         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77435         memcmp if strcoll doesn't work.
77436
77437 2002-12-31  Bruno Haible  <bruno@clisp.org>
77438
77439         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77440         nonempty.
77441
77442 2002-12-31  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/memcoll.c (STRCOLL): New macro.
77445         (memcoll): Use it.
77446
77447 2002-12-31  Bruno Haible  <bruno@clisp.org>
77448
77449         * lib/localcharset.h: New file.
77450         * lib/localcharset.c: Include it.
77451         * lib/unicodeio.c: Likewise.
77452
77453 2002-12-31  Bruno Haible  <bruno@clisp.org>
77454
77455         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77456         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77457
77458 2002-12-31  Bruno Haible  <bruno@clisp.org>
77459
77460         * lib/getline.h: Include <stddef.h>, for size_t.
77461
77462         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77463         * lib/unicodeio.c: Don't include <stddef.h>.
77464
77465 2002-12-31  Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77468         HAVE_TM_ZONE.
77469
77470 2002-12-24  Karl Berry  <karl@gnu.org>
77471
77472         * config/config.guess: update from prep.
77473
77474 2002-12-24  Bruno Haible  <bruno@clisp.org>
77475
77476         General infrasructure.
77477         * m4/README: Rewritten.
77478         * m4/onceonly.m4: New file.
77479         * m4/onceonly_2_57.m4: New file.
77480
77481         Module atexit.
77482         * m4/atexit.m4: New file.
77483
77484         Module strtod.
77485         * m4/strtod.m4: New file.
77486
77487         Module strtol.
77488         * m4/strtol.m4: New file.
77489
77490         Module strtoul.
77491         * m4/strtoul.m4: New file.
77492
77493         Module memchr.
77494         * m4/memchr.m4: New file.
77495
77496         Module memcmp.
77497         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77498         (jm_FUNC_MEMCMP): Invoke it.
77499
77500         Module memcpy.
77501         * m4/memcpy.m4: New file.
77502
77503         Module memmove.
77504         * m4/memmove.m4: New file.
77505
77506         Module memset.
77507         * m4/memset.m4: New file.
77508
77509         Module strcspn.
77510         * m4/strcspn.m4: New file.
77511
77512         Module strpbrk.
77513         * m4/strpbrk.m4: New file.
77514
77515         Module strstr.
77516         * m4/strstr.m4: New file.
77517
77518         Module strerror.
77519         * m4/strerror.m4: New file.
77520
77521         Module mktime.
77522         * m4/mktime.m4: Renamed from jm-mktime.m4.
77523         (gl_PREREQ_MKTIME): New macro.
77524         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77525
77526         Module malloc.
77527         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77528         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77529         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77530
77531         Module realloc.
77532         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77533         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77534         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77535
77536         Module strftime.
77537         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77538         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77539         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77540         gl_TM_GMTOFF.
77541         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77542
77543         Module xalloc.
77544         * m4/xalloc.m4: New file.
77545
77546         Module alloca.
77547         * m4/alloca.m4: New file.
77548
77549         Module putenv.
77550         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77551         (jm_FUNC_PUTENV): Invoke it.
77552
77553         Module setenv.
77554         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77555         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77556         when invoked twice.
77557         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77558         gt_FUNC_SETENV.
77559
77560         Module memrchr.
77561         * m4/memrchr.m4: New file.
77562
77563         Module stpcpy.
77564         * m4/stpcpy.m4: New file.
77565
77566         Module strcase.
77567         * m4/strcase.m4: New file.
77568
77569         Module strdup.
77570         * m4/strdup.m4: New file.
77571
77572         Module strnlen.
77573         * m4/strnlen.m4: New file.
77574
77575         Module strndup.
77576         * m4/strndup.m4: New file.
77577
77578         Module xstrtod.
77579         * m4/xstrtod.m4: New file.
77580
77581         Module xstrtol.
77582         * m4/xstrtol.m4: New file.
77583
77584         Module getdate.
77585         * m4/getdate.m4: New file.
77586
77587         Module unlocked-io.
77588         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77589         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77590         * m4/jm-glibc-io.m4n: Remove file.
77591
77592         Module long-options.
77593         * m4/long-options.m4: New file.
77594
77595         Module md5.
77596         * m4/md5.m4: New file.
77597
77598         Module sha.
77599         * m4/sha.m4: New file.
77600
77601         Module getstr.
77602         * m4/getstr.m4: New file.
77603
77604         Module getline.
77605         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77606         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77607         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77608         simply getline. Infoke gl_PREREQ_GETLINE.
77609
77610         Module obstack.
77611         * m4/obstack.m4: New file.
77612
77613         Module hash.
77614         * m4/hash.m4: New file.
77615
77616         Module readtokens.
77617         * m4/readtokens.m4: New file.
77618
77619         Module strverscmp.
77620         * m4/strverscmp.m4: New file.
77621
77622         Module stdbool.
77623         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77624         OSF/1.
77625
77626         Module strtoll.
77627         * m4/strtoll.m4: New file.
77628
77629         Module strtoull.
77630         * m4/strtoull.m4: New file.
77631
77632         Module strtoimax.
77633         * m4/strtoimax.m4: New file.
77634
77635         Module strtoumax.
77636         * m4/strtoumax.m4: New file.
77637
77638         Module xstrtoimax.
77639         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77640         jm_AC_PREREQ_XSTRTOIMAX.
77641         Moved the strtol prerequisites to strtol.m4.
77642         Moved the strtoll prerequisites to strtoll.m4.
77643         Moved the strtoimax prerequisites to strtoimax.m4.
77644
77645         Module xstrtoumax.
77646         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77647         jm_AC_PREREQ_XSTRTOUMAX.
77648         Moved the strtoul prerequisites to strtoul.m4.
77649         Moved the strtoull prerequisites to strtoull.m4.
77650         Moved the strtoumax prerequisites to strtoumax.m4.
77651
77652         Module chown.
77653         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77654         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77655
77656         Module dup2.
77657         * m4/dup2.m4: New file.
77658
77659         Module ftruncate.
77660         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77661         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77662
77663         Module getgroups.
77664         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77665         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77666
77667         Module gettimeofday.
77668         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77669         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77670         gl_PREREQ_GETTIMEOFDAY.
77671
77672         Module mkdir.
77673         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77674         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77675
77676         Module mkstemp.
77677         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77678         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77679         jm_AC_TYPE_UINTMAX_T.
77680         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77681
77682         Module stat.
77683         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77684         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77685
77686         Module lstat.
77687         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77688         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77689
77690         Module timespec.
77691         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77692         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77693         * m4/st_mtim.m4: Indentation.
77694
77695         Module nanosleep.
77696         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77697         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77698         gl_PREREQ_NANOSLEEP.
77699
77700         Module regex.
77701         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77702         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77703         (gl_REGEX): New macro.
77704
77705         Module rename.
77706         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77707         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77708
77709         Module rmdir.
77710         * m4/rmdir.m4: New file.
77711
77712         Module utime.
77713         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77714         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77715         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77716
77717         Module dirname.
77718         * m4/dirname.m4: New file.
77719
77720         Module getopt.
77721         * m4/getopt.m4: New file.
77722
77723         Module unistd-safer.
77724         * m4/unistd-safer.m4: New file.
77725
77726         Module fnmatch.
77727         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77728         declaration.
77729         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77730         (gl_FUNC_FNMATCH_POSIX): New macro.
77731         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77732         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77733         simply fnmatch.
77734
77735         Module exclude.
77736         * m4/exclude.m4: New file.
77737
77738         Module human.
77739         * m4/human.m4: New file.
77740
77741         Module acl.
77742         * m4/acl.m4: Nop.
77743
77744         Module backupfile.
77745         * m4/backupfile.m4: New file.
77746         * m4/d-ino.m4: Indentation.
77747
77748         Module fsusage.
77749         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77750         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77751         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77752
77753         Module dirfd.
77754         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77755         requirements.
77756
77757         Module euidaccess.
77758         * m4/euidaccess.m4: New file.
77759
77760         Module file-type.
77761         * m4/file-type.m4: New file.
77762
77763         Module fileblocks.
77764         * m4/fileblocks.m4: New file.
77765
77766         Module filemode.
77767         * m4/filemode.m4: New file.
77768
77769         Module isdir.
77770         * m4/isdir.m4: New file.
77771
77772         Module lchown.
77773         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77774         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77775
77776         Module makepath.
77777         * m4/makepath.m4: New file.
77778
77779         Module modechange.
77780         * m4/modechange.m4: New file.
77781
77782         Module mountlist.
77783         * m4/mountlist.m4: New file.
77784         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77785         Indentation.
77786
77787         Module path-concat.
77788         * m4/path-concat.m4: New file.
77789
77790         Module pathmax.
77791         * m4/pathmax.m4: New file.
77792
77793         Module same.
77794         * m4/same.m4: New file.
77795
77796         Module save-cwd.
77797         * m4/save-cwd.m4: New file.
77798
77799         Module savedir.
77800         * m4/savedir.m4: New file.
77801
77802         Module xgetcwd.
77803         * m4/xgetcwd.m4: New file.
77804         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77805
77806         Module xreadlink.
77807         * m4/xreadlink.m4: New file.
77808
77809         Module safe-read.
77810         * m4/safe-read.m4: New file.
77811
77812         Module safe-write.
77813         * m4/safe-write.m4: New file.
77814
77815         Module closeout.
77816         * m4/closeout.m4: New file.
77817
77818         Module stdio-safer.
77819         * m4/stdio-safer.m4: New file.
77820
77821         Module getpass.
77822         * m4/getpass.m4: New file.
77823
77824         Module getugroups.
77825         * m4/getugroups.m4: New file.
77826
77827         Module group-member.
77828         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77829         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77830
77831         Module idcache.
77832         * m4/idcache.m4: New file.
77833
77834         Module userspec.
77835         * m4/userspec.m4: New file.
77836
77837         Module gettime.
77838         * m4/clock_time.m4: New file.
77839         * m4/gettime.m4: New file.
77840
77841         Module settime.
77842         * m4/settime.m4: New file.
77843
77844         Module posixtm.
77845         * m4/posixtm.m4: New file.
77846
77847         Module gethostname.
77848         * m4/gethostname.m4: New file.
77849
77850         Module canon-host.
77851         * m4/canon-host.m4: New file.
77852
77853         Module gettext.
77854         * m4/codeset.m4: New file, from gettext-0.11.5.
77855         * m4/gettext.m4: New file, from gettext-0.11.5.
77856         * m4/glibc21.m4: New file, from gettext-0.11.5.
77857         * m4/iconv.m4: New file, from gettext-0.11.5.
77858         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77859         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77860         * m4/inttypes.m4: New file, from gettext-0.11.5.
77861         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77862         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77863         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77864         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77865         * m4/lib-link.m4: New file, from gettext-0.11.5.
77866         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77867         * m4/progtest.m4: New file, from gettext-0.11.5.
77868         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77869         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77870         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77871
77872         Module localcharset.
77873         * m4/localcharset.m4: New file.
77874
77875         Module hard-locale.
77876         * m4/hard-locale.m4: New file.
77877
77878         Module mbswidth.
77879         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77880         onceonly macros.
77881         * m4/mbrtowc.m4: Add comment.
77882
77883         Module memcasecmp.
77884         * m4/memcasecmp.m4: New file.
77885
77886         Module memcoll.
77887         * m4/memcoll.m4: New file.
77888
77889         Module unicodeio.
77890         * m4/unicodeio.m4: New file.
77891
77892         Module rpmatch.
77893         * m4/rpmatch.m4: New file.
77894
77895         Module yesno.
77896         * m4/yesno.m4: New file.
77897
77898         Module exitfail.
77899         * m4/exitfail.m4: New file.
77900
77901         Module c-stack.
77902         * m4/c-stack.m4 (gl_C_STACK): New macro.
77903         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77904
77905         Module error.
77906         * m4/error.m4 (gl_ERROR): New macro.
77907         (jm_PREREQ_ERROR): Use onceonly macros.
77908
77909         Module fatal.
77910         * m4/fatal.m4: New file.
77911
77912         Module getloadavg.
77913         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77914         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77915
77916         Module getpagesize.
77917         * m4/getpagesize.m4: New file.
77918
77919         Module getusershell.
77920         * m4/getusershell.m4: New file.
77921
77922         Module physmem.
77923         * m4/physmem.m4: New file.
77924
77925         Module posixver.
77926         * m4/posixver.m4: New file.
77927
77928         Module quotearg.
77929         * m4/quotearg.m4: New file.
77930
77931         Module quote.
77932         * m4/quote.m4: New file.
77933
77934         Module readutmp.
77935         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77936
77937         Module sig2str.
77938         * m4/sig2str.m4: New file.
77939
77940         Other.
77941         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77942         ulonglong.m4.
77943         * m4/intmax_t.m4: New file.
77944         * m4/d-type.m4: Indentation.
77945         * m4/jm-macros.m4: Update.
77946         * m4/prereq.m4 (jm_PREREQ): Update.
77947         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77948         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77949         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77950         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77951         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77952         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77953         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77954         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77955         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77956         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77957         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77958         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77959         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77960         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77961         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77962         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77963         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77964         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77965         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77966
77967 2002-12-24  Bruno Haible  <bruno@clisp.org>
77968
77969         * MODULES.txt: Update according to m4/ changes.
77970
77971         Module gettext.
77972         * config.rpath: New file, from gettext-0.11.5.
77973
77974         * modules/*: New module descriptions.
77975         * gnulib-tool: New file.
77976         * MODULES.html.sh: New file.
77977
77978 2002-12-21  Karl Berry  <karl@gnu.org>
77979
77980         * doc/fdl.texi: update to version 1.2.
77981
77982 2002-12-19  Karl Berry  <karl@gnu.org>
77983
77984         * config/config.guess: update from prep.
77985
77986 2002-12-18  Bruno Haible  <bruno@clisp.org>
77987
77988         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77989         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77990
77991 2002-12-17  Bruno Haible  <bruno@clisp.org>
77992
77993         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77994         stdlib.h, string.h.
77995
77996 2002-12-17  Bruno Haible  <bruno@clisp.org>
77997
77998         * lib/canon-host.c (strdup): Remove unused declaration.
77999
78000         * lib/fsusage.c: Include full_read.h.
78001         (get_fs_usage): Use full_read instead of safe_read.
78002
78003         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78004
78005 2002-12-12  Karl Berry  <karl@gnu.org>
78006
78007         * config/config.guess: update from prep.
78008
78009 2002-12-11  Bruno Haible  <bruno@clisp.org>
78010
78011         * m4/setenv.m4: New file, from gettext-0.11.5.
78012
78013 2002-12-11  Bruno Haible  <bruno@clisp.org>
78014
78015         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78016         not unsetenv().
78017         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78018         modifications:
78019
78020         2002-12-11  Bruno Haible  <bruno@clisp.org>
78021
78022                 * setenv.c (alloca): Fall back to malloc.
78023                 (freea): New macro.
78024                 (setenv): Use freea() to free memory allocated with alloca().
78025
78026         2002-11-13  Bruno Haible  <bruno@clisp.org>
78027
78028                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78029                 function declarations.
78030                 * unsetenv.c (unsetenv): Likewise.
78031
78032         2002-03-04  Bruno Haible  <bruno@clisp.org>
78033
78034                 Portability to AIX 4.3.3.
78035                 * unsetenv.c: New file, extracted from setenv.c.
78036                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78037
78038         2001-12-20  Bruno Haible  <bruno@clisp.org>
78039
78040                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78041                 use malloc instead. For SunOS 4.
78042
78043         2001-12-11  Bruno Haible  <bruno@clisp.org>
78044
78045                 * setenv.c: Declare alloca.
78046                 (compar_fn_t): New typedef.
78047                 (KNOWN_VALUE, STORE_VALUE): Use it.
78048
78049         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78050         setenv.h.
78051
78052 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78053
78054         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78055         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78056         Choose values that are less likely to collide with system fnmatch
78057         options.
78058         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78059         defined (e.g., a pure POSIX system).
78060         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78061         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78062
78063 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78064
78065         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78066         a pain in practice to deal with generated m4 files.  This change
78067         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78068
78069         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78070         and jm-glibc-io.m4, as they are no longer a special case.
78071         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78072         kludge and the auto-generation stuff.  Check only whether the
78073         functions are declared, not whether they exist, since older hosts
78074         that don't declare the functions can't use the optimization anyway.
78075
78076 2002-12-06  Jim Meyering  <jim@meyering.net>
78077
78078         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78079
78080         Merge in changes from libc's misc/error.c, in preparation
78081         for the merge of gnulib's changes back into libc.
78082
78083         * lib/error.c (_): Define only if not already defined.
78084         Move definition to follow all #include directives.
78085         Include unlocked-io.h only if !_LIBC.
78086         [_LIBC]: Include <libio/libioP.h>.
78087         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78088         (fflush): Tweak definition to use INTUSE.
78089         (putc): Define.
78090
78091 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78092
78093         * lib/alloca.c [defined emacs]: Include "lisp.h".
78094         (xalloc_die) [defined emacs]: New macro.
78095         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78096         [! defined emacs]: Include <xalloc.h>.
78097         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78098         (pointer): Typedef to POINTER_TYPE *.
78099         (malloc): Remove decl; we now always use xmalloc.
78100         (alloca): Use old-style definition, since Emacs needs this.
78101         Check for arithmetic overflow when computing combined size.
78102
78103 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78104
78105         Do not generate unlocked-io.h automatically, since it's easier to
78106         maintain it by hand.
78107
78108         * lib/unlocked-io.h: New file, from GNU diffutils,
78109         but with proper copyright notice and attribution.
78110         * lib/gen-uio: Remove.
78111         * lib/Makefile.am: Add copyright notice.
78112         (libfetish_a_SOURCES): Add unlocked-io.h.
78113         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78114         (DISTCLEANFILES, io_functions): Remove macros.
78115         (EXTRA_DIST): Remove gen_uio.
78116         (unlocked-io.h): Remove rule.
78117
78118 2002-12-04  Jim Meyering  <jim@meyering.net>
78119
78120         Reflect the fact that stat.c and lstat.c are no longer generated.
78121         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78122         (DISTCLEANFILES): Likewise.
78123         (EXTRA_DIST): Likewise.
78124         (all_local): Don't depend on stat.c or lstat.c.
78125         (stat.c, lstat.c): Remove rules.
78126         (EXTRA_DIST): Remove xstat.in.
78127
78128         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78129         * lib/stat.c: New file.  Contents mostly from xstat.in.
78130         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78131         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78132
78133         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78134         too.
78135         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78136
78137 2002-12-03  Jim Meyering  <jim@meyering.net>
78138
78139         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78140         but not semantics, to minimize the differences between these two files.
78141         (safe_read): Change comment to mention SAFE_READ_ERROR.
78142
78143         * lib/safe-read.c (IS_EINTR): Define.
78144         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78145
78146 2002-12-02  Jim Meyering  <jim@meyering.net>
78147
78148         * lib/safe-read.c (EINTR): Define.
78149         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78150         (INT_MAX): Provide fallback.
78151         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78152
78153         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78154
78155 2002-12-02  Bruno Haible  <bruno@clisp.org>
78156
78157         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78158         Define, taken from safe-read.c.
78159         (INT_MAX): Provide fallback.
78160         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78161         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78162
78163         * lib/safe-read.c (EINTR): Remove definition.
78164         (safe_read): Don't use EINTR if it is absent.
78165
78166 2002-12-01  Jim Meyering  <jim@meyering.net>
78167
78168         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78169         zero.
78170         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78171
78172 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78173
78174         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78175         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78176         with `if (! (value < limit)) abort ();', for readability.
78177
78178 2002-11-26  Karl Berry  <karl@gnu.org>
78179
78180         * lib/strdup.c: copy from libc again, with jim's ok.
78181         * lib/.cppi-disable: re-add strdup.c
78182
78183 2002-11-25  Karl Berry  <karl@gnu.org>
78184
78185         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78186         instead of "strtol.c".
78187
78188 2002-11-25  Karl Berry  <karl@gnu.org>
78189
78190         * config/install-sh: update from automake for variable quoting, $0 in
78191         error msgs, etc.
78192
78193         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78194         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78195         entry.
78196
78197 2002-11-25  Jim Meyering  <jim@meyering.net>
78198
78199         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78200
78201 2002-11-24  Karl Berry  <karl@gnu.org>
78202
78203         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78204         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78205
78206 2002-11-24  Jim Meyering  <jim@meyering.net>
78207
78208         Update from coreutils:
78209
78210         * lib/mktime.c: Merge in changes from libc.
78211
78212         Avoid a link-time failure on some Linux systems.
78213         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78214         (otherwise).
78215         (__mon_yday): Declare with the STATIC attribute.
78216         (__mktime_internal): Likewise.
78217         Based on a report from Greg Schafer.
78218
78219 2002-11-23  Jim Meyering  <jim@meyering.net>
78220
78221         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78222         Use `unsigned', not `int', as type of index.
78223
78224         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78225
78226         * lib/fsusage.c: Remove unneeded parentheses around operands of
78227         `defined'.
78228
78229 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78230
78231         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78232         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78233         so that we can be included first.
78234         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78235         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78236         No need to include stddef.h or sys/types.h any more.
78237         Surround local include files with "", not "<>".
78238         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78239         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78240         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78241         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78242         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78243         (ISPRINT): Remove; no longer needed now that we assume C89.
78244
78245         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78246         Preserve errno.
78247
78248         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78249         quotearg_char): Use SIZE_MAX rather than
78250         (size_t) -1 when we are talking about "infinity".
78251
78252         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78253
78254 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78255
78256         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78257         hint that one should use `if (! x) abort ();' rather than `assert
78258         (x);', and anyway it's one less thing to worry about configuring.
78259         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78260         hash_rehash, hash_insert): Use abort rather than assert.
78261
78262 2002-11-22  Bruno Haible  <bruno@clisp.org>
78263
78264         * lib/safe-read.h: Assume C89. Add comments.
78265         (safe_read): Change return type to size_t.
78266         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78267         byte counts > SSIZE_MAX correctly.
78268         * lib/safe-write.h: New file.
78269         * lib/safe-write.c: New file.
78270         * lib/full-read.h: New file.
78271         * lib/full-read.c: New file.
78272         * lib/full-write.h: Assume C89. Add comments.
78273         * lib/full-write.c: Include safe-write.h.
78274         (full_write): Rewritten to use safe_write.
78275         Suggested by Jim Meyering and Paul Eggert.
78276
78277 2002-11-21  Jim Meyering  <jim@meyering.net>
78278
78279         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78280
78281         Merge in changes from the coreutils.
78282
78283         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78284         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78285         <stdint.h>.
78286         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78287         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78288         int.  Work more efficiently if X is the same width as uintmax_t.
78289         Do not compare X to -1, to avoid bogus compiler warning.
78290         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78291         Don't assume that f_frsize and f_bsize are the same type.
78292
78293         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78294         warning on FreeBSD.
78295
78296         * lib/makepath.c (make_path): Restore umask *before* creating the final
78297         component.
78298         (make_path): Minor reformatting.
78299
78300         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78301         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78302         HAVE_MALLOC/HAVE_REALLOC.
78303
78304         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78305         dummy ones.  At least on GNU/Linux systems, `auto' means something
78306         else.
78307         From Michael Stone.
78308
78309 2002-11-21  Bruno Haible  <bruno@clisp.org>
78310
78311         Remove case insensitive option matching.
78312         * lib/argmatch.h (argcasematch): Remove declaration.
78313         (ARGCASEMATCH): Remove macro.
78314         (__xargmatch_internal): Remove case_sensitive argument.
78315         (XARGMATCH): Update.
78316         (XARGCASEMATCH): Remove macro.
78317         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78318         case_sensitive argument.
78319         (argcasematch): Remove function.
78320         (__xargmatch_internal): Remove case_sensitive argument.
78321         (main): Use XARGMATCH instead of XARGCASEMATCH.
78322
78323         * lib/xmalloc.c: Change compile-time error message. Add comment about
78324         required autoconf version.
78325
78326 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78327
78328         Merge argmatch cleanups from Bison.  Assume C89.
78329
78330         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78331         Include stdlib.h, for EXIT_FAILURE.
78332         Always include <string.h>, since we assume C89.
78333         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78334         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78335         Include <stddef.h> instead, since it's all we need for size_t.
78336         (PARAMS): Remove.  All uses removed.
78337         (ARRAY_CARDINALITY): Do not bother to #undef.
78338         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78339         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78340         Remove unnecessary parentheses.
78341         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78342         Insert necessary parentheses.
78343         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78344         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78345
78346 2002-11-19  Bruno Haible  <bruno@clisp.org>
78347
78348         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78349         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78350
78351         * lib/mbswidth.h (PARAMS): Remove macro.
78352         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78353         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78354
78355         * lib/gcd.h (PARAMS): Remove macro.
78356         (gcd): Use ANSI C function declarations.
78357         * lib/gcd.c (gcd): Likewise.
78358
78359 2002-11-15  Bruno Haible  <bruno@clisp.org>
78360
78361         * lib/strcspn.c: Include <stddef.h>.
78362         (strcspn): Use ANSI C function declaration. Change return type to
78363         size_t. Use NULL.
78364         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78365         (strpbrk): Use NULL.
78366         * lib/strpbrk.h (PARAMS): Remove macro.
78367         (strpbrk): Use ANSI C function declaration.
78368         * lib/strstr.c: Don't include <sys/types.h>.
78369         * lib/strstr.h (PARAMS): Remove macro.
78370         (strstr): Use ANSI C function declarations.
78371
78372 2002-11-14  Karl Berry  <karl@gnu.org>
78373
78374         * config/mkinstalldirs: `do' on separate line, instead of
78375         `for var; do'.
78376
78377 2002-11-06  Bruno Haible  <bruno@clisp.org>
78378
78379         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78380         * lib/gcd.c (gcd): Likewise.
78381
78382 2002-11-05  Bruno Haible  <bruno@clisp.org>
78383
78384         * lib/gcd.h: New file, from gettext-0.11.5.
78385         * lib/gcd.c: New file, from gettext-0.11.5.
78386
78387 2002-11-05  Bruno Haible  <bruno@clisp.org>
78388
78389         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78390         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78391         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78392         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78393
78394         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78395         <libintl.h>.
78396         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78397         <libintl.h>.
78398
78399         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78400         * lib/human.c: Include gettext.h instead of <libintl.h>.
78401         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78402         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78403         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78404         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78405         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78406         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78407         (textdomain): Remove definition.
78408         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78409
78410         * lib/long-options.c: Remove include of <libintl.h> and definition of
78411         _.
78412         * lib/same.c: Remove include of <libintl.h> and definition of _.
78413
78414 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78415
78416         * lib/config.charset: A few additions for Solaris.
78417
78418 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78419
78420         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78421         * lib/localcharset.c (locale_charset): Declare as extern "C".
78422
78423 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78424
78425         * lib/config.charset: msdos in uk_UA uses CP1125.
78426
78427 2002-11-04  Bruno Haible  <bruno@clisp.org>
78428
78429         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78430         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78431         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78432         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78433         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78434
78435 2002-11-04  Bruno Haible  <bruno@clisp.org>
78436
78437         * lib/localcharset.c (locale_charset): Don't return an empty string.
78438
78439 2002-11-04  Bruno Haible  <bruno@clisp.org>
78440
78441         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78442         aliases.
78443
78444 2002-11-04  Bruno Haible  <bruno@clisp.org>
78445
78446         * lib/config.charset: Update for newest glibc. Add canonical names
78447         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78448
78449 2002-11-04  Bruno Haible  <bruno@clisp.org>
78450
78451         * lib/config.charset: Add support for NetBSD.
78452
78453 2002-11-04  Bruno Haible  <bruno@clisp.org>
78454
78455         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78456
78457 2002-11-01  Bruno Haible  <bruno@clisp.org>
78458
78459         * configure.in: Add AC_CONFIG_AUX_DIR call.
78460         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78461         test/Makefile.
78462         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78463
78464 2002-09-28  Karl Berry  <karl@gnu.org>
78465
78466         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78467         installed automake until the next release, since changes have been
78468         made.
78469
78470 2002-09-25  Karl Berry  <karl@gnu.org>
78471
78472         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78473         * lib/getopt*: copy from libc/posix.
78474         * lib/gettext.h: copy from gettext.
78475         * lib/.cppi-disable: add strdup.c, gettext.h.
78476
78477 2002-09-25  Karl Berry  <karl@gnu.org>
78478
78479         * config/srclist.txt: enable gettext.h check.
78480         * config/config.{guess,sub}: update from prep.
78481         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78482                 from automake 1.6.3.
78483         See srclist*.
78484
78485 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78486
78487         * regex.c (PATFETCH): Remove the translating fetch.
78488         (PATFETCH_RAW): Rename to PATFETCH.
78489         (set_image_of_range): New fun.
78490         (SET_RANGE_TABLE_WORK_AREA): Use it.
78491         (regex_compile): Don't translate the pattern chars so eagerly.
78492         Only do it when inserting an `exactn' bytecode or when handling
78493         a char-range.
78494         (mutually_exclusive_p): Avoid empty statement.
78495
78496 2002-07-06  Jim Meyering  <meyering@lucent.com>
78497
78498         * m4/README: Don't mention Makefile.am.in.
78499         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78500
78501 2002-07-01  Jim Meyering  <meyering@lucent.com>
78502
78503         * lib/c-stack.c: Include sys/time.h.
78504         From Volker Borchert.
78505
78506 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78507
78508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78509
78510 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78511
78512         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78513         New macro.  Use it uniformly instead of
78514         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78515         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78516         reported by Vin Shelton.
78517
78518 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78519
78520         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78521         Do not assume SA_SIGINFO behavior.
78522         Bug reported by Jim Meyering on NetBSD 1.5.2.
78523
78524 2002-06-22  Jim Meyering  <meyering@lucent.com>
78525
78526         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78527         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78528
78529         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78530         now that configure.ac uses AC_GNU_SOURCE.
78531         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78532         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78533
78534         Update to latest tools.  Suggestions from Paul Eggert.
78535         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78536         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78537         * m4/fnmatch.m4: Likewise.
78538         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78539         to AC_HEADER_STDBOOL
78540
78541 2002-06-22  Jim Meyering  <meyering@lucent.com>
78542
78543         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78544         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78545
78546 2002-06-22  Jim Meyering  <meyering@lucent.com>
78547
78548         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78549
78550         * lib/exitfail.c, exitfail.h: Likewise.
78551         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78552
78553         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78554         of fnmatch.h.
78555         (EXTRA_DIST): Add fnmatch_loop.c.
78556         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78557
78558         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78559         * lib/fnmatch.c: Update from diffutils-2.8.2.
78560         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78561         * lib/fnmatch.h: Remove file.
78562
78563 2002-06-21  Jim Meyering  <meyering@lucent.com>
78564
78565         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78566         * m4/mbrtowc.m4: Likewise.
78567
78568         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78569         * m4/mbswidth.m4: Reflect name change:
78570         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78571         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78572
78573         * m4/lib-link.m4: Update from gettext-0.11.2.
78574         * m4/gettext.m4: Likewise.
78575
78576         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78577         From Alfred M. Szmidt.
78578
78579 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78580
78581         * lib/file-type.h: Report an error if neither S_ISREG nor
78582         S_IFREG is defined, instead of using a test specific to glibc
78583         2.2.  This should be safe, since POSIX requires S_ISREG and
78584         Unix Version 7 had S_IFREG.  We don't need to check for
78585         <sys/types.h> since we don't use any symbols that it defines.
78586
78587 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78588
78589         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78590         $@-t, so that each temporary file name is unique and valid in the first
78591         8 characters, for operation under DOS.
78592
78593 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78594
78595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78596
78597 2002-06-15  Jim Meyering  <meyering@lucent.com>
78598
78599         Work even with DJGPP 2.03, which lacks support for symlinks.
78600         From Richard Dawe.
78601         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78602         is defined.
78603         * lib/lchown.c (S_ISLNK): Likewise.
78604
78605 2002-06-15  Jim Meyering  <meyering@lucent.com>
78606
78607         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78608         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78609         have been included before this file.
78610
78611 2002-06-14  Jim Meyering  <meyering@lucent.com>
78612
78613         * lib/file-type.h: Use the version from diffutils-2.8.2.
78614         * lib/file-type.c: Likewise.
78615
78616 2002-06-07  Jim Meyering  <meyering@lucent.com>
78617
78618         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78619         They're needed at least for NetBSD 1.5.2.
78620         ($statxfs_includes): Include those same headers.
78621         ($statxfs_includes): Include sys/vfs.h if available.
78622         ($statxfs_includes): Likewise for sys/statvfs.h.
78623         Check for the following members in both structs statfs and statvfs:
78624         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78625
78626 2002-06-01  Jim Meyering  <meyering@lucent.com>
78627
78628         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78629         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78630
78631 2002-05-28  Jim Meyering  <meyering@lucent.com>
78632
78633         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78634         Reported by Volker Borchert.
78635
78636 2002-05-27  Jim Meyering  <meyering@lucent.com>
78637
78638         Fix a problem seen only on nonconforming systems whereby ls.c's
78639         use of localtime, and then of gettimeofday would cause trouble:
78640         the localtime call used to initialize rpl_gettimeofday's save
78641         mechanism would clobber ls's current local time information so
78642         that in any long listing the first file would always be listed
78643         with date 1970-01-01.  Analysis by Volker Borchert.
78644
78645         * lib/gettimeofday.c (localtime): Undefine.
78646         (rpl_localtime): New function.
78647
78648 2002-05-27  Jim Meyering  <meyering@lucent.com>
78649
78650         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78651         localtime.
78652
78653         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78654         use the replacement function; it wouldn't resolve at link time.
78655         Reported by Volker Borchert.
78656
78657 2002-05-22  Jim Meyering  <meyering@lucent.com>
78658
78659         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78660         file-type.h.
78661         * lib/file-type.h: New file.
78662         * lib/file-type.c (file_type): New file/function.  Extracted from
78663         diffutils.
78664
78665 2002-04-30  Jim Meyering  <meyering@lucent.com>
78666
78667         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78668
78669 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78670
78671         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78672
78673 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78674
78675         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78676         Do not check for alloca.h (no longer used) or stdbool.h (was never
78677         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78678
78679 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78680
78681         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78682
78683 2002-04-29  Jim Meyering  <meyering@lucent.com>
78684
78685         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78686         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78687         Use AC_FUNC_STRNLEN here instead.
78688
78689         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78690         With autoconf-2.53a, it's part of AC_PROG_CC.
78691
78692 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78693
78694         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78695         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78696
78697 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78698
78699         * lib/sig2str.h, lib/sig2str.c: New files.
78700         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78701
78702 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78703
78704         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78705         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78706         of 127, since 64 is the largest conceivable number for ancient
78707         nonstandard hosts.
78708         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78709
78710 2002-04-28  Jim Meyering  <meyering@lucent.com>
78711
78712         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78713
78714 2002-04-24  Jim Meyering  <meyering@lucent.com>
78715
78716         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78717         (jm_PREREQ): Use it.
78718
78719         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78720         mach/mach.h fcntl.h.
78721         Check for this function: setlocale.
78722
78723 2002-04-24  Jim Meyering  <meyering@lucent.com>
78724
78725         * lib/gettext.h: New file, from Gettext.
78726         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78727         (libfetish_a_SOURCES): Add gettext.h.
78728
78729 2002-04-16  Jim Meyering  <meyering@lucent.com>
78730
78731         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78732         ut_pid, ut_id, ut_exit.
78733
78734 2002-04-16  Jim Meyering  <meyering@lucent.com>
78735
78736         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78737         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78738         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78739
78740 2002-04-12  Jim Meyering  <meyering@lucent.com>
78741
78742         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78743         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78744         existence of the getmntinfo function.  Needed for Darwin 5.3.
78745
78746         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78747         This is necessary at least on Darwin 5.3.
78748
78749         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78750         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78751         strnlen.o in the library, and that makes some versions of ranlib
78752         object.
78753
78754 2002-04-12  Jim Meyering  <meyering@lucent.com>
78755
78756         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78757
78758 2002-04-09  Jim Meyering  <meyering@lucent.com>
78759
78760         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78761         to be more precise.  Rather than saying we're checking whether the
78762         function `works', say what we're testing.
78763         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78764         Reported by Bruno Haible.
78765
78766 2002-03-10  Jim Meyering  <meyering@lucent.com>
78767
78768         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78769         Suggestion from Santiago Vila.
78770
78771 2002-03-08  Jim Meyering  <meyering@lucent.com>
78772
78773         * lib/rename.c: Mention that this wrapper is needed also on
78774         mips-dec-ultrix4.4 systems.
78775
78776 2002-03-02  Jim Meyering  <meyering@lucent.com>
78777
78778         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78779         not HAVE_CLOCK_SETTIME.
78780
78781 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78782
78783         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78784         Check for clock_settime.
78785
78786 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78787
78788         * lib/nanosleep.h: Rename to....
78789         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78790
78791         * lib/gettime.c: New file.
78792         * lib/settime.c: New file.
78793         * lib/stime.c: Remove.
78794
78795         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78796         timespec.h.  Remove nanosleep.h.
78797
78798 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78799
78800         * m4/acl.m4: New file.
78801         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78802         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78803
78804 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78805
78806         * lib/acl.c, lib/acl.h: New files.
78807         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78808
78809 2002-02-24  Jim Meyering  <meyering@lucent.com>
78810
78811         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78812         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78813         cause trouble.  Reported by Nelson Beebe.
78814
78815 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78816
78817         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78818         compilers that don't know that xalloc_die never returns.
78819
78820 2002-02-20  Jim Meyering  <meyering@lucent.com>
78821
78822         * lib/getdate.c: Regenerate using bison-1.33.
78823
78824 2002-02-17  Jim Meyering  <meyering@lucent.com>
78825
78826         * config/config.guess (main): Don't use `head -1'; it's no longer
78827         portable. Use `sed 1q' instead.
78828
78829 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78830
78831         * m4/codeset.m4: Upgrade to gettext-0.11.
78832         * m4/gettext.m4: Upgrade to gettext-0.11.
78833         * m4/glibc21.m4: Upgrade to gettext-0.11.
78834         * m4/iconv.m4: Upgrade to gettext-0.11.
78835         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78836         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78837         * m4/lib-ld.m4: New file, from gettext-0.11.
78838         * m4/lib-link.m4: New file, from gettext-0.11.
78839         * m4/lib-prefix.m4: New file, from gettext-0.11.
78840         * m4/progtest.m4: Upgrade to gettext-0.11.
78841
78842 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78843
78844         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78845         (jm_PREREQ): Use it.
78846
78847 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78848
78849         * lib/posixver.c, lib/posixver.h: New files.
78850         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78851
78852 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78853             Bruno Haible  <bruno@clisp.org>
78854
78855         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78856         (fwrite_success_callback): New declaration.
78857         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78858         print_unicode_char. Call failure callback instead of error.
78859         (fwrite_success_callback): New function.
78860         (exit_failure_callback): New function.
78861         (fallback_failure_callback): New function.
78862         (print_unicode_char): Call unicode_to_mb.
78863
78864 2002-01-26  Jim Meyering  <meyering@lucent.com>
78865
78866         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78867         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78868
78869 2002-01-26  Jim Meyering  <meyering@lucent.com>
78870
78871         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78872
78873 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78874
78875         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78876
78877 2002-01-22  Jim Meyering  <meyering@lucent.com>
78878
78879         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78880         Otherwise, some versions of automake would omit the rule that makes
78881         Makefile from Makefile.in.
78882
78883 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78884
78885         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78886         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78887         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78888         (memcoll): Set errno to zero if there is no error.
78889
78890         * lib/quotearg.c (quotearg_buffer_restyled):
78891         Fix bug with quoting buffers containing NUL when backslashing escapes.
78892         This bug was exposed by the other changes in this patch.
78893         (quotearg_n_options): New arg ARGSIZE.
78894         All callers changed.
78895         (quoting_options_from_style): New function.
78896         (quotearg_n_style): Use it.
78897         (quotearg_n_style_mem): New function.
78898
78899         * lib/quotearg.h (quotearg_n_style_mem): New function.
78900
78901 2002-01-19  Jim Meyering  <meyering@lucent.com>
78902
78903         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78904         Remove useless quotes: DF_PROG="df".
78905         * m4/strnlen.m4: New file.
78906
78907 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78908
78909         * lib/backupfile.c (ISDIGIT): Comment fix.
78910         * lib/getdate.y (ISDIGIT): Likewise.
78911         * lib/posixtm.c (ISDIGIT, year): Likewise.
78912         * lib/strverscmp.c (ISDIGIT): Likewise.
78913         * lib/userspec.c (ISDIGIT): Likewise.
78914
78915 2002-01-16  Jim Meyering  <meyering@lucent.com>
78916
78917         * lib/getdate.y: Add three semicolons, each just before a closing
78918         brace. Bison (as of version 1.31) no longer papers over that mistake.
78919
78920 2002-01-05  Jim Meyering  <meyering@lucent.com>
78921
78922         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78923
78924 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78925
78926         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78927         not silently exit merely because the output buffer happens to
78928         have nothing pending.
78929
78930 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78931
78932         See the big note in ../ChangeLog.
78933         * lib/human.c (suffixes): Prefer K to k for 1024.
78934         (generate_suffix_backwards): New function.
78935         (human_readable_inexact): Use it.
78936         * lib/xstrtol.c (__xstrtol): If there is no number but there
78937         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78938         Accept 'K' as well as 'k'.
78939
78940 2001-12-15  Jim Meyering  <meyering@lucent.com>
78941
78942         * lib/regex.h (__restrict_arr): Update from libc.
78943
78944         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78945         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78946         (STREQ): Define.
78947
78948 2001-12-14  Jim Meyering  <meyering@lucent.com>
78949
78950         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78951         Suggestion from Bruno Haible.
78952
78953 2001-12-10  Jim Meyering  <meyering@lucent.com>
78954
78955         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78956         xrealloc, Instead, include "xalloc.h".
78957         (initbuffer): Don't cast xmalloc return value to char*.
78958         (readline): Reword comment.
78959         Don't cast xrealloc return value to char*
78960         Return NULL, not 0.
78961
78962 2001-12-09  Jim Meyering  <meyering@lucent.com>
78963
78964         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78965         about `signed and unsigned type in conditional expression'.
78966         * lib/posixtm.c (posix_time_parse): Likewise.
78967
78968         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78969
78970         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78971         to avoid a pedantic warning.
78972
78973         * lib/getstr.c: Don't include assert.h.
78974         (getstr): Remove warning-evoking assertions.
78975         Return -1 if offset parameter is out of bounds.
78976         Change the type of a local from int to size_t.
78977
78978         * lib/strftime.c (my_strftime_localtime_r): Include this function
78979         definition in the `#if ! HAVE_TM_GMTOFF' block.
78980
78981         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78982         Include xalloc.h instead.
78983
78984 2001-12-02  Jim Meyering  <meyering@lucent.com>
78985
78986         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78987         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78988         included.
78989
78990         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78991         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78992
78993 2001-11-30  Akim Demaille  <akim@epita.fr>
78994
78995         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78996         before being defined.
78997
78998 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78999
79000         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79001         First arg is int, not unsigned.
79002         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79003         (SIZE_MAX, UINT_MAX): New macros.
79004         (quotearg_n_options): Abort if N is negative.
79005         Avoid overflow check on hosts where size_t is 64 bits and int
79006         is 32 bits, as overflow is impossible there.
79007         Fix off-by-one typo that caused unnecessary reallocation.
79008
79009 2001-11-27  Jim Meyering  <meyering@lucent.com>
79010
79011         * lib/tempname.c: Merge with version from libc.
79012         * lib/regex.c: Likewise.
79013
79014         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79015         systems for which STDC_HEADERS is 0, it was not included, resulting in
79016         a warning about an integer-to-pointer conversion problem with getenv.
79017         Reported by Volker Borchert.
79018
79019 2001-11-26  Jim Meyering  <meyering@lucent.com>
79020
79021         * lib/gtod.h: Remove file.
79022         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79023         * lib/gettimeofday.c: Don't include gtod.h.
79024         (GTOD_init): Remove function.
79025         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79026         Suggestion from Volker Borchert.
79027
79028 2001-11-23  Jim Meyering  <meyering@lucent.com>
79029
79030         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79031         it.
79032         * lib/hash.c (struct hash_table): Define it here instead.
79033
79034 2001-11-22  Jim Meyering  <meyering@lucent.com>
79035
79036         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79037
79038 2001-11-20  Jim Meyering  <meyering@lucent.com>
79039
79040         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79041         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79042
79043 2001-11-19  Jim Meyering  <meyering@lucent.com>
79044
79045         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79046         directory.  Use "conftestXXXXXX" as the template.
79047         Suggestion from Paul Eggert.
79048
79049         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79050         immediately, so the test doesn't mistakenly hit the max-open-files
79051         limit.
79052
79053 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79054
79055         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79056         (TEMPORARIES): New macro.
79057         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79058         removes an artificial limitation (e.g. HP-UX 10.20, where
79059         TMP_MAX is 17576).
79060
79061 2001-11-18  Jim Meyering  <meyering@lucent.com>
79062
79063         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79064
79065 2001-11-18  Jim Meyering  <meyering@lucent.com>
79066
79067         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79068         on SunOS 4.
79069
79070         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79071         files will be created before anything else.
79072
79073 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79074
79075         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79076         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79077
79078 2001-11-17  Jim Meyering  <meyering@lucent.com>
79079
79080         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79081         Prompted by a report from Bob Proulx.
79082
79083         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79084         Instead, require UTILS_FUNC_MKSTEMP.
79085
79086 2001-11-17  Jim Meyering  <meyering@lucent.com>
79087
79088         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79089         Now, that's done as part of AC_FUNC_STRTOD.
79090
79091 2001-11-17  Jim Meyering  <meyering@lucent.com>
79092
79093         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79094         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79095         rather than group writable.  Patch by Juan F. Codagnone.
79096
79097         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79098         xrealloc, Instead, include "xalloc.h".
79099
79100         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79101         Remove explicit declarations of xmalloc, xrealloc,
79102         and xstrdup.  Instead, include "xalloc.h".
79103
79104         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79105         unlocked-io.h.
79106         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79107         Likewise.
79108         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79109
79110         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79111         Reported by Padraig Brady.
79112
79113         * lib/mkstemp.c: #undef mkstemp.
79114         Include config.h.
79115         (rpl_mkstemp): Rename from mkstemp.
79116         Protoize.
79117
79118 2001-11-16  Jim Meyering  <meyering@lucent.com>
79119
79120         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79121         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79122         determine the amount of total physical memory, use pstat_getstatic.
79123         HPUX-11 doesn't define _SC_PHYS_PAGES.
79124         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79125         If sysconf couldn't be used to determine the amount of available
79126         physical memory, use both pstat_getstatic and pstat_getdynamic.
79127         Based on a patch from Bob Proulx.
79128
79129 2001-11-10  Jim Meyering  <meyering@lucent.com>
79130
79131         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79132         (jm_PREREQ): Use it.
79133
79134 2001-11-09  Jim Meyering  <meyering@lucent.com>
79135
79136         * m4/jm-macros.m4: Require autoconf-2.52f.
79137         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79138         Use these AC_-prefixed names, not the AM_-prefixed ones.
79139
79140         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79141
79142 2001-11-05  Jim Meyering  <meyering@lucent.com>
79143
79144         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79145
79146 2001-11-04  Jim Meyering  <meyering@lucent.com>
79147
79148         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79149         $DEFS.
79150
79151 2001-11-03  Jim Meyering  <meyering@lucent.com>
79152
79153         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79154         of AC_DEFUN.
79155
79156         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79157         know the name of the variable in the macro definition.
79158
79159 2001-11-03  Jim Meyering  <meyering@lucent.com>
79160
79161         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79162         in argmatch_to_argument call.
79163
79164         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79165         argument.
79166
79167         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79168         e.g., a fault due to an attempt to free a NULL pointer.
79169
79170 2001-11-01  Jim Meyering  <meyering@lucent.com>
79171
79172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79173         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79174
79175 2001-11-01  Jim Meyering  <meyering@lucent.com>
79176
79177         * lib/dirfd.c, lib/dirfd.h: New files.
79178         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79179
79180         * lib/hash.c (hash_print) [TESTING]: Clean up.
79181
79182 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79183
79184         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79185         to avoid a warning if -Wall.
79186
79187 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79188
79189         * README: New file
79190         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79191         (per RMS's instructions, this is now the canonical source)
79192         * lgpl/, gpl/: New directories.
79193
79194 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79195
79196         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79197
79198 2001-10-21  Jim Meyering  <meyering@lucent.com>
79199
79200         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79201         this code would end up calling gettext even in packages built
79202         with --disable-nls.
79203         * lib/getopt.c (_): Likewise.
79204         * lib/regex.c (_): Likewise.
79205
79206 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79207
79208         * m4/error.m4 (jm_PREREQ_ERROR):
79209         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79210         AC_FUNC_STRERROR_R does that.
79211         Check for strerror declaration.
79212
79213         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79214         are supposed to have them these days.
79215         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79216         Merge changes from latest Autoconf CVS.
79217         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79218         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79219         POSIX decided to standardize on the int flavor of strerror_r.
79220
79221 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79222
79223         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79224         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79225         Use strerror_r that is only a macro, even if it is not a function.
79226         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79227         (private_strerror): Use prototypes, not old-style function definition.
79228         (print_errno_message): New function.
79229         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79230         char*-flavored one.
79231         (error_tail, error, error_at_line): Use it.
79232
79233 2001-10-11  Jim Meyering  <meyering@lucent.com>
79234
79235         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79236         and quote_n (1, ... to avoid clobbering a buffer.
79237
79238 2001-10-05  Jim Meyering  <meyering@lucent.com>
79239
79240         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79241         hash-pjw.h.
79242         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79243         * lib/hash-pjw.h: New file.
79244
79245 2001-09-30  Jim Meyering  <meyering@lucent.com>
79246
79247         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79248         `struct fsstat' has the `f_fstypename' member.
79249         Use that to define FS_TYPE, which is now used to make
79250         the getfsstat link test tighter.
79251
79252 2001-09-30  Jim Meyering  <meyering@lucent.com>
79253
79254         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79255         Include <sys/ucred.h>, for Apple Darwin.
79256         Include sys/mount.h and sys/fs_types.h only if available.
79257         (FS_TYPE): Define.
79258         (read_filesystem_list): Use FS_TYPE.
79259
79260 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79261
79262         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79263         a boolean context.
79264
79265 2001-09-29  Jim Meyering  <meyering@lucent.com>
79266
79267         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79268         [one-argument getmntent function]): Include stdio.h before mntent.h.
79269         SunOS 4.1.x needs it for the declaration of `FILE'.
79270         Patch by Volker Borchert.
79271
79272         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79273         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79274         sys/fs_types.h, and make the link-test for getfsstat guard #include
79275         directives with appropriate #if HAVE_*_H tests so that we can
79276         detect getfsstat on Apple Darwin1.3.7 systems.
79277         Reported by Nelson Beebe.
79278         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79279
79280 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79281
79282         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79283         #defines strtoimax.  Also treat the other strto* functions
79284         like strtoimax.
79285
79286         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79287         Check for strtoul and strtoumax,
79288         as those declarations are made even in the signed case.
79289         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79290         Likewise, for strtol and strtoimax.
79291
79292 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79293
79294         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79295         #defines strtoimax.  Also treat the other strto* functions
79296         like strtoimax.
79297
79298         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79299         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79300         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79301
79302 2001-09-26  Jim Meyering  <meyering@lucent.com>
79303
79304         Most macros in unlocked-io.h had the wrong number of arguments.
79305         * lib/gen-uio: New script.
79306         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79307         * lib/unlocked-io.hin: Remove file.
79308         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79309         rather than trying to embed it here.
79310         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79311         Reported by Padraig Brady.
79312
79313 2001-09-25  Volker Borchert  <bt@teknon.de>
79314
79315         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79316         `result'.
79317
79318 2001-09-24  Jim Meyering  <meyering@lucent.com>
79319
79320         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79321
79322 2001-09-23  Jim Meyering  <meyering@lucent.com>
79323
79324         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79325         instead of the mere test for existence of mntent.h.  The latter
79326         would get a false-positive on AIX 3.4 systems.
79327         In the outer getmntent if-block, don't die if neither of the getmntent
79328         tests succeeds.  Instead, just fall through and continue with the
79329         remaining tests.
79330
79331 2001-09-23  Jim Meyering  <meyering@lucent.com>
79332
79333         * lib/mountlist.c: Remove useless parentheses in #if directives.
79334         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79335         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79336
79337 2001-09-22  Jim Meyering  <meyering@lucent.com>
79338
79339         * m4/gettext.m4: New file.  From gettext.
79340         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79341         * m4/progtest.m4: Likewise
79342         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79343         * m4/glibc21.m4: Likewise.
79344
79345         * m4/libintl.m4: Remove.  No longer used.
79346
79347 2001-09-22  Jim Meyering  <meyering@lucent.com>
79348
79349         * lib/localcharset.c: Update from latest gettext.
79350         * lib/config.charset: Likewise.
79351
79352 2001-09-20  Jim Meyering  <meyering@lucent.com>
79353
79354         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79355         strtoimax.
79356         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79357         strtoumax.
79358
79359 2001-09-20  Jim Meyering  <meyering@lucent.com>
79360
79361         * lib/xstrtol.c (strtoimax): Guard declaration with
79362         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79363         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79364         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79365         (strtoumax): Likewise, for completeness (it wasn't necessary).
79366
79367 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79368
79369         * lib/strtoimax.c (HAVE_LONG_LONG):
79370         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79371         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79372         to work around bug in IBM C compiler.
79373
79374 2001-09-17  Jim Meyering  <meyering@lucent.com>
79375
79376         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79377         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79378         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79379         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79380         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79381         whenever the right hand side need not be expanded by the shell.
79382
79383 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79384
79385         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79386         library.  It's not correct, as some older glibcs are buggy.
79387         fnmatch wasn't fixed until glibc 2.2.
79388
79389         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79390         special shell magic here.
79391
79392 2001-09-16  Jim Meyering  <meyering@lucent.com>
79393
79394         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79395         * m4/jm-macros.m4: Require it.
79396
79397 2001-09-16  Jim Meyering  <meyering@lucent.com>
79398
79399         * lib/mkdir.c: New file.
79400
79401 2001-09-15  Jim Meyering  <meyering@lucent.com>
79402
79403         * m4/jm-macros.m4: Check for help2man.
79404
79405 2001-09-11  Jim Meyering  <meyering@lucent.com>
79406
79407         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79408         The body, by Paul Eggert, was moved here from configure.in.
79409         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79410
79411 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79412
79413         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79414         (jm_PREREQ): Use it.
79415
79416 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79417
79418         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79419         Use ssize_t, not int, to store result of readlink.
79420         Check for ssize_t overflow as well as size_t overflow,
79421         as POSIX says the result of readlink is implementation-defined
79422         when ssize_t overflows.
79423         Remove unnecessary cast to char*.
79424         Use free+malloc instead of realloc, as the storage doesn't need
79425         to be preserved and it's clearer and can be more efficient that way.
79426         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79427         * lib/xreadlink.h (xreadlink): Update prototype.
79428
79429 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79430
79431         * lib/xgetcwd.c: Revert some of the previous change; intead,
79432         fix the HAVE_GETCWD_NULL code to behave more like the
79433         !HAVE_GETCWD_NULL code used to.
79434
79435         Include "xalloc.h".
79436         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79437         invoke xalloc_die.
79438
79439 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79440
79441         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79442         sys/param.h, as pathmax.h includes them.
79443
79444 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79445
79446         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79447         (jm_PREREQ_XGETCWD): New macro.
79448
79449         * m4/getcwd.m4: New file.
79450
79451 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79452
79453         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79454         like the HAVE_GETCWD_NULL code.
79455         Include pathmax.h if not HAVE_GETCWD.
79456         Do not include xalloc.h.
79457         (INITIAL_BUFFER_SIZE): New symbol.
79458         Do not use xmalloc / xrealloc, since the caller is responsible for
79459         handling errors.  Preserve errno around `free' during failure.
79460         Do not overrun buffer when using getwd.
79461
79462 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79463
79464         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79465         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79466         getcwd (NULL, 0).
79467
79468 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79469
79470         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79471         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79472         spotted by Jim Meyering.
79473
79474 2001-09-03  Jim Meyering  <meyering@lucent.com>
79475
79476         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79477         failure.
79478
79479 2001-09-02  Jim Meyering  <meyering@lucent.com>
79480
79481         * lib/error.c: Update from GNU libc.
79482
79483 2001-09-01  Jim Meyering  <meyering@lucent.com>
79484
79485         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79486         Used by df.
79487
79488 2001-09-01  Jim Meyering  <meyering@lucent.com>
79489
79490         * lib/xreadlink.c: New file.
79491         * lib/xreadlink.h: New file.
79492         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79493         xreadlink.h.
79494
79495         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79496         doesn't conflict with sparc Solaris 7's definition in
79497         /usr/include/sys/int_types.h.
79498
79499         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79500         files.
79501         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79502         and strncasecmp as r-values.  Unixware didn't have declarations.
79503
79504 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79505
79506         * lib/xstrtol.h: Add copyright notice.
79507         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79508         LONGINT_INVALID_SUFFIX_CHAR.
79509
79510 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79511
79512         * lib/xstrtol.c (strtoimax): New decl.
79513
79514 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79515
79516         * lib/xgetcwd.c: Don't include pathmax.h.
79517         Include stdlib.h and unistd.h if available.
79518         Include xalloc.h.
79519         (xmalloc, xstrdup, free): Remove decls.
79520         (xgetcwd): Don't assume sizes fit in unsigned.
79521         Check for overflow when computing sizes.
79522         Simplify reallocation code.
79523
79524 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79525
79526         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79527         a directory's st_size can have an arbitrary value, so the old
79528         usage could waste an arbitrary amount of memory.  All uses
79529         changed.
79530         * lib/savedir.h: Update prototype.
79531
79532 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79533
79534         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79535
79536         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79537         old strtoimax.c.
79538
79539         Also, make the following further changes to make this file's
79540         configuration more similar to that of strtol.c:
79541         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79542         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79543         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79544         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79545         changed to signed values.
79546
79547         And make the following changes as well:
79548         Fix copyright notice, as 1999 was missing.
79549         (verify): New macro.
79550         (strtoimax): Check sizes at compile-time, not run-time.
79551         Prefer strtol to strtoll if both work.
79552         (main): Remove; it was not that useful and was a pain to maintain.
79553
79554         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79555
79556 2001-08-31  Jim Meyering  <meyering@lucent.com>
79557
79558         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79559         Use an initial, malloc'd, buffer of length 128 rather than
79560         a statically allocated one of length 1024.
79561
79562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79563
79564         Simplify code, partly by assuming autoconf 2.52 semantics.
79565
79566         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79567
79568         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79569         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79570         All uses removed.
79571         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79572         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79573         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79574         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79575         jm_AC_HEADER_INTTYPES_H.
79576         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79577
79578         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79579
79580         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79581         Quote first arg of AC_DEFUN.
79582         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79583         since they are needed to parse the include file even if we need
79584         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79585         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79586         but with opposite signedness.
79587
79588 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79589
79590         Merge 'exclude' changes from tar 1.13.22.
79591         This fixes one or two unlikely storage allocation overflow bugs,
79592         but doesn't change user-visible behavior otherwise.
79593
79594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79595
79596         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79597         (jm_PREREQ_EXCLUDE): New macro.
79598
79599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79600
79601         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79602         tm to be declared.
79603
79604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79605
79606         * lib/hash.c: Remove '2001' from copyright notice.
79607
79608 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79609
79610         * lib/full-write.h: New file.
79611         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79612         * lib/full-write.c: Correct credits, as cccp.c no longer
79613         exists and anyway it was so heavily changed from the old cccp
79614         code as to be unrecognizable.  Include full-write.h.
79615         (full_write): Return size_t, with short writes meaning failure.
79616         All callers changed.  This fixes a bug with large buffers
79617         on 64-bit hosts.
79618         * lib/utime.c: Include full-write.h.
79619
79620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79621
79622         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79623         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79624         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79625         Include if available.
79626         (<xalloc.h>): Include
79627         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79628         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79629         collide with FNM macros.
79630         (struct patopts): New struct.
79631         (struct exclude): Use it, as exclude patterns now come with options.
79632         (new_exclude): Support above changes.
79633         (new_exclude, add_exclude_file):
79634         Initial size must now be a power of two to simplify overflow checking.
79635         (free_exclude, fnmatch_no_wildcards): New function.
79636         (excluded_filename): No longer requires options arg, as the options
79637         are determined by add_exclude.  Now returns bool, not int.
79638         (excluded_filename, add_exclude):
79639         Add support for the fancy new exclusion options.
79640         (add_exclude, add_exclude_file): Now takes int options arg.
79641         Check for arithmetic overflow when computing sizes.
79642         (add_exclude_file): xrealloc might modify errno, so don't
79643         realloc until after errno might be used.
79644
79645         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79646         New macros.
79647         (free_exclude): New decl.
79648         (add_exclude, add_exclude_file): Now takes int options arg.
79649         (excluded_filename): No longer requires options arg, as the options
79650         are determined by add_exclude.  Now returns bool, not int.
79651
79652 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79653
79654         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79655
79656 2001-08-27  Jim Meyering  <meyering@lucent.com>
79657
79658         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79659
79660         * lib/version-etc.c (N_): Remove definition.
79661         Revert most of last change.
79662         Instead, simply don't mark the `Copyright...' string for translation.
79663         Based on advice from Paul Eggert.
79664
79665         * lib/strtoxmax.c: Tweak comment.
79666
79667 2001-08-26  Jim Meyering  <meyering@lucent.com>
79668
79669         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79670
79671         * m4/xstrtoimax.m4: New file.
79672         * m4/xstrtoumax.m4: Add comments explaining why we
79673         AC_REPLACE_FUNCS(strtol).
79674
79675 2001-08-26  Jim Meyering  <meyering@lucent.com>
79676
79677         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79678         of copyright with `%s' so translators don't get an untranslated
79679         message in 2002.
79680         (COPYRIGHT_YEAR): Define.
79681         (version_etc): Use fprintf rather than fputs.
79682         Suggestion from Ulrich Drepper.
79683
79684         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79685
79686         * lib/strtoll.c: New file, from GNU libc.
79687         * lib/xstrtoimax.c: New file.
79688
79689         * lib/xstrtol.h: Add xstrtoimax.
79690         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79691         * lib/strtoimax.c: New file.  Likewise, but first define
79692         STRTOUXMAX_SIGNED.
79693
79694         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79695         ...
79696         * lib/strtoxmax.c: ... then renamed to this.
79697
79698 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79699
79700         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79701         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79702         (jm_AC_TYPE_INTMAX_T): New macro.
79703         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79704
79705         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79706
79707         * m4/longlong.m4: Renamed from ulonglong.m4.
79708         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79709         * m4/uintmax_t.m4: Removed.
79710
79711 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79712
79713         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79714         Port to Solaris 8, where 'sed' requires a space after the 'r'
79715         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79716         Redirect output to $tmp just once.
79717
79718 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79719
79720         * lib/addext.c (<errno.h>): Include.
79721         (errno): Declare if not defined.
79722         (addext): Work correctly when pathconf returns -1 and leaves
79723         errno alone because there is no limit.  Also, work even if
79724         pathconf returns a value greater than SIZE_MAX.
79725
79726 2001-08-12  Jim Meyering  <meyering@lucent.com>
79727
79728         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79729         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79730         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79731         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79732         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79733         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79734         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79735         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79736         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79737         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79738         utime.m4, utimes.m4, xstrtoumax.m4:
79739         Quote the first argument in each use of AC_DEFUN.
79740
79741 2001-08-12  Jim Meyering  <meyering@lucent.com>
79742
79743         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79744         Simply `return getcwd (NULL, 0);'.
79745         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79746         Use 1300 as initial value for length, not PATH_MAX.
79747
79748         * lib/pathmax.h: Clean up cpp syntax.
79749
79750 2001-08-12  Jim Meyering  <meyering@lucent.com>
79751
79752         * lib/gettimeofday.c: New file.
79753         * lib/gtod.h: New file.
79754         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79755
79756 2001-08-05  Jim Meyering  <meyering@lucent.com>
79757
79758         * m4/jm-macros.m4: Require autoconf-2.52.
79759
79760 2001-08-04  Jim Meyering  <meyering@lucent.com>
79761
79762         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79763         stmt, to get in sync with glibc.
79764
79765 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79766
79767         The following changes are from gettext 0.10.39 as maintained by
79768         Bruno Haible.
79769
79770         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79771         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79772         with inverted sense.  All uses changed.
79773
79774         * lib/mbswidth.c: Don't include <limits.h>.
79775         Include <stdlib.h> and <string.h> unconditionally.
79776         (iswcntrl, mbsinit, ISCNTRL): New macros.
79777         (mbsnwidth): Use K&R style function declarations.
79778         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79779         can optimize it when MB_CUR_MAX == 1.
79780         The width of control characters is zero, not 1.
79781
79782 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79783
79784         The following changes are from gettext 0.10.39 as maintained by
79785         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79786
79787         * m4/codeset.m4: Upgrade to serial AM1.
79788         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79789         all uses changed.  Quote first arg of AC_DEFUN.
79790         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79791
79792         * m4/iconv.m4: Upgrade to serial AM2.
79793         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79794         Add --with-libconv-prefix.
79795         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79796         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79797         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79798         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79799         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79800
79801         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79802         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79803         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79804         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79805         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79806         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79807         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79808         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79809         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79810
79811         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79812         string.h any more.
79813
79814         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79815         not the default value.
79816
79817         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79818         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79819         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79820         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79821         Also check for iswcntrl, used for wcwidth fallback.
79822         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79823         to Autoconf 2.13.
79824
79825 2001-08-03  Jim Meyering  <meyering@lucent.com>
79826
79827         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79828         as it was in the original.  Reported by Paul Eggert.
79829
79830 2001-07-16  Jim Meyering  <meyering@lucent.com>
79831
79832         * m4/gettimeofday.m4: New file.
79833         Prompted by a report from Bernhard Baehr.
79834
79835 2001-07-15  Jim Meyering  <meyering@lucent.com>
79836
79837         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79838         stuff. Now it's in ../Makefile.cfg.
79839
79840 2001-07-15  Jim Meyering  <meyering@lucent.com>
79841
79842         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79843         (BUILT_SOURCES): Add unlocked-io.h.
79844         (io_functions): Define.
79845         (unlocked-io.h): New rule.
79846         (DISTCLEANFILES): Add unlocked-io.h.
79847         (all-local): Depend on unlocked-io.h, to ensure it is created.
79848
79849         * lib/unlocked-io.hin: New file
79850
79851         * lib/regex.c: Update from glibc.
79852
79853 2001-07-05  Jim Meyering  <meyering@lucent.com>
79854
79855         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79856         recommendation.
79857         (libfetish_a_SOURCES): Put all .h files here instead.
79858         Remove a thus-exposed (better checks in automake) duplicate and
79859         two unnecessary .h files.
79860
79861 2001-07-04  Jim Meyering  <meyering@lucent.com>
79862
79863         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79864         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79865         distcheck failure.
79866
79867 2001-07-02  Jim Meyering  <meyering@lucent.com>
79868
79869         The following changes were prompted by suggestions from Bruno Haible.
79870
79871         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79872         is now generated.
79873         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79874         definition of EXTRA_DIST.
79875         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79876         ensure that the generated file is created/updated whenever the list
79877         of $(unlocked_functions) is changed.
79878         (jm-glibc-io.m4): New rule.
79879         (unlocked-io.h): New rule -- currently unused.
79880
79881 2001-06-24  Jim Meyering  <meyering@lucent.com>
79882
79883         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79884         unmatched right bracket, rather than kludging it with an extra,
79885         falsely-matching quote in a comment.  Patch by Akim Demaille.
79886
79887 2001-06-11  Jim Meyering  <meyering@lucent.com>
79888
79889         * lib/regex.c: Update from GNU libc.
79890
79891 2001-05-27  Jim Meyering  <meyering@lucent.com>
79892
79893         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79894         Check for ut_type in struct utmp.
79895
79896 2001-05-27  Jim Meyering  <meyering@lucent.com>
79897
79898         * lib/readutmp.h (UT_TYPE): Define.
79899
79900 2001-05-24  Jim Meyering  <meyering@lucent.com>
79901
79902         * lib/argmatch.c: Include "quote.h".
79903         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79904         quote function.  Reported by Göran Uddeborg.
79905
79906 2001-05-22  Jim Meyering  <meyering@lucent.com>
79907
79908         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79909         now that we use the package-supplied version unconditionally.
79910         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79911
79912 2001-05-21  Jim Meyering  <meyering@lucent.com>
79913
79914         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79915         shell syntax errors.
79916
79917 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79918
79919         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79920
79921 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79922
79923         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79924         Don't bother to check library strftime, since
79925         we'll be using our own my_strftime function anyway.
79926         Define my_strftime instead of strftime.
79927
79928 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79929
79930         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79931         which is not yet declared.
79932
79933 2001-05-15  Jim Meyering  <meyering@lucent.com>
79934
79935         * m4/regex.m4: Use proper quoting so brackets appear in the test
79936         program.
79937         Reported by, and with help from, Bruno Haible.
79938
79939 2001-05-13  Jim Meyering  <meyering@lucent.com>
79940
79941         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79942         undefined.
79943
79944 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79945
79946         dirname code cleanup.  base_name now behaves more compatibly
79947         with POSIX basename when given file names that have trailing
79948         slashes, and similarly for dir_name.  Add new primitives
79949         base_len and dir_len.  Put the directory-name-related decls
79950         into dirname.h.
79951
79952         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79953         * lib/backupfile.c (base_name): Likewise.
79954         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79955         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79956         * lib/makepath.c (strip_trailing_slashes): Likewise.
79957         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79958         ISSLASH): Likewise.
79959         * lib/rename.c (strip_trailing_slashes): Likewise.
79960         * lib/same.c (base_name): Likewise.
79961         * lib/stripslash.c (ISSLASH): Likewise.
79962
79963         * lib/addext.c: Include <dirname.h> after size_t is defined.
79964         * lib/backupfile.c: Likewise.
79965
79966         * lib/addext.c (addext): Use base_len to trim redundant
79967         trailing slashes instead of doing it ourselves.
79968         But do not trim the last slash if it is not redundant.
79969
79970         * lib/backupfile.c (find_backup_file_name,
79971         max_backup_version): Use base_len instead of rolling it ourselves.
79972         Handle the case of "" and (on DOS) "C:" correctly.
79973
79974         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79975         needed. Include <string.h>, <dirname.h>.
79976         (base_name): Allow file names ending in slashes, other than names
79977         that are all slashes.  In this case, return the basename followed
79978         by the slashes.  This is more general, and can be used in places
79979         where the original base_name purposely had an assertion failure.
79980         (base_len): New function.
79981
79982         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79983         Do not include <assert.h>; no longer needed.
79984         Include xalloc.h.
79985         (memrchr): Remove decl.
79986         (dir_name_r): Remove.
79987         (dir_len): Renamed from dirlen.  All callers changed.
79988         Rewrite in terms of base_name, for simplicity and consistency.
79989         (dir_name): Never return NULL.  All callers changed.
79990         Do not include <stdlib.h> in test program; no longer needed.
79991         return 0; is fine for test program.
79992
79993         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79994         New macros.
79995         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79996
79997         * lib/path-concat.c (path_concat): Use base_len to compute
79998         base length, not strlen; this means we cannot rely on memcpy
79999         to null-terminate.
80000
80001         * lib/same.c (STREQ): Remove.
80002         (same_name): Handle the case where the basename ends in trailing '/'.
80003
80004         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80005         a slash was stripped.  Do not strip the last slash after a
80006         file system prefix.
80007
80008 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80009
80010         * lib/Makefile.am (libfetish_a_SOURCES):
80011         Add strftime.c, since we now compile it on all hosts.
80012
80013         * lib/strftime.c (my_strftime):
80014         Define to nstrftime if emacs, but only if my_strftime is not defined.
80015         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80016         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80017         Add one more extra argument: a nanoseconds value.
80018         All uses changed.
80019         (ns): New macro.
80020         (my_strftime function): Add %N format.
80021         (emacs_strftimeu): Renamed from emacs_strftime,
80022         with extra ut argument.
80023
80024 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80025
80026         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80027
80028 2001-04-21  Jim Meyering  <meyering@lucent.com>
80029
80030         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80031         doesn't interfere.
80032
80033 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80034
80035         * m4/ftruncate.m4: Check for chsize.
80036         Link with ftruncate.o unconditionally if ftruncate is missing.
80037         This was required when cross-compiling to i586-mingw32msvc.
80038
80039 2001-04-08  Jim Meyering  <meyering@lucent.com>
80040
80041         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80042         recomputed; that's necessary when the offset spans a DST transition.
80043         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80044
80045 2001-04-02  Jim Meyering  <meyering@lucent.com>
80046
80047         * lib/regex.h, regex.c: Update from GNU libc.
80048
80049 2001-03-24  Jim Meyering  <meyering@lucent.com>
80050
80051         * m4/jm-macros.m4: Require autoconf-2.49d.
80052
80053 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80054
80055         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80056
80057 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80058
80059         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80060
80061 2001-03-17  Jim Meyering  <meyering@lucent.com>
80062
80063         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80064         now that the version in autoconf is equivalent.
80065         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80066
80067         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80068         Suggestion from Akim Demaille.
80069
80070         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80071         (jm_PREREQ_TEMPNAME): New function.
80072
80073 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80074
80075         * lib/tempname.c (uint64_t): Define to uintmax_t if
80076         not defined, and if UINT64_MAX is not defined.
80077         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80078         Reported by John David Anglin.
80079
80080 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80081
80082         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80083         resolve alias if codeset is empty.
80084         * lib/config.charset (BeOS): Use wildcard syntax.
80085
80086 2001-03-13  Jim Meyering  <meyering@lucent.com>
80087
80088         * lib/path-concat.c (path_concat)
80089         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80090         concatenating e.g., `C:' and `foo'.
80091         From Bruno Haible.
80092
80093 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80094
80095         * lib/localcharset.c (locale_charset): Don't use
80096         setlocale(LC_CTYPE,NULL). Don't return NULL.
80097         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80098
80099 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80100
80101         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80102         support for DOS/DJGPP.
80103
80104 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80105
80106         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80107         lacks mkstemp.  Compile our own tempname.c if we compile our own
80108         mkstemp.c, as mkstemp relies on tempname.
80109
80110 2001-03-01  Jim Meyering  <meyering@lucent.com>
80111
80112         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80113         AH_VERBATIM really does output its argument verbatim.
80114
80115 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80116
80117         * lib/Makefile.am (libfetish_a_SOURCES):
80118         Add dup-safer.c, fopen-safer.c.
80119         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80120
80121         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80122         * lib/unistd-safer.h: New files.
80123
80124 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80125
80126         The mkstemp replacement is taken from glibc 2.2.2, with some
80127         portability fixes for use outside glibc, as follows:
80128
80129         * lib/tempname.c (struct_stat64): New macro.
80130         (direxists, __gen_tempname): Use it.
80131         This avoids a portability problem with Solaris 8.
80132
80133         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80134         (<stddef.h>, <stdint.h>, <string.h>):
80135         Include only if STDC_HEADERS || _LIBC.
80136         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80137         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80138         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80139         (__set_errno): Define this macro if <errno.h> doesn't.
80140         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80141         Define these macros if <stdio.h> doesn't.
80142         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80143         Define these macros if <sys/stat.h>
80144         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80145         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80146         __xstat64): Define if not _LIBC.
80147         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80148         (__gen_tempname): Invoke gettimeofday only if
80149         HAVE_GETTIMEOFDAY || _LIBC;
80150         otherwise, fall back on plain "time".
80151         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80152
80153         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80154
80155         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80156
80157 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80158
80159         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80160
80161 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80162
80163         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80164         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80165         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80166         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80167
80168 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80169
80170         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80171         Remove workaround macros for hosts that have mbrtowc but not
80172         mbstate_t, as we now insist on proper declarations for both
80173         before using mbrtowc.
80174
80175 2001-02-17  Jim Meyering  <meyering@lucent.com>
80176
80177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80178         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80179         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80180         UnixWare 7.1.1.
80181
80182         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80183         rather than AC_CACHE_VAL.
80184
80185 2001-02-17  Jim Meyering  <meyering@lucent.com>
80186
80187         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80188         around included file name.
80189
80190         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80191
80192         * lib/strftime.c: Update from GNU libc (the only changes were to
80193         comments).
80194
80195 2001-02-17  Jim Meyering  <meyering@lucent.com>
80196
80197         * lib/regex.c: Update from libc.
80198
80199 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80200
80201         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80202         clash.
80203
80204 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80205
80206         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80207         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80208         Reported by Mark Hounschell via Paul Eggert.
80209
80210 2001-02-07  Jim Meyering  <meyering@lucent.com>
80211
80212         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80213
80214 2001-02-05  Jim Meyering  <meyering@lucent.com>
80215
80216         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80217         it includes the patch required for `large file' support with at least
80218         HP-UX's 10.20 /bin/cc.
80219
80220 2001-02-03  Jim Meyering  <meyering@lucent.com>
80221
80222         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80223         AS_IF, now that it works once again (mysteriously).
80224         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80225
80226 2001-01-30  Jim Meyering  <meyering@lucent.com>
80227
80228         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80229         * m4/chown.m4: Rename conftestchown to conftest.chown.
80230         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80231         s/conftestdir2/conftest.d2/.
80232         * m4/utimes.m4: s/conftestdata/conftest.data/
80233         Inspired by Pavel Roskin's change in autoconf.
80234
80235 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80236
80237         * lib/config.charset: Update for FreeBSD 4.2.
80238
80239 2001-01-27  Jim Meyering  <meyering@lucent.com>
80240
80241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80242         a use of AS_IF.
80243         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80244
80245 2001-01-26  Jim Meyering  <meyering@lucent.com>
80246
80247         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80248         quotearg.c includes it.
80249
80250 2001-01-26  Jim Meyering  <meyering@lucent.com>
80251
80252         * lib/quotearg.c: Include stddef.h.
80253         * lib/quote.c: Include stddef.h.
80254         Reported by Axel Kittenberger.
80255
80256         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80257         line in double quotes so that it evokes a better diagnostic.
80258         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80259         Reported by Axel Kittenberger.
80260
80261 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80262
80263         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80264         as if it was a `charset'.
80265
80266 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80267
80268         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80269         has const.
80270
80271 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80272
80273         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80274         to avoid a warning.  Add back 'const' to inptr.
80275
80276 2001-01-20  Jim Meyering  <meyering@lucent.com>
80277
80278         Be sure that headers are checked before used in code compiled
80279         for the type checks.
80280         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80281         In place of that, invoke jm_CHECK_ALL_TYPES.
80282         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80283         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80284         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80285         The check for ssize_t was mistakenly run before the test for unistd.h.
80286
80287         The configure-time check for stdbool.h was missing.
80288         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80289         (jm_PREREQ_HASH): New function.
80290
80291 2001-01-17  Jim Meyering  <meyering@lucent.com>
80292
80293         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80294         for autoconf-2.49c.
80295         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80296
80297 2001-01-16  Jim Meyering  <meyering@lucent.com>
80298
80299         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80300         From Bruno Haible.
80301
80302 2001-01-14  Jim Meyering  <meyering@lucent.com>
80303
80304         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80305         foo and bar.  Create conftestdir/ in the script, not in the C code.
80306         Remove directories in the script, not in the C code.
80307         Remove conftestdir{,2} before trying to create the directory.
80308         Make the entire configure script fail if the mkdir fails.
80309
80310 2001-01-14  Jim Meyering  <meyering@lucent.com>
80311
80312         * lib/rename.c: New file.  From Volker Borchert.
80313         Include stdlib.h, string.h or strings.h, and xalloc.h.
80314         Use strip_trailing_slashes rather than open-coding it.
80315
80316 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80317
80318         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80319
80320 2001-01-03  Jim Meyering  <meyering@lucent.com>
80321
80322         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80323         of local `inptr' to avoid warning with some system declarations of
80324         iconv.
80325
80326 2001-01-02  Volker Borchert  <bt@teknon.de>
80327
80328         * m4/rename.m4: New file.
80329         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80330
80331 2001-01-01  Jim Meyering  <meyering@lucent.com>
80332
80333         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80334         even on systems with utmpx.h.  It's necessary for the declaration of
80335         utmp's ut_user member.  Reported by Andreas Jaeger.
80336
80337         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80338         available. They are required for the declarations of getgrgid and
80339         getpwuid resp.
80340         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80341         Reported by Andreas Jaeger.
80342
80343 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80344
80345         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80346         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80347         so `make install' also works in VPATH builds.
80348
80349 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80350
80351         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80352         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80353         can be used in subdirectories.
80354
80355 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80356
80357         * lib/modechange.c: Do not assume that mode_t uses the
80358         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80359         the other-execute bit of FOO even if S_IXOTH != 1.
80360
80361         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80362         WOTH, XOTH, ALLM): New macros.
80363         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80364          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80365         Use them.
80366         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80367         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80368         (mode_compile):
80369         No need to use uintmax_t; unsigned long is long enough.
80370         Don't bother to get suffix since we don't use it.
80371
80372 2000-12-26  Jim Meyering  <meyering@lucent.com>
80373
80374         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80375         better with autoheader.
80376
80377 2000-12-24  Jim Meyering  <meyering@lucent.com>
80378
80379         * lib/hash.c (is_prime): Return explicit boolean values.
80380         (hash_get_first): Return NULL to appease Irix5.6's 89.
80381         Reported by Nelson Beebe.
80382
80383 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80384
80385         * lib/localcharset.c (locale_charset): Add support for Win32.
80386
80387 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80388
80389         * lib/physmem.h, lib/physmem.c: New files.
80390
80391         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80392         (noinst_HEADERS): Add physmem.h.
80393
80394         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80395         't' for compatibility with Solaris 8 sort.
80396
80397 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80398
80399         * lib/config.charset: Add support for BeOS.
80400
80401 2000-12-17  Jim Meyering  <meyering@lucent.com>
80402
80403         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80404         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80405
80406 2000-12-16  Jim Meyering  <meyering@lucent.com>
80407
80408         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80409         N and M) would have treated it like `chown N:N FILE'.
80410
80411         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80412
80413 2000-12-16  Jim Meyering  <meyering@lucent.com>
80414
80415         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80416         SHELLS_FILE to a file name that's useful on djgpp systems.
80417         Include stdlib.h.
80418         (ADDITIONAL_DEFAULT_SHELLS): Define.
80419         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80420         Based mostly on a patch from Prashant TR.
80421
80422 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80423
80424         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80425         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80426         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80427
80428 2000-12-08  Andreas Schwab  <schwab@suse.de>
80429
80430         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80431         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80432
80433 2000-12-07  Jim Meyering  <meyering@lucent.com>
80434
80435         * lib/stripslash.c (ISSLASH): Define.
80436         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80437         `/'.
80438         From Prashant TR.
80439
80440         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80441         (dir_name_r): Declare this function as static.
80442         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80443         manifest itself on a name containing a mix of slashes and
80444         backslashes.
80445         Make this function work with names starting with a DOS-style
80446         drive letter and colon prefix.
80447         (dir_name): Append `.' if necessary.
80448         Based mostly on patches from Prashant TR and Eli Zaretskii.
80449
80450         * lib/dirname.h (dir_name_r): Remove prototype.
80451
80452 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80453
80454         * m4/off_t-format.m4: Remove this file.
80455         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80456
80457 2000-12-06  Jim Meyering  <meyering@lucent.com>
80458
80459         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80460         replacement strtoull, we may well need the replacement strtoul, too.
80461         Check for declarations of strtoul and strtoull.
80462         Check for strtol.  Mainly as a cue to cause automake to include
80463         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80464         Check for limits.h -- strtol.c needs it.
80465
80466 2000-12-05  Jim Meyering  <meyering@lucent.com>
80467
80468         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80469
80470 2000-12-04  Jim Meyering  <meyering@lucent.com>
80471
80472         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80473         Also include memory.h, stdlib.h, unistd.h if appropriate.
80474         Reported by Andreas Jaeger (conflicting declaration of malloc).
80475
80476 2000-12-02  Jim Meyering  <meyering@lucent.com>
80477
80478         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80479         * m4/jm-macros.m4 (jm_MACROS): require it.
80480
80481 2000-12-02  Jim Meyering  <meyering@lucent.com>
80482
80483         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80484
80485 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80486
80487         * lib/memrchr.c: Include <config.h> before any system include file.
80488
80489 2000-11-30  Jim Meyering  <meyering@lucent.com>
80490
80491         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80492
80493 2000-11-30  Jim Meyering  <meyering@lucent.com>
80494
80495         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80496
80497 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80498
80499         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80500
80501 2000-11-26  Jim Meyering  <meyering@lucent.com>
80502
80503         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80504
80505 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80506
80507         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80508         size of (size_t) -1; it's not portable.
80509
80510 2000-11-17  Jim Meyering  <meyering@lucent.com>
80511
80512         * lib/strstr.c: Update from GNU libc.
80513
80514 2000-11-17  Akim Demaille  <akim@epita.fr>
80515
80516         * lib/obstack.h: Formatting changes.
80517         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80518         prevent type checking.
80519         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80520         cast the value to (void *): assigning a `foo *' to a `void *'
80521         variable is valid.
80522         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80523
80524 2000-11-16  Jim Meyering  <meyering@lucent.com>
80525
80526         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80527
80528 2000-11-11  Jim Meyering  <meyering@lucent.com>
80529
80530         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80531
80532 2000-11-10  Jim Meyering  <meyering@lucent.com>
80533
80534         * lib/obstack.h: Update from GNU libc.
80535         * lib/obstack.c: Likewise.
80536
80537 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80538
80539         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80540
80541 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80542
80543         * lib/getusershell.c (setusershell): Use rewind rather than
80544         fseek/fseeko, to avoid configuration hassles with fseeko.
80545         Don't bother opening SHELLS_FILE if shellstream is NULL;
80546         it's not necessary.
80547
80548 2000-11-05  Jim Meyering  <meyering@lucent.com>
80549
80550         * lib/makepath.h (make_dir): Declare.
80551         * lib/makepath.c (make_dir): Remove `static' attribute.
80552         Tweak a comment.
80553
80554 2000-11-04  Jim Meyering  <meyering@lucent.com>
80555
80556         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80557
80558 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80559
80560         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80561         last one in a bucket, advance to the next bucket.
80562
80563 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80564
80565         * lib/fnmatch.c: Do not comment out all the code if we are using
80566         the GNU C library, because in some cases we are replacing buggy
80567         code in the GNU C library itself.
80568
80569 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80570
80571         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80572         (regex_compile): Catch bogus \(\1\).
80573
80574 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80575
80576         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80577         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80578         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80579
80580 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80581
80582         * lib/error.h, getline.h, modechange.h:
80583         Remove "2000" from Copyright line, as the file hasn't been
80584         changed this year other than in the copyright notice.
80585
80586         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80587         was changed this year.
80588
80589 2000-10-29  Jim Meyering  <meyering@lucent.com>
80590
80591         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80592         renaming.
80593         * m4/ls-mntd-fs.m4: Likewise
80594
80595 2000-10-29  Jim Meyering  <meyering@lucent.com>
80596
80597         * lib/xstat.in: Fix grammar in comment.
80598
80599 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80600
80601         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80602         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80603         doesn't define __restrict_arr.
80604
80605 2000-10-28  Jim Meyering  <meyering@lucent.com>
80606
80607         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80608         (jm_PREREQ_MEMCHR): New function.
80609
80610 2000-10-28  Jim Meyering  <meyering@lucent.com>
80611
80612         * lib/memchr.c: Update from libc.
80613         Adjust for portability:
80614         [HAVE_STDLIB_H]: Include stdlib.h.
80615         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80616         Undef __memchr, too.
80617         [!weak_alias]: Define __memchr to memchr.
80618
80619         * lib/regex.c: Update from libc.
80620         * lib/regex.h: Likewise.
80621         * lib/getopt1.c: Likewise.
80622         * lib/memcmp.c: Likewise.
80623
80624         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80625         Avoid using fseek, when possible -- it's broken by design.
80626         Patch by Ulrich Drepper.
80627
80628 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80629
80630         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80631         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80632         Giving in to popular pressure to shut up the compiler with casts.
80633
80634 2000-10-26  Jim Meyering  <meyering@lucent.com>
80635
80636         * lib/strftime.c: Update from libc.
80637
80638 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80639
80640         * regex.c: More `unsigned char' -> `re_char' changes.
80641         Also change several `int' into `re_wchar_t'.
80642         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80643         (PUSH_FAILURE_POINTER): Don't cast any more.
80644         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80645         We want GCC to complain, since this piece of code makes
80646         re_match non-reentrant, which *should* be fixed.
80647         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80648         (EXTEND_BUFFER): Use RETALLOC.
80649         (SET_LIST_BIT): Don't cast.
80650         (re_wchar_t): New type.
80651         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80652         that those two functions will always properly return.
80653         (IMMEDIATE_QUIT_CHECK): Cast to void.
80654         (analyse_first): Use recursion rather than an explicit stack.
80655         (re_compile_fastmap): Can't fail anymore.
80656         (re_search_2): Don't check re_compile_fastmap for failure.
80657         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80658         Now also sets the new value (passed in a new argument).
80659         (re_match_2_internal): Use it.
80660         Also, use a new var `reg' of type size_t when looping through regs
80661         rather than reuse the inappropriate `mcnt'.
80662
80663 2000-10-25  Jim Meyering  <meyering@lucent.com>
80664
80665         * lib/obstack.c: Update from libc.
80666
80667 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80668
80669         * regex.c (regex_compile): Change the way of handling a range from
80670         a char less than 256 to a char not less than 256.
80671
80672 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80673
80674         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80675         NT-Emacs only.
80676         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80677         so that re_search functions only quit when callers expect them to.
80678
80679 2000-10-23  Jim Meyering  <meyering@lucent.com>
80680
80681         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80682         wrong.  That set_locale call must not have any side effects.
80683         From Paul Eggert.
80684
80685 2000-10-22  Jim Meyering  <meyering@lucent.com>
80686
80687         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80688         [CYCLIC]: Remove now-unused definition.
80689
80690         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80691         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80692         Suggestion from Ulrich Drepper.
80693
80694 2000-10-21  Jim Meyering  <meyering@lucent.com>
80695
80696         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80697         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80698         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80699
80700 2000-10-21  Jim Meyering  <meyering@lucent.com>
80701
80702         * lib/dirname.c (memrchr): Declare if necessary.
80703         (dir_name): Remove the restriction that there be no
80704         trailing slashes.  Now, this code skips past them, effectively
80705         ignoring them.
80706         [TEST_DIRNAME] (main): New unit tests.
80707
80708         * lib/memrchr.c: New file from GNU libc.
80709         Undef __memrchr, too.
80710         [!weak_alias]: Define __memrchr to memrchr.
80711         Guard weak_alias use with `#ifdef weak_alias'.
80712
80713 2000-10-21  Jim Meyering  <meyering@lucent.com>
80714
80715         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80716         (dir_name): Use dir_name_r.
80717         * lib/dirname.h (dir_name_r): Declare it.
80718
80719 2000-10-17  Jim Meyering  <meyering@lucent.com>
80720
80721         * lib/quote.h (PARAMS): Define and use.
80722         Reported by Akim Demaille.
80723
80724         * lib/getopt.c: Update from libc.
80725
80726 2000-10-16  Jim Meyering  <meyering@lucent.com>
80727
80728         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80729         setlocale.
80730         From Jan Fedak.
80731
80732 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80733
80734         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80735
80736 2000-09-25  Jim Meyering  <meyering@lucent.com>
80737
80738         * lib/md5.h (rol): Define (from GnuPG).
80739
80740         * lib/sha.c: Give credit (GnuPG) where due.
80741         (M): Use rol rather than open-coding it.
80742         Add a FIXME comment.
80743
80744 2000-09-21  Jim Meyering  <meyering@lucent.com>
80745
80746         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80747         Reported by Michael Stone.
80748
80749 2000-09-20  Jim Meyering  <meyering@lucent.com>
80750
80751         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80752         (noinst_HEADERS): Add sha.h.
80753         Based on code from Scott G. Miller and from GnuPG.
80754
80755 2000-09-18  Jim Meyering  <meyering@lucent.com>
80756
80757         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80758         LIBS. Otherwise, everyone ends up linking with -lelf for some
80759         configurations.
80760         Reported by Mike Stone.
80761
80762 2000-09-15  Jim Meyering  <meyering@lucent.com>
80763
80764         * lib/regex.c: Update from libc.
80765
80766 2000-09-10  Jim Meyering  <meyering@lucent.com>
80767
80768         * lib/getopt.c (_getopt_internal): Update from glibc.
80769
80770 2000-09-09  Jim Meyering  <meyering@lucent.com>
80771
80772         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80773         think it should be used as a general replacement for isascii.
80774         * lib/fnmatch.c: Likewise.
80775         * lib/mbswidth.c: Likewise
80776         * lib/regex.c: Likewise.
80777
80778         Don't use atoi.
80779         * lib/userspec.c: Include sys/param.h and limits.h.
80780         Include xstrtol.h.
80781         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80782         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80783         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80784         UID, GID.  Check range.
80785
80786 2000-09-06  Jim Meyering  <meyering@lucent.com>
80787
80788         * lib/getopt.c (_getopt_internal): Update from glibc.
80789
80790 2000-08-30  Jim Meyering  <meyering@lucent.com>
80791
80792         * lib/strftime.c: Merge in changes from GNU libc.
80793
80794 2000-08-26  Jim Meyering  <meyering@lucent.com>
80795
80796         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80797         * m4/fpending.m4: New file.
80798
80799 2000-08-26  Jim Meyering  <meyering@lucent.com>
80800
80801         * lib/closeout.c: Include "__fpending.h".
80802         (close_stdout_status): Return right away if there's nothing to flush.
80803
80804         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80805         * lib/__fpending.c: New file.
80806         * lib/__fpending.h: New file.
80807
80808 2000-08-20  Jim Meyering  <meyering@lucent.com>
80809
80810         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80811         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80812         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80813
80814 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80815
80816         Improve fileutils installation on systems where running
80817         programs (like install) can't be unlinked.
80818         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80819         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80820
80821 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80822
80823         Standardize on "memory exhausted" instead of "Memory exhausted"
80824         or "virtual memory exhausted".
80825         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80826         "virtual memory exhausted".
80827         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80828         our own message.
80829         * lib/userspec.c (parse_user_spec): Likewise.
80830         * lib/bumpalloc.h: comment fix
80831         * lib/same.c, userspec.c: Include xalloc.h.
80832
80833         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80834         not char *const and pointing to a constant array.
80835         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80836         (xrealloc): Comment fix.
80837
80838         * lib/userspec.c (parse_user_spec):
80839         Don't translate a message until just before returning,
80840         to avoid unnecessary translation.
80841
80842 2000-08-07  Jim Meyering  <meyering@lucent.com>
80843
80844         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80845         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80846         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80847         getgroups.c, gethostname.c, getopt.h, group-member.c,
80848         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80849         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80850         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80851         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80852         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80853         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80854         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80855         yesno.c: Back out Copyright date changes for each file with no change
80856         this year.  This eases coordination with other programs using the same
80857         source code modules.  From Paul Eggert.
80858
80859 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80860
80861         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80862         not char, for compatibility with glibc 2.1.3 strftime.c.
80863
80864 2000-08-03  Greg McGary  <greg@mcgary.org>
80865
80866         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80867         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80868         (EXTEND_BUFFER): Use them.
80869
80870 2000-08-01  Jim Meyering  <meyering@lucent.com>
80871
80872         * lib/dirname.c (ISSLASH): Define.
80873         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80874         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80875         both `\' and `/' may be use as path separators.
80876         Based on a patch from Prashant TR.
80877
80878 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80879
80880         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80881         slot vector a constant, since it might get modified.
80882
80883 2000-07-31  Jim Meyering  <meyering@lucent.com>
80884
80885         * lib/xmalloc.c: Use `virtual memory exhausted', not
80886         `Memory exhausted'.
80887         * lib/obstack.c (print_and_abort): Likewise.
80888
80889 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80890
80891         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80892         buffer, so that the caller can always quote one small
80893         component of a "memory exhausted" message in slot 0.
80894         From a suggestion by Jim Meyering.
80895
80896 2000-07-30  Jim Meyering  <meyering@lucent.com>
80897
80898         * lib/makepath.c (make_path): Quote the other instance, too.
80899
80900         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80901         (STATIC_BUF_SIZE): Define.
80902         (quotearg_n_options): Use only statically allocated storage when
80903         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80904         than STATIC_BUF_SIZE.
80905
80906 2000-07-29  Jim Meyering  <meyering@lucent.com>
80907
80908         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80909         * lib/dirname.c (dir_name): Likewise.
80910
80911         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80912         `/'.
80913
80914         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80915         (dir_name): Assert that there are no trailing slashes.
80916
80917 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80918
80919         * lib/mbswidth.h (mbswidth): Add a flags argument.
80920         (mbswidth): New declaration.
80921         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80922         * lib/mbswidth.c (mbswidth): Add a flags argument.
80923         (mbsnwidth): New function.
80924
80925 2000-07-24  Jim Meyering  <meyering@lucent.com>
80926
80927         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80928
80929 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80930
80931         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80932
80933 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80934
80935         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80936         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80937         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80938         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80939         invoke multibyte primitives.
80940
80941 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80942
80943         * lib/quotearg.c:
80944         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80945         so that mbstate_t is always defined.
80946
80947         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80948         be 1 in at least one GCC installation, and this configuration
80949         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80950         performance on hosts that have mbrtowc but have only unibyte
80951         locales, but I assume these hosts are rare.
80952
80953 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80954
80955         * lib/mbswidth.c (_XOPEN_SOURCE):
80956         Don't define; this causes problems on Solaris 7.
80957         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80958
80959 2000-07-23  Jim Meyering  <meyering@lucent.com>
80960
80961         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80962         too: getgrgid, getpwuid, getuid.
80963
80964 2000-07-23  Jim Meyering  <meyering@lucent.com>
80965
80966         * lib/basename.c (base_name): Add an assertion.
80967
80968 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80969
80970         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80971         shadow its mbsinit function.
80972
80973 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80974
80975         * lib/mbswidth.h: New file.
80976         * lib/mbswidth.c: New file.
80977         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80978         (noinst_HEADERS): Add mbswidth.h.
80979
80980 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80981
80982         * lib/config.charset: Add support for FreeBSD. Improve support for
80983         HP-UX and IRIX 6.
80984
80985 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80986
80987         * m4/mbswidth.m4: New file.
80988         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80989
80990 2000-07-15  Jim Meyering  <meyering@lucent.com>
80991
80992         * lib/makepath.c: Include quote.h.
80993         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80994         corresponding argument in a `quote (...)' call.
80995         Give better diagnostics.
80996
80997         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80998         (noinst_HEADERS): Add quote.h.
80999
81000         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81001         from tar's src/misc.c.
81002         * lib/quote.h: New file.  Prototypes for same.
81003
81004 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81005
81006         From a suggestion by Bruno Haible.
81007         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81008         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81009         to decide whether to define the BeOS workaround macro;
81010         this adjusts to the change to AC_MBSTATE_T.
81011
81012 2000-07-14  Jim Meyering  <meyering@lucent.com>
81013
81014         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81015         jm_AC_TYPE_UINTMAX_T.
81016
81017 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81018
81019         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81020
81021         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81022         quotearg_buffer_restyled): Add support for
81023         clocale_quoting_style.  Undo previous change to
81024         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81025         and "{RIGHT QUOTATION MARK}" msgids.
81026
81027 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81028
81029         From a suggestion by Bruno Haible.
81030         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81031         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81032         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81033         and mbstate_t, to a single-part test that simply defines mbstate_t.
81034         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81035         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81036
81037 2000-07-10  Jim Meyering  <meyering@lucent.com>
81038
81039         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81040
81041         * m4/gnu-source.m4: Output to confdefs.h directly.
81042         Suggestion from Akim Demaille.
81043
81044 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81045
81046         The old behavior of quoting `like this' doesn't look good with
81047         newer, ISO-style fonts.  See:
81048         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81049
81050         Instead, quote "like this" by default.  Let the translator
81051         tailor the locale-specific quoting behavior by providing
81052         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81053
81054         * lib/quotearg.c (N_): New macro.
81055         (gettext_default): New function.
81056         (quotearg_buffer_restyled): Use
81057         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81058         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81059
81060 2000-07-09  Jim Meyering  <meyering@lucent.com>
81061
81062         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81063         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81064
81065         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81066         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81067
81068 2000-07-09  Jim Meyering  <meyering@lucent.com>
81069
81070         * lib/Most files: Update copyright dates to include 2000.
81071
81072 2000-07-08  Jim Meyering  <meyering@lucent.com>
81073
81074         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81075         if not defined.
81076         (xgethostname): Remove now-unnecessary #ifdef.
81077         Move declaration of `err' into loop where it's used.
81078
81079 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81080         and Bruno Haible  <haible@clisp.cons.org>
81081
81082         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81083         only if the test for an object-type mbstate_t fails.  This
81084         prevents us from mistakenly reporting that mbstate_t is a
81085         system object type after we "#define mbstate_t int" to work
81086         around its lack.
81087
81088 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81089         and Bruno Haible  <haible@clisp.cons.org>
81090
81091         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81092
81093 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81094
81095         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81096         to strerror_r.
81097         Include <ctype.h> for use of isalpha.
81098
81099 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81100
81101         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81102         by allocating a larger buffer. Test the gethostname return value for
81103         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81104         returns an error and ENAMETOOLONG isn't defined.
81105
81106 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81107
81108         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81109         dimension.
81110
81111 2000-07-04  Jim Meyering  <meyering@lucent.com>
81112
81113         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81114         of the deprecated AC_CHECKING.
81115
81116 2000-07-04  Jim Meyering  <meyering@lucent.com>
81117
81118         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81119         Reported by Bruno Haible.
81120
81121 2000-07-04  Jim Meyering  <meyering@lucent.com>
81122
81123         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81124         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81125         lacks mbrtowc.
81126
81127 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81128
81129         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81130         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81131
81132 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81133         and Bruno Haible  <haible@clisp.cons.org>
81134
81135         * lib/quotearg.c (mbrtowc):
81136         Assign to *pwc, and return 1 only if result is nonzero.
81137         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81138
81139 2000-07-03  Jim Meyering  <meyering@lucent.com>
81140
81141         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81142
81143 2000-07-03  Jim Meyering  <meyering@lucent.com>
81144
81145         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81146         This is necessary to get a definition of e.g., UTMP_FILE on
81147         HP-UX 10.20.
81148         From Bob Proulx.
81149
81150 2000-07-02  Jim Meyering  <meyering@lucent.com>
81151
81152         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81153
81154         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81155         AC_LIBOBJ(function_name).
81156         * m4/chown.m4: Likewise.
81157         * m4/fnmatch.m4: Likewise.
81158         * m4/ftruncate.m4: Likewise.
81159         * m4/getgroups.m4: Likewise.
81160         * m4/getline.m4: Likewise.
81161         * m4/group-member.m4: Likewise.
81162         * m4/jm-macros.m4: Likewise.
81163         * m4/lstat.m4: Likewise.
81164         * m4/malloc.m4: Likewise.
81165         * m4/memcmp.m4: Likewise.
81166         * m4/nanosleep.m4: Likewise.
81167         * m4/putenv.m4: Likewise.
81168         * m4/realloc.m4: Likewise.
81169         * m4/regex.m4: Likewise.
81170         * m4/stat.m4: Likewise.
81171         * m4/strftime.m4: Likewise.
81172
81173 2000-07-02  Jim Meyering  <meyering@lucent.com>
81174
81175         * lib/quotearg.c (mbstate_t): Don't define here.
81176
81177 2000-07-02  Jim Meyering  <meyering@lucent.com>
81178
81179         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81180
81181 2000-07-01  Jim Meyering  <meyering@lucent.com>
81182
81183         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81184
81185 2000-07-01  Jim Meyering  <meyering@lucent.com>
81186
81187         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81188         problem.
81189
81190 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81191
81192         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81193         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81194
81195 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81196
81197         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81198         per change in ../m4/ls-mntd-fs.m4.
81199         (read_filesystem_list): Ignore symbolic links.
81200
81201 2000-06-29  Jim Meyering  <meyering@lucent.com>
81202
81203         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81204         for declaration of strcmp.
81205
81206         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81207
81208         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81209         Avoid warning by casting result to `char *' to remove `const'.
81210
81211 2000-06-28  Jim Meyering  <meyering@lucent.com>
81212
81213         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81214         included by quotearg.c, for which we perform this test.  From
81215         Bruno Haible.
81216
81217 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81218
81219         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81220         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81221         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81222
81223 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81224
81225         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81226
81227 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81228
81229         savedir now sets errno on failure and invokes xmalloc to get memory.
81230         Fix a couple of other minor bugs while we're at it.
81231
81232         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81233         (NAMLEN): Remove macro.
81234         (malloc, realloc): Remove decls.
81235         (stpcpy): Likewise.
81236         ("xalloc.h"): Include.
81237         (NAME_SIZE_DEFAULT): New macro.
81238         (savedir): Use xmalloc / xrealloc to allocate memory.
81239         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81240         Skip "" directory entries.
81241         Use strlen to calculate directory entry length, since the old method
81242         is rarely used these days and isn't worth supporting.
81243         Don't use a pointer after freeing it.
81244         Check for integer overflow when calculating allocation size.
81245         Use memcpy to copy entries, instead of stpcpy.
81246         Set errno properly when returning NULL.
81247         Check for readdir error.
81248
81249 2000-06-26  Jim Meyering  <meyering@lucent.com>
81250
81251         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81252
81253 2000-06-25  Jim Meyering  <meyering@lucent.com>
81254
81255         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81256         Linux header bug when _XOPEN_SOURCE is defined to 500.
81257
81258 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81259
81260         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81261         deficiency.
81262
81263 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81264
81265         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81266         Include xalloc.h.
81267         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81268
81269 2000-06-24  Jim Meyering  <meyering@lucent.com>
81270
81271         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81272         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81273         for which strerror does return char*, but which lacks a conveniently
81274         accessible declaration of the function.  If the compile-test says
81275         strerror_r doesn't work, then resort to a `run'-test that works on
81276         BeOS and segfaults on DEC Unix.
81277
81278 2000-06-24  Jim Meyering  <meyering@lucent.com>
81279
81280         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81281
81282 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81283
81284         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81285         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81286
81287 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81288
81289         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81290         (mbrtowc, mbstate_t): Define substitutes if
81291         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81292         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81293         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81294
81295 2000-06-23  Jim Meyering  <meyering@lucent.com>
81296
81297         * m4/afs.m4: Add missing AC_MSG_RESULT.
81298         Reported by Bruno Haible.
81299
81300         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81301         Suggestion from Bruno Haible.
81302
81303 2000-06-23  Jim Meyering  <meyering@lucent.com>
81304
81305         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81306
81307 2000-06-21  Jim Meyering  <meyering@lucent.com>
81308
81309         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81310
81311 2000-06-21  Jim Meyering  <meyering@lucent.com>
81312
81313         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81314         (noinst_HEADERS): Add getstr.h.
81315
81316         * lib/getline.c (getstr): Move into a separate file.
81317         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81318         the following changes: new parameter, delim2; both delim[12]
81319         parameters have type `int', not `char'.  The latter would lose
81320         with 8-bit delimiters.
81321         * lib/getstr.h: New file.
81322
81323 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81324
81325         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81326         than 1024, return a memory chunk of least possible size, instead
81327         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81328         Use free/xmalloc instead of xrealloc to avoid copying for very long
81329         paths.
81330
81331 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81332
81333         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81334         the empty string.
81335
81336 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81337
81338         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81339         address, not strdup.  Include <stdlib.h> and don't declare free().
81340
81341 2000-06-19  Jim Meyering  <meyering@lucent.com>
81342
81343         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81344
81345 2000-06-18  Jim Meyering  <meyering@lucent.com>
81346
81347         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81348
81349         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81350         `checking whether...' message to be consistent with that of the
81351         lstat test.
81352
81353 2000-06-18  Jim Meyering  <meyering@lucent.com>
81354
81355         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81356         Besides, these days every porting target provides a mkdir function.
81357
81358         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81359         needed. (this snippet comes from src/system.h).
81360
81361 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81362
81363         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81364
81365 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81366
81367         * lib/human.c (adjust_value): New function.
81368         (human_readable_inexact): Apply rounding style even when
81369         printing approximate values.
81370
81371 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81372
81373         * lib/human.c (human_readable_inexact): Allow an input block
81374         size that is not a multiple of the output block size, and vice versa.
81375         Reported by Piergiorgio Sartor.
81376
81377 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81378
81379         * lib/getdate.y (get_date): Apply relative times after time
81380         zone indicator, not before.  Reported by Todd A. Jacobs.
81381
81382 2000-06-13  Jim Meyering  <meyering@lucent.com>
81383
81384         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81385
81386         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81387
81388 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81389
81390         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81391
81392 2000-06-12  Jim Meyering  <meyering@lucent.com>
81393
81394         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81395         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81396         optional argument.
81397         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81398         the optional argument, `lib'.
81399
81400 2000-06-08  Jim Meyering  <meyering@lucent.com>
81401
81402         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81403
81404 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81405
81406         Rewrite largefile configuration so that we don't need to run
81407         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81408         AC_CANONICAL_HOST in configure.in -- jmm]
81409
81410         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81411         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81412         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81413         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81414         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81415         All uses changed.
81416         Instead of inspecting the output of getconf, try to compile the
81417         test program without and with the macro definition.
81418         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81419         for getconf.  Instead, check for the needed flags by compiling
81420         test programs.
81421
81422 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81423
81424         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81425
81426 2000-06-04  Jim Meyering  <meyering@lucent.com>
81427
81428         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81429         SunOS 4.1.4 for which gid_t is an unsigned type.
81430
81431 2000-06-03  Jim Meyering  <meyering@lucent.com>
81432
81433         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81434         now that autoconf requires that.
81435
81436         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81437         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81438         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81439
81440 2000-06-03  Jim Meyering  <meyering@lucent.com>
81441
81442         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81443
81444 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81445
81446         * m4/glibc21.m4: New file.
81447         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81448
81449 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81450
81451         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81452         newer, don't install charset.alias.
81453         * lib/config.charset: Change the Linux/glibc rules so they become empty
81454         on glibc-2.1 or newer.
81455
81456 2000-06-02  Jim Meyering  <meyering@lucent.com>
81457
81458         * lib/mountlist.c: Back out last change.  Instead, do this...
81459         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81460         me_dummy member using the same `ignore'-testing code.
81461         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81462         fs_type strings.
81463         From Mark D. Roth.
81464
81465 2000-05-29  Jim Meyering  <meyering@lucent.com>
81466
81467         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81468         mounts with the `ignore' attribute.  Based on a patch from
81469         Mark D. Roth.
81470
81471 2000-05-28  Jim Meyering  <meyering@lucent.com>
81472
81473         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81474         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81475         * m4/stat.m4: Likewise.
81476         * m4/lstat.m4: Likewise.
81477         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81478
81479         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81480         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81481
81482 2000-05-26  Jim Meyering  <meyering@lucent.com>
81483
81484         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81485
81486 2000-05-24  Jim Meyering  <meyering@lucent.com>
81487
81488         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81489         autoconf requires that.
81490         * m4/lib-check.m4: Likewise.
81491         * m4/jm-macros.m4: Likewise.
81492         * m4/strftime.m4: Likewise.
81493
81494         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81495         AC_CHECK_DECLS, now that autoconf requires that.
81496
81497 2000-05-22  Jim Meyering  <meyering@lucent.com>
81498
81499         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81500         * m4/lstat.m4: Likewise.
81501
81502 2000-05-22  Jim Meyering  <meyering@lucent.com>
81503
81504         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81505
81506 2000-05-20  Jim Meyering  <meyering@lucent.com>
81507
81508         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81509         (jm_PREREQ): Use it.
81510
81511 2000-05-18  Jim Meyering  <meyering@lucent.com>
81512
81513         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81514         back, too, since it may have been modified by allocate_entry.
81515         (hash_delete): Rewrite to use neither the assignment operator
81516         nor the comma operator in an if-expression.
81517
81518 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81519
81520         * lib/closeout.c:
81521         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81522         Remove; no longer needed.
81523         "quotearg.h": Add include.
81524         (file_name): Do not bother to explicitly initialize to NULL; it's less
81525         efficient on some hosts.
81526         (close_stdout_status): Remove test as to whether stdout was already
81527         closed; it breaks for the case "echo x | sort >&-".
81528         Quote file name colons.
81529         Do not assume that _("write error") lacks format strings.
81530
81531 2000-05-15  Jim Meyering  <meyering@lucent.com>
81532
81533         * lib/version-etc.c (version_etc_copyright): Update the copyright
81534         string used in all --version output.
81535
81536 2000-05-14  Jim Meyering  <meyering@lucent.com>
81537
81538         * lib/closeout.c (close_stdout_set_file_name): New function.
81539         (close_stdout_status): Use new file-scoped global.
81540         Return right away if fstat says the stdout file descriptor is invalid.
81541         * lib/closeout.h (close_stdout_set_file_name): Declare.
81542
81543 2000-05-10  Jim Meyering  <meyering@lucent.com>
81544
81545         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81546         (close_stdout_set_status): New function.
81547         * lib/closeout.h (close_stdout_set_status): Declare.
81548
81549 2000-05-09  Jim Meyering  <meyering@lucent.com>
81550
81551         * m4/gettext.m4: Rename this...
81552         * m4/libintl.m4: ...to this.
81553
81554 2000-05-08  Jim Meyering  <meyering@lucent.com>
81555
81556         * lib/long-options.c: Don't include closeout.h.
81557         (parse_long_options): Don't call close_stdout for --version.
81558
81559 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81560
81561         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81562         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81563         2.1.3 bug.  This avoids a clash when files like regex.c define
81564         _GNU_SOURCE.
81565
81566 2000-05-06  Jim Meyering  <meyering@lucent.com>
81567
81568         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81569         (AC_REPLACE_FUNCS): Add strnlen.
81570
81571         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81572         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81573
81574         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81575         AC_SEARCH_LIBS call for nanosleep.
81576         (LIB_NANOSLEEP): Set and AC_SUBST.
81577
81578 2000-05-06  Jim Meyering  <meyering@lucent.com>
81579
81580         * lib/strnlen.c: Undefine __strnlen and strnlen.
81581         [!weak_alias]: Define __strnlen to strnlen.
81582
81583         * lib/atexit.c: New file, from libiberty.
81584
81585 2000-05-06  Jim Meyering  <meyering@lucent.com>
81586
81587         * lib/closeout.c (close_stdout_status): Also check for errors on the
81588         stderr stream.
81589
81590 2000-05-05  Jim Meyering  <meyering@lucent.com>
81591
81592         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81593         AC_SEARCH_LIBS call for clock_gettime.
81594         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81595
81596         * m4/search-libs.m4: Update from autoconf.
81597
81598         su doesn't work on Solaris 2.6.
81599         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81600         <shadow.h>.  Reported by Dragos Harabor.
81601
81602 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81603
81604         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81605         memcpy instead of xmalloc, xrealloc, path_concat.
81606         (locale_charset): Treat empty environment variables as absent.
81607         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81608
81609 2000-05-04  Jim Meyering  <meyering@lucent.com>
81610
81611         * lib/getopt.c: Update from glibc.
81612         * lib/obstack.c: Likewise.
81613         * lib/obstack.h: Likewise.
81614         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81615         file
81616
81617         * lib/regex.h: Likewise.
81618         * lib/strndup.c: Likewise.
81619         * lib/strnlen.c: New file, from glibc.
81620
81621 2000-05-03  Jim Meyering  <meyering@lucent.com>
81622
81623         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81624
81625 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81626
81627         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81628         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81629         compile-time test, rather than inspecting host and OS, to
81630         decide whether to define _LARGEFILE_SOURCE.
81631
81632 2000-05-01  Jim Meyering  <meyering@lucent.com>
81633
81634         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81635
81636         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81637         Based on a patch from Bruno Haible.
81638
81639 2000-05-01  Jim Meyering  <meyering@lucent.com>
81640
81641         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81642
81643 2000-04-29  Jim Meyering  <meyering@lucent.com>
81644
81645         * lib/path-concat.c: Declare strdup only if it's not defined.
81646         * lib/canon-host.c: Likewise.
81647
81648 2000-04-28  Jim Meyering  <meyering@lucent.com>
81649
81650         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81651         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81652         is included first, then limits.h is included by locale.h by libintl.h.
81653         From John David Anglin.
81654
81655 2000-04-25  Jim Meyering  <meyering@lucent.com>
81656
81657         * lib/makepath.c (S_IRWXUGO): Define.
81658         (make_path): Always perform explicit chmod if MODE specifies any
81659         of the `special' permission bits.  Prompted by a bug report against
81660         install from Mate Wierdl and Joost van Baal.
81661
81662 2000-04-18  Jim Meyering  <meyering@lucent.com>
81663
81664         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81665         (jm_PREREQ): Use it.
81666
81667 2000-04-18  Jim Meyering  <meyering@lucent.com>
81668
81669         * lib/README: New file.
81670
81671         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81672         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81673
81674 2000-04-17  Jim Meyering  <meyering@lucent.com>
81675
81676         Get it right :-)
81677         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81678         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81679         Suggestion from Akim Demaille.
81680
81681 2000-04-17  Jim Meyering  <meyering@lucent.com>
81682
81683         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81684         the definition of it to rpl_strftime also defined-away the system's
81685         declaration.
81686
81687 2000-04-15  Jim Meyering  <meyering@lucent.com>
81688
81689         Use `C' to denote so-called `contiguous' files, the same way
81690         that tar does.
81691         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81692         (ftypelet): Use S_ISCTG.
81693         From Michael Deutschmann.
81694
81695 2000-04-14  Jim Meyering  <meyering@lucent.com>
81696
81697         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81698         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81699         clobbered.
81700
81701 2000-04-14  Jim Meyering  <meyering@lucent.com>
81702
81703         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81704
81705 2000-04-13  Jim Meyering  <meyering@lucent.com>
81706
81707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81708         AH_VERBATIM to insert required #ifndef into config.h.in.
81709         Suggestion from Akim Demaille.
81710
81711 2000-04-12  Jim Meyering  <meyering@lucent.com>
81712
81713         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81714         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81715         Christian Krackowizer.
81716
81717         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81718         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81719         (AC_SYS_LARGEFILE): Require.
81720         (AM_C_PROTOTYPES): Require.
81721
81722 2000-04-08  Jim Meyering  <meyering@lucent.com>
81723
81724         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81725         names don't conflict.  Reported by Eli Zaretskii.
81726
81727 2000-04-07  Jim Meyering  <meyering@lucent.com>
81728
81729         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81730         sys/types.h, to work around system header problems on AIX 3.2.5.
81731         From Bruno Haible.
81732
81733 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81734
81735         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81736         bug.  Deal with the different error behavior of Irix iconv.
81737
81738 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81739
81740         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81741         IRIX if the installer said otherwise.
81742
81743 2000-04-05  Jim Meyering  <meyering@lucent.com>
81744
81745         Portability tweaks required for ultrix4.3.
81746         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81747         (jm_CHECK_DECLS): Add getutent to the list of functions.
81748         (_jm_DECL_HEADERS): Add utmpx.h.
81749         From John David Anglin.
81750
81751         * m4/strftime.m4: Back out the 2000-04-02 change.
81752         Instead of that change, simply undefine putenv in the test program.
81753
81754 2000-04-05  Jim Meyering  <meyering@lucent.com>
81755
81756         Portability tweaks required for ultrix4.3.
81757         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81758         getutent.
81759         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81760         * lib/canon-host.c: Declare strdup.
81761         * lib/path-concat.c: Likewise.
81762         From John David Anglin.
81763
81764 2000-04-04  Jim Meyering  <meyering@lucent.com>
81765
81766         Be more DOS 8.3-friendly.
81767         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81768         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81769         * lib/Makefile.am: Reflect renaming.
81770         Reported by Eli Zaretskii.
81771
81772         Use a temporary file name that won't clash with `charset.alias'
81773         in the DOS 8.3 name space.
81774         * lib/Makefile.am (charset_tmp): Define.
81775         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81776         (uninstall-local): Likewise.
81777         Reported by Eli Zaretskii.
81778
81779 2000-04-03  Jim Meyering  <meyering@lucent.com>
81780
81781         * m4/gettext.m4: Fix typo in comment.
81782
81783         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81784         textutils/configure.in).  Suggestion from Paul Eggert.
81785         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81786
81787 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81788
81789         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81790         variable in the shell rather than using putenv, which isn't
81791         portable.  This avoids the configure-time inter-test dependency
81792         on the potentially-renamed putenv function.
81793
81794 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81795
81796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81797         before checking struct stat.st_blksize, so that
81798         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81799
81800 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81801
81802         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81803         since strftime.c uses HAVE_STRFTIME to decide whether to use
81804         the underlying strftime.
81805
81806 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81807
81808         * lib/time/strftime.c (my_strftime): Make sure we call the system
81809         strftime, not ourselves, when invoking the underlying strftime.
81810
81811 2000-03-24  Jim Meyering  <meyering@lucent.com>
81812
81813         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81814         (charset_alias): Define.
81815         (install-exec-local): Factor out common code.
81816         (uninstall-local): Split lines longer than 80.
81817         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81818         (SUFFIXES): Define.
81819         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81820         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81821
81822 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81823
81824         * lib/config.charset: Output a line containing "Packages using this
81825         file".
81826         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81827         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81828         ref-del.sed): New rules.
81829
81830 2000-03-17  Jim Meyering  <meyering@lucent.com>
81831
81832         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81833         Otherwise, include <strings.h>
81834
81835 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81836
81837         * lib/unicodeio.c (utf8_wctomb): New function.
81838         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81839         format instead of in UCS-4 with platform dependent endianness.
81840
81841 2000-03-10  Jim Meyering  <meyering@lucent.com>
81842
81843         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81844         From Marco Franzen.
81845
81846 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81847
81848         * lib/savedir.c (savedir): Work even if directory size is
81849         negative; this can happen with some screwy NFS configurations.
81850
81851 2000-03-06  Jim Meyering  <meyering@lucent.com>
81852
81853         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81854         if it's NULL (because we ran out of memory).  From Bruno Haible.
81855
81856 2000-03-05  Jim Meyering  <meyering@lucent.com>
81857
81858         * lib/localcharset.c ("path-concat.h"): Include.
81859         (get_charset_aliases): Use path_concat instead of ANSI string
81860         concatenation.
81861
81862         * lib/unicodeio.h (PARAMS): Define.
81863         Use it to guard prototype.
81864
81865 2000-03-04  Jim Meyering  <meyering@lucent.com>
81866
81867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81868         for lib/localcharset.c.
81869
81870 2000-03-04  Jim Meyering  <meyering@lucent.com>
81871
81872         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81873         installing into it.
81874         (uninstall-local): Uncomment this rule so `make distcheck' works
81875         once again.
81876
81877         * lib/unicodeio.c (<errno.h>): Include it.
81878         (errno): Declare if not defined.
81879
81880         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81881
81882         * lib/config.charset: New version, incorporating remarks from a linux
81883         i18n mailing list.  From Bruno Haible.
81884
81885 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81886
81887         * m4/codeset.m4: New file.
81888         * m4/iconv.m4: New file.
81889         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81890
81891 2000-03-03  Jim Meyering  <meyering@lucent.com>
81892
81893         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81894
81895 2000-03-02  Jim Meyering  <meyering@lucent.com>
81896
81897         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81898         the messages come out on separate lines.
81899
81900         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81901         rather than jm_CHECK_DECLARATIONS.
81902         * m4/decl.m4: Remove now-unused file.
81903
81904         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81905         geteuid.
81906
81907 2000-03-02  Jim Meyering  <meyering@lucent.com>
81908
81909         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81910
81911 2000-03-01  Jim Meyering  <meyering@lucent.com>
81912
81913         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81914         * lib/unicodeio.c: Likewise.
81915
81916 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81917
81918         * lib/config.charset: New file.
81919         * lib/localcharset.c: New file.
81920         * lib/unicodeio.h, lib/unicodeio.c: New files.
81921         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81922         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81923         (noinst_HEADERS): Add unicodeio.h.
81924         (all-local, install-exec-local, charset.alias): New targets.
81925
81926 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81927
81928         * lib/quotearg.c (ALERT_CHAR): New macro.
81929         (quotearg_buffer_restyled): Use it.
81930
81931 2000-02-27  Jim Meyering  <meyering@lucent.com>
81932
81933         * m4/check-decl.m4: Add getenv to the list.
81934
81935 2000-02-27  Jim Meyering  <meyering@lucent.com>
81936
81937         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81938         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81939
81940         * lib/backupfile.c: Guard inclusion of stdlib.h with
81941         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81942         Declare malloc if needed.
81943
81944         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81945         `#ifndef HAVE_DECL..'
81946         now that autoconf always defines the HAVE_DECL_ symbols.
81947         * lib/human.c: Likewise.
81948         * lib/same.c: Likewise.
81949         * lib/strtoumax.c: Likewise.
81950
81951         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81952         declaration check was not run.
81953         * lib/hash.c: Likewise.
81954         * lib/human.c: Likewise.
81955         * lib/same.c: Likewise.
81956         * lib/strtoumax.c: Likewise.
81957
81958         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81959         `.', then first look up the entire `.'-containing string as a login
81960         name.
81961
81962 2000-02-23  Jim Meyering  <meyering@lucent.com>
81963
81964         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81965         in place of my hack.
81966
81967 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81968
81969         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81970         (textint): New typedef.
81971         (parser_control): Member year changed from int to textint.
81972         All uses changed.
81973         (YYSTYPE): Removed; replaced by %union with int and textint members.
81974         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81975         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81976         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81977         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81978         (date, number, to_year): Use width of number in digits, not its value,
81979         to determine whether it's a 2-digit year, or a 2-digit time.
81980         (yylex): Store number of digits of numeric tokens.
81981         Reported by John Kendall.
81982
81983         (parser_control): Changed from struct parser_control to typedef (for
81984         consistency).  All uses changed.
81985
81986         (tID): Removed; not used.
81987         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81988
81989 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81990
81991         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81992         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81993
81994 2000-02-12  Jim Meyering  <meyering@lucent.com>
81995
81996         * lib/userspec.c (ISDIGIT): Define it.
81997         (isdigit): Remove definition.
81998         (is_number): Use ISDIGIT, not isdigit.
81999         <libintl.h>: Include.
82000         (_ and N_): Define.
82001         (parse_user_spec): Mark translatable strings.
82002
82003 2000-02-10  Jim Meyering  <meyering@lucent.com>
82004
82005         With these changes, nanosleep.[ch] are finally enough like the other
82006         lib/* replacement files to compile on a few more losing systems.
82007
82008         * lib/nanosleep.h: Don't include config.h.
82009         Remove prototype from declaration of nanosleep.
82010         (PARAMS): Remove now-unneeded definition.
82011         * lib/nanosleep.c: #undef nanosleep.
82012         (rpl_nanosleep): Rename from nanosleep.
82013
82014 2000-02-10  Jim Meyering  <meyering@lucent.com>
82015
82016         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82017         gnu_nanosleep to rpl_nanosleep.
82018
82019 2000-02-09  Jim Meyering  <meyering@lucent.com>
82020
82021         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82022         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82023
82024 2000-02-08  Akim Demaille  <akim@epita.fr>
82025
82026         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82027         `[' and `]' and remove uses of `changequote'.
82028         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82029         (AC_SYS_LARGEFILE): Likewise.
82030         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82031         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82032         of changequote.
82033         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82034         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82035         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82036         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82037
82038 2000-02-05  Jim Meyering  <meyering@lucent.com>
82039
82040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82041         Remove explicit use of AC_HEADER_TIME.  It is required by
82042         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82043         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82044         in autoconf whereby the expansion of the latter ended up preceding
82045         the expansion of its prerequisite, AC_HEADER_TIME.
82046         Reported by Volker Borchert.
82047
82048 2000-02-03  Jim Meyering  <meyering@lucent.com>
82049
82050         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82051
82052 2000-02-03  Jim Meyering  <meyering@lucent.com>
82053
82054         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82055         rather than with `#if HAVE_UTMPNAME'.
82056
82057 2000-02-02  Jim Meyering  <meyering@lucent.com>
82058
82059         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82060         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82061         Reported by Eli Zaretskii.
82062
82063 2000-02-01  Jim Meyering  <meyering@lucent.com>
82064
82065         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82066
82067 2000-01-31  Jim Meyering  <meyering@lucent.com>
82068
82069         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82070         functions.  Add the time.h and sys/time.h headers along with the
82071         AC_REQUIRE'ment of AC_HEADER_TIME.
82072
82073 2000-01-31  Jim Meyering  <meyering@lucent.com>
82074
82075         * lib/nanosleep.h (nanosleep): Guard declaration with
82076         `#if ! HAVE_DECL_NANOSLEEP'.
82077         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82078         the declaration in that vendor's sys/timers.h.
82079         Reported by Christian Krackowizer.
82080
82081         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82082         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82083         (ISPRINT): Likewise.
82084         Reported by Tom Tromey.
82085
82086 2000-01-30  Jim Meyering  <meyering@lucent.com>
82087
82088         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82089
82090         * m4/prereq.m4 (utmp_includes): Define.
82091         Check for ut_user and ut_name members in both struct utmpx
82092         and struct utmp.
82093
82094 2000-01-30  Jim Meyering  <meyering@lucent.com>
82095
82096         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82097         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82098         header files where only utmpx.ut_user is declared.
82099
82100         * lib/readutmp.h (UT_USER): Define.
82101
82102 2000-01-29  Jim Meyering  <meyering@lucent.com>
82103
82104         * m4/lib-check.m4: New file containing library-related checks from
82105         fileutils and sh-utils (textutils had none).
82106
82107 2000-01-28  Jim Meyering  <meyering@lucent.com>
82108
82109         * m4/perl.m4: Change format of warning message to look more like that
82110         from the missing script.  Suggestion from François Pinard.
82111
82112 2000-01-25  Jim Meyering  <meyering@lucent.com>
82113
82114         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82115         well as time.h in the compile check.
82116         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82117         Fix typo in cross-compiling case: s/yes/no/.
82118
82119 2000-01-23  Jim Meyering  <meyering@lucent.com>
82120
82121         * m4/jm-macros.m4: Move df-related tests here from
82122         fileutils/configure.in
82123
82124         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82125         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82126
82127         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82128         s/space/ac_fsusage_space/.
82129         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82130
82131         * m4/ftruncate.m4: New file (derived from part of
82132         fileutils/configure.in).
82133         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82134         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82135
82136         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82137         AC_SUBST these here, rather than just in sh-util/configure.in, so
82138         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82139         all the same.
82140         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82141         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82142         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82143         (AC_SUBST(POW_LIBM)): Likewise.
82144         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82145
82146 2000-01-23  Jim Meyering  <meyering@lucent.com>
82147
82148         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82149         obstack.c.
82150
82151 2000-01-22  Jim Meyering  <meyering@lucent.com>
82152
82153         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82154
82155         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82156
82157         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82158         configure.in
82159         (AC_CHECK_HEADERS): Likewise for sh-utils.
82160         (AC_CHECK_HEADERS): Likewise for textutils.
82161         Merge the three lists of headers.
82162
82163         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82164         from fileutils' configure.in.
82165
82166         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82167         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82168         check-decl.m4.
82169
82170         * m4/check-decl.m4: Use #if rather than #ifdef.
82171         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82172         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82173         (_jm_DECL_HEADERS): Define new function.
82174         (jm_CHECK_DECLARATIONS): Require it.
82175
82176 2000-01-22  Jim Meyering  <meyering@lucent.com>
82177
82178         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82179         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82180         Required for some AIX systems.  Reported by Christian Krackowizer.
82181         [TESTING] (main): New function.
82182
82183         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82184         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82185         letters.
82186
82187         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82188         iswprint.
82189
82190         * lib/strverscmp.c (ISDIGIT): Define.
82191         (strverscmp): Use ISDIGIT, not isdigit.
82192
82193 2000-01-19  Jim Meyering  <meyering@lucent.com>
82194
82195         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82196         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82197         defines `struct timespec' in <sys/time.h>
82198
82199         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82200         Thanks to Akim for explaining.
82201
82202 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82203
82204         * lib/nanosleep.c (nanosleep):
82205         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82206         POSIX.1 doesn't require SA_INTERRUPT and some systems
82207         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82208         it's been part of POSIX.1 since day 1 (in 1988).
82209
82210 2000-01-17  Jim Meyering  <meyering@lucent.com>
82211
82212         * lib/interlock: Remove unused file.  Reported by François Pinard.
82213
82214 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82215
82216         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82217         alert, backslash, formfeed, and vertical tab unnecessarily in
82218         shell quoting style.
82219
82220 2000-01-16  Jim Meyering  <meyering@lucent.com>
82221
82222         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82223         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82224         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82225         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82226
82227 2000-01-16  Jim Meyering  <meyering@lucent.com>
82228
82229         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82230         because the latter didn't work.
82231
82232 2000-01-15  Jim Meyering  <meyering@lucent.com>
82233
82234         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82235         (AC_REPLACE_FUNCS): Add memcpy and memset.
82236         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82237         Add strpbrk.
82238         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82239
82240 2000-01-12  Jim Meyering  <meyering@lucent.com>
82241
82242         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82243         (jm_PREREQ): Use it.
82244         (jm_PREREQ_READUTMP): New macro.
82245         (jm_PREREQ): Use it.
82246
82247 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82248
82249         Quote multibyte characters correctly.
82250         * m4/c-bs-a.m4: New file.
82251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82252         (jm_PREREQ): Use it.
82253
82254 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82255
82256         * m4/uintmax_t.m4: Port to autoconf 2.13.
82257
82258 2000-01-08  Jim Meyering  <meyering@ascend.com>
82259
82260         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82261         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82262
82263 2000-01-04  Jim Meyering  <meyering@ascend.com>
82264
82265         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82266         jm_STRUCT_DIRENT_D_TYPE.
82267         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82268         jm_STRUCT_DIRENT_D_INO.
82269         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82270         jm_STRUCT_UTIMBUF.
82271         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82272         renamings.
82273         * m4/utime.m4: Likewise.
82274
82275         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82276         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82277
82278 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82279
82280         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82281         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82282
82283 2000-01-02  Jim Meyering  <meyering@ascend.com>
82284
82285         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82286         remember if this is necessary.
82287
82288 1999-12-26  Jim Meyering  <meyering@ascend.com>
82289
82290         * m4/jm-macros.m4: Use it here.
82291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82292
82293 1999-12-23  Jim Meyering  <meyering@ascend.com>
82294
82295         * m4/jm-macros.m4: Check for clock_gettime (moved from
82296         fileutils/configure.in)
82297         Check for gettimeofday.
82298
82299 1999-12-20  Jim Meyering  <meyering@ascend.com>
82300
82301         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82302         autoconf-2.14a-1999-12-20.
82303
82304 1999-12-19  Jim Meyering  <meyering@ascend.com>
82305
82306         * m4/lstat-slash.m4: New file.
82307         * m4/jm-macros.m4: Use the new macro:
82308         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82309
82310 1999-12-07  Jim Meyering  <meyering@ascend.com>
82311
82312         * m4/perl.m4: Require that File::Compare be available, too.
82313         Too many systems seem to lack it.
82314
82315         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82316         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82317
82318 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82319
82320         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82321         problem with the QNX 4.25 shell, which doesn't propagate exit
82322         status of failed commands inside shell assignments.
82323
82324 1999-11-17  Jim Meyering  <meyering@ascend.com>
82325
82326         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82327
82328 1999-11-07  Jim Meyering  <meyering@ascend.com>
82329
82330         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82331
82332 1999-11-06  Jim Meyering  <meyering@ascend.com>
82333
82334         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82335         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82336
82337 1999-11-05  Jim Meyering  <meyering@ascend.com>
82338
82339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82340         configure.in of textutils, fileutils, and sh-utils into this one
82341         (shared between those packages) file.
82342         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82343         AC_STRUCT_ST_BLKSIZE.
82344
82345 1999-11-03  Jim Meyering  <meyering@ascend.com>
82346
82347         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82348         of AC_CHECK_TYPE checks includes unistd.h.
82349         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82350         Suggestion from Akim Demaille.
82351
82352 1999-10-30  Jim Meyering  <meyering@ascend.com>
82353
82354         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82355         m4-quoted string.
82356         * m4/ls-mntd-fs.m4: Likewise.
82357         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82358         * m4/jm-winsz1.m4: Likewise.
82359
82360         * m4/const.m4: Remove file, since the fix made it into the experimental
82361         version of autoconf.
82362         * m4/mktime.m4: Likewise.
82363
82364         * m4/check-type.m4: Remove file, now that the latest version of
82365         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82366
82367         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82368         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82369         AC_CHECK_TYPE.
82370
82371 1999-10-04  Jim Meyering  <meyering@ascend.com>
82372
82373         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82374
82375 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82376
82377         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82378         2.95.1 bug with HP-UX 10.20.
82379
82380 1999-09-17  Jim Meyering  <meyering@ascend.com>
82381
82382         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82383         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82384         due to missing strdup (against sh-utils-2.0).
82385
82386 1999-08-29  Jim Meyering  <meyering@ascend.com>
82387
82388         * m4/jm-macros.m4: Require jm_BISON.
82389         * m4/bison.m4: New file.
82390
82391 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82392
82393         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82394         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82395
82396 1999-08-05  Jim Meyering  <meyering@ascend.com>
82397
82398         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82399         to avoid conflicts with `conftest' on 8+3 filesystems.
82400         Suggestion from Eli Zaretskii.
82401
82402 1999-08-04  Jim Meyering  <meyering@ascend.com>
82403
82404         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82405         fileutils and sh-utils (textutils's getline test was inadequate).
82406         (AM_FUNC_GETLINE): Run this test.
82407         (AC_CHECK_FUNCS): Check for getdelim.
82408         Reported by Bob Proulx.
82409
82410 1999-08-02  Jim Meyering  <meyering@ascend.com>
82411
82412         * m4/jm-macros.m4: Add a comment.
82413
82414 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82415
82416         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82417         <inttypes.h> defines strtoumax as a macro (and not as a
82418         function).
82419
82420 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82421
82422         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82423         that we can shift, multiply and divide unsigned long long
82424         values; Ultrix cc can't do it.
82425
82426 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82427
82428         * m4/mktime.m4: New file, which is a preview of what should appear
82429         in the next public autoconf release.
82430
82431 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82432
82433         * m4/lfs.m4: Remove this file.
82434         * m4/largefile.m4: New file.  It contains the old contents of
82435         lfs.m4, except that all names with prefix AC_LFS have been
82436         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82437         compatible with future autoconf versions.  Also, some minor m4
82438         quoting problems have been fixed.
82439
82440 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82441
82442         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82443         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82444         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82445         and simplify the shell code.
82446
82447 1999-08-01  Jim Meyering  <meyering@ascend.com>
82448
82449         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82450         m4.
82451
82452 1999-07-20  Jim Meyering  <meyering@ascend.com>
82453
82454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82455
82456 1999-07-15  Jim Meyering  <meyering@ascend.com>
82457
82458         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82459
82460 1999-05-22  Jim Meyering  <meyering@ascend.com>
82461
82462         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82463
82464 1999-05-20  Jim Meyering  <meyering@ascend.com>
82465
82466         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82467         Add a colon after each `then' in case $4 is empty.
82468
82469 1999-05-16  Jim Meyering  <meyering@ascend.com>
82470
82471         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82472
82473 1999-05-10  Jim Meyering  <meyering@ascend.com>
82474
82475         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82476
82477         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82478         AC_FUNC_MKTIME.
82479
82480 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82481
82482         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82483
82484 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82485
82486         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82487         not CPPFLAGS, so that linking works correctly in IRIX.
82488
82489 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82490
82491         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82492
82493 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82494
82495         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82496         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82498         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82499         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82500
82501         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82502
82503 1999-04-20  Jim Meyering  <meyering@ascend.com>
82504
82505         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82506         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82507         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82508
82509 1999-04-18  Jim Meyering  <meyering@ascend.com>
82510
82511         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82512         * m4/jm-macros.m4: Use it.
82513
82514 1999-04-06  Jim Meyering  <meyering@ascend.com>
82515
82516         * m4/strftime.m4: Remove test for %f.
82517
82518 1999-03-29  Jim Meyering  <meyering@ascend.com>
82519
82520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82521         superset of the AC_TYPE_* checks in the textutils, fileutils,
82522         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82523         AC_TYPE_PID_T.
82524
82525 1999-03-28  Jim Meyering  <meyering@ascend.com>
82526
82527         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82528         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82529         replaced e.g., in the *.sh files of the sh-utils.
82530
82531 1999-03-20  Jim Meyering  <meyering@ascend.com>
82532
82533         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82534         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82535         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82536
82537 1999-03-19  Jim Meyering  <meyering@ascend.com>
82538
82539         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82540
82541 1999-03-12  Jim Meyering  <meyering@ascend.com>
82542
82543         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82544
82545 1999-03-07  Jim Meyering  <meyering@ascend.com>
82546
82547         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82548         declared.
82549
82550 1999-02-17  Jim Meyering  <meyering@ascend.com>
82551
82552         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82553         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82554
82555 1999-02-07  Jim Meyering  <meyering@ascend.com>
82556
82557         * m4/group-member.m4: New file -- extracted from sh-utils'
82558         configure.in.
82559
82560         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82561         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82562
82563 1999-02-06  Jim Meyering  <meyering@ascend.com>
82564
82565         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82566         * m4/fnmatch.m4: Likewise.
82567         * m4/getgroups.m4: Likewise.
82568         * m4/lstat.m4: Likewise.
82569         * m4/malloc.m4: Likewise.
82570         * m4/putenv.m4: Likewise.
82571         * m4/realloc.m4: Likewise.
82572         * m4/regex.m4: Likewise.
82573         * m4/stat.m4: Likewise.
82574         * m4/strftime.m4: Likewise.
82575         Suggestion from Alain Magloire.
82576
82577         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82578         * m4/fnmatch.m4: Likewise.
82579         * m4/getgroups.m4: Likewise.
82580         * m4/getline.m4: Likewise.
82581         * m4/lstat.m4: Likewise.
82582         * m4/malloc.m4: Likewise.
82583         * m4/memcmp.m4: Likewise.
82584         * m4/putenv.m4: Likewise.
82585         * m4/realloc.m4: Likewise.
82586         * m4/regex.m4: Likewise.
82587         * m4/stat.m4: Likewise.
82588         * m4/strftime.m4: Likewise.
82589         Suggestion from Alain Magloire.
82590
82591         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82592         an argument.
82593
82594         * m4/regex.m4: Add a run-time Test for proper operation of
82595         re_compile_pattern.
82596
82597 1999-01-31  Jim Meyering  <meyering@ascend.com>
82598
82599         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82600
82601 1999-01-30  Jim Meyering  <meyering@ascend.com>
82602
82603         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82604
82605         * m4/jm-mktime.m4: Make this a wrapper around the official
82606         AM_FUNC_MKTIME rather than my private copy, now that the official one
82607         is up to date.
82608         * m4/mktime.m4: Remove file.
82609
82610         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82611         * m4/uptime.m4: Likewise.
82612         * m4/uintmax_t.m4: Likewise.
82613
82614 1999-01-28  Jim Meyering  <meyering@ascend.com>
82615
82616         * m4/jm-macros.m4: Use jm_AFS.
82617         * m4/afs.m4: New file (from fileutils' configure.in).
82618
82619         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82620         * m4/chown.m4: Likewise.
82621         * m4/d-ino.m4: Likewise.
82622         * m4/d-type.m4: Likewise.
82623         * m4/fnmatch.m4: Likewise.
82624         * m4/getgroups.m4: Likewise.
82625         * m4/gettext.m4: Likewise.
82626         * m4/jm-mktime.m4: Likewise.
82627         * m4/jm-winsz2.m4: Likewise.
82628         * m4/lcmessage.m4: Likewise.
82629         * m4/ls-mntd-fs.m4: Likewise.
82630         * m4/malloc.m4: Likewise.
82631         * m4/memcmp.m4: Likewise.
82632         * m4/putenv.m4: Likewise.
82633         * m4/realloc.m4: Likewise.
82634         * m4/st_mtim.m4: Likewise.
82635         * m4/strftime.m4: Likewise.
82636
82637 1999-01-16  Jim Meyering  <meyering@ascend.com>
82638
82639         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82640         (ARGMATCH_DIE_DECL): Define.
82641
82642 1999-01-12  Jim Meyering  <meyering@ascend.com>
82643
82644         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82645         Reported by Lars Hecking.
82646
82647 1999-01-10  Jim Meyering  <meyering@ascend.com>
82648
82649         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82650         gross kludge.
82651         * m4/inttypes_h.m4: Likewise.
82652         * m4/lstat.m4: Likewise.
82653         * m4/malloc.m4: Likewise.
82654         * m4/readdir.m4: Likewise.
82655         * m4/realloc.m4: Likewise.
82656         * m4/st_dm_mode.m4: Likewise.
82657         * m4/stat.m4: Likewise.
82658         * m4/utimbuf.m4: Likewise.
82659         * m4/utimes.m4: Likewise.
82660
82661         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82662         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82663         comments in config.h.in are meaningful.
82664
82665         * m4/jm-macros.m4: Require autoconf-2.13 here.
82666
82667         * m4/regex.m4: By default, don't use the included regex.c on systems
82668         with glibc 2.  Suggestion from Uli Drepper.
82669
82670 1999-01-02  Jim Meyering  <meyering@ascend.com>
82671
82672         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82673
82674 1998-12-18  Jim Meyering  <meyering@ascend.com>
82675
82676         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82677         Based on a suggestion from Lars Hecking.
82678
82679 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82680
82681         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82682
82683 1998-11-16  Jim Meyering  <meyering@ascend.com>
82684
82685         * m4/lfs.m4: Double-quote the `uname...` expression.
82686
82687 1998-11-14  Jim Meyering  <meyering@ascend.com>
82688
82689         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82690         * m4/stat.m4: Likewise.
82691
82692 1998-11-03  Jim Meyering  <meyering@ascend.com>
82693
82694         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82695         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82696
82697 1998-10-18  Jim Meyering  <meyering@ascend.com>
82698
82699         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82700
82701 1998-10-17  Jim Meyering  <meyering@ascend.com>
82702
82703         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82704         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82705         calls for those previously hard-coded headers.  Instead, take a new
82706         parameter.
82707         (jm_CHECK_DECLARATIONS): Reflect interface change.
82708         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82709         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82710
82711         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82712
82713 1998-10-14  Jim Meyering  <meyering@ascend.com>
82714
82715         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82716         instead of "TZ=America/Vancouver".  From Paul Eggert.
82717
82718 1998-10-11  Jim Meyering  <meyering@ascend.com>
82719
82720         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82721         This adds a test for a recently added compatibility fix for mktime.c.
82722         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82723
82724 1998-09-27  Jim Meyering  <meyering@ascend.com>
82725
82726         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82727
82728         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82729         ../configure.in, including a change from Gordon Matzigkeit to allow
82730         cross-compiling for the Hurd.
82731
82732         * m4/glibc.m4: New file/macro to test for the GNU C Library
82733         versions 1 and 2.  From Gordon Matzigkeit.
82734         Indent.
82735
82736 1998-09-21  Jim Meyering  <meyering@ascend.com>
82737
82738         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82739
82740 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82741
82742         Port nanosecond-resolution times to UnixWare 2.1.2 and
82743         pedantic Solaris 2.6.
82744
82745         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82746         AC_STRUCT_ST_MTIM.
82747         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82748         Generate name of ns member, instead of just 1 or undef.
82749         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82750
82751 1998-08-15  Jim Meyering  <meyering@ascend.com>
82752
82753         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82754         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82755         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82756         instead of jm_TYPE_SSIZE_T.
82757
82758 1998-08-12  Jim Meyering  <meyering@ascend.com>
82759
82760         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82761
82762 1998-08-02  Jim Meyering  <meyering@ascend.com>
82763
82764         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82765         in acconfig.h manually.
82766
82767 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82768
82769         * m4/st_mtim.m4: New file.
82770
82771 1998-07-28  Jim Meyering  <meyering@ascend.com>
82772
82773         * m4/utimes.m4: Undef stat.
82774
82775 1998-07-25  Jim Meyering  <meyering@ascend.com>
82776
82777         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82778         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82779
82780 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82781
82782         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82783         uid and gid actually remain unchanged.
82784
82785 1998-07-07  Jim Meyering  <meyering@ascend.com>
82786
82787         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82788
82789 1998-07-04  Jim Meyering  <meyering@ascend.com>
82790
82791         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82792         to prove that this macro can be used in packages without regex.c.
82793
82794 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82795
82796         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82797         is to be used.
82798
82799 1998-07-03  Jim Meyering  <meyering@ascend.com>
82800
82801         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82802
82803         * m4/gettext.m4: New file -- from gettext-0.10.35.
82804         * m4/lcmessage.m4: Likewise.
82805         * m4/progtest.m4: Likewise.
82806
82807         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82808         * m4/jm-macros.m4: Require the new macro.
82809
82810 1998-06-29  Jim Meyering  <meyering@ascend.com>
82811
82812         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82813         for the definition of NGROUPS (used in a system header included
82814         by sys/mount.h).
82815
82816 1998-06-28  Jim Meyering  <meyering@ascend.com>
82817
82818         * m4/ls-mntd-fs.m4: New file.
82819         * m4/fstypename.m4: New file.
82820
82821         * m4/jm-macros.m4: Require the new macro.
82822         * m4/jm-glibc-io.m4: New file.
82823
82824 1998-05-19  Jim Meyering  <meyering@ascend.com>
82825
82826         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82827         * m4/lchown.m4: New file.
82828
82829         * m4/Makefile.am.in: New file.
82830         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82831
82832 1998-05-14  Jim Meyering  <meyering@ascend.com>
82833
82834         * m4/Makefile.am (EXTRA_DIST): Add them.
82835         * m4/jm-macros.m4: New file.
82836         * m4/utimbuf.m4: New file.
82837
82838 1998-05-12  Jim Meyering  <meyering@ascend.com>
82839
82840         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82841
82842 1998-05-11  Jim Meyering  <meyering@ascend.com>
82843
82844         * m4/isc-posix.m4: New file.
82845
82846 1998-05-10  Jim Meyering  <meyering@ascend.com>
82847
82848         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82849
82850 1998-05-09  Jim Meyering  <meyering@ascend.com>
82851
82852         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82853         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82854         with automake.
82855
82856         * m4/ssize_t.m4: New file.
82857         * m4/mktime.m4: Remove file -- the new automake has this now.
82858
82859 1998-04-26  Jim Meyering  <meyering@ascend.com>
82860
82861         * m4/assert.m4: New file.
82862         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82863
82864 1998-04-05  Jim Meyering  <meyering@ascend.com>
82865
82866         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82867         (jm_PREREQ): Use it here.
82868
82869 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82870
82871         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82872         in acconfig.h.
82873
82874 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82875
82876         * m4/prereq.m4: New file.
82877         * m4/error.m4: New file.
82878         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82879
82880 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82881
82882         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82883         cache-check for the same variable -- that defeated the purpose of
82884         the test; the test program was never run.  This was a problem only
82885         on systems with losing getline functions -- HP-UX 10.20 is one.
82886         Reported by Bjorn Helgaas.
82887
82888 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82889
82890         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82891
82892 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82893
82894         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82895
82896         * m4/const.m4: New file.  Use an initializer in this declaration
82897         typedef int charset[2]; const charset x;
82898         Reported by Bob Glickstein.
82899
82900 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82901
82902         * m4/chown.m4: Fix reversed types on -1 args to chown.
82903         From Kaveh Ghazi.
82904
82905 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82906
82907         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82908         Add lseek and memchr.
82909
82910         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82911         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82912         have a 20-character limit on names.
82913
82914 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82915
82916         * m4/inttypes_h.m4: New file.
82917         * m4/uintmax_t.m4: New file.
82918         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82919
82920
82921         -----
82922
82923         Local Variables:
82924         coding: utf-8
82925         End:
82926
82927         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82928
82929         Copying and distribution of this file, with or without
82930         modification, are permitted provided the copyright notice
82931         and this notice are preserved.